public Action[] getActions (NodeActionsProvider original, Object node) throws UnknownTypeException { if (!(node instanceof JPDABreakpoint) || node instanceof ThreadBreakpoint) return original.getActions (node); Action[] oas = original.getActions (node); Action[] as = new Action [oas.length + 2]; as [0] = GO_TO_SOURCE_ACTION; as [1] = null; System.arraycopy (oas, 0, as, 2, oas.length); return as; }
public Action[] getActions(NodeActionsProvider original, Object node) throws UnknownTypeException { Action[] actions = original.getActions(node); Action[] newActions = new Action[actions.length+1]; System.arraycopy(actions, 0, newActions, 0, actions.length); // 6550627 newActions[actions.length] = new AddSessionAction(); return newActions; }
@Override public Action[] getActions (NodeActionsProvider original, Object node) throws UnknownTypeException { if (!(node instanceof JPDABreakpoint) || node instanceof ThreadBreakpoint) { return original.getActions (node); } Action[] oas = original.getActions (node); Action[] as = new Action [oas.length + 2]; as [0] = GO_TO_SOURCE_ACTION; as [1] = null; System.arraycopy (oas, 0, as, 2, oas.length); return as; }
@Override public Action[] getActions(NodeActionsProvider original, Object node) throws UnknownTypeException { if (!(node instanceof LineBreakpoint)) { return original.getActions(node); } Action[] oas = original.getActions(node); Action[] as = new Action[oas.length + 3]; as[0] = GO_TO_SOURCE_ACTION; as[1] = null; System.arraycopy(oas, 0, as, 2, oas.length); as[as.length - 1] = CUSTOMIZE_ACTION; return as; }
@Override public Action[] getActions (NodeActionsProvider original, Object node) throws UnknownTypeException { if (!(node instanceof JPDABreakpoint) || node instanceof ThreadBreakpoint) { return original.getActions (node); } Action[] oas = original.getActions (node); Action[] as = new Action [oas.length + 2]; as [0] = GO_TO_SOURCE_ACTION; as [1] = null; System.arraycopy (oas, 0, as, 2, oas.length); return as; }
@Override public Action[] getActions(boolean context) { if (nodeActionsProvider == null) { return new Action[0]; } try { return nodeActionsProvider.getActions(this); } catch (UnknownTypeException ex) { Exceptions.printStackTrace(ex); } return null; }
@Override public Action[] getActions (NodeActionsProvider original, Object node) throws UnknownTypeException { Action[] actions = original.getActions(node); if (node instanceof JSLineBreakpoint) { Action[] newActions = new Action [actions.length + 4]; newActions [0] = GO_TO_SOURCE_ACTION; newActions [1] = null; System.arraycopy (actions, 0, newActions, 2, actions.length); newActions [newActions.length - 2] = null; newActions [newActions.length - 1] = CUSTOMIZE_ACTION; actions = newActions; } return actions; }
@Override public Action[] getActions(NodeActionsProvider original, Object node) throws UnknownTypeException { Action[] actions = original.getActions(node); if (node instanceof JPDAThread && threadsWithJSStacks.contains((JPDAThread) node)) { Action[] newActions = new Action[actions.length + 2]; System.arraycopy(actions, 0, newActions, 0, actions.length); newActions[actions.length] = null; newActions[actions.length + 1] = displayJSStacksAction; actions = newActions; } return actions; }
public Action[] getActions (NodeActionsProvider original, Object node) throws UnknownTypeException { if (!(node instanceof JspLineBreakpoint)) return original.getActions (node); Action[] oas = original.getActions (node); if (node instanceof JspLineBreakpoint) { Action[] as = new Action [oas.length + 3]; as [0] = GO_TO_SOURCE_ACTION; as [1] = null; System.arraycopy (oas, 0, as, 2, oas.length); as [as.length - 1] = CUSTOMIZE_ACTION; return as; } Action[] as = new Action [oas.length + 1]; System.arraycopy (oas, 0, as, 0, oas.length); as [as.length - 1] = CUSTOMIZE_ACTION; return as; }
@Override public Action[] getActions(NodeActionsProvider original, Object node) throws UnknownTypeException { Action[] actions = original.getActions(node); if (node instanceof DebuggingView.DVThread && threadsWithJSStacks.contains((DebuggingView.DVThread) node)) { Action[] newActions = new Action[actions.length + 2]; System.arraycopy(actions, 0, newActions, 0, actions.length); newActions[actions.length] = null; newActions[actions.length + 1] = displayJSStacksAction; actions = newActions; } return actions; }
public Action[] getActions (NodeActionsProvider original, Object node) throws UnknownTypeException { if (!(node instanceof JPDABreakpoint)) return original.getActions (node); Action[] oas = original.getActions (node); if (node instanceof LineBreakpoint) { Action[] as = new Action [oas.length + 3]; as [0] = GO_TO_SOURCE_ACTION; as [1] = null; System.arraycopy (oas, 0, as, 2, oas.length); as [as.length - 1] = CUSTOMIZE_ACTION; return as; } Action[] as = new Action [oas.length + 1]; System.arraycopy (oas, 0, as, 0, oas.length); as [as.length - 1] = CUSTOMIZE_ACTION; return as; }
@Override public Action[] getActions(NodeActionsProvider original, Object node) throws UnknownTypeException { if (node instanceof JSStackFrame) { node = ((JSStackFrame) node).getJavaFrame(); Action[] actions = original.getActions(node); for (int i = 0; i < actions.length; i++) { if (actions[i] == null) { continue; } Object debuggerActionKind = actions[i].getValue("debuggerActionKind"); // NOI18N if ("copyToClipboard".equals(debuggerActionKind)) { // NOI18N actions[i] = createCopyToClipboardAction(actions[i]); } else { actions[i] = translateModelAction(actions[i]); } } return actions; } else { Action[] actions = original.getActions(node); actions = replaceCopyToClipboardAction(actions); return actions; } }
@Override public Action[] getActions(NodeActionsProvider original, Object node) throws UnknownTypeException { if (node instanceof JSStackFrame) { node = ((JSStackFrame) node).getJavaFrame(); Action[] actions = original.getActions(node); for (int i = 0; i < actions.length; i++) { if (actions[i] == null) { continue; } Object debuggerActionKind = actions[i].getValue("debuggerActionKind"); // NOI18N if ("copyToClipboard".equals(debuggerActionKind)) { // NOI18N actions[i] = createCopyToClipboardAction(actions[i]); } else { actions[i] = translateModelAction(actions[i]); } } return actions; } else { Action[] actions = original.getActions(node); actions = replaceCopyToClipboardAction(actions); return actions; } }
public Action[] getActions(NodeActionsProvider original, Object o) throws UnknownTypeException { final Action originals[] = original.getActions(o); final ArrayList<Action> a = new ArrayList<Action>(originals.length);