You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apisupport/apisupport.wizards/src/org/netbeans/modules/apisupport/project/ui/wizard/options/template_mypluginOptionsPanelController
+14-9Lines changed: 14 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -44,40 +44,45 @@ ${OptionsPanelController_ANNOTATION}public final class ${OptionsPanelController_
44
44
changed = false;
45
45
}
46
46
47
+
@Override
47
48
public void applyChanges() {
48
-
SwingUtilities.invokeLater(new Runnable() {
49
-
@Override
50
-
public void run() {
51
-
getPanel().store();
52
-
changed = false;
53
-
}
49
+
SwingUtilities.invokeLater(() -> {
50
+
getPanel().store();
51
+
changed = false;
54
52
});
55
53
}
56
54
55
+
@Override
57
56
public void cancel() {
58
57
// need not do anything special, if no changes have been persisted yet
59
58
}
60
-
59
+
60
+
@Override
61
61
public boolean isValid() {
62
62
return getPanel().valid();
63
63
}
64
-
64
+
65
+
@Override
65
66
public boolean isChanged() {
66
67
return changed;
67
68
}
68
-
69
+
70
+
@Override
69
71
public HelpCtx getHelpCtx() {
70
72
return null; // new HelpCtx("...ID") if you have a help set
71
73
}
72
74
75
+
@Override
73
76
public JComponent getComponent(Lookup masterLookup) {
74
77
return getPanel();
75
78
}
76
79
80
+
@Override
77
81
public void addPropertyChangeListener(PropertyChangeListener l) {
78
82
pcs.addPropertyChangeListener(l);
79
83
}
80
84
85
+
@Override
81
86
public void removePropertyChangeListener(PropertyChangeListener l) {
0 commit comments