why does not my objectContribution to the pop menu work? [message #168875] |
Sun, 20 January 2008 19:16 |
Mikai Yang 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.
|
|
|
Powered by
FUDForum. Page generated in 0.03433 seconds