remember configured annotations on ok only (IDEA-86853)

This commit is contained in:
Anna Kozlova
2012-05-31 21:30:12 +04:00
parent 95733028b5
commit f1b1f66925
@@ -350,7 +350,8 @@ public class EntryPointsManagerImpl implements PersistentStateComponent<Element>
@Override
public void configureAnnotations() {
final JPanel listPanel = SpecialAnnotationsUtil.createSpecialAnnotationsListControl(ADDITIONAL_ANNOTATIONS, "Do not check if annotated by", true);
final ArrayList<String> list = new ArrayList<String>(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<Element>
protected JComponent createCenterPanel() {
return listPanel;
}
@Override
protected void doOKAction() {
ADDITIONAL_ANNOTATIONS.clear();
ADDITIONAL_ANNOTATIONS.addAll(list);
super.doOKAction();
}
}.show();
}