Beispiel #1
0
 @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()]);
 }
Beispiel #2
0
 @Override
 public Action getPreferredAction() {
   return (Action) OpenAction.findObject(OpenAction.class, true);
 }