if (node != null && node.getUserObject() instanceof Wrapper) {
@SuppressWarnings("unchecked")
Wrapper<String> wrapper = (Wrapper)node.getUserObject();
String file = wrapper.getContent();
try {
Event event = new Event(EventType.CLASS_OPEN);
ClassFile cf = this.project.getClassFile(file);
event.setClassFile(cf);
event.setFile(file);
this.dispatcher.notifyObservers(event);
} catch(Exception ex) {
SystemFacade.getInstance().handleException(ex);
this.dispatcher.notifyObservers(new Event(EventType.CLASS_PARSE_ERROR));
}
}
} finally {
setCursor(this.normalCursor);
}