mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-28 15:32:40 -04:00
selection disabled in the tree view
This commit is contained in:
parent
03eb547b0d
commit
8af6a58408
@ -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));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user