Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Contributing actions to XML editor popup/context menu
Contributing actions to XML editor popup/context menu [message #222648] Tue, 14 October 2008 16:44 Go to previous message
Hallvard Traetteberg is currently offline 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
 
Read Message
Read Message
Read Message
Previous Topic:Question on setting up a static web project
Next Topic:Contributing a Web service CLIENT runtime with UI in WTP
Goto Forum:
  


Current Time: Sun May 19 02:44:06 EDT 2013

Powered by FUDForum. Page generated in 0.01587 seconds