Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » create MenuItem within another MenuItem like a pullDown menu
create MenuItem within another MenuItem like a pullDown menu [message #436595] Tue, 13 September 2005 11:27 Go to next message
Eclipse UserFriend
Originally posted by: gkurien.icope.com

How to programmatically create a MenuItem with other MenuItem inside it
( other than using a pullDownDelegate )

for eg -

File
-Open
-New
-new1
-new2
-new3
-Close

i want to make new1,new2,new3 which are inside "New" menuItem

I Am using a IContributionItem to create MenuItems
Re: create MenuItem within another MenuItem like a pullDown menu [message #436596 is a reply to message #436595] Tue, 13 September 2005 12:30 Go to previous messageGo to next message
Ravshan Kosimov is currently offline Ravshan KosimovFriend
Messages: 41
Registered: July 2009
Member
// there you add "Open" menu
// menuManager - IMenuManager in which you insert your menu items

MenuManager newSubMenu = new MenuManager("New");
newSubMenu.add(new NewAction("new1"));
newSubMenu.add(new NewAction("new2"));
newSubMenu.add(new NewAction("new3"));
// where NewAction implements IContributionItem or IAction interface

menuManager.add(newSubMenu);
// there you add "Close" menu
Re: create MenuItem within another MenuItem like a pullDown menu [message #436597 is a reply to message #436596] Tue, 13 September 2005 13:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gkurien.icope.com

i dont think thats wat i am looking for ....

i am talking abt something like the eclipse platforms menu

window
-
Re: create MenuItem within another MenuItem like a pullDown menu [message #436598 is a reply to message #436596] Tue, 13 September 2005 13:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gkurien.icope.com

i dont think thats wat i am looking for ....

i am talking abt something like the eclipse platforms menu

'Window'
-'Show View' -> // lists all the views

i want to create 'Show View' that points to other list of menuitems
Re: create MenuItem within another MenuItem like a pullDown menu [message #436653 is a reply to message #436598] Wed, 14 September 2005 09:04 Go to previous messageGo to next message
Ravshan Kosimov is currently offline Ravshan KosimovFriend
Messages: 41
Registered: July 2009
Member
Do you try what I advise?
If you do, you should be get menu like:
New - > new1,new2,new3

Show your code.
Re: create MenuItem within another MenuItem like a pullDown menu [message #437014 is a reply to message #436653] Tue, 20 September 2005 13:01 Go to previous message
Eclipse UserFriend
Originally posted by: gkurien.icope.com

sorry ...yeap i did get it.
i guess i missed some lines from it...
thanx ...
Previous Topic:How about a simple RCP and Hibernate example?
Next Topic:How to use the fileDialog from the menubar ?
Goto Forum:
  


Current Time: Mon Dec 09 03:08:41 GMT 2024

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

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

Back to the top