/** * * Returns filtered root of hierarchy. * * @param original the original tree model * @return filtered root of hierarchy */ public Object getRoot(TreeModel original) { return original.getRoot (); }
public boolean isLeaf(TreeModel original, Object node) { boolean isLeaf = false; try { isLeaf = original.isLeaf(node); } catch (Exception x) { } return isLeaf; }
public int getChildrenCount(TreeModel original, Object node) throws UnknownTypeException { if (node == original.getRoot() && listener == null) { listener = new DebuggerListener(this, debugger); } return original.getChildrenCount(node); }
if (node.equals (original.getRoot())) { countVisible = original.getChildrenCount(node); Object[] children = original.getChildren (node, 0, countVisible); countVisible = ((AttributeMap)node).getAttributes().size(); else if (node instanceof AttributeMap.Attribute) countVisible = original.getChildrenCount(((AttributeMap.Attribute)node).getValue()); else countVisible = original.getChildrenCount(node);
Object [] children = null; try { children = original.getChildren(parent, from, to); } catch (Exception x) {
public Object[] getChildren(TreeModel original, Object parent, int from, int to) throws UnknownTypeException { CndUtils.assertNonUiThread(); breakpointBag(); // cause restoration of bpts // Factoring of original.getChildren() somehow messes up // isLeaf(), so don't. if (parent == TreeModel.ROOT) { // OLD Object originalChildren[] = original.getChildren(parent, from, to); Object[] oChildren = original.getChildren(parent, 0, original.getChildrenCount(parent)); return simplifyHierarchy(null, oChildren); } else { if (parent instanceof NativeBreakpoint) { NativeBreakpoint nb = (NativeBreakpoint) parent; return simplifyHierarchy(nb, nb.getChildren()); } else { Object originalChildren[] = original.getChildren(parent, from, to); return originalChildren; } } }
public Object[] getChildren(TreeModel original, Object parent, int from, int to) throws UnknownTypeException { if (parent == original.getRoot()) { Watch [] allWatches = DebuggerManager.getDebuggerManager().getWatches(); Object [] result = original.getChildren(parent, from, to); return original.getChildren(parent, from, to);
public int getChildrenCount(TreeModel original, Object parent) { int count = 0; try { count = original.getChildrenCount(parent); } catch (Exception x) { } return count; }
if (parent.equals (original.getRoot())) { int parentChildrenCount = original.getChildrenCount(parent); Object[] children = original.getChildren(parent, 0, parentChildrenCount); parentChildrenCount = children.length; if (parentChildrenCount == 1 && children[0] instanceof java.lang.String) visibleChildren = original.getChildren(((AttributeMap.Attribute)parent).getValue(), from, to); else visibleChildren = original.getChildren(parent, from, to);
@Override public Object[] getChildren(TreeModel original, Object parent, int from, int to) throws UnknownTypeException { if (parent == TreeModel.ROOT) { ObjectVariable tooltipVar = ToolTipView.getVariable(); if (tooltipVar != null) { return new Object[] { tooltipVar }; } else { return new Object[] { }; } } else { return original.getChildren(parent, from, to); } }
Object[] oChildren = original.getChildren(parent, 0, original.getChildrenCount(parent)); Object[] inSession = sessionOnly(null, oChildren); count = inSession.length; } else { count = original.getChildrenCount(parent);
@Override public int getChildrenCount(TreeModel original, Object node) throws UnknownTypeException { return original.getChildrenCount(node); }
@Override public boolean isLeaf(TreeModel original, Object node) throws UnknownTypeException { if (node instanceof JSStackFrame) { return true; } else { return original.isLeaf(node); } }
@Override public Object getRoot(TreeModel original) { return original.getRoot(); }
@Override public Object[] getChildren(TreeModel original, Object parent, int from, int to) throws UnknownTypeException { Object[] children = original.getChildren(parent, from, to); if (parent instanceof DebuggingView.DVThread) { Object[] jsChildren = DebuggingJSTreeModel.createChildrenWithJSStack(children); if (jsChildren != null) { threadsWithJSStacks.add((DebuggingView.DVThread) parent); if (displayJSStacks) { children = DebuggingJSTreeModel.filterChildren(jsChildren); } } } return children; }
@Override public int getChildrenCount(TreeModel original, Object node) throws UnknownTypeException { return original.getChildrenCount(node); }
@Override public boolean isLeaf(TreeModel original, Object node) throws UnknownTypeException { if (node instanceof JSStackFrame) { return true; } else { return original.isLeaf(node); } }
@Override public Object getRoot(TreeModel original) { return original.getRoot(); }
@Override public Object[] getChildren(TreeModel original, Object parent, int from, int to) throws UnknownTypeException { Object[] children = original.getChildren(parent, from, to); if (parent instanceof JPDAThread) { Object[] jsChildren = DebuggingJSTreeModel.createChildrenWithJSStack(children); if (jsChildren != null) { threadsWithJSStacks.add((JPDAThread) parent); if (displayJSStacks) { children = DebuggingJSTreeModel.filterChildren(jsChildren); } } } return children; }
public boolean isLeaf(TreeModel original, Object node) throws UnknownTypeException { if (node instanceof JspElWatch) return true; return original.isLeaf(node); }