|
| Re: Modify Project Facets| without GUI [message #213012 is a reply to message #212994] |
Mon, 28 April 2008 06:21   |
|
Originally posted by: crscaa.yahoo.co.in
Using ProjectFacetsManager.create() I can obtain an instance of a
IFacetedProject.
Using ProjectFacetsManager.getProjectFacet() I can obtain the facets
Using ProjectFacetsManager.getProjectFacet("[facet info]").getVersion() I
can obtain the version of the facet.
I can get the action definitions for each facetversion using
ProjectFacetsManager.getProjectFacet().getVersion().getActio nDefinitions()
So far so good.
What next?
|
|
|
|
| Re: Modify Project Facets| without GUI [message #213052 is a reply to message #213018] |
Mon, 28 April 2008 23:48   |
|
Originally posted by: crscaa.yahoo.co.in
Is it possible to modify the project facets of a faceted project without
using the wizard but just API.
Specifically need to install Dynamic Web and java facets.
Using ProjectFacetsManager.create() I can obtain an instance of a
IFacetedProject.
Using ProjectFacetsManager.getProjectFacet() I can obtain the facets
Using ProjectFacetsManager.getProjectFacet("[facet info]").getVersion() I
can obtain the version of the facet.
I can get the IActionDefinition action definitions for each facetversion
using
ProjectFacetsManager.getProjectFacet().getVersion().getActio nDefinitions()
An action can be obtained by using new Action( Action.Type.INSTALL,
facetversion, null )
Action instances can be added to a set so that the faceted project can be
moified with it.
This seems almost enough. What is missing?
Where can I read about it?
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02065 seconds