Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Getting the action that contributed a facet wizard page
Getting the action that contributed a facet wizard page [message #208489] Mon, 11 February 2008 20:47 Go to next message
Eclipse User
Originally posted by: david_whiteman.us.ibm.com

Is there any way to programmatically determine the id of the action that
caused a wizard page to be contributed? I don't see any API for this
on IFacetWizardPage or IWizardContext.

or... I noticed there is a way to pass in <property> name/value pairs in
the plugin.xml for an <action>. Can I look up the properties associated
with the action that contributed a wizard page?

The reason I ask this is I have a wizard page that I want to reuse
across multiple facets/actions, and the only thing I want to vary is a
couple of the external strings in the UI.

I could do this by subclassing, but parameterizing the strings would
make things more flexible and extensible.

Thanks in advance,
David
Re: Getting the action that contributed a facet wizard page [message #208551 is a reply to message #208489] Tue, 12 February 2008 15:22 Go to previous message
Eclipse User
Originally posted by: kosta.bea.com

Make sure that the class that you specify as the action config extends
ActionConfig abstract class. That gives you access to
IProjectFacetVersion object and IFacetedProjectWorkingCopy (in case
IProjectFacetVersion is not enough).

Your IFacetWizardPage will get a handle on the config object via the
setConfig() method.

- Konstantin
Previous Topic:classpath listener
Next Topic:Problem with facet categories?
Goto Forum:
  


Current Time: Wed Oct 22 21:56:02 GMT 2014

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

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