Getting the action that contributed a facet wizard page [message #208489] |
Mon, 11 February 2008 20:47 |
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 |
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
|
|
|
Powered by
FUDForum. Page generated in 0.02844 seconds