Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » why does not my objectContribution to the pop menu work?
why does not my objectContribution to the pop menu work? [message #168875] Sun, 20 January 2008 19:16
Mikai Yang is currently offline Mikai YangFriend
Messages: 149
Registered: July 2009
Senior Member
Hi,
I just produced a plugin of toy UML Class Diagram Editor using GMF. Now
I want to contribute an action to the context menu of this editor in another
plugin. This action need to appear in the context menu when the user right
click a class in the diagram. Strangely, when I test it, I never see this
action in the context menu.

The following is my extension description from the plugin.xml:
<extension
id="Create_StateChart_Action_xp"
name="An action for create state chart for a class"
point="org.eclipse.ui.popupMenus">
<objectContribution
adaptable="false"
id="org.hw.my25.xuml.objectContribution.createStateChartAction "
objectClass="xUML.diagram.edit.parts.ClassEditPart">
<action
class="org.hw.my25.xuml.CreateStateChartActionDelegate"
enablesFor="1"
id="org.hw.my25.xuml.action1"
label="Create a State Chart for this Class"
menubarPath="additions">
</action>
</objectContribution>
</extension>

Do you know what's the problem?
Thanks.

Best regards.

Michael.
Previous Topic:Re: Custom code after initialization (Short question)
Next Topic:Example for 2.1M4
Goto Forum:
  


Current Time: Thu Apr 25 23:48:43 GMT 2024

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

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

Back to the top