|
Re: Modify Project Facets| without GUI [message #213012 is a reply to message #212994] |
Mon, 28 April 2008 10:21 |
Eclipse User |
|
|
|
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 #213018 is a reply to message #213012] |
Mon, 28 April 2008 18:24 |
|
Raster,
The best way to achieve the behaviour would be creating a preset. A preset
translates into a new configuration that user can pick from the UI.
You can find some information about the facet preset here:
http://mail.eclipse.org/articles/Article-
BuildingProjectFacets/tutorial.html#defining.presets
In 2.0 there was an ddition for dynamic preset, you may also want to look
into that:
http://help.eclipse.org/help33/index.jsp?
topic=/org.eclipse.wst.doc.isv/html/facets/whatsnew20.html
crscaa@yahoo.co.in (Raster) wrote in
news:9d63b961b1c6b22908de5ada0ed9c6f4$1@www.eclipse.org:
> 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 nDefinition
> s() So far so good.
>
> What next?
>
>
>
Regards,
--
Angel Vera
WTP Server Tools Developer
|
|
|
Re: Modify Project Facets| without GUI [message #213052 is a reply to message #213018] |
Tue, 29 April 2008 03:48 |
Eclipse User |
|
|
|
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?
|
|
|
Re: Modify Project Facets| without GUI [message #213056 is a reply to message #213052] |
Tue, 29 April 2008 14:24 |
|
Ohh Sorry.. I missed the part where you say without using the wizard.
The best place to read about how to work with facets is one of the
tutorials I mentioned earlier.
http://mail.eclipse.org/articles/Article-
BuildingProjectFacets/tutorial.html
crscaa@yahoo.co.in (Raster) wrote in
news:d78ec5afa992ea329c3199f50e42bdf0$1@www.eclipse.org:
> 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
().getActionDefinition
> s()
>
> 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?
>
Regards,
--
Angel Vera
WTP Server Tools Developer
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04006 seconds