/** * Set the specified URI as the selected node in the tree (if it exists) * * @param uri */ public void setSelectedValue(String uri) { OntDocumentManagerTreeModel model = (OntDocumentManagerTreeModel) this.getModel(); TreePath treePath = model.getPath(uri); if (treePath != null) { this.setSelectionPath(treePath); } else { this.clearSelection(); } }