[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Adding a control to the toolbar

Hi,

I have managed to add a control to the status bar with this extension:

  <extension
        point="org.eclipse.ui.menus">
     <menuContribution
           locationURI="toolbar:org.eclipse.ui.trim.status">
        <toolbar
              id="com.jobisjob.line.count">
           <control
                 class="com.jobisjob.ui.linecount.LineCountControl"
                 id="com.jobisjob.ui.grid.view.LineCountControl">
           </control>
        </toolbar>
     </menuContribution>
  </extension>


Now, I want to do the same to the toolbar of the RCP app. Currently I haven't defined any actionSets nor toolbars.


<menuContribution
locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
<toolbar
id="com.jobisjob.location.bar">
<control
class="com.jobisjob.ui.linecount.LineCountControl"
id="com.jobisjob.ui.grid.view.LineCountControl">
</control>
</toolbar>
</menuContribution>


It doesn't display anything.  :-(

I have tried to do it in the ActionBarAdvisor, but I'm a little lost.
Any help will be greatly appreciated.