Search in sources :

Example 1 with TreeExpandCollapseKeyAction

use of org.eclipse.nebula.widgets.nattable.tree.action.TreeExpandCollapseKeyAction in project nebula.widgets.nattable by eclipse.

the class TreeLayerExpandCollapseKeyBindings method configureUiBindings.

@Override
public void configureUiBindings(UiBindingRegistry uiBindingRegistry) {
    TreeExpandCollapseKeyAction action = new TreeExpandCollapseKeyAction(this.selectionLayer);
    uiBindingRegistry.registerFirstKeyBinding(anchorLabel(this.selectionLayer, this.treeLayer, TREE_EXPANDED_CONFIG_TYPE, new KeyEventMatcher(SWT.NONE, 32)), action);
    uiBindingRegistry.registerFirstKeyBinding(anchorLabel(this.selectionLayer, this.treeLayer, TREE_COLLAPSED_CONFIG_TYPE, new KeyEventMatcher(SWT.NONE, 32)), action);
}
Also used : KeyEventMatcher(org.eclipse.nebula.widgets.nattable.ui.matcher.KeyEventMatcher) TreeExpandCollapseKeyAction(org.eclipse.nebula.widgets.nattable.tree.action.TreeExpandCollapseKeyAction)

Aggregations

TreeExpandCollapseKeyAction (org.eclipse.nebula.widgets.nattable.tree.action.TreeExpandCollapseKeyAction)1 KeyEventMatcher (org.eclipse.nebula.widgets.nattable.ui.matcher.KeyEventMatcher)1