Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Adding a submenu to File -> New
Adding a submenu to File -> New [message #449038] Tue, 09 May 2006 04:33 Go to next message
Eclipse UserFriend
Can I add a new submenu below the file -> new menu?

i.e.

I want a menu that looks like...

File
|
|---New
|
|---Location
|
|------Standard Address (launches wizard when clicked)
|
|------Shipping Company (launches wizard when clicked)


I can do the menu structure shown below easily, but I don't know how to
add the "Location" submenu to File -> New

File
|
|---New
|
|------Standard Address (launches wizard when clicked)
|
|------Shipping Company (launches wizard when clicked)


Cheers.
Adrian
Re: Adding a submenu to File -> New [message #449093 is a reply to message #449038] Wed, 10 May 2006 08:16 Go to previous message
Eclipse UserFriend
The way that the new wizards are populated at the moment, I don't think that's possible. You could, of course, have just the Location, and then have a multi-page New wizard that asked as the first question whether it was a Standard Address or Shipping Company and customise subsequent pages appropriately.

You might be able to achieve something like this using a compound contribution item and getting it added to the new wizard menu directly (e.g. by adding the contribution item via a perspective) but you'd definitely be working outside the box for this. There's also an assumption that each item has an id which corresponds to a new wizard, so when you selected the submenu (for example) you might not find that selections even work.

That said, it sounds like a good way of categorising menu items so you might want to suggest this as a request for enhancement post 3.2

Alex.
Previous Topic:Using Hibernate AND letting the user select the JDBC-Driver?
Next Topic:Combobox in toolbar
Goto Forum:
  


Current Time: Sun Aug 31 04:34:04 EDT 2025

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

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

Back to the top