Skip to main content


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 08:05 Go to next message
Wilbert Alberts is currently offline Wilbert AlbertsFriend
Messages: 209
Registered: June 2010
Senior 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 17:50 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
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: Sat Apr 20 01:59:22 GMT 2024

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

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

Back to the top