| 
| Workbench Toolbar Paths Problem [message #156670] | Tue, 13 June 2006 16:27 |  | 
| Eclipse User  |  |  |  |  | The following extension almost works, except that the toolbar paths, which are supposed to reference workbench toolbars are not working:
 =============
 <extension point="org.eclipse.ui.editorActions">
 <editorContribution
 id="org.eclipse.ui.articles.action.contribution.editor"
 targetID="org.eclipse.ui.DefaultTextEditor">
 <action
 
 class=" org.eclipse.ui.articles.action.contribution.EditorAction1Del egate "
 
 helpContextId="org.eclipse.ui.articles.action.contribution.editor.action1 "
 icon="icons/red_dot.gif"
 id="org.eclipse.ui.articles.action.contribution.editor.action1 "
 label="Editor Action 1"
 menubarPath="file/new.ext"
 toolbarPath="org.eclipse.ui.workbench.file/save.group"
 tooltip="Tooltip for Editor Action 1">
 </action>
 <action
 
 class=" org.eclipse.ui.articles.action.contribution.EditorAction2Del egate "
 
 helpContextId="org.eclipse.ui.articles.action.contribution.editor.action2 "
 icon="icons/red_dot.gif"
 id="org.eclipse.ui.articles.action.contribution.editor.action2 "
 label="Editor Action 2"
 menubarPath="file/new.ext"
 toolbarPath="org.eclipse.ui.workbench.file/new.group"
 tooltip="Tooltip for Editor Action 2">
 </action>
 </editorContribution>
 </extension>
 ==================
 The menubarPath attributes place items where they are supposed to, but
 the toolbarPath attributes always place the icons at the right end of
 the tool bar, indicating that the path names were not recognized. If the
 action1 and action 2 toolbarPath attributes differ, still unrecognized,
 they each become the sole member of their own toolbar (as expected). If
 they are the same they cluster in their own unrecognized toolbar (also
 as expected).
 
 It looks like the pathnames do not match the names actually used by the
 workbench, although I got them from
 IWorkbenchActionConstants.TOOLBAR_FILE,
 IWorkbenchActionConstants.NEW_GROUP, and
 IWorkbenchActionConstants.BUILD_GROUP.
 
 I am running
 Version: 3.1.2
 Build id: M20060118-1600
 
 How can I find out exactly what ids the workbench uses for its toolbars?
 
 OR
 
 What is my error ?
 
 Bill.
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.09037 seconds