Add Child Node
VScopeNode parent = ...
...
VScopeNode child = new VScopeNode(null, null, null,
myMenuBar, myToolBar, myPopupMenu,
smallIcon, largeIcon, "Child Node",
"A child node for some parent",
null, -1, childDataObject);
// Associate the node with our Tool's instance.
// This allows node selection notification to be handled by the
// console's engine thru the Tool's start/atop methods.
child.setTool(myTool);
// Add the node as a child of the parent
parent.add(child)
...
// Notify console that Navigation pane should be updated.
// (Assumes a general method for firing events).
VConsoleEvent ev = new VConsoleEvent(
myTool, VConsoleActions.UPDATESCOPE, parent);
fireConsoleAction(ev);