Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Launch NewXMLWizard programmatically
Launch NewXMLWizard programmatically [message #198697] Wed, 22 August 2007 09:34 Go to next message
Eclipse UserFriend
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 #198859 is a reply to message #198697] Thu, 23 August 2007 03:06 Go to previous messageGo to next message
David Williams is currently offline David WilliamsFriend
Messages: 722
Registered: July 2009
Senior Member
On Wed, 22 Aug 2007 05:34:10 -0400, Weijian <wjfang@gmail.com> wrote:


>
> Any suggestion? Thanks a lot!
>

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?

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 :)
Re: Launch NewXMLWizard programmatically [message #198874 is a reply to message #198859] Thu, 23 August 2007 08:21 Go to previous message
Eclipse UserFriend
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
Previous Topic:UTF8 encoding
Next Topic:working with XML and XML schemas
Goto Forum:
  


Current Time: Thu Mar 28 10:56:05 GMT 2024

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

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

Back to the top