Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » So many ways to add toolbar buttons?!
So many ways to add toolbar buttons?! [message #259522] Thu, 08 July 2004 04:57 Go to next message
Eclipse UserFriend
Originally posted by: chris.heald.eads.net

I've been developing Eclipse plugins for over a year now and have always
used the ActionBarContributor method to add toolbar buttons. However,
there are at least 2 other ways as far as I can see:

org.eclipse.editorActions extension point.
org.eclipse.actionSets extension point.

What are the differences between these 3 approaches? When should one use
each one?

I'm currently trying the editorAction + IEditorActionDelegate approach but
for some reason nothing shows up...everything compiles etc. and as far as
I can tell the xml is correct and target ID is correct, what could be
missing? Does this need an actionset? can u only contribute to other
plugins in this way?

Thanks
Chris
Re: So many ways to add toolbar buttons?! [message #261586 is a reply to message #259522] Wed, 14 July 2004 16:42 Go to previous message
Eclipse UserFriend
Originally posted by: john.eclipsefaq.org

The editorActions extension point creates tool bar buttons that only
appear when a particular editor is visible. For example, observe how the
"Show Source of Selected Element Only" button disappears when you switch
from a Java file to a text file. The actionSets extension point creates
buttons that will always appear in a given set of perspectives,
regardless of the active view or editor. The user can enable or disable
actionSets from the perspective customization page. So, it really
depends if you action is relevant for only a particular editor, or for
an entire perspective.
--

Chris Heald wrote:
> I've been developing Eclipse plugins for over a year now and have always
> used the ActionBarContributor method to add toolbar buttons. However,
> there are at least 2 other ways as far as I can see:
>
> org.eclipse.editorActions extension point.
> org.eclipse.actionSets extension point.
>
> What are the differences between these 3 approaches? When should one use
> each one?
>
> I'm currently trying the editorAction + IEditorActionDelegate approach but
> for some reason nothing shows up...everything compiles etc. and as far as
> I can tell the xml is correct and target ID is correct, what could be
> missing? Does this need an actionset? can u only contribute to other
> plugins in this way?
Previous Topic:How to navigate from search results view to my view
Next Topic:does Eclipse help get cached in 3.0?
Goto Forum:
  


Current Time: Tue Jul 15 14:52:12 EDT 2025

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

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

Back to the top