Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Extending WTP Wizards in a reusable way
Extending WTP Wizards in a reusable way [message #75764] Tue, 22 February 2005 11:04 Go to next message
Eclipse UserFriend
Originally posted by: erwin.de.ley.isencia.be

Hi,

I'm working in an environment with mixed a toolset, but all
eclipse-based : some are using WSAD 5, some MyEclipse and others
(including myself) eclipse+WTP.

First of all, big congrats to the WTP-team. I've been using it for a
couple of months now, and it's been a joy. Very intuitive and reliable.

Now, as so many other Java shops, we're doing some Java/web development
based on an extended Struts fwk.

For this work, I'd like to develop/use my own web project creation
wizard. I basically need the existing J2EE web project wizard with some
extras: some extra wizard properties and then copying in some extra
files in the resulting blank web project.

Questions:
- I would like to just write some extensions on the existing WTP
wizard(s), but there seem to be no extension points provided. Are these
planned or possible?
- If no extension points are possible, I'd start off with writing some
extensions on a copy of the org.eclipse.jst.servlet.ui plugin. If so,
what is the risk that one of the dependencies-plugins changes APIs
dramatically in the near future, and my wizard will break?
(there are lots of dependencies on internal classes in other WTP plug-ins)
- Last but not least, if there's someone who has some insight in the
interoperability of WTP plugins with other eclipse-based environments:
what are the chances that I can get something working as well in WSAD
and in MyEclipse?

Many thanks for any info on this!

Erwin
Re: Extending WTP Wizards in a reusable way [message #75782 is a reply to message #75764] Tue, 22 February 2005 11:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: SamMesh.gmail.com

AFAIK, Pollinate is in process of using WTP wizards.
You can as your questions in eclipse.technology.pollinate newsgroup.

--
Sam Mesh
Re: Extending WTP Wizards in a reusable way [message #75902 is a reply to message #75764] Tue, 22 February 2005 15:07 Go to previous messageGo to next message
Eclipse UserFriend
Hi erwin,

The WTP Wizard Framework will be released as experimental API in the M3
milestone, this work is underway. The actual J2EE wizards were released as
API in M2.

The J2EE wizards all extend the "ExtendableWizard" class, and so they
support adding extra pages. The extension points of interest are:

org.eclipse.wst.common.frameworks.ui.wizardPageGroup (what you need to
implement), and
org.eclipse.wst.common.frameworks.ui.extendableWizard (which is already
defined in org.eclipse.jst.servlet.ui for you ..)

The extendableWizard ID of interest is
"org.eclipse.jst.servlet.ui.WebModuleCreationWizard". You will need this in
the wizardID attribute of the wizardPageGroup.

Some doc on the wizardPageGroup ext pt:


<!ELEMENT wizardPageGroup ((factory))>
<!ATTLIST wizardPageGroup
wizardID CDATA #REQUIRED
allowsExtendedPagesAfter CDATA #IMPLIED
pageGroupInsertionID CDATA #IMPLIED
pageGroupID CDATA #IMPLIED>


a.. wizardID - This must match the id defined in the extendableWizard
element in the extendableWizard extension point
b.. allowsExtendedPagesAfter - true|false [-- I'd go with true]
c.. pageGroupInsertionID - If this page is to immediately after another
page, this must match the pageID of the page to insert after.
d.. pageGroupID - specify an id for your content
<!ELEMENT factory EMPTY>
<!ATTLIST factory
className CDATA #REQUIRED>


a.. className - This class is an instance of
org.eclipse.wst.common.frameworks.ui.WizardExtensionFactory

so something like:

<extension point="org.eclipse.wst.common.frameworks.ui.wizardPageGroup ">
<wizardPageGroup
wizardID="org.eclipse.jst.servlet.ui.WebModuleCreationWizard "
allowsExtendedPagesAfter="true"
pageGroupID="com.acme.mycustompages"
>
<factory className="com.acme.MyWizardExtensionFactory" />
</wizardPageGroup>
</extension>

The documentation for this extension point is still lacking, but I've opened
up a defect to track this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=86192

We are currently working on producing better documentation on these kinds of
things, so if you hit any snags that aren't intuitive or straightforward
feel free to post to this newsgroup or even open defects (within reason) for
better documentation.

I'm not familiar with the details of the MyEclipse environment, but I
suspect that (although potentially bulky) it would be possible to create a
plugin stack from WTP that would allow you to have WTP capabilities side by
side with the My Eclipse functionality. On that note, since you're already
customizing your development environment, you could extend it to use
activities (or "capabilities") to filter out the pieces of functionality
from each of these two products to the best of breed features that you want
to use. You should be able to find information on capabilities on the
Eclipse site or the web.

As for WSAD, you'll have alot of code duplication, but the packages and
plugins are renamed accordingly, what this means though is that you're
likely to have muliple new wizards for the various J2EE module types. Again,
activities (or "capabilities") may or may not help you here.


Kind Regards,

Michael D. Elder

"erwin de ley" <erwin.de.ley@isencia.be> wrote in message
news:cvfl78$78k$1@www.eclipse.org...
> Hi,
>
> I'm working in an environment with mixed a toolset, but all
> eclipse-based : some are using WSAD 5, some MyEclipse and others
> (including myself) eclipse+WTP.
>
> First of all, big congrats to the WTP-team. I've been using it for a
> couple of months now, and it's been a joy. Very intuitive and reliable.
>
> Now, as so many other Java shops, we're doing some Java/web development
> based on an extended Struts fwk.
>
> For this work, I'd like to develop/use my own web project creation
> wizard. I basically need the existing J2EE web project wizard with some
> extras: some extra wizard properties and then copying in some extra
> files in the resulting blank web project.
>
> Questions:
> - I would like to just write some extensions on the existing WTP
> wizard(s), but there seem to be no extension points provided. Are these
> planned or possible?
> - If no extension points are possible, I'd start off with writing some
> extensions on a copy of the org.eclipse.jst.servlet.ui plugin. If so,
> what is the risk that one of the dependencies-plugins changes APIs
> dramatically in the near future, and my wizard will break?
> (there are lots of dependencies on internal classes in other WTP plug-ins)
> - Last but not least, if there's someone who has some insight in the
> interoperability of WTP plugins with other eclipse-based environments:
> what are the chances that I can get something working as well in WSAD
> and in MyEclipse?
>
> Many thanks for any info on this!
>
> Erwin
Re: Extending WTP Wizards in a reusable way [message #75966 is a reply to message #75782] Tue, 22 February 2005 16:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: erwin.de.ley.isencia.be

Sam Mesh wrote:
> AFAIK, Pollinate is in process of using WTP wizards.
> You can as your questions in eclipse.technology.pollinate newsgroup.
>

Sam,
Thanks for the link to Pollinate.
I've been checking it out a bit already and it contains lots of
interesting plugin development stuff.

Cheers

Erwin
Re: Extending WTP Wizards in a reusable way [message #76019 is a reply to message #75902] Tue, 22 February 2005 16:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: SamMesh.gmail.com

Michael D. Elder wrote:
> The J2EE wizards all extend the "ExtendableWizard" class, and so they
> support adding extra pages. The extension points of interest are:

Are these generalizations private to wst and/or jst or ...?

--
Sam Mesh
Re: Extending WTP Wizards in a reusable way [message #76067 is a reply to message #75902] Tue, 22 February 2005 17:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: erwin.de.ley.isencia.be

Michael D. Elder wrote:
> Hi erwin,
>
> The WTP Wizard Framework will be released as experimental API in the M3
> milestone, this work is underway. The actual J2EE wizards were released as
> API in M2.
>
> The J2EE wizards all extend the "ExtendableWizard" class, and so they
> support adding extra pages. The extension points of interest are:
>
> ...
>
> a.. className - This class is an instance of
> org.eclipse.wst.common.frameworks.ui.WizardExtensionFactory
>
> so something like:
>
> <extension point="org.eclipse.wst.common.frameworks.ui.wizardPageGroup ">
> <wizardPageGroup
> wizardID="org.eclipse.jst.servlet.ui.WebModuleCreationWizard "
> allowsExtendedPagesAfter="true"
> pageGroupID="com.acme.mycustompages"
> >
> <factory className="com.acme.MyWizardExtensionFactory" />
> </wizardPageGroup>
> </extension>
>
> ...

Hi Michael,

Thanks for the clear explanation.

Having the option to add pages to an existing wizard seems indeed a
clean way forward. (a bit like the composition approach i.o. the
inheritance approach)

Do I understand it correctly that I can then develop my own pages, with
their own wizard operations, and that these operations will be invoked
in the same sequence as the pages are defined in the plugin.xml?

And the factory might cause the navigation order in the wizard to be
different from the order of the page definitions in the plugin.xml?

Cheers

Erwin
Re: Extending WTP Wizards in a reusable way [message #76466 is a reply to message #76019] Thu, 24 February 2005 10:44 Go to previous message
Eclipse UserFriend
Sam Mesh wrote:
> Michael D. Elder wrote:
>
>> The J2EE wizards all extend the "ExtendableWizard" class, and so they
>> support adding extra pages. The extension points of interest are:
>
>
> Are these generalizations private to wst and/or jst or ...?
>


The ExtendableWizard class is in the common component of WST sub project
and J2EE component in JST sub project prereqs common component in WST
sub project.

- Vijay
Previous Topic:JDBC Driver (or classpath) problem
Next Topic:DB connect to DB2 V8 jcc driver
Goto Forum:
  


Current Time: Sun May 11 13:47:42 EDT 2025

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

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

Back to the top