@Override public boolean isLeaf(TreeModel original, Object node) throws UnknownTypeException { if (node instanceof JSStackFrame) { return true; } else { return original.isLeaf(node); } }
@Override public boolean isLeaf(TreeModel original, Object node) throws UnknownTypeException { return original.isLeaf(node); }
public boolean isLeaf(TreeModel original, Object node) { boolean isLeaf = false; try { isLeaf = original.isLeaf(node); } catch (Exception x) { } return isLeaf; }
@Override public boolean isLeaf(TreeModel original, Object node) throws UnknownTypeException { if (node instanceof JSStackFrame) { return true; } else { return original.isLeaf(node); } }
public boolean isLeaf(TreeModel original, Object node) throws UnknownTypeException { if (node instanceof JspElWatch) return true; return original.isLeaf(node); }
@Override public boolean isLeaf(TreeModel original, Object node) throws UnknownTypeException { if (node instanceof JSStackFrame) { return true; } else { boolean leaf = original.isLeaf(node); if (leaf && (node instanceof DebuggingView.DVThread)) { threadsWithJSStacks.remove((DebuggingView.DVThread) node); } return leaf; } }
@Override public boolean isLeaf(TreeModel original, Object node) throws UnknownTypeException { if (node instanceof JSStackFrame) { return true; } else { boolean leaf = original.isLeaf(node); if (leaf && (node instanceof JPDAThread)) { threadsWithJSStacks.remove((JPDAThread) node); } return leaf; } }
@Override public boolean isLeaf(TreeModel original, Object node) throws UnknownTypeException { if (node instanceof JSVariable) { return !((JSVariable) node).isExpandable(); } return original.isLeaf(node); }
public boolean isLeaf(TreeModel original, Object node) throws UnknownTypeException { boolean isLeaf = false; if (node instanceof NativeBreakpoint) { NativeBreakpoint nb = (NativeBreakpoint) node; return isLeaf(nb); } else { isLeaf = original.isLeaf(node); if (Log.Bpt.model) { String who = (node == TreeModel.ROOT) ? "ROOT" : "notours"; // NOI18N System.out.printf("isLeaf(%s) = %s\n", who, isLeaf); // NOI18N } } return isLeaf; }
/** * Returns true if node is leaf. You should not throw UnknownTypeException * directly from this method! * * @param original the original tree model * @throws UnknownTypeException this exception can be thrown from * <code>original.isLeaf (...)</code> method call only! * @return true if node is leaf */ public boolean isLeaf(TreeModel original, Object node) throws UnknownTypeException { boolean il; if (node instanceof ImplicitLocals) il = false; else if (node instanceof AttributeMap) il = false; else if (node instanceof AttributeMap.Attribute) { Variable attributeValue = ((AttributeMap.Attribute)node).getValue(); if (isLeafType(attributeValue.getType())) il = true; else il = original.isLeaf(attributeValue); } else il = original.isLeaf(node); return il; }
@Override public boolean isLeaf(TreeModel original, Object node) throws UnknownTypeException { if (node instanceof JSWatchVar) { JSWatchVar jswv = (JSWatchVar) node; JSVariable jsVar = jswv.getJSVarIfExists(); if (jsVar != null) { node = jsVar; } else { node = jswv.getWatch(); } } if (node instanceof JSVariable) { JSVariable jsVar = (JSVariable) node; ObjectVariable valueObject = jsVar.getValueObject(); if (valueObject != null) { return original.isLeaf(valueObject); } return !jsVar.isExpandable(); } else if (node instanceof ScopeVariable) { return false; } return original.isLeaf(node); }