@Override
	public void selectionChanged(TreeSelectionEvent e) {
		JoeTree tree = e.getTree();
		Document doc = tree.getDocument();
		
		if (doc == Outliner.documents.getMostRecentDocumentTouched()) {
			calculateEnabledState(tree);
		}
	}