TreePath currentSelection = classpathTree.getSelectionPath();
if (currentSelection != null) {
DefaultMutableTreeNode currentNode = (DefaultMutableTreeNode) (currentSelection.getLastPathComponent());
MutableTreeNode parent = (MutableTreeNode) (currentNode.getParent());
JarefiApp app = JarefiApp.getApplication();
MutableTreeNode myNode = app.getUIHandlers().getClasspathTreeHandler().getMyNode();
if (parent != null && parent.equals(myNode)) {
treeModel.removeNodeFromParent(currentNode);
URL url = (URL)currentNode.getUserObject();
app.getUIHandlers().getClasspathTreeHandler().getClasspathList().remove(url);
return;
}
}
}
}