use of org.eclipse.nebula.widgets.nattable.group.action.RowGroupExpandCollapseAction in project nebula.widgets.nattable by eclipse.
the class DefaultRowGroupHeaderLayerConfiguration method configureUiBindings.
@Override
public void configureUiBindings(UiBindingRegistry uiBindingRegistry) {
final IMouseAction action = new SelectRowGroupsAction();
uiBindingRegistry.registerSingleClickBinding(MouseEventMatcher.rowGroupHeaderLeftClick(SWT.NONE), action);
uiBindingRegistry.registerSingleClickBinding(MouseEventMatcher.rowGroupHeaderLeftClick(SWT.MOD1), action);
uiBindingRegistry.registerSingleClickBinding(MouseEventMatcher.rowGroupHeaderLeftClick(SWT.MOD2), action);
uiBindingRegistry.registerDoubleClickBinding(MouseEventMatcher.rowGroupHeaderLeftClick(SWT.NONE), new RowGroupExpandCollapseAction());
}
Aggregations