}
// hilite affected process in tree
if (wp != null) {
SimpleNavigator tcon = (SimpleNavigator) JaWEManager.getInstance().getComponentManager().getComponent("SimpleNavigatorComponent");
SimpleNavigatorPanel panel = (SimpleNavigatorPanel) (tcon.getView());
panel.getTree().removeTreeSelectionListener(tcon);
XPDLTreeNode n = ((XPDLTreeModel) panel.getTreeModel()).findNode(wp);
TreePath tp = null;
if (n != null) {
tp = new TreePath(n.getPath());
panel.getTree().addSelectionPath(tp);
}
if (tp != null) {
panel.getTree().scrollPathToVisible(tp);
}
panel.getTree().addTreeSelectionListener(tcon);
}
}
}