public void processEvent(Event event) {
        try {
        	if (event.getType() == EventType.CLASS_OPEN || event.getType() == EventType.CLASS_REPARSE) {
        		this.cf = event.getClassFile();
        	}
        	
        	if (event.getType() == EventType.CLASS_PARSE_ERROR) {
    			this.tree.setModel(new DefaultTreeModel(new DefaultMutableTreeNode("Class parse error.")));
        	}
        	
        	if (event.getType() == EventType.CLASS_OPEN || event.getType() == EventType.CLASS_UPDATE || event.getType() == EventType.CLASS_REPARSE) {
        		this.upToDate = false;
        		if (this.isOpen) {
        			refresh();
        		}
            }
        } catch(Exception e) {
            SystemFacade.getInstance().handleException(e);
        }
    }