Newb Where to Start: Eclipse 3M9 and SWT Designer Pro 2.0.0

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

Newb Where to Start: Eclipse 3M9 and SWT Designer Pro 2.0.0

Postby fastnsilver » Mon May 24, 2004 4:16 pm

I recently purchased SWT Designer Pro. After downloading, installing and activating on a laptop configured w/

Intel 3.4GHZ P4 CPU w/ 1Gb RAM
Windows XP Pro
Sun JRE 1.4.2_04
Eclipse 3M9

I receive the following error after...
- creating an SWT/JFace Java Project

- creating a new package called org.cap.example1
- using wizard to create a Designer >> Examples >> Next >> Layout.Form


java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:283)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:750)
at org.eclipse.jdt.internal.ui.wizards.NewElementWizard.performFinish(NewElementWizard.java:115)
at com.swtdesigner.wizards.NewDesignContainerWizard.performFinish(SourceFile:34)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:607)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:305)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:505)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
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:2716)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2382)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:668)
at org.eclipse.jface.window.Window.open(Window.java:648)
at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:161)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:899)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:850)
at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:769)
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:2716)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2382)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1363)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1334)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:253)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:97)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:307)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:256)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:127)
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:185)
at org.eclipse.core.launcher.Main.run(Main.java:638)
at org.eclipse.core.launcher.Main.main(Main.java:622)
Caused by: org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:2689)
at org.eclipse.swt.SWT.error(SWT.java:2614)
at org.eclipse.swt.SWT.error(SWT.java:2585)
at org.eclipse.swt.widgets.Widget.error(Widget.java:381)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:284)
at org.eclipse.swt.widgets.Control.setEnabled(Control.java:2009)
at org.eclipse.jface.wizard.WizardDialog.updateButtons(WizardDialog.java:1011)
at org.eclipse.jface.wizard.WizardPage.setPageComplete(WizardPage.java:274)
at org.eclipse.jdt.ui.wizards.NewElementWizardPage.updateStatus(NewElementWizardPage.java:68)
at org.eclipse.jdt.ui.wizards.NewElementWizardPage.updateStatus(NewElementWizardPage.java:82)
at com.swtdesigner.wizards.NewDesignContainerPage.doStatusUpdate(SourceFile:32)
at com.swtdesigner.wizards.NewDesignContainerPage.handleFieldChanged(SourceFile:57)
at org.eclipse.jdt.ui.wizards.NewTypeWizardPage.typePageDialogFieldChanged(NewTypeWizardPage.java:647)
at org.eclipse.jdt.ui.wizards.NewTypeWizardPage.access$2(NewTypeWizardPage.java:599)
at org.eclipse.jdt.ui.wizards.NewTypeWizardPage$TypeFieldsAdapter.dialogFieldChanged(NewTypeWizardPage.java:563)
at org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField.dialogFieldChanged(DialogField.java:70)
at org.eclipse.jdt.internal.ui.wizards.dialogfields.StringDialogField.setText(StringDialogField.java:162)
at org.eclipse.jdt.ui.wizards.NewTypeWizardPage.setSuperClass(NewTypeWizardPage.java:871)
at com.swtdesigner.wizards.swt.NewSWTExamplesWizard.finishPage(SourceFile:21)
at org.eclipse.jdt.internal.ui.wizards.NewElementWizard$2.run(NewElementWizard.java:108)
at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:34)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:700)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1672)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:3240)
at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:65)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)


Note...

I have the DLL (swt-win32-3052.dll) from c:\eclipse\plugins\org.eclipse.swt.win32_3.0.0\os\win32\x86 in the base directory of my project and

the PATH environment variable includes

c:\eclipse\plugins\org.eclipse.swt.win32_3.0.0\os\win32\x86

What else am I missing here?

Chris.
Last edited by fastnsilver on Tue May 25, 2004 5:59 am, edited 1 time in total.
fastnsilver
 
Posts: 2
Joined: Mon May 24, 2004 4:04 pm

Re: Newb Where to Start: Eclipse 3M9 and SWT Designer beta 2

Postby Eric Clayberg » Mon May 24, 2004 7:18 pm

fastnsilver wrote:I recently purchased SWT Designer Pro. After downloading, installing and activating on a laptop configured w/...Eclipse 3M9
I receive the following error

You didn't mention which version of Designer you installed, but we actually haven't officially announced support for M9 yet. That said, if you download and install the new Designer v2.0.0 update for Eclipse 3.0 M9, you should be fine. We just finished testing and building it this evening.
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

Works!

Postby fastnsilver » Tue May 25, 2004 5:57 am

I uninstalled yesterday's beta and then downloaded and re-installed the new release v2.0.0 and now everything works grand!

Thanks.
fastnsilver
 
Posts: 2
Joined: Mon May 24, 2004 4:04 pm


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest