Popup menubarPath for 'New grouping' [message #331108] |
Mon, 25 August 2008 14:22 |
Eclipse User |
|
|
|
Originally posted by: jamesblackburn+eclipse.mac.com
Hi All,
I'm trying to add an action to the navigator / resources / 'C/C++
projects' view to the group which contains 'New > ...' , Go Into etc.
I've tried setting menubarPath to 'group.new'. This creates a new
grouping. If add '/additions' I get an invalid Menu Extension Error.
Setting a breakpoint in PluginActionBuilder.contributeMenuAction(...),
where the exception is generated, I see that the menu manager that
contributes the 'New > ...' wizards has an id of null, as does the
GoInto Action and the separators between them.
Other contributed separators have ids such as 'team.main' &
org.eclipse.cdt.make.ui.menu. I can successfully contribute to these
locations, as well as to the generic 'additions'.
So the question is:
How do I contribute an action to the new group in the navigator popup menu?
Cheers,
James
|
|
|
|
Re: Popup menubarPath for 'New grouping' [message #331325 is a reply to message #331238] |
Mon, 01 September 2008 14:59 |
Eclipse User |
|
|
|
Originally posted by: jamesblackburn+eclipse.mac.com
Paul Webster wrote:
> Those are normally done using the perspective or
> org.eclipse.ui.perspectiveExtensions. You basically want to add a "new
> shortcut". That's the data that is used when populating that menu.
Thanks Paul. I was hoping not to use something as heavyweight as a
Wizard, but will give it a go.
Cheers,
James
|
|
|
Powered by
FUDForum. Page generated in 0.03073 seconds