mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
remember configured annotations on ok only (IDEA-86853)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user