add(actions.getShowHideTypesAction());
}
private void addNoBrowserAction() {
JMenuItem noBrowser = MenuFactory.createMenuItem("NoBrowser");
final ComboFrame frame = getComboFrame();
noBrowser.addActionListener(
new ActionListener() {
public void actionPerformed(ActionEvent actionEvent) {
// Enqueue, because this update can itself be
// called from a perspective change.
EventQueue.invokeLater(
new Runnable() {
public void run() {
final Editor editor = frame.getEditor();
editor.setMode( EditorMode.ARROW );
frame.showBrowserPerspective();
}
}
);
}
}