Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Menu contribution confusion
Menu contribution confusion [message #892972] Mon, 02 July 2012 04:05 Go to next message
Wilbert Alberts is currently offline Wilbert Alberts
Messages: 88
Registered: June 2010
Member
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
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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: Tue Jul 29 08:48:14 EDT 2014

Powered by FUDForum. Page generated in 0.07971 seconds