use of com.revolsys.swing.preferences.PreferencesDialog in project com.revolsys.open by revolsys.
the class ProjectFrame method newMenuBar.
@Override
protected JMenuBar newMenuBar() {
final JMenuBar menuBar = super.newMenuBar();
addMenu(menuBar, newMenuFile());
final MenuFactory tools = newMenuTools();
if (OS.isWindows()) {
tools.addMenuItem("options", "Options...", "Options...", (String) null, () -> {
new PreferencesDialog().showPanel();
});
}
addMenu(menuBar, tools);
return menuBar;
}
use of com.revolsys.swing.preferences.PreferencesDialog in project com.revolsys.open by revolsys.
the class MacApplicationListenerHandler method invoke.
@Override
public Object invoke(final Object proxy, final Method method, final Object[] args) throws Throwable {
if (method.getName().equals("openFiles")) {
final Object event = args[0];
openFiles(event);
} else if (method.getName().equals("handlePreferences")) {
final PreferencesDialog preferencesDialog = new PreferencesDialog();
preferencesDialog.showPanel();
}
return null;
}
Aggregations