Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335334 - Nattable Editor : We can't contribute to the ToolBar
Summary: Nattable Editor : We can't contribute to the ToolBar
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EMF-Facet (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Gregoire Dupe CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-25 11:13 EST by Vincent Lorenzo CLA
Modified: 2020-05-01 11:26 EDT (History)
3 users (show)

See Also:
gdupe: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Lorenzo CLA 2011-01-25 11:13:59 EST
I would like to create a plugin which contributes to the toolbar provided by the NattableEditor (Load Customization, Load Facet, Sort, ...).


The toolbar is not declared in the plugin.xml, so I can't add it my actions with org.eclipse.ui.menus, and if I create my own editor extending NattableEditor, I can't access to the toolbar which is private (and there is not getter()).

How can I contribute to it?
Comment 1 Nicolas Guyomar CLA 2011-02-01 08:52:01 EST
Hi,

This bug has been solved with Bug 335020.

It is now possible to contribute to the editor main toolbar : 
   
      <menuContribution
            allPopups="false"
            locationURI="toolbar:org.eclipse.emf.facet.widgets.nattable.workbench.editor.NatTableEditor.toolbar">
         <command
               commandId="my.command.id"
               label="label"
               style="style">
            <visibleWhen
                  checkEnabled="false">
               <with
                     variable="activePartId">
                  <equals
                        value="org.eclipse.emf.facet.widgets.nattable.workbench.editor.NatTableEditor">
                  </equals>
               </with>
            </visibleWhen>
         </command>
      </menuContribution>
 
And to contribute to the editor contextual menu : 
 <menuContribution allPopups="false"
            locationURI="popup:org.eclipse.emf.facet.widgets.nattable.workbench.editor.NatTableEditor">
         <command  commandId="my.command.id"
               label="label"
               style="style">
         </command>
      </menuContribution>

Regards,
Nicolas Guyomar
Comment 2 Gregoire Dupe CLA 2011-02-02 07:51:12 EST
"This bug has been solved with Bug 335020." It can then been marked as fixed.
Comment 3 Vincent Lorenzo CLA 2011-02-24 09:27:47 EST
This bug can be closed.