synchronized(this) {
setCurrentPerspectiveName(perspectiveId);
if(reset) {
perspective.reset(rootPort);
EventManager.dispatch(new PerspectiveEvent(perspective, current,
PerspectiveEvent.RESET));
} else {
perspective.load(rootPort);
EventManager.dispatch(new PerspectiveEvent(perspective, current,
PerspectiveEvent.CHANGED));
}
}
EventQueue.invokeLater(new Runnable() {