Design Menus With Commands

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Design Menus With Commands

Postby MarcosV » Sun Jun 15, 2008 6:44 pm

Hi All,

I'm a newbie to plugin development and RCP Developer. In the web videos examples, it shows how to design menu items that are bound to 'Actions'. However, from what I have been reading, it seems the new way of doing menu items is to use 'Commands'.

Does RCP Developer have a way to design your menus that use commands rather than actions?

Thanks!

Jim
MarcosV
 
Posts: 3
Joined: Thu Jun 12, 2008 4:24 pm

Re: Design Menus With Commands

Postby Eric Clayberg » Mon Jun 16, 2008 9:00 am

MarcosV wrote:Does RCP Developer have a way to design your menus that use commands rather than actions?

Not yet. We have had very few requests for that, so it has been a very low priority so far.

Typically, Commands are used to add new menu items to existing menus. Almost all of the menus defined in Eclipse are done using Actions rather than Commands (and this is several years now since Commands were introduced). I have seen very few examples of Commands actually used for much, so it is unclear what the current best practice is. It is even less clean what the best practice is for programmatically created menus like those created by SWT Designer (as opposed to menus defined via the plugin.xml).
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests