TreePath selectionPath = tree.getSelectionPath();
if (selectionPath != null) {
DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode) selectionPath.getLastPathComponent();
Object userObject = treeNode.getUserObject();
if (userObject instanceof DocumentPath) {
DocumentPath docPath = (DocumentPath) userObject;
God.appWindow.setCurrentDocument(docPath.docID);
// selectShownDocumentInArchiveTree(treeNode, docPath);
}
}
}