blob: 903ddf991228c4f9101305ceb12c13f9915b95d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
package com.c2kernel.collection.gui.view;
import com.c2kernel.collection.AggregationMember;
import com.c2kernel.collection.Collection;
import com.c2kernel.collection.CollectionMember;
import com.c2kernel.common.ObjectNotFoundException;
import com.c2kernel.graph.model.Vertex;
import com.c2kernel.graph.view.VertexPropertyPanel;
public class PropertyPanel extends VertexPropertyPanel {
Collection mCollection;
public PropertyPanel() {
super();
}
public void setCollection(Collection collection) {
mCollection = collection;
}
public void setVertex(Vertex vert) {
try {
CollectionMember newMember = mCollection.getMember(vert.getID());
if (newMember instanceof AggregationMember) {
super.setVertex((AggregationMember)newMember);
return;
}
else
clear();
} catch (ObjectNotFoundException ex) {
clear();
selObjClass.setText("No Collection Member object found");
}
}
}
|