Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » Menu contribution confusion
Menu contribution confusion [message #892972] Mon, 02 July 2012 04:05 Go to next message
Eclipse UserFriend
Hi,

I've been trying to create a plugin that enables the user to perform an operation on a selection of files.

For that, I think I need to add a menu contribution, a handler and a command. The menu contribution should add an entry to the top level popup menu. In fact, I would like to have two entries (associated with their commands, resp. handlers) being part of a submenu in the popup menu.

However I'm getting confused on how to embody this in the plugin.xml.

1) How should I structure the menuContribution in order to get the requested structure:

Walb tools
+-------- Operation 1
+-------- Operation 2

2) How can I retrieve the set of selected items when an operation is requested.

Any suggestions?

Greetings,
Wilbert.
Re: Menu contribution confusion [message #893862 is a reply to message #892972] Thu, 05 July 2012 13:50 Go to previous message
Eclipse UserFriend
Are you writing a plugin for Eclipse 4.2 (Juno) or a model based Eclipse4 RCP application?

PW
Previous Topic:cannot remove the title icon from dialog box
Next Topic:Must have screwed up
Goto Forum:
  


Current Time: Sun Jul 06 23:57:59 EDT 2025

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

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

Back to the top