SWT Designer errror while opening an action

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

SWT Designer errror while opening an action

Postby CrystalPalace » Thu Sep 02, 2004 2:34 pm

Hello,

i created a ApplicationWindow class and added several actions. When I double click on a action, designer jumps to the run procedure so i can write code - as expected.
Since I dont like anonymous classes very much, I refactored the action to a nested class :-)
But now when I click on that action Designer fails to jump to run() and show a message box that an error has occured.
In the Logfile I find the following exception:
Code: Select all
!ENTRY org.eclipse.core.runtime 4 2 Sep 03, 2004 00:27:16.859
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.runtime".
!STACK 0
java.lang.NullPointerException
   at com.swtdesigner.model.swt.jface.advanced.ActionsComposite.handleActionDoubleClick(SourceFile:499)
   at com.swtdesigner.model.swt.jface.advanced.g.doubleClick(SourceFile:301)
   at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:427)
   at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
   at org.eclipse.core.runtime.Platform.run(Platform.java:747)
   at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:425)
   at org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelect(StructuredViewer.java:647)
   at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:757)
   at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:219)
   at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:216)
   at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:275)
   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
   at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
   at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1435)
   at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1406)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:263)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144)
   at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102)
   at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
   at org.eclipse.core.launcher.Main.run(Main.java:644)
   at org.eclipse.core.launcher.Main.main(Main.java:628)

This happens both with the last august designer release and the new 01.09.2004 release on Eclipse 3 and 3.1M1 :(

This also happens in any new project I create.
CrystalPalace
 
Posts: 9
Joined: Sat Jul 10, 2004 11:48 am

Re: SWT Designer errror while opening an action

Postby Eric Clayberg » Thu Sep 02, 2004 7:04 pm

CrystalPalace wrote:i created a ApplicationWindow class and added several actions. When I double click on a action, designer jumps to the run procedure so i can write code - as expected.
Since I dont like anonymous classes very much, I refactored the action to a nested class :-)
But now when I click on that action Designer fails to jump to run() and show a message box that an error has occured.

Can you send a test case to us at support@swt-designer.com?

If we can reproduce the error, we might be able to fix it for the next update.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby CrystalPalace » Fri Sep 03, 2004 2:19 am

Just sent the mail with a complete project and a short list what i have done

HTH :)
CrystalPalace
 
Posts: 9
Joined: Sat Jul 10, 2004 11:48 am

Postby Eric Clayberg » Fri Sep 03, 2004 11:55 am

CrystalPalace wrote:Just sent the mail with a complete project and a short list what i have done

Thank you for the test case. We have fixed the exception for the next update.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest