TableView: Customize the Menu Bar |
This example illustrates how you can customize the TableViewComposite menu bar.
The ActionProvider creates an ActionOrderList object that represents the set of Actions represented by the menu bar. By manipulating this ActionOrderList, we can change the order of the items on the menu bar, change properties of these Actions, or remove Actions from the ActionOrderList. The ActionOrderList is accessed by calling the getActionOrderList method of the ActionProvider. By default the Query selector is the last Action in the Edit Options ActionOrderList, so we simply remove the last Action to remove the Query selector from the menu bar.