use of jmri.jmrit.vsdecoder.swing.VSDPreferencesAction in project JMRI by JMRI.
the class VSDecoderFrame method buildMenu.
private void buildMenu() {
JMenu fileMenu = new JMenu(Bundle.getMessage("MenuFile"));
fileMenu.add(new LoadVSDFileAction(Bundle.getMessage("VSDecoderFileMenuLoadVSDFile")));
fileMenu.add(new StoreXmlVSDecoderAction(Bundle.getMessage("VSDecoderFileMenuSaveProfile")));
fileMenu.add(new LoadXmlVSDecoderAction(Bundle.getMessage("VSDecoderFileMenuLoadProfile")));
fileMenu.addSeparator();
fileMenu.add(new VSDPreferencesAction(Bundle.getMessage("VSDecoderFileMenuPreferences")));
// disable XML store
fileMenu.getItem(1).setEnabled(false);
// disable XML load
fileMenu.getItem(2).setEnabled(false);
menuList = new ArrayList<JMenu>(2);
menuList.add(fileMenu);
this.setJMenuBar(new JMenuBar());
this.getJMenuBar().add(fileMenu);
this.addHelpMenu("package.jmri.jmrit.vsdecoder.VSDecoderFrame", true);
}
Aggregations