Uncommented component preset editor menu item, but protected it with a system property: -Dopenrocket.preseteditor.menu if present, the editor will be on the menu.

This commit is contained in:
Doug Pedrick 2012-09-26 18:09:12 +00:00
parent 391d02dc66
commit 93bfce7f70

View File

@ -618,20 +618,21 @@ public class BasicFrame extends JFrame {
menu.add(item); menu.add(item);
//// Edit Component Preset File //// Edit Component Preset File
/*
item = new JMenuItem(trans.get("main.menu.edit.editpreset")); if (System.getProperty("openrocket.preseteditor.menu") != null) {
item.addActionListener( new ActionListener() { item = new JMenuItem(trans.get("main.menu.edit.editpreset"));
@Override item.addActionListener( new ActionListener() {
public void actionPerformed(ActionEvent e) { @Override
JFrame dialog = new JFrame(); public void actionPerformed(ActionEvent e) {
dialog.getContentPane().add(new ComponentPresetEditor(dialog)); JFrame dialog = new JFrame();
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); dialog.getContentPane().add(new ComponentPresetEditor(dialog));
dialog.pack(); dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
dialog.setVisible(true); dialog.pack();
} dialog.setVisible(true);
}); }
menu.add(item); });
*/ menu.add(item);
}
//// Analyze //// Analyze
menu = new JMenu(trans.get("main.menu.analyze")); menu = new JMenu(trans.get("main.menu.analyze"));