Skip to main content

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
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.

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: 1890
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.

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: Mon May 21 05:32:31 GMT 2018

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

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

Back to the top