Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Modify Project Facets| without GUI
Modify Project Facets| without GUI [message #212994] Sun, 27 April 2008 08:42 Go to next message
Raster R is currently offline Raster RFriend
Messages: 77
Registered: July 2009
Member
Hi,

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.
Re: Modify Project Facets| without GUI [message #213012 is a reply to message #212994] Mon, 28 April 2008 10:21 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Angel Vera is currently offline Angel VeraFriend
Messages: 63
Registered: July 2009
Member

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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Angel Vera is currently offline Angel VeraFriend
Messages: 63
Registered: July 2009
Member

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
Re: Modify Project Facets| without GUI [message #213074 is a reply to message #213056] Tue, 29 April 2008 16:39 Go to previous messageGo to next message
Raster R is currently offline Raster RFriend
Messages: 77
Registered: July 2009
Member
Angel thats not helping. No?

I repeat:-

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 nDefinition
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?
Re: Modify Project Facets| without GUI [message #213201 is a reply to message #213074] Thu, 01 May 2008 15:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kosta.bea.com

You are very close. The last part of the puzzle is
IFacetedProject.modify(). That's where you pass in the actions that you
want to apply.

- Konstantin
Re: Modify Project Facets| without GUI [message #213215 is a reply to message #213201] Fri, 02 May 2008 07:36 Go to previous message
Raster R is currently offline Raster RFriend
Messages: 77
Registered: July 2009
Member
Hi,

I knew that. I was lost in trying to understand what properties to set in
the
actionDefinition.createConfigObject() method.

I figured that out.
Thanks.

Glad to make your aqquaintance. :). Seen your name so often in so many of
the WTP Java files.

Thanks.
Previous Topic:Re: Can't get XSD graphical editor working...
Next Topic:eclipse.webtools Error Help me
Goto Forum:
  


Current Time: Fri Mar 29 11:15:57 GMT 2024

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

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

Back to the top