if (treeReportTypes.getLastSelectedPathComponent() == treeReportTypes.getModel().getRoot()
|| treeReportTypes.getLastSelectedPathComponent() == null) {
return;
}
DirectoryReportTypeItem item = (DirectoryReportTypeItem) treeReportTypes.getLastSelectedPathComponent();
DirectoryReportTypeItem parent = item.getParent();
if (parent == null) {
DirectoryReportType dir =
(DirectoryReportType) DirectoryLocator.getDirectory(DirectoryReportType.class, false);
dir.getItems().remove(item);
}
else {
parent.getItems().remove(item);
}
treeReportTypes.updateUI();
treeReportTypes.getSelectionModel().setSelectionPath(null);
treeReportTypesValueChanged(null);
} catch (ClipsException ex) {