Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » RCP toolbar contribution not showing in 3.2M6
RCP toolbar contribution not showing in 3.2M6 [message #447294] Mon, 03 April 2006 12:15 Go to next message
MÃ¥ns af Klercker is currently offline MÃ¥ns af KlerckerFriend
Messages: 15
Registered: July 2009
Junior Member
Hi all,

When building and running our 3.1-based RCP app in 3.2M6, (some) toolbar
contributions fail to show up. Most of the actionSet toolbar contribs
also have menu contribs, which work fine. All work quite fine in 3.1. So
the question is whther the fault lies in
a) my app (3.1 is in some way more forgiving),
b) new/changed APIs in 3.2, or if
c) it's a 3.2 bug?

Details:
Toolbars are created in the ActionBarAdvisor class:

protected void fillCoolBar (ICoolBarManager coolBar) {
ToolBarManager t1 = new ToolBarManager(SWT.FLAT);
t1.add(new GroupMarker (IWorkbenchActionConstants.NEW_GROUP));
t1.add (saveAction);
t1.add (new GroupMarker (IWorkbenchActionConstants.SAVE_GROUP));
coolBar.add (new ToolBarContributionItem (t1,
IWorkbenchActionConstants.TOOLBAR_FILE));

[...]

}

and then following contrib (in the same plug) shows up in the correct
place in the File menu but fails to show in the toolbar:

<extension
point="org.eclipse.ui.actionSets">
<actionSet
id="com.tacton.studio.rcp.actionSet"
label="Tacton Studio"
visible="true">
<action
class="com.tacton.studio.rcp.editor.OpenModelFileAction"
icon="icons/prj_obj.gif"
id="com.tacton.studio.rcp.openmodelaction"
label="&amp;Open..."
menubarPath="file/fileStart"
toolbarPath="org.eclipse.ui.workbench.file/new.group"
tooltip="Open..."/>
</actionSet>
</extension>

cheers,
/Måns
Re: RCP toolbar contribution not showing in 3.2M6 [message #447728 is a reply to message #447294] Thu, 13 April 2006 16:06 Go to previous messageGo to next message
Rudolf Traunmüller is currently offline Rudolf TraunmüllerFriend
Messages: 21
Registered: July 2009
Junior Member
I've got the same problem. Considering all the information given in
tutorials, newsgroups and books, configuring the coolbar as described
below should work. It doesn't work on 3.2M6, though.

Måns af Klercker schrieb:
> Hi all,
>
> When building and running our 3.1-based RCP app in 3.2M6, (some) toolbar
> contributions fail to show up. Most of the actionSet toolbar contribs
> also have menu contribs, which work fine. All work quite fine in 3.1. So
> the question is whther the fault lies in
> a) my app (3.1 is in some way more forgiving),
> b) new/changed APIs in 3.2, or if
> c) it's a 3.2 bug?
>
> Details:
> Toolbars are created in the ActionBarAdvisor class:
>
> protected void fillCoolBar (ICoolBarManager coolBar) {
> ToolBarManager t1 = new ToolBarManager(SWT.FLAT);
> t1.add(new GroupMarker (IWorkbenchActionConstants.NEW_GROUP));
> t1.add (saveAction);
> t1.add (new GroupMarker (IWorkbenchActionConstants.SAVE_GROUP));
> coolBar.add (new ToolBarContributionItem (t1,
> IWorkbenchActionConstants.TOOLBAR_FILE));
>
> [...]
>
> }
>
> and then following contrib (in the same plug) shows up in the correct
> place in the File menu but fails to show in the toolbar:
>
> <extension
> point="org.eclipse.ui.actionSets">
> <actionSet
> id="com.tacton.studio.rcp.actionSet"
> label="Tacton Studio"
> visible="true">
> <action
> class="com.tacton.studio.rcp.editor.OpenModelFileAction"
> icon="icons/prj_obj.gif"
> id="com.tacton.studio.rcp.openmodelaction"
> label="&amp;Open..."
> menubarPath="file/fileStart"
> toolbarPath="org.eclipse.ui.workbench.file/new.group"
> tooltip="Open..."/>
> </actionSet>
> </extension>
>
> cheers,
> /Måns
Re: RCP toolbar contribution not showing in 3.2M6 [message #447729 is a reply to message #447728] Thu, 13 April 2006 16:41 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Please open a bug at https://bugs.eclipse.org/bugs/ Include a simple
use-case that can reproduce the problem and your setup.

Thanx,
PW


Re: RCP toolbar contribution not showing in 3.2M6 [message #447765 is a reply to message #447729] Fri, 14 April 2006 14:46 Go to previous message
Rudolf Traunmüller is currently offline Rudolf TraunmüllerFriend
Messages: 21
Registered: July 2009
Junior Member
Bug 136847 created.

Paul Webster schrieb:
> Please open a bug at https://bugs.eclipse.org/bugs/ Include a simple
> use-case that can reproduce the problem and your setup.
>
> Thanx,
> PW
Previous Topic:Detecting buttons clicks on wizards
Next Topic:Automating PDE Build
Goto Forum:
  


Current Time: Sun Dec 08 07:34:27 GMT 2024

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

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

Back to the top