Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Popup menubarPath for 'New grouping'
Popup menubarPath for 'New grouping' [message #331108] Mon, 25 August 2008 14:22 Go to next message
Eclipse UserFriend
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 #331238 is a reply to message #331108] Thu, 28 August 2008 14:49 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Re: Popup menubarPath for 'New grouping' [message #331325 is a reply to message #331238] Mon, 01 September 2008 14:59 Go to previous message
Eclipse UserFriend
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
Previous Topic:Focus always on detached console...
Next Topic:Source lookup doesn't work when debugging a fragment
Goto Forum:
  


Current Time: Thu Jul 25 18:37:36 GMT 2024

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

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

Back to the top