Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Making New wizard appears in File->New
Making New wizard appears in File->New [message #453101] Fri, 21 July 2006 12:59 Go to next message
Nicolas Jouanin is currently offline Nicolas JouaninFriend
Messages: 52
Registered: July 2009
Member
Hi,

On my RCP app, I've been able to add the toolbar drop-down showing
available NewZiards.
To sum up, i put :
toolbar.add(ActionFactory.NEW_WIZARD_DROP_DOWN.create(window ));
in fillCoolBar method of my ActionBarAdvisor class.
I defined the newWizards extensions for my wizards in plugin.xml and i
added
layout.addNewWizardShortcut("wizardId");
in createInitialLayout() of each perspective class.

Now my problem is that i'd like to have a File->New submenu showing the
same wizards than the Drop-down. So i added
IWorkbenchAction newAction = ActionFactory.NEW.create(window);
menu.add(newAction);
in fillMenuBar() where menu is the File menu.
Now i can only see one entry in this menu "Other ...". None of my wizards
appears as menu items;

does anyone knows if there's a GroupMarker to add , something else I
forgot ... also i one has a snippet that would be nice !

Nicolas.
Re: Making New wizard appears in File->New [message #453104 is a reply to message #453101] Fri, 21 July 2006 13:25 Go to previous messageGo to next message
Ilya Shinkarenko is currently offline Ilya ShinkarenkoFriend
Messages: 56
Registered: July 2009
Member
Hi Nico,

try ContributionItemFactory.NEW_WIZARD_SHORTLIST.create(window) instead
of ActionFactory.NEW.create(window)



Ilya Shinkarenko
--
www.imedic.de
www.rcp-training.com


Nico wrote:
> Hi,
>
> On my RCP app, I've been able to add the toolbar drop-down showing
> available NewZiards.
> To sum up, i put :
> toolbar.add(ActionFactory.NEW_WIZARD_DROP_DOWN.create(window ));
> in fillCoolBar method of my ActionBarAdvisor class.
> I defined the newWizards extensions for my wizards in plugin.xml and i
> added layout.addNewWizardShortcut("wizardId");
> in createInitialLayout() of each perspective class.
>
> Now my problem is that i'd like to have a File->New submenu showing the
> same wizards than the Drop-down. So i added IWorkbenchAction newAction =
> ActionFactory.NEW.create(window);
> menu.add(newAction);
> in fillMenuBar() where menu is the File menu.
> Now i can only see one entry in this menu "Other ...". None of my
> wizards appears as menu items;
>
> does anyone knows if there's a GroupMarker to add , something else I
> forgot ... also i one has a snippet that would be nice !
>
> Nicolas.
>
>
>
>
>
>
>
Re: Making New wizard appears in File->New [message #453106 is a reply to message #453104] Fri, 21 July 2006 13:38 Go to previous message
Nicolas Jouanin is currently offline Nicolas JouaninFriend
Messages: 52
Registered: July 2009
Member
That's what i needed.
Thanks !

Ilya Shinkarenko wrote:

> Hi Nico,

> try ContributionItemFactory.NEW_WIZARD_SHORTLIST.create(window) instead
> of ActionFactory.NEW.create(window)



> Ilya Shinkarenko
Previous Topic:How to make dynamic menus for different perspectives in rcp
Next Topic:When clicking in a Table, how do I determine which Column was clicked?
Goto Forum:
  


Current Time: Sun Dec 22 06:14:20 GMT 2024

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

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

Back to the top