From 276d709484cc52a8fdc4ebbad252df2d2b232a1f Mon Sep 17 00:00:00 2001 From: benfry Date: Fri, 26 Sep 2003 17:27:11 +0000 Subject: [PATCH] re-enabling beautify menu, an additional note about javacomm --- app/PdeBase.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/PdeBase.java b/app/PdeBase.java index 074c61579..79d3b7e66 100644 --- a/app/PdeBase.java +++ b/app/PdeBase.java @@ -416,6 +416,7 @@ public class PdeBase extends Frame menu.add(item); beautifyMenuItem = new MenuItem("Beautify", new MenuShortcut('B')); + beautifyMenuItem.addActionListener(this); menu.add(beautifyMenuItem); menu.addSeparator(); @@ -957,7 +958,10 @@ public class PdeBase extends Frame boolean problem = false; // if this is failing, it may be because - // lib/javax.comm.properties is missing + // lib/javax.comm.properties is missing. + // java is weird about how it searches for java.comm.properties + // so it tends to be very fragile. i.e. quotes in the CLASSPATH + // environment variable will hose things. try { //System.out.println("building port list"); Enumeration portList = CommPortIdentifier.getPortIdentifiers(); @@ -965,7 +969,7 @@ public class PdeBase extends Frame CommPortIdentifier portId = (CommPortIdentifier) portList.nextElement(); //System.out.println(portId); - + if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { //if (portId.getName().equals(port)) { String name = portId.getName();