1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-20 14:54:31 +01:00

Cleaned up the menus (removed unused/unimplemented items).

This commit is contained in:
David A. Mellis 2005-12-08 19:30:58 +00:00
parent 0a15403d7c
commit e8c7e05e27

View File

@ -21,7 +21,7 @@
along with this program; if not, write to the Free Software Foundation, along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
$Id:$ $Id$
*/ */
package processing.app; package processing.app;
@ -551,13 +551,13 @@ public class Editor extends JFrame
}); });
menu.add(item); menu.add(item);
item = newJMenuItem("Present", 'R', true); //item = newJMenuItem("Present", 'R', true);
item.addActionListener(new ActionListener() { //item.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) { // public void actionPerformed(ActionEvent e) {
handleRun(true); // handleRun(true);
} // }
}); // });
menu.add(item); //menu.add(item);
item = new JMenuItem("Stop"); item = new JMenuItem("Stop");
item.addActionListener(new ActionListener() { item.addActionListener(new ActionListener() {
@ -577,7 +577,7 @@ public class Editor extends JFrame
}); });
menu.add(item); menu.add(item);
menu.add(sketchbook.getImportMenu()); //menu.add(sketchbook.getImportMenu());
if (Base.isWindows() || Base.isMacOS()) { if (Base.isWindows() || Base.isMacOS()) {
// no way to do an 'open in file browser' on other platforms // no way to do an 'open in file browser' on other platforms
@ -617,7 +617,7 @@ public class Editor extends JFrame
String name = item.getLabel(); String name = item.getLabel();
Preferences.set("serial.port", name); Preferences.set("serial.port", name);
System.out.println("port set to " + name); //System.out.println("port set to " + name);
} }
@ -642,7 +642,7 @@ public class Editor extends JFrame
String name = item.getLabel(); String name = item.getLabel();
Preferences.set("serial.download_rate", name); Preferences.set("serial.download_rate", name);
System.out.println("serial port speed set to " + name); //System.out.println("serial port speed set to " + name);
} }
@ -720,8 +720,8 @@ public class Editor extends JFrame
serialSubMenu.setEnabled(false); serialSubMenu.setEnabled(false);
} }
serialSubMenu.addSeparator(); //serialSubMenu.addSeparator();
serialSubMenu.add(item); //serialSubMenu.add(item);
menu.add(serialSubMenu); menu.add(serialSubMenu);
@ -733,7 +733,7 @@ public class Editor extends JFrame
serialRateSubMenu = new JMenu("Serial port speed"); serialRateSubMenu = new JMenu("Serial port speed");
serialSubMenu.add(item); //serialSubMenu.add(item);
//serialSubMenu.addSeparator(); //serialSubMenu.addSeparator();
group = new ButtonGroup(); group = new ButtonGroup();