Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to add an action to context menu of web and ejb projects
How to add an action to context menu of web and ejb projects [message #333778] Mon, 05 January 2009 15:35 Go to next message
Vladimir Ivanov is currently offline Vladimir IvanovFriend
Messages: 2
Registered: July 2009
Junior Member
Hi all,
I'm trying to create a plug-in with an editor.
It should have an action that appears only in the
context menu of web or ejb projects. I'm trying to make it by using an
objectContribution, but I don't
know for which project facet to test. If somebody can give me any idea ???

Best Regards
Vladimir
Re: How to add an action to context menu of web and ejb projects [message #333781 is a reply to message #333778] Mon, 05 January 2009 16:53 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
You can use the plugin registry view to find out the facet ids.

- Prakash
--

http://blog.eclipse-tips.com

"Vladimir Ivanov" <vladimirivanov91@gmail.com> wrote in message
news:653a0936a3ef9f171a6b9681317303f4$1@www.eclipse.org...
> Hi all,
> I'm trying to create a plug-in with an editor.
> It should have an action that appears only in the
> context menu of web or ejb projects. I'm trying to make it by using an
> objectContribution, but I don't
> know for which project facet to test. If somebody can give me any idea ???
>
> Best Regards
> Vladimir
>
>
Re: How to add an action to context menu of web and ejb projects [message #333786 is a reply to message #333781] Mon, 05 January 2009 21:20 Go to previous message
Vladimir Ivanov is currently offline Vladimir IvanovFriend
Messages: 2
Registered: July 2009
Junior Member
Thank you.
This thing here is what I needed:
<enablement>
<or>
<adapt type="org.eclipse.core.resources.IProject">
<test forcePluginActivation="true"

property="org.eclipse.wst.common.project.facet.core.projectFacet "
value="jst.ejb:[3.0" />
</adapt>
<adapt type="org.eclipse.core.resources.IProject">
<test forcePluginActivation="true"

property="org.eclipse.wst.common.project.facet.core.projectFacet "
value="jst.web:[2.5" />
</adapt>
<adapt type="org.eclipse.core.resources.IProject">
<test forcePluginActivation="true"

property="org.eclipse.wst.common.project.facet.core.projectFacet "
value="jst.ear:[5.0" />
</adapt>
<adapt type="org.eclipse.core.resources.IProject">
<test forcePluginActivation="true"

property="org.eclipse.wst.common.project.facet.core.projectFacet "
value="jst.appclient:[5.0" />
</adapt>
</or>
</enablement>
Previous Topic:Multi line text field and TableWrapLayout
Next Topic:Java Editor Failed
Goto Forum:
  


Current Time: Thu Apr 25 10:58:41 GMT 2024

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

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

Back to the top