use of net.sourceforge.nattable.hideshow.command.ShowAllColumnsCommand in project translationstudio8 by heartsome.
the class MenuItemProviders method showAllColumnMenuItemProvider.
public static IMenuItemProvider showAllColumnMenuItemProvider() {
return new IMenuItemProvider() {
public void addMenuItem(final NatTable natTable, Menu popupMenu) {
MenuItem showAllColumns = new MenuItem(popupMenu, SWT.PUSH);
showAllColumns.setText("Show all columns");
showAllColumns.setImage(GUIHelper.getImage("show_column"));
showAllColumns.setEnabled(true);
showAllColumns.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
natTable.doCommand(new ShowAllColumnsCommand());
}
});
}
};
}
Aggregations