Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » [Adopter] Another project facets question
[Adopter] Another project facets question [message #223748] Wed, 12 November 2008 17:33 Go to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Our plugin defines several custom facets. Up until recently, they all
showed up in the "Modify Faceted Project" UI. However, now one of those
facets is not listed there. I've inspected the relevant parts of
plugin.xml (see below) and can't see why the one is not being listed.
Any ideas?

Eric

[the facet that does not show up in the UI is
org.skyway.integration.java.spring.webfacet.deploy]


<extension point="org.eclipse.wst.common.project.facet.core.facets">
<project-facet id="org.skyway.integration.java.spring.webfacet">
<label>Skyway Spring Web Generation Facet</label>
<description>Skyway Spring Web Generation Facet</description>
<default-version version="1.1.0"></default-version>
</project-facet>
<project-facet id="org.skyway.integration.java.spring.webfacet.deploy">
<label>Skyway Spring Web Deployment Facet</label>
<description>Skyway Spring Web Deployment Facet</description>
<default-version version="1.0"></default-version>
</project-facet>
<project-facet-version
facet="org.skyway.integration.java.spring.webfacet.deploy" version="1.0">
<constraint>
<and>
<requires group="skyway-generators"></requires>
<conflicts group="modules"></conflicts>
</and>
</constraint>
<group-member id="modules"></group-member>
<action type="uninstall">
<delegate
class=" org.skyway.deploy.spring.web.SpringWebDeployFacetUninstallDe legate "></delegate>
<config-factory
class=" org.skyway.deploy.spring.web.SpringWebGenerationActionConfig Factory "></config-factory>
</action>
<action type="install">
<delegate
class=" org.skyway.deploy.spring.web.SpringWebDeployFacetInstallDele gate "></delegate>
<config-factory
class=" org.skyway.deploy.spring.web.SpringWebGenerationActionConfig Factory "></config-factory>
</action>
</project-facet-version>
<project-facet-version
facet="org.skyway.integration.java.spring.webfacet" version="1.1.0">
<action type="install">
<delegate
class=" org.skyway.deploy.spring.web.SpringWebGenerationFacetInstall Delegate "></delegate>
<config-factory
class=" org.skyway.deploy.spring.web.SpringWebGenerationActionConfig Factory "></config-factory>
</action>
<action type="uninstall">
<delegate
class=" org.skyway.deploy.spring.web.SpringWebGenerationFacetUninsta llDelegate "></delegate>
<config-factory
class=" org.skyway.deploy.spring.web.SpringWebGenerationActionConfig Factory "></config-factory>
</action>
<constraint>
<and>
<requires facet="org.skyway.core.modeling.facet" soft="false"
version="1.0"></requires>
<conflicts group="skyway-generators"></conflicts>
</and>
</constraint>
<group-member id="skyway-generators"></group-member>
</project-facet-version>
</extension>

<extension point="org.eclipse.wst.common.project.facet.core.runtimes">
<supported>
<facet id="org.skyway.integration.java.spring.webfacet"
version="*"></facet>
<runtime-component any="true"></runtime-component>
<facet id="org.skyway.core.modeling.facet" version="*"></facet>
<facet id="org.skyway.integration.java.spring.webfacet.deploy"
version="*"></facet>
</supported>
</extension>
Re: [Adopter] Another project facets question [message #223757 is a reply to message #223748] Wed, 12 November 2008 22:21 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
What does the project configuration look like in this context? What facets
are already installed? What facets are fixed?

Looking at your declaration, the webfacet.deploy facet specifies
<conflicts group="modules"/> constraint. This is the group that all WTP
module facets belong. So if you are starting with say a project created
using WTP's Dynamic Web Project wizard, then your facet conflicts with an
already installed fixed facet, so it will not be shown.

- Konstantin
Re: [Adopter] Another project facets question [message #223826 is a reply to message #223757] Thu, 13 November 2008 19:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

On 11/12/2008 5:21 PM, Konstantin Komissarchik wrote:
> What does the project configuration look like in this context? What
> facets are already installed? What facets are fixed?
> Looking at your declaration, the webfacet.deploy facet specifies
> <conflicts group="modules"/> constraint. This is the group that all WTP
> module facets belong. So if you are starting with say a project created
> using WTP's Dynamic Web Project wizard, then your facet conflicts with
> an already installed fixed facet, so it will not be shown.

I'm just trying to create a new WTP "Dynamic Web Project" and our deploy
facet does not show up as an option.
I think the problem lies in my ignorance of the constraints - is there a
good document that decribes that (other than the extension point
description generated from the schema)?

Thanks,
Eric
Re: [Adopter] Another project facets question [message #223834 is a reply to message #223826] Thu, 13 November 2008 20:08 Go to previous message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
The facets tutorial has a section on constraints:

http://www.eclipse.org/articles/Article-BuildingProjectFacet s/tutorial.html#specifying.constraints

The tutorial is also included in ISV docs that you probably have in your
distribution. Just look under Faceted Project Framework in help contents.

- Konstantin
Previous Topic:Newbie: Security Filter Not Functioning
Next Topic:Server output not redirected to console
Goto Forum:
  


Current Time: Tue Apr 16 21:29:41 GMT 2024

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

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

Back to the top