use of jmri.jmrit.decoderdefn.PrintDecoderListAction in project JMRI by JMRI.
the class Apps method fileMenu.
/**
* Create default File menu
*
* @param menuBar Menu bar to be populated
* @param wi WindowInterface where this menu will appear as part of the
* menu bar
*/
protected void fileMenu(JMenuBar menuBar, WindowInterface wi) {
JMenu fileMenu = new JMenu(Bundle.getMessage("MenuFile"));
menuBar.add(fileMenu);
fileMenu.add(new PrintDecoderListAction(Bundle.getMessage("MenuPrintDecoderDefinitions"), wi.getFrame(), false));
fileMenu.add(new PrintDecoderListAction(Bundle.getMessage("MenuPrintPreviewDecoderDefinitions"), wi.getFrame(), true));
// Use Mac OS X native Quit if using Aqua look and feel
if (!(SystemType.isMacOSX() && UIManager.getLookAndFeel().isNativeLookAndFeel())) {
fileMenu.add(new JSeparator());
fileMenu.add(new AbstractAction(Bundle.getMessage("MenuItemQuit")) {
@Override
public void actionPerformed(ActionEvent e) {
handleQuit();
}
});
}
}
use of jmri.jmrit.decoderdefn.PrintDecoderListAction in project JMRI by JMRI.
the class AppsLaunchFrame method fileMenu.
protected void fileMenu(JMenuBar menuBar, WindowInterface wi) {
JMenu fileMenu = new JMenu(Bundle.getMessage("MenuFile"));
menuBar.add(fileMenu);
fileMenu.add(new PrintDecoderListAction(Bundle.getMessage("MenuPrintDecoderDefinitions"), wi.getFrame(), false));
fileMenu.add(new PrintDecoderListAction(Bundle.getMessage("MenuPrintPreviewDecoderDefinitions"), wi.getFrame(), true));
}
Aggregations