Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Adding Item into Context Menu using org.eclipse.ui.menus
Adding Item into Context Menu using org.eclipse.ui.menus [message #1823067] Thu, 19 March 2020 06:36 Go to next message
venkatesh veera is currently offline venkatesh veeraFriend
Messages: 5
Registered: November 2018
Junior Member
Hi ,
I want to add one item(Option) into the context menu after selection of either project or file in the Explorer. In previous versions we have used popmenus which are deprecated. I have tried the below code for IProject (it worked)but i need it for selection of IFile as well . can anyone help me in this one

Plugin.xml:-
<visibleWhen
checkEnabled="false">
<with
variable="selection">
<iterate
ifEmpty="false">
<instanceof
value="org.eclipse.core.resources.IProject">
</instanceof>
</iterate>
</with>
</visibleWhen>\


Thanks in Advance,
Venkatesh veera.
Re: Adding Item into Context Menu using org.eclipse.ui.menus [message #1823084 is a reply to message #1823067] Thu, 19 March 2020 09:21 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31366
Registered: July 2009
Senior Member
You can use "or" in your expression.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Unable to bring up the workspace for Eclipse che.
Next Topic:Cannot Find Companion Shared Library
Goto Forum:
  


Current Time: Thu Aug 13 06:22:25 GMT 2020

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

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

Back to the top