Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » hiding context menu entries
hiding context menu entries [message #1043206] Wed, 17 April 2013 12:21 Go to next message
A R is currently offline A RFriend
Messages: 5
Registered: April 2013
Junior Member
Hello,
is there an easy ways to hide context menu entries, that are not applicable for the selected item?
By default they are automatically grayed out, but hidings them completely would clean up the context menu quite a bit.

Regards,
Ar Re
Re: hiding context menu entries [message #1046871 is a reply to message #1043206] Mon, 22 April 2013 13:34 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1640
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Ar Re,

this should be possible by returning false on isAvailable of the feature for
this context menu entry. Another option would be not to add the feature to
the list of relevant features in the method getContextMenu() of your tool
behavior provider.

Michael
Previous Topic:Graphiti opens multiple tabs for the same file
Next Topic:setBackground(Color color) not immediately affected after a call from an Adapter.notifyChanged()
Goto Forum:
  


Current Time: Sun Dec 21 16:50:41 GMT 2014

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

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