Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » NewXMLWizard exception
NewXMLWizard exception [message #198589] Tue, 21 August 2007 15:17 Go to next message
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 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2277
Registered: July 2009
Senior Member
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 WTP, IBM
Re: NewXMLWizard exception [message #198709 is a reply to message #198597] Wed, 22 August 2007 09:34 Go to previous message
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
Previous Topic:configure eclipse for the websphere ws_ant
Next Topic:Application Client Launcher for Java EE
Goto Forum:
  


Current Time: Wed Sep 24 00:36:01 GMT 2014

Powered by FUDForum. Page generated in 0.01544 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software