// View / Display extends Object
JCheckBoxMenuItem extendsObject = new JCheckBoxMenuItem(extendsObjectAction);
extendsObject.setModel(new DefaultButtonModel() {
@Override
public boolean isSelected() {
Preferences prefs = SystemFacade.getInstance().getPreferences();
return prefs.getSetting(Settings.DISPLAY_EXTENDS_OBJECT, Boolean.class).booleanValue();
}
});
view.add(extendsObject);
// View / Show generics
JCheckBoxMenuItem showGenerics = new JCheckBoxMenuItem(showGenericsAction);
showGenerics.setModel(new DefaultButtonModel() {
@Override
public boolean isSelected() {
Preferences prefs = SystemFacade.getInstance().getPreferences();
return prefs.getSetting(Settings.DISPLAY_GENERICS, Boolean.class).booleanValue();
}
});
view.add(showGenerics);
// View / Show varargs
JCheckBoxMenuItem showVarargs = new JCheckBoxMenuItem(showVarargsAction);
showVarargs.setModel(new DefaultButtonModel() {
@Override
public boolean isSelected() {
Preferences prefs = SystemFacade.getInstance().getPreferences();
return prefs.getSetting(Settings.DISPLAY_VARARGS, Boolean.class).booleanValue();
}
});
view.add(showVarargs);