selection disabled in the tree view

This commit is contained in:
hneemann 2017-05-26 10:19:32 +02:00
parent 03eb547b0d
commit 8af6a58408

View File

@ -45,7 +45,6 @@ public class SelectTree extends JTree {
if (path != null && path.getPathCount() > 0) { if (path != null && path.getPathCount() > 0) {
LibraryNode node = (LibraryNode) path.getLastPathComponent(); LibraryNode node = (LibraryNode) path.getLastPathComponent();
if (node.isLeaf() && node.isUnique()) { if (node.isLeaf() && node.isUnique()) {
clearSelection();
try { try {
ElementTypeDescription d = node.getDescription(); ElementTypeDescription d = node.getDescription();
component.setPartToInsert(new VisualElement(d.getName()).setShapeFactory(shapeFactory)); component.setPartToInsert(new VisualElement(d.getName()).setShapeFactory(shapeFactory));