| Contributing actions to XML editor popup/context menu [message #222648] |
Tue, 14 October 2008 16:44  |
Hallvard Traetteberg Messages: 536 Registered: July 2009 Location: Trondheim, Norway |
Senior Member |
|
|
Hi,
I'm trying to extend the XML editor with some custom action in the popup menu
for Element objects (selection). I've been able to get my actions to show up in
the context menu for Element tree nodes, with the following markup:
<objectContribution
id="org.eclipse.xswt.popupMenus.objectContribution"
objectClass="org.w3c.dom.Element"
>
There's also markup for menus and actions, but I believe it is this markup that
relates the menus/actions to the selection of org.w3c.dom.Element objects.
However, the menus/actions only show up in the source and outline view. I.e.
when I right click on a tag in the source view or an element node in the outline
view, the (same) actions are there. But when I right click on element node in
the design view, the actions never appear. (BTW, the actions themselves work well).
So I wonder what is wrong? Aren't the tree nodes in the design view org.w3c.dom
objects? Doesn't the context menu in the design viewer use the standard
mechanism for populating the menu?
Hallvard
|
|
|