[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Wizards and RCP once more

Hi there,

I've tried to create a INewWizard and therefore (as documented and as
the template is made) I've extended my class with Wizard and implemented
INewWizard.
Then I added a shortcut to my plugin.xml and that all worked quite well.
I see the wizard in the shortcut list and in the NewDialog.

But here comes the problems then. My wizard should only open an empty
editor (no pages, no widgets and no manual finish button pressing
neccessary). I set hasPages in the plugin.xml to false.
When I start the wizard then I get an unhandled loop exception. Any
ideas or thougts? Anything I've overseen? Or any tutorials on that?

Here's my stacktrace if that helps:
!MESSAGE de.esw.services.customer.internal.wizards.NewCustomerWizard
!STACK 0
java.lang.ClassCastException:
de.esw.services.customer.internal.wizards.NewCustomerWizard
	at
org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.createWizard(WorkbenchWizardElement.java:276)
	at
org.eclipse.ui.internal.actions.NewWizardShortcutAction.run(NewWizardShortcutAction.java:67)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
	at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
	at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
	at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
	at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
	at
net.sourceforge.eclipsejaas.JaasApplication$1.run(JaasApplication.java:116)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:337)
	at
net.sourceforge.eclipsejaas.JaasApplication.run(JaasApplication.java:112)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
	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:585)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
	at org.eclipse.core.launcher.Main.run(Main.java:973)
	at org.eclipse.core.launcher.Main.main(Main.java:948)

Thanks,
Markus Wolf
-- 
>
> emedia-solutions wolf
> Wedeler Landstrasse 63
> 22559 Hamburg
>
>> phone: (+49) 40 550 083 70
>>   web: http://www.emedia-solutions-wolf.de
>>  mail: markus@xxxxxxxxxxxxxxxxxxxxxxxx
>>   pgp: http://wwwkeys.de.pgp.net
>