|
Re: RCP toolbar contribution not showing in 3.2M6 [message #447728 is a reply to message #447294] |
Thu, 13 April 2006 16:06 |
Rudolf Traunmüller 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="&Open..."
> menubarPath="file/fileStart"
> toolbarPath="org.eclipse.ui.workbench.file/new.group"
> tooltip="Open..."/>
> </actionSet>
> </extension>
>
> cheers,
> /Måns
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05241 seconds