Sample Code Sample Code: Updating Display to Reflect Data Model Changes


VConsoleEvent ev = new VConsoleEvent(
        src, VConsoleActions.UPDATESCOPE, node);
myTool.fireConsoleAction(ev);

fireConsoleAction(ev) might be a utility method in your main Tool class for firing console events.

For models that have an internal root, node is the parent node (the internal root) for all GlossaryVScopeNode objects you are managing in the right-side results pane. For models without an internal root, node is the node in the navigation tree that is associated with the content in the right-side results pane.

Click here for a discussion on the differences between models with and without an internal root.