public Action[] getActions(Object node) throws UnknownTypeException { if (node instanceof JSPVariablesFilter.AttributeMap || node instanceof JSPVariablesFilter.AttributeMap.Attribute) return new Action[0]; throw new UnknownTypeException (node); }
public void setName(Object node, String name) throws UnknownTypeException { if (node == ROOT) { return; } else if (node instanceof Thread) { return; } else { throw new UnknownTypeException(node); } }
public void setValueAt(Object node, String columnID, Object value) throws UnknownTypeException { if (!(node instanceof Frame)) { throw new UnknownTypeException(node); } // should never be called on us }
public boolean canCopy(ExtendedNodeModel original, Object node) throws UnknownTypeException { if (node == ROOT) { return false; } else if (node instanceof Variable) { return false; } else if (node instanceof WatchVariable || node instanceof Watch) { return false; } else { throw new UnknownTypeException(node); } }
public PasteType[] getPasteTypes(ExtendedNodeModel original, Object node, Transferable t) throws UnknownTypeException { if (node == ROOT) { return new PasteType[0]; } else if (node instanceof Variable) { return new PasteType[0]; } else if (node instanceof WatchVariable || node instanceof Watch) { return new PasteType[0]; } else { throw new UnknownTypeException(node); } }
public Action[] getActions (Object node) throws UnknownTypeException { if (node instanceof JspElWatch) return new Action [] { NEW_WATCH_ACTION, null, DELETE_ACTION, DELETE_ALL_ACTION, null, CUSTOMIZE_ACTION }; throw new UnknownTypeException (node); }
public boolean canRename(Object node) throws UnknownTypeException { if (node == ROOT) { return false; } else if (node instanceof Thread) { return false; } else { throw new UnknownTypeException(node); } }
@Override public void performDefaultAction (Object node) throws UnknownTypeException { if (!(node instanceof String)) { throw new UnknownTypeException (node); } }
public void performDefaultAction(Object node) throws UnknownTypeException { if (!(node instanceof Event)) { throw new UnknownTypeException(node); } }
private Thread getThread(Object node) throws UnknownTypeException { // Probably SHOULD test for ROOT and return a dummy RootThread! if (node instanceof Thread) { return (Thread) node; } else { throw new UnknownTypeException(node); } }
public boolean canCopy(Object node) throws UnknownTypeException { if (node == ROOT) { return false; } else if (node instanceof Thread) { return false; } else { throw new UnknownTypeException(node); } }
public Transferable clipboardCopy(Object node) throws UnknownTypeException, java.io.IOException { if (node == ROOT) { return null; } else if (node instanceof Thread) { throw new java.io.IOException(); } else { throw new UnknownTypeException(node); } }
public String getIconBase (Object o) throws UnknownTypeException { if (o instanceof String) { if (((String) o).startsWith ("D")) return FILTER; else return SOURCE_ROOT; } else throw new UnknownTypeException (o); }
public void setValueAt(Object node, String columnID, Object value) throws UnknownTypeException, NumberFormatException { Thread thread = getThread(node); { throw new UnknownTypeException(node); } }
public boolean isCheckEnabled(NodeModel originalNM, Object node) throws UnknownTypeException { if (!(originalNM instanceof CheckNodeModel)) { throw new UnknownTypeException(node); } CheckNodeModel original = (CheckNodeModel) originalNM; if (node instanceof NativeBreakpoint) { return true; } else { return original.isCheckEnabled(node); } }
@Override public void setSelected(NodeModel original, Object node, Boolean selected) throws UnknownTypeException { if (node instanceof String) { setEnabled ((String) node, selected.booleanValue ()); return; } throw new UnknownTypeException (node); }
public String getShortDescription (Object o) throws UnknownTypeException { if (o == TreeModel.ROOT) return NbBundle.getBundle(SourcesNodeModel.class).getString("CTL_SourcesModel_Column_Name_Desc"); if (o instanceof String) { if (((String) o).startsWith ("D")) return NbBundle.getBundle(SourcesNodeModel.class).getString("CTL_SourcesModel_Column_Name_DescExclusion"); else return NbBundle.getBundle(SourcesNodeModel.class).getString("CTL_SourcesModel_Column_Name_DescRoot"); } else throw new UnknownTypeException (o); }
public String getShortDescription (Object o) throws UnknownTypeException { if (o instanceof JspLineBreakpoint) { return NbBundle.getMessage ( JspBreakpointsNodeModel.class, "CTL_Jsp_Line_Breakpoint", Context.getFileName ((JspLineBreakpoint) o), "" + ((JspLineBreakpoint) o).getLineNumber () ); } throw new UnknownTypeException (o); }
public Action[] getActions(Object node) throws UnknownTypeException { if (!(node instanceof DefaultMutableTreeNode)) { throw new UnknownTypeException(node); } DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode) node; Object nodeObject = treeNode.getUserObject(); if (!(nodeObject instanceof FunctionCallTreeTableNode)) { return null; } return new Action[]{new GoToSourceAction(((FunctionCallTreeTableNode) nodeObject).getDeligator())}; } }
public String getDisplayName(NodeModel original, Object node) throws UnknownTypeException { if (node == ROOT) { return Catalog.get("PROP_name"); // NOI18N } else if (node instanceof Variable) { Variable v = (Variable) node; return v.getVariableName(); } else if (node instanceof ShowMoreMessage) { return ((ShowMoreMessage) node).getMessage(); } else { throw new UnknownTypeException(node); } }