@Override public void execute(EditorContext context) { EditorComponent editorComponent = (EditorComponent) context.getEditorComponent(); editorComponent.clearSelectionStack(); editorComponent.changeSelection( CellFinderUtil.findLastSelectableLeaf(EditorCell_Collection.this)); }
@Override public boolean canExecute(EditorContext context) { return EditorCell_Collection.this.isSelected() && CellFinderUtil.findLastSelectableLeaf(EditorCell_Collection.this) != null; }