From f1b1f669253fcc46673af5695e15e706a9303870 Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Thu, 31 May 2012 21:19:43 +0400 Subject: [PATCH] remember configured annotations on ok only (IDEA-86853) --- .../codeInspection/ex/EntryPointsManagerImpl.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/java/java-impl/src/com/intellij/codeInspection/ex/EntryPointsManagerImpl.java b/java/java-impl/src/com/intellij/codeInspection/ex/EntryPointsManagerImpl.java index d7d6d37ee529..a704e3cb204b 100644 --- a/java/java-impl/src/com/intellij/codeInspection/ex/EntryPointsManagerImpl.java +++ b/java/java-impl/src/com/intellij/codeInspection/ex/EntryPointsManagerImpl.java @@ -350,7 +350,8 @@ public class EntryPointsManagerImpl implements PersistentStateComponent @Override public void configureAnnotations() { - final JPanel listPanel = SpecialAnnotationsUtil.createSpecialAnnotationsListControl(ADDITIONAL_ANNOTATIONS, "Do not check if annotated by", true); + final ArrayList list = new ArrayList(ADDITIONAL_ANNOTATIONS); + final JPanel listPanel = SpecialAnnotationsUtil.createSpecialAnnotationsListControl(list, "Do not check if annotated by", true); new DialogWrapper(myProject) { { init(); @@ -361,6 +362,13 @@ public class EntryPointsManagerImpl implements PersistentStateComponent protected JComponent createCenterPanel() { return listPanel; } + + @Override + protected void doOKAction() { + ADDITIONAL_ANNOTATIONS.clear(); + ADDITIONAL_ANNOTATIONS.addAll(list); + super.doOKAction(); + } }.show(); }