1.2.3 beta for M6 fails on "Open with SWT Designer Edit

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

1.2.3 beta for M6 fails on "Open with SWT Designer Edit

Postby tdjohns1 » Fri Jan 23, 2004 1:32 pm

I *think* I've followed the installation instructions properly but when I restarted Eclipse (verified the SWT Designer plugin appears in configuration)
and then attempt to "Open with ... SWT Designer Editor", I get an alert box with the message:

"Unable to instantiate editor: com.swtdesigner.editors.MultiPageEditor org.eclipse.core.runtime.CoreException: Plug-in "com.swtdesigner" was
unable to instantiate class "com.swtdesigner.editors.MultiPageEditor".

Has anyone else seen this, and if so, have they determined the cause?

The complete stack trace in the error log is:

org.eclipse.core.runtime.CoreException[1]: java.lang.InstantiationException
at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:143)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:125)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:114)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:153)
at org.eclipse.ui.internal.EditorManager$3.run(EditorManager.java:638)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:813)
at org.eclipse.core.runtime.Platform.run(Platform.java:457)
at org.eclipse.ui.internal.EditorManager.createPart(EditorManager.java:636)
at org.eclipse.ui.internal.EditorManager.openInternalEditor(EditorManager.java:623)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:433)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:421)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2047)
at org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage.java:1990)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:1977)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:84)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:1972)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:1955)
at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:258)
at org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.java:251)
at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:166)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:847)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2311)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1992)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1506)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1482)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:246)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:47)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:85)
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:279)
at org.eclipse.core.launcher.Main.run(Main.java:742)
at org.eclipse.core.launcher.Main.main(Main.java:581)
tdjohns1
 
Posts: 4
Joined: Fri Jan 23, 2004 12:55 pm

Re: 1.2.3 beta for M6 fails on "Open with SWT Designer

Postby Eric Clayberg » Fri Jan 23, 2004 2:58 pm

tdjohns1 wrote:I *think* I've followed the installation instructions properly but when I restarted Eclipse (verified the SWT Designer plugin appears in configuration)
and then attempt to "Open with ... SWT Designer Editor", I get an alert box with the message:

"Unable to instantiate editor: com.swtdesigner.editors.MultiPageEditor org.eclipse.core.runtime.CoreException: Plug-in "com.swtdesigner" was
unable to instantiate class "com.swtdesigner.editors.MultiPageEditor".

Has anyone else seen this, and if so, have they determined the cause?

That error generally indicates an installation problem (such as the wrong version of Eclipse or SWT Designer). Can you confirm that you have the correct version of Designer installed into Eclipse 3.0 M6? Our download records indicate that you downloaded the Eclipse 2.0 version first followed by the 3.0 version. If you are using M6, make sure that you aren't using the Eclipse 2.0 version.
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 tdjohns1 » Sat Jan 24, 2004 7:19 am

I did indeed download both beta versions and did install the wrong one first.

However I did run the .bat script to remove the designer and then installed
the proper one for M6.

The symptom remained the same regardless.

I'll do another (proper) install on a different machine and see what happens.
tdjohns1
 
Posts: 4
Joined: Fri Jan 23, 2004 12:55 pm

More data ...

Postby tdjohns1 » Sat Jan 24, 2004 7:52 am

OK, when I installed on a different machine, SWT Designer works.

What I note is that the "Open with SWT Designer Editor" has a distinctive
icon on the working installation, while the broken installation shows the text
editor icon.

I perused the plugin list and I know one difference ... the broken machine
had an (abortive) attempt at installing the Graphical Editing Framework
(GEF), which I think is not yet compatible with M6.

What I'll try Monday is to try to eliminate all of the GEF stuff then reinstall
M6, then SWT Designer.

I wish to compare my plugin configurations between these installs. Do you
know if there is a way to dump a textual representation of the Plugin ID, version, etc. tables? That way I could be very thorough when I check.

Regards,
tdjohns1
 
Posts: 4
Joined: Fri Jan 23, 2004 12:55 pm

Re: More data ...

Postby Eric Clayberg » Sat Jan 24, 2004 10:25 am

tdjohns1 wrote:I wish to compare my plugin configurations between these installs. Do you know if there is a way to dump a textual representation of the Plugin ID, version, etc. tables?

Yes. Click on the Configuration Details button in the Eclipse Help dialog.

BTW, one thing you might try on the broken machine is to delete the Eclipse ".config" directory. That will eliminate any cached plugin configuration data and recreate it on next re-start. I have seen that solve lots of M6-related plugin installation issues.
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 tdjohns1 » Mon Jan 26, 2004 6:41 am

Thanks for the tips. I compared the configurations of the two machines and I found that the 'draw2D' plugin was installed on the malfunctioning
configuration. I removed two plugins associated with the 'draw2D; that alone did not solve the problem.

Then I tried your suggestion (delete the .config directory). That seems to have worked; the designer now appears.

Thank you for the help!

I believe that 'draw2d' was installed as a side effect of my attempt to install the GEF. Now that I check, the GEF is not advertised as compatible with 3.0M6.
tdjohns1
 
Posts: 4
Joined: Fri Jan 23, 2004 12:55 pm


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest