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 08:21 Go to next message
A R is currently offline A R
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 09:34 Go to previous message
Michael Wenz is currently offline Michael Wenz
Messages: 1527
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: Thu Apr 17 23:34:50 EDT 2014

Powered by FUDForum. Page generated in 0.02214 seconds