if(editor.isTokenGameEnabled()){
ReachabilityWarning.showReachabilityWarning(desktop, "QuanlAna.ReachabilityGraph.SimulationWarning");
return;
}
JInternalFrame edit = desktop.getSelectedFrame();
ReachabilityGraphVC toAdd = ReachabilityGraphVC.getInstance(dui);
if(!desktop.isAncestorOf(toAdd)){
rg_listener = new ReachabilityGraphVCListener(toAdd, mediator);
edit.addInternalFrameListener(rg_listener);
desktop.add(toAdd);
} else {
if(!hasAlreadyListener(edit, rg_listener)){
edit.addInternalFrameListener(rg_listener);
}
}
toAdd.setVisible(true);
toAdd.validate();
try { // to activate the JInternalFrame
toAdd.setSelected(true);
} catch (PropertyVetoException e) { // if some component does not like this
toAdd.moveToFront(); // then move it to front without activating
}
if(editor.isReachabilityEnabled()){ // is editor already added to RGVC ??
toAdd.updatePanelsVisibility(editor);
} else {
toAdd.addEditor(editor);
toAdd.refreshGraph(AbstractReachabilityGraphModel.HIERARCHIC);
}
// dui.getToolBar().getReachabilityGraphButton().setEnabled(false);
}
}
LoggerManager.debug(Constants.QUALANALYSIS_LOGGER, "<- processViewEvent " + this.getClass().getName());