public void valueChanged(ListSelectionEvent lse) {
XMLElement element = getSelectedElement();
if (element != null) {
// select element in graph
GraphController gc = (GraphController) JaWEManager.getInstance().getComponentManager().getComponent("GraphComponent");
Graph g = null;
WorkflowProcess wp = null;
if (element instanceof Activity) {
wp = (WorkflowProcess) element.getParent().getParent();
g = gc.getGraph(wp);
gc.selectGraphForElement(wp);
g.selectActivity((Activity) element, false);
} else if (element instanceof Transition) {
wp = (WorkflowProcess) element.getParent().getParent();
g = gc.getGraph(wp);
gc.selectGraphForElement(wp);
g.selectTransition((Transition) element, false);
}
// hilite affected process in tree
if (wp != null) {