Launch NewXMLWizard programmatically [message #198697] |
Wed, 22 August 2007 05:34  |
Eclipse User |
|
|
|
Originally posted by: wjfang.gmail.com
Hi,
I use the following code to programmatically launch a 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();
FormFolder is a IFolder where the newly created xml files will be put.
This works fine as plug-in. But in an RCP application, the NewXMLWizard
behaves abnormally, please see the attached picture. Inside the red circle,
the names of folders disappear.
I suspect that the way I create new xml wizard may not be right.
Any suggestion? Thanks a lot!
Cheers,
Weijian
|
|
|
|
Re: Launch NewXMLWizard programmatically [message #198874 is a reply to message #198859] |
Thu, 23 August 2007 04:21  |
Eclipse User |
|
|
|
Originally posted by: wjfang.gmail.com
>
> I'm not that familar with RCP apps in general, but I know our stuff is not
> designed for RCP apps.
> Quite a bit of it assumes the Eclipse Platform is present. Perhaps you
> could start there, get things working, and that would help you discover
> what's "missing" in the pure RCP app?
>
Do you have any hint how to locate the dependency of webtool on Eclipse
platform, which causes webtool does not work perfectly in RCP?
Is it in webtool's workplan to make webtool staff more friendly to RCP
environment?
> But ... I have to add ... NewXMLWizard is not API and I suspect there's no
> plans to make it API ... so, you have your work cut out for you :)
>
In RCP, launching the new xml wizard from File Menu -> New -> Other -> XML
has the same problem. In the case, the new xml wizard is not launched
progrmatically. But the same problem exists.
Cheers,
Weijian
|
|
|
Powered by
FUDForum. Page generated in 0.03663 seconds