diff options
Diffstat (limited to 'src/main/java/com/c2kernel/gui/tabs/CollectionPane.java')
| -rw-r--r-- | src/main/java/com/c2kernel/gui/tabs/CollectionPane.java | 3 |
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);
}
}
|
