Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » context menu item disabled
context menu item disabled [message #228698] Sat, 02 May 2009 01:27 Go to next message
spyro  is currently offline spyro Friend
Messages: 18
Registered: July 2009
Junior Member
hello there,
i have a problem with a context menu item in my editor:
i made the request and the command and also registered the action, created
an editpolicy and installed it in the createDefaultEditPolicies() method
of my editpart but when i open my editor this context item is always
inactive (greyed out). even when i use it for my editpart for which i
installed the edipolicy.
any ideas why could that be? i can provide you with the code i wrote if
needed.
i hope some of you can help me
regards
Re: context menu item disabled [message #229394 is a reply to message #228698] Mon, 11 May 2009 15:28 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello spyro,

Check isEnabled() method of the action you've created it should return true
in case appropriate EdtiPart is selected.

-----------------
Alex Shatalin
Previous Topic:2 different top level node types from same model element type
Next Topic:sharing a third-party editingDomain
Goto Forum:
  


Current Time: Thu Apr 25 13:35:25 GMT 2024

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

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

Back to the top