Hi Levi, > I was working on the SmartBuffer tool update when I came across a strange > error. Instead of double clicking to finish off a line I used the context > menu (Enter) item and got an error. > After trying to debug I discovered that the menu item calls a method that > mimics an AWT Enter key press. I guess so that some event lister can update.
yep, that was the only way to make several tools behave the same. This was done because it was not possible to have a slower doubleclick on tablet pcs, where the tap of the pen is not the same as a mouseclick. This shouldn't give any problems though. > Not sure how to debug this one, can someone take a look. > > java.awt.AWTException: headless environment How is this possible? Why would one be in headless while using the mouse? What are you doing exactly. Ciao, Andrea > at java.awt.Robot.<init>(Robot.java:75) > at > net.refractions.udig.project.ui.internal.tool.display.ToolManager$9.run(ToolManager.java:1267) > at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) > at > org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584) > at > org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501) > at > org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411) > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) > at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4125) > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457) > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480) > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465) > at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270) > at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3971) > at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3610) > at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696) > at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660) > at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494) > at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674) > at > org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) > at > org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667) > at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) > at > net.refractions.udig.internal.ui.UDIGApplication.start(UDIGApplication.java:136) > at > org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) > at > org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) > at > org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) > at > org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) > at > org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) > at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) > at org.eclipse.equinox.launcher.Main.run(Main.java:1410) > at org.eclipse.equinox.launcher.Main.main(Main.java:1386) > -- > Levi Putna > www.ozblog.com.au > _______________________________________________ > User-friendly Desktop Internet GIS (uDig) > http://udig.refractions.net > http://lists.refractions.net/mailman/listinfo/udig-devel > > _______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel
