Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Use actionSets or extensions of menus, commands(Best practices when developing code for a plugin and RCP...)
Use actionSets or extensions of menus, commands [message #884744] Mon, 11 June 2012 18:09 Go to next message
Adym Lincoln is currently offline Adym LincolnFriend
Messages: 1
Registered: June 2012
Junior Member
Hi all,

I read different tutorials and material on actionSets versus straight extensions of menus, commands, etc...The plugin I am developing will be both a plugin and packaged as an RCP...

What is the best practice when developing a plugin that has many commands/actions on menus?

The core of the plugin will be a Graphical Editor using GEF/Draw2D, that almost all of the commands/actions/menus will apply to.


tia,

adym
Re: Use actionSets or extensions of menus, commands [message #884772 is a reply to message #884744] Mon, 11 June 2012 19:45 Go to previous message
Simon Scholz is currently offline Simon ScholzFriend
Messages: 73
Registered: April 2012
Location: Germany
Member
Hello Adym,

Commands are newer and better than the old actionsets.
Commands have less coupling to the userinterface, which makes your code more modular and easier to maintain.

While actions are directly assigned to a certain userinterface, commands are not :

 --------------
| userinterface |         ---------           ---------------
| - toolbaritem |  <---> | command |  <--->  |command handler|
| - menuitem    |         ---------           ---------------
| - keyboard    |
|   shortcuts   |
| - ...         |
 --------------


If you have further questions, then go ahead and ask Smile

Best regards,

Simon
Previous Topic:RCP + JavaSriptEditor
Next Topic:HTML 5 in SWT Browser
Goto Forum:
  


Current Time: Fri Apr 26 19:40:05 GMT 2024

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

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

Back to the top