Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Adding actions to a custom view
Adding actions to a custom view [message #327776] Thu, 01 May 2008 06:00 Go to next message
Prashant Deva is currently offline Prashant DevaFriend
Messages: 32
Registered: July 2009
Member
Until eclipse 3.2, for a custom view, the preffered way to add toolbar
buttons to it was programatically in the createPartControl() method
using instances of 'Action'. This way the plugin developer gets the
first shot at adding the toolbar buttons.

However since eclipse 3.3 has introduced the new 'handler' framework is
this still the preferred way of adding actions or is it better to add
them declaratively in the plugin.xml using the new 'handlers' extensions.

Prashant
Re: Adding actions to a custom view [message #327780 is a reply to message #327776] Thu, 01 May 2008 13:08 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

preferred? Depends on what you are trying to do.

But for the most part, it's preferred to write view commands, provide
them with either a default view handler or instantiate the view handler
in your createPartControl(*), and then place them in your view menu or
toolbar using org.eclipse.ui.menus.

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:viewActions support of visibility element
Next Topic:compile plugins using commandline
Goto Forum:
  


Current Time: Mon Jul 29 23:28:39 GMT 2024

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

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

Back to the top