Create Tool Node
public class MyTool implements Tool ... {
VScopeNode myToolNode;
...
// Notice how we leave the first 3 parameters as null.
// This means the console's rendering engine will take
// over for us and handle the rendering of our child
// nodes.
myToolNode = new VScopeNode(null, null, null,
myMenuBar, myToolBar, myPopupMenu,
smallIcon, largeIcon, "My Cool Tool",
"A tool that does cool stuff",
null, -1, myDataObject);
// 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.
MyToolNode.setTool(this);
...
public void getScopeNode() {
// Return the root node of our data model
return myToolNode;
}
...