Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Creating menus, menuitems and sub menu items in Eclipse RCP
Creating menus, menuitems and sub menu items in Eclipse RCP [message #467337] Thu, 03 May 2007 06:07 Go to next message
Eclipse UserFriend
Originally posted by: sebastian.bota.jkoder.ro

Hello
Im new to Eclipse RCP but right now i have a BIG problem that i need to solve ASAP.
I have created a menu named File.
Now i need a menu item called New. In this menu items i need more submenu items like Project, Blank Page.
So my menu should look like this:
File
-New
- Project
- Blank page
- Save
-Exit.

I what to create this structure using extensions from exlipse and not JAVA code. Can anyone PLEASE PLEASE help me on this issue ?
Thank you

Sebastian Bota
Re: Creating menus, menuitems and sub menu items in Eclipse RCP [message #467375 is a reply to message #467337] Thu, 03 May 2007 07:13 Go to previous messageGo to next message
Eclipse UserFriend
Look at the definition for actionSets:

http://help.eclipse.org/help32/topic/org.eclipse.platform.do c.isv/reference/extension-points/org_eclipse_ui_actionSets.h tml

There's an example there that shows the use of 'menubarPath' to set up the menus structured the way that you'd want, so you'd have:

file/
file/new
file/new/project
file/save

etc.

Alex.
Re: Creating menus, menuitems and sub menu items in Eclipse RCP [message #467377 is a reply to message #467375] Thu, 03 May 2007 07:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sebastian.bota.jkoder.ro

now one more question.
File is a menu right .
Now new is an action, and the same is project ?
or new MUST be another menu inside the file menu ?
Thank you
Re: Creating menus, menuitems and sub menu items in Eclipse RCP [message #467401 is a reply to message #467377] Thu, 03 May 2007 09:34 Go to previous message
Eclipse UserFriend
I think if you were to do that, new would be a menu.

Alex.
Previous Topic:Can i add my own Images on IsharedImages Interface
Next Topic:IVariableResolver usage
Goto Forum:
  


Current Time: Fri May 16 07:11:40 EDT 2025

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

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

Back to the top