Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335334

Summary: Nattable Editor : We can't contribute to the ToolBar
Product: z_Archived Reporter: Vincent Lorenzo <vincent.lorenzo>
Component: EMF-FacetAssignee: Gregoire Dupe <gdupe>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: emft.facet-inbox, gdupe, nicolas.guyomar
Version: unspecifiedFlags: gdupe: indigo+
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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.