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

Bug 366418

Summary: [Table] actions are not all in the same group
Product: z_Archived Reporter: Nicolas Bros <nicolas.bros>
Component: EMF-FacetAssignee: Project Inbox <emft.facet-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P5 CC: gdupe
Version: unspecifiedFlags: gdupe: juno+
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Nicolas Bros CLA 2011-12-12 10:05:22 EST
When I open a table editor, I see two toolbar groups:
- One with "create new element", "load a customization", "load an EMF Facet", "select columns to hide", "sort column by type", "sort column by name (from A to Z)", and "sort column by name (from Z to A)"
- And a second group with "only show common columns" and "hide empty columns"

What's more, the first group is linked to the editor context, whereas the second is not: when I click on another view in Eclipse, the first group disappears and the second one stays active.

I think the two actions in the second group should be redefined as commands instead of actions.
Comment 1 Gregoire Dupe CLA 2011-12-13 06:47:38 EST
If I remember properly, we have been forced to use action instead of command because it wasn’t possible to implement toggling button with commands.
Comment 2 Nicolas Bros CLA 2011-12-13 08:20:34 EST
I found an example that uses toggle commands, so it looks like it is supported now:
https://github.com/paulweb515/eclipseExamples/blob/master/org.eclipse.example.commands/plugin.xml
(see the definition for "org.eclipse.example.commands.monitorCount")

Also, see:
http://wiki.eclipse.org/Menu_Contributions/Toggle_Button_Command