Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366418 - [Table] actions are not all in the same group
Summary: [Table] actions are not all in the same group
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EMF-Facet (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P5 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-12 10:05 EST by Nicolas Bros CLA
Modified: 2020-05-01 11:26 EDT (History)
1 user (show)

See Also:
gdupe: juno+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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