summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/gui/tabs/CollectionPane.java
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2012-08-03 14:03:59 +0200
committerAndrew Branson <andrew.branson@cern.ch>2012-08-03 14:03:59 +0200
commite4ccc012a781d794c06b8d3fd27e0a1f532b3fe7 (patch)
tree7f96e165b1583b75c39221ee59d15e2d3f160650 /src/main/java/com/c2kernel/gui/tabs/CollectionPane.java
parent8c272e0261686302e86849ad86ae8fa393d9e95e (diff)
Menu item on collection members in the tree to remove them.
Drag items onto dependencies to add them. Dependency view Logging cleanup Fixes #42
Diffstat (limited to 'src/main/java/com/c2kernel/gui/tabs/CollectionPane.java')
-rw-r--r--src/main/java/com/c2kernel/gui/tabs/CollectionPane.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/c2kernel/gui/tabs/CollectionPane.java b/src/main/java/com/c2kernel/gui/tabs/CollectionPane.java
index 4d9092e..52af795 100644
--- a/src/main/java/com/c2kernel/gui/tabs/CollectionPane.java
+++ b/src/main/java/com/c2kernel/gui/tabs/CollectionPane.java
@@ -39,11 +39,13 @@ public class CollectionPane extends EntityTabPane implements EntityProxyObserver
if (thisCollView == null){
if (contents instanceof Aggregation) {
AggregationView thisAggView = new AggregationView();
+ thisAggView.setItem((ItemProxy)sourceEntity.getEntity());
thisAggView.setCollection((Aggregation)contents);
thisCollView = thisAggView;
}
else if (contents instanceof Dependency) {
DependencyView thisDepView = new DependencyView();
+ thisDepView.setItem((ItemProxy)sourceEntity.getEntity());
thisDepView.setCollection((Dependency)contents);
thisCollView = thisDepView;
}
@@ -52,7 +54,6 @@ public class CollectionPane extends EntityTabPane implements EntityProxyObserver
return;
}
Logger.msg(3, "Adding new "+thisCollView.getClass().getName());
- thisCollView.setItem((ItemProxy)sourceEntity.getEntity());
collTabs.add(contents.getName(), thisCollView);
}
}