So many ways to add toolbar buttons?! [message #259522] |
Thu, 08 July 2004 04:57  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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?
|
|
|
Powered by
FUDForum. Page generated in 0.02869 seconds