Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Using Menu and Handler Service Stand Alone
Using Menu and Handler Service Stand Alone [message #329544] Fri, 27 June 2008 10:33 Go to next message
Eclipse UserFriend
Hello,

I have a small stand alone SWT/JFace applikation. Stand alone means in
this case that it is not bundled with Eclipse (It's just using some if its
plugins like core.commands, equinox.common, jface, swt, osgi).
Until today I used Actions API to populate the (only) toolbar in the
applikation.
Since I have to touch each action anyways to do some necessary changes, it
came to my mind to do it more radically and change Action API to Handler
API as well.
This offcause makes only sence when using org.eclipse.ui.menus and
org.eclipse.ui.handlers Extensionpoints, and when populating toolbars and
menus using the MenuService.

Long talk short question:
What plugins are desired for the use of extension point mechanisms and
what for the menuservice?

Thanks!
Re: Using Menu and Handler Service Stand Alone [message #329545 is a reply to message #329544] Fri, 27 June 2008 10:41 Go to previous message
Eclipse UserFriend
Using any of the services implies using org.eclipse.ui ... basically
turning your app into a small RCP app. You still don't have to use the
workbench and workbench window if you don't want, but the workbench is
what initializes the services and reads most of the extension points.

Especially org.eclipse.ui.menus is run at the workbench level with
workbench windows (although in theory this is not necessary).

How much work are you willing to do? In an SWT/JFace app,
MenuManager,Action, and ActionContributionItem are still king.

Commands and handlers can help you (org.eclipse.core.commands has the
CommandManager to manage commands without the org.eclipse.ui layer) if
you want to create commands and handlers yourself, and manage which
handlers are used when.

But the commands,handlers, and menu contribution extension points are
declared at the workbench level, org.eclipse.ui

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm
Previous Topic:Override Copy and Paste Action
Next Topic:How does the Eclipse project test it's GUI?
Goto Forum:
  


Current Time: Fri Apr 25 21:15:02 EDT 2025

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

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

Back to the top