Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » menu creation techniques
menu creation techniques [message #399377] Thu, 09 December 2004 20:06 Go to next message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

Since i have an rcp app and have to populate the menus all myself, I am
wndering if anyone has recommendations on how to do this. Currently I
have implemented the file menu in the manifest, and it was very large
and it does not seem like a good way to implement all of my menus and
items in my menubar.

Is there any other way? Any examples?

Any help you can offer i will appreciate.



--
Respectfully,


CL Gilbert

"Verily, verily, I say unto you, He that entereth not by the door() into
the sheepfold{}, but climbeth up some other *way, the same is a thief
and a robber."

GnuPG Key Fingerprint:
82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D

For a free Java interface to Freechess.org see
http://www.rigidsoftware.com/Chess/chess.html
Re: menu creation techniques [message #399386 is a reply to message #399377] Fri, 10 December 2004 00:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

CL [dnoyeb] Gilbert wrote:
> Since i have an rcp app and have to populate the menus all myself, I am
> wndering if anyone has recommendations on how to do this. Currently I
> have implemented the file menu in the manifest, and it was very large
> and it does not seem like a good way to implement all of my menus and
> items in my menubar.
>
> Is there any other way? Any examples?
>
> Any help you can offer i will appreciate.
>
>
>
I think i see I can do this in the workbenchAdvisor now. sweet.

--
Respectfully,


CL Gilbert

"Verily, verily, I say unto you, He that entereth not by the door() into
the sheepfold{}, but climbeth up some other *way, the same is a thief
and a robber."

GnuPG Key Fingerprint:
82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D

For a free Java interface to Freechess.org see
http://www.rigidsoftware.com/Chess/chess.html
Re: menu creation techniques [message #400265 is a reply to message #399386] Fri, 10 December 2004 21:51 Go to previous message
Eclipse UserFriend
The recommended way of doing this is to provide the basic, always-on,
menus, menu-items, and toolbars in the workbench advisor, and then
define any that are optional in action sets.

Action sets give you more flexibility. For example, you can associate
them with specific perspectives, parts, activities, etc, so that they
only appear when appropriate.

To see this, take a look at the different action sets in the IDE in
Window > Customize Perspective > Commands (actions are called commands
in the UI), then play around with opening the Java editor in the Java
perspective vs. the Resource perspective.

Action sets do have their limitations though. For example, action sets
were not designed to build on each other, just the substrate defined by
the application (now done in WorkbenchAdvisor.fillActionBars).

Nick

CL [dnoyeb] Gilbert wrote:
> CL [dnoyeb] Gilbert wrote:
>
>> Since i have an rcp app and have to populate the menus all myself, I
>> am wndering if anyone has recommendations on how to do this.
>> Currently I have implemented the file menu in the manifest, and it was
>> very large and it does not seem like a good way to implement all of my
>> menus and items in my menubar.
>>
>> Is there any other way? Any examples?
>>
>> Any help you can offer i will appreciate.
>>
>>
>>
> I think i see I can do this in the workbenchAdvisor now. sweet.
>
Previous Topic:setting a default font in a FontFieldEditor
Next Topic:How to add a action into a actionset of another plugin?
Goto Forum:
  


Current Time: Fri Nov 07 06:50:52 EST 2025

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

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

Back to the top