split.add(btn);
view.add(split);
}
view.add(new JSeparator());
// 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);
view.add(new JSeparator());
// View / Tabs
JCheckBoxMenuItem box = new JCheckBoxMenuItem(tabViewAction);
box.setText(this.structureTab.getTabTitle());
view.add(box);
this.viewCheckBoxes.put(box, Tab.STRUCTURE);
box = new JCheckBoxMenuItem(tabViewAction);
box.setText(this.hexTab.getTabTitle());
view.add(box);
this.viewCheckBoxes.put(box, Tab.HEX);
box = new JCheckBoxMenuItem(tabViewAction);
box.setText(this.constantPoolTab.getTabTitle());
view.add(box);
this.viewCheckBoxes.put(box, Tab.CONSTANTPOOL);
box = new JCheckBoxMenuItem(tabViewAction);
box.setText(this.editorTab.getTabTitle());
view.add(box);
this.viewCheckBoxes.put(box, Tab.EDITOR);
box = new JCheckBoxMenuItem(tabViewAction);
box.setText(this.obfuscationTab.getTabTitle());
view.add(box);
this.viewCheckBoxes.put(box, Tab.OBFUSCATION);
box = new JCheckBoxMenuItem(tabViewAction);
box.setText(this.searchTab.getTabTitle());
view.add(box);
this.viewCheckBoxes.put(box, Tab.SEARCH);
box = new JCheckBoxMenuItem(tabViewAction);
box.setText(this.debugTab.getTabTitle());
view.add(box);
this.viewCheckBoxes.put(box, Tab.DEBUG);
box = new JCheckBoxMenuItem(tabViewAction);
box.setText(this.compareTab.getTabTitle());
view.add(box);
this.viewCheckBoxes.put(box, Tab.COMPARE);
for (JCheckBoxMenuItem chkBox : this.viewCheckBoxes.keySet()) {
chkBox.setSelected(false);