Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » how to show a menu when select attribute/class name
how to show a menu when select attribute/class name [message #235071] Thu, 02 July 2009 09:23
Eclipse UserFriend
Originally posted by: aojw2008.gmail.com

Hi,

I add below extension to show a menu when user right click the
class/attribute name within a class. I use the EAttribute class the
enablement condition, but it doesn't work, please help, thanks.
<extension
point="org.eclipse.ui.popupMenus">
<objectContribution
adaptable="true"
id="xxx.objectContributions.BGAssignToGlossary"

objectClass="org.eclipse.gef.editparts.AbstractGraphicalEditPart ">
<action
class="xxx.actions.BGAssignToGlossary"
definitionId="xxx.commands.BGAssignToGlossary"
enablesFor="+"
id="xxx.actions.BGAssignToGlossary"
label="Assign to glossary term¡­"
menubarPath="editMenu/additions">
<enablement>
<objectClass
name="org.eclipse.emf.ecore.EAttribute">
</objectClass>
</enablement>
</action>
</objectContribution>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
categoryId="org.eclipse.ui.category.edit"
description="Assign to glossary term..."
id="xxx.commands.BGAssignToGlossary"
name="Assign to glossary term¡­">
</command>
</extension>
Previous Topic:Find/Replace in a Diagram solutions
Next Topic:same node definitions for subclass
Goto Forum:
  


Current Time: Fri Apr 03 17:58:10 GMT 2020

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

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

Back to the top