@Override public Action[] getActions(boolean context) { List<Action> actions = new ArrayList<>(); actions.add((Action) OpenAction.findObject(OpenAction.class, true)); actions.addAll( Lookups.forPath(OutlineTopComponent.NODE_ACTIONS_FOLDER).lookupAll(Action.class)); return actions.toArray(new Action[actions.size()]); }
@Override public Action getPreferredAction() { return (Action) OpenAction.findObject(OpenAction.class, true); }