SWT Designer View will not open.

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 View will not open.

Postby ftnexte » Thu Jul 31, 2003 12:01 am

I tried to open a sample Java file the SWT Designer Multi-Page Editor as described in the installation doc. The Icon shown on the editor tab is correct but there is now graphical UI to add or manipulate SWT components.

In the eclipse log file seems to be a hint on the error:

java.lang.NullPointerException
at com.swtdesigner.gef.i.run(Unknown Source)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:842)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:456)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:403)
at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:397)
at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:72)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1838)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1545)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
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:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
at org.eclipse.core.launcher.Main.run(Main.java:747)
at org.eclipse.core.launcher.Main.main(Main.java:583)



Regards Frank
ftnexte
 
Posts: 3
Joined: Wed Jul 30, 2003 11:48 pm

Postby admin » Thu Jul 31, 2003 1:05 am

Can you send this sample file to support@swt-designer.com ?
admin
Moderator
 
Posts: 166
Joined: Thu Jul 24, 2003 12:25 am

Postby admin » Thu Jul 31, 2003 1:47 am

I think, that you pressed on test button on toolbar.
This button should be used only after you select method on "Design" page.
To edit design in GUI switch to "Design" page and then use drag and drop from control palette.

We will fix this bug in next build.
admin
Moderator
 
Posts: 166
Joined: Thu Jul 24, 2003 12:25 am

Sample File

Postby ftnexte » Thu Jul 31, 2003 2:06 am

The sample is running well.
I constructed it as a table example with the your wizard. The problem is somehow connected to the eclipse environment.
My Problem is that the GUI for SWT Components is not visible.

Thanks for your answer in advance

Regards
Frank
ftnexte
 
Posts: 3
Joined: Wed Jul 30, 2003 11:48 pm

Postby ftnexte » Thu Jul 31, 2003 2:34 am

:)
It works now...
though it would be helpful if you mark the second tab of the designer - that is what i hadn't seen so far - with a yellow sign as you did in the swt-designer.pdf (page2) for all other elements of your designer.

Thanks a lot.

Frank
ftnexte
 
Posts: 3
Joined: Wed Jul 30, 2003 11:48 pm


Return to SWT Designer

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 1 guest