NewXMLWizard exception [message #198589] |
Tue, 21 August 2007 15:17 |
Eclipse User |
|
|
|
Originally posted by: wjfang.gmail.com
Hi,
In my plug-in, I programmatically launch the new xml wizard:
NewXMLWizard wizard = new NewXMLWizard();
wizard.init(FormView.this.getSite().getWorkbenchWindow().get Workbench(),
new StructuredSelection(formFolder));
WizardDialog dialog = new WizardDialog(
FormView.this.getSite().getShell(), wizard);
int result = dialog.open();
It works fine for me.
But when this code runs inside an RCP, "dialog.open()" triggers an
exception:
!ENTRY org.eclipse.ui 4 0 2007-08-21 16:02:52.062
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.IllegalStateException
at org.eclipse.core.runtime.Platform.getPluginRegistry(Platform .java:755)
at org.eclipse.core.runtime.Platform.getPlugin(Platform.java:73 0)
at
org.eclipse.ui.wizards.datatransfer.FileSystemImportWizard.<init >(FileSystemImportWizard.java:63)
at
org.eclipse.wst.common.ui.internal.viewers.SelectSingleFileV iew$4.widgetSelected(SelectSingleFileView.java:223)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:227)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3293)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
at org.eclipse.jface.window.Window.open(Window.java:796)
And the wizard behaves abnormally: it can not show file system content, and
it can not show the import xsd schema wizard.
Does anyone know how to solve this? Thanks in advance!
Weijian
|
|
|
Re: NewXMLWizard exception [message #198597 is a reply to message #198589] |
Tue, 21 August 2007 17:11 |
|
Weijian,
From your prior post indicating the list of installed plug-ins and
from examining the source for the Platform class throwing the
exception, it looks like you need to add the
org.eclipse.core.runtime.compatibility plug-in.
--
Nitin Dahyabhai
Structured Source Editing
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
Re: NewXMLWizard exception [message #198709 is a reply to message #198597] |
Wed, 22 August 2007 09:34 |
Eclipse User |
|
|
|
Originally posted by: wjfang.gmail.com
Nitin, thanks! It works but I got another problem, please see my post
"Launch NewXMLWizard programmatically".
Weijian
"Nitin Dahyabhai" <nitind@us.ibm.com> wrote in message
news:faf6dk$idq$1@build.eclipse.org...
> Weijian,
> From your prior post indicating the list of installed plug-ins and from
> examining the source for the Platform class throwing the exception, it
> looks like you need to add the org.eclipse.core.runtime.compatibility
> plug-in.
>
> --
> Nitin Dahyabhai
> Structured Source Editing
|
|
|
Powered by
FUDForum. Page generated in 0.03257 seconds