/** Get a special set of actions * for situations when this node is displayed as a context. * <p>For example, right-clicking on a parent node in a hierarchical view (such as * the normal Explorer) should use <code>getActions</code>. However, if this node * is serving as the parent of a (say) a window tab full of icons (e.g., in * <code>IconView</code>), and the users right-clicks on * the empty space in this pane, then this method should be used to get * the appropriate actions for a context menu. * <p>Note that in the Windows UI system, e.g., these action sets are quite different. * * @return actions for a context. In the default implementation, same as {@link #getActions}. * @deprecated Use getActions (true) instead. */ @Deprecated public SystemAction[] getContextActions() { return getActions(); }
@Override @Deprecated public SystemAction[] getActions() { if (delegating(DELEGATE_GET_ACTIONS)) { return original.getActions(); } else { return super.getActions(); } }
@Override public Action[] getActions(boolean context) { return switchToOriginal().getActions(context); }
/** Get all actions for the node. * Initialized with {@link #createActions}, or with the superclass's list. * * @return actions for the node * @deprecated Override {@link #getActions(boolean)} instead. */ @Deprecated public SystemAction[] getActions() { if (systemActions == null) { systemActions = createActions(); if (systemActions == null) { systemActions = super.getActions(); } } return systemActions; }
/** Get the set of actions that are associated with this node. * This set is used to construct the context menu for the node. * * <P> * By default this method delegates to the deprecated getActions or getContextActions * method depending on the value of supplied argument. * <P> * It is supposed to be overridden by subclasses accordingly. * * @param context whether to find actions for context meaning or for the * node itself * @return a list of actions (you may include nulls for separators) * @since 3.29 */ public Action[] getActions(boolean context) { return context ? getContextActions() : getActions(); }
@Override public javax.swing.Action[] getActions(boolean context) { if (context) { if (!delegating(DELEGATE_GET_ACTIONS) || overridesAMethod("getContextActions")) { // NOI18N return super.getActions(context); } } else { if (!delegating(DELEGATE_GET_CONTEXT_ACTIONS) || overridesAMethod("getActions")) { // NOI18N return super.getActions(context); } } javax.swing.Action[] retValue; retValue = original.getActions(context); return retValue; }
actionsByNode[n] = nodes[n].getActions(false);
@Override public Action[] getActions(boolean context) { return origional.getActions(context); } }
@Override public Action[] getActions(boolean context) { return original.getActions(context); }
@Override public Action[] getActions(boolean context) { return origional.getActions(context); }
public SystemAction[] getActions () { if (delegating (DELEGATE_GET_ACTIONS)) return original.getActions (); else return super.getActions (); }
public SystemAction[] getActions () { if (delegating (DELEGATE_GET_ACTIONS)) return original.getActions (); else return super.getActions (); }
@Override @Nonnull public JPopupMenu getPopupMenu (final @Nonnull Widget widget, final @Nonnull Point localLocation) { final JPopupMenu popup = new JPopupMenu(); for (final Action action : node.getActions(true)) { popup.add(action); } return popup; } }
public Action[] getActions(boolean context) { List actions = new ArrayList(); if (extendsActions) { actions.addAll(Arrays.asList(xnode.getActions(context))); } actions.addAll(Arrays.asList(getOriginal().getActions(context))); return (Action[]) actions.toArray(new Action[actions.size()]); }
@Override public Action[] getActions(boolean arg0) { Action[] addedActions = {new ChangePaletteAction()}; Action[] originalActions = original.getActions(arg0); originalActions[0].setEnabled(true); Action[] actions = Arrays.copyOf(originalActions, originalActions.length + addedActions.length); int counter = originalActions.length; for (Action addedAction : addedActions) { actions[counter] = addedAction; } return actions; }
/** Get all actions for the node. * Initialized with {@link #createActions}, or with the superclass's list. * * @return actions for the node * @deprecated Override {@link #getActions(boolean)} instead. */ public SystemAction[] getActions () { if (systemActions == null) { systemActions = createActions (); if (systemActions == null) { systemActions = super.getActions (); } } return systemActions; }
public javax.swing.Action[] getActions(boolean context) { List actions = new ArrayList(); actions.addAll(Arrays.asList(getOriginal().getActions(context))); /*Boolean isRunning = instance.checkRunning(); if (isRunning != null && isRunning.booleanValue()) {*/ if (getServerTarget() != null) { actions.addAll(Arrays.asList(getDelegateTargetNode().getActions(context))); } return (javax.swing.Action[]) actions.toArray(new javax.swing.Action[actions.size()]); }
@Override public Action[] getActions (boolean arg0) { final List<Action> actions = new ArrayList<Action>(Arrays.asList(getOriginal().getActions(arg0))); // FIXME; this action should not stay in this module actions.add(new ApplyTreeLayoutAction(this)); return actions.toArray(new Action[0]); } }
public javax.swing.Action[] getActions(boolean context) { if (context) { if (!delegating (DELEGATE_GET_ACTIONS) || overridesAMethod ("getContextActions", new Class[0])) // NOI18N return super.getActions (context); } else { if (!delegating (DELEGATE_GET_CONTEXT_ACTIONS) || overridesAMethod ("getActions", new Class[0])) // NOI18N return super.getActions (context); } javax.swing.Action[] retValue; retValue = original.getActions(context); return retValue; }
public javax.swing.Action[] getActions(boolean context) { if (context) { if (!delegating (DELEGATE_GET_ACTIONS) || overridesAMethod ("getContextActions", new Class[0])) // NOI18N return super.getActions (context); } else { if (!delegating (DELEGATE_GET_CONTEXT_ACTIONS) || overridesAMethod ("getActions", new Class[0])) // NOI18N return super.getActions (context); } javax.swing.Action[] retValue; retValue = original.getActions(context); return retValue; }