Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Toolbar contributions from a plugin in a RCP Application
Toolbar contributions from a plugin in a RCP Application [message #449788] Fri, 19 May 2006 08:52 Go to next message
Eclipse UserFriend
Originally posted by: pa.marcelot.net

I'm developping an application using RCP and I'm building a plugin that will contribute to that RCP Application UI.

I have been able to add a new menus or new toolbar actions in views but I haven't been able to add new actions to the main Editor Toolbar of the RCP Application.

I think there might be a problem with the contribution ID of the EditorContribution.

If someone got an idea...

Thanks
Re: Toolbar contributions from a plugin in a RCP Application [message #449810 is a reply to message #449788] Fri, 19 May 2006 09:16 Go to previous messageGo to next message
Eclipse UserFriend
Hmmm ... I think there are 2 ways to get actions into the main toolbar.

org.eclipse.ui.actionSets and org.eclipse.ui.editorActions.

> I think there might be a problem with the contribution ID
> of the EditorContribution.

what exactly did you do that you would expect something to show up in
the main toolbar? If you're using org.eclipse.ui.popupMenus, that only
adds to context menus AFAIK.

Later,
PW
Re: Toolbar contributions from a plugin in a RCP Application [message #449813 is a reply to message #449810] Fri, 19 May 2006 10:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pa.marcelot.net

> what exactly did you do that you would expect
> something to show up in
> the main toolbar? If you're using
> org.eclipse.ui.popupMenus, that only
> adds to context menus AFAIK.

I'm setting up an extension point(org.eclipse.ui.editorActions), then adding an editor contribution and then an action definition

Here's the code :

<extension
point="org.eclipse.ui.editorActions">
<editorContribution
id="org.safehaus.ldapstudio.schemas"
targetID="org.safehaus.ldapstudio.DefaultTextEditor">
<action
class="org.safehaus.ldapstudio.controller.actions.SaveAction "
icon="ressources/icons/save.gif"
id="org.safehaus.ldapstudio.SaveAction"
label="Save"
toolbarPath="main"
tooltip="Save"/>
</editorContribution>
</extension>

Thanks for your help.
Re: Toolbar contributions from a plugin in a RCP Application [message #449817 is a reply to message #449813] Fri, 19 May 2006 12:48 Go to previous messageGo to next message
Eclipse UserFriend
> I'm setting up an extension point(org.eclipse.ui.editorActions), then adding an editor contribution and then an action definition
>
> Here's the code :
>
> <extension
> point="org.eclipse.ui.editorActions">
> <editorContribution
> id="org.safehaus.ldapstudio.schemas"
> targetID="org.safehaus.ldapstudio.DefaultTextEditor">
> <action
> class="org.safehaus.ldapstudio.controller.actions.SaveAction "
> icon="ressources/icons/save.gif"
> id="org.safehaus.ldapstudio.SaveAction"
> label="Save"
> toolbarPath="main"
> tooltip="Save"/>
> </editorContribution>
> </extension>
>

is "main" a valid toolbar path? What happens when you use
toolbarPath="additions"?

Later,
PW
Re: Toolbar contributions from a plugin in a RCP Application [message #449818 is a reply to message #449813] Fri, 19 May 2006 12:49 Go to previous message
Eclipse UserFriend
Pierre-Arnaud Marcelot wrote:
> icon="ressources/icons/save.gif"

oh, is your directory really spelled "ressources"?

Later,
PW
Previous Topic:Progress Groups
Next Topic:Using Listeners?
Goto Forum:
  


Current Time: Sun Aug 31 04:18:58 EDT 2025

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

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

Back to the top