Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Specifying groups / order in newWizardShortcut items
Specifying groups / order in newWizardShortcut items [message #493781] Wed, 28 October 2009 00:02 Go to next message
Gary Miguel is currently offline Gary MiguelFriend
Messages: 15
Registered: October 2009
Junior Member
Hi all,
I have a perspective, and I'm adding a newWizardShortcut to its "New" Toolbar button. Is there a way to specify where in the menu a New Wizard Shortcut appears?

In the Eclipse Java perspective, I see they have Java Project and Project... in a group at the top of the menu. How'd that get there?

Thanks,
Gary
Re: Specifying groups / order in newWizardShortcut items [message #493813 is a reply to message #493781] Wed, 28 October 2009 07:36 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Gary Miguel wrote:
> Hi all,
> I have a perspective, and I'm adding a newWizardShortcut to its "New"
> Toolbar button. Is there a way to specify where in the menu a New
> Wizard Shortcut appears?
You mean the position? I think it appears in the order it's defined in
the plugin.xml.
>
> In the Eclipse Java perspective, I see they have Java Project and
> Project... in a group at the top of the menu. How'd that get there?
This is currently hard-coded.

Dani
>
> Thanks,
> Gary
Re: Specifying groups / order in newWizardShortcut items [message #493998 is a reply to message #493813] Wed, 28 October 2009 16:59 Go to previous messageGo to next message
Gary Miguel is currently offline Gary MiguelFriend
Messages: 15
Registered: October 2009
Junior Member
Dani Megert wrote on Wed, 28 October 2009

You mean the position? I think it appears in the order it's defined in
the plugin.xml.


How, exactly?

Dani Megert wrote on Wed, 28 October 2009

This is currently hard-coded.


How, exactly?

Thanks,
Gary
Re: Specifying groups / order in newWizardShortcut items [message #494264 is a reply to message #493781] Thu, 29 October 2009 20:07 Go to previous message
Gary Miguel is currently offline Gary MiguelFriend
Messages: 15
Registered: October 2009
Junior Member
After some digging around, I discovered that if you use
ActionFactory.NEW_WIZARD_DROP_DOWN

Then you're actually using BaseNewWizardMenu. If you use
IDEActionFactory.NEW_WIZARD_DROP_DOWN

, then you'll use NewWizardMenu, which puts a separator after all the actions that pass the test isNewProjectWizardAction(IAction action).

It seems like the only way to customize this is programatically.
Previous Topic:Multiple IResourceChangeEvents sent on refresh
Next Topic:Opening CHM help files
Goto Forum:
  


Current Time: Tue Apr 16 23:45:04 GMT 2024

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

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

Back to the top