public void addTab(boolean b) {
		if (getMainPanel() == null)
			setMainPanel(new MainPanel(getUserPreferences()));
		getTabbedPane().addTab(Tools.getLocalizedString("PROJECT"), null,
				getMainPanel().getMainPane(tree, getController(), b), null);
		getFrame().repaint();
	}