@Override
	public void selectionChanged(TreeSelectionEvent e) {
		JoeTree tree = e.getTree();
		Document doc = tree.getDocument();
		
		if (doc == Outliner.documents.getMostRecentDocumentTouched()) {
			if (tree.getComponentFocus() == OutlineLayoutManager.ICON) {
				setEnabled(true);
			} else {
				setEnabled(false);
			}
		}
	}