public void processEvent(Event event) {
        // get currect project and update all tabs and all that
		if (event.getType() == EventType.PROJECT_UPDATE) {
			this.project = event.getProject();
			if (this.project != null) {
				insertControlTabs();
			} else {
				this.tabbedPane.removeAll();
				for (JCheckBoxMenuItem item : this.viewCheckBoxes.keySet()) {
					item.setSelected(true);
				}
				ensureTabIsVisible(this.filesTab);
			}
		} else if (event.getType() == EventType.CLASS_OPEN && event.getFile() != null) {
			insertConditionalTabs();
			selectFileRelatedTab();
		} else if (event.getType() == EventType.DEBUG_STACK_FRAME_CHANGED) {
			insertConditionalTabs();
			setTab(Tab.EDITOR);
    	} else if (event.getType() == EventType.DEBUG_ATTACH) {
			this.splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, getDebugPanel(), this.tabbedPane);
			this.getContentPane().remove(this.tabbedPane);
			this.getContentPane().add(this.splitPane, BorderLayout.CENTER);
			this.getContentPane().validate();
    	} else if (event.getType() == EventType.DEBUG_DETACH) {
			this.getContentPane().remove(this.splitPane);
			this.getContentPane().add(this.tabbedPane, BorderLayout.CENTER);
			this.getContentPane().validate();
    	}
    }