diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2012-06-26 20:57:01 +0200 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2012-06-26 20:57:01 +0200 |
| commit | bc4d8f9fca275eceee86e38c52975461ca504d07 (patch) | |
| tree | 9e60e5ecba29f76b069f7c17a6b4d1b19775f4cf /src/main/java/com/c2kernel/collection/gui/model/AggregationVertexFactory.java | |
| parent | 6d8c74f97fe4289a984bdc6bd635c71653d5421c (diff) | |
More GUI refactoring
Diffstat (limited to 'src/main/java/com/c2kernel/collection/gui/model/AggregationVertexFactory.java')
| -rw-r--r-- | src/main/java/com/c2kernel/collection/gui/model/AggregationVertexFactory.java | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/main/java/com/c2kernel/collection/gui/model/AggregationVertexFactory.java b/src/main/java/com/c2kernel/collection/gui/model/AggregationVertexFactory.java index cd4963f..7094644 100644 --- a/src/main/java/com/c2kernel/collection/gui/model/AggregationVertexFactory.java +++ b/src/main/java/com/c2kernel/collection/gui/model/AggregationVertexFactory.java @@ -3,13 +3,11 @@ package com.c2kernel.collection.gui.model; import java.awt.Point;
import com.c2kernel.collection.Aggregation;
-import com.c2kernel.collection.MembershipException;
import com.c2kernel.graph.model.GraphModelManager;
import com.c2kernel.graph.model.GraphPoint;
import com.c2kernel.graph.model.TypeNameAndConstructionInfo;
import com.c2kernel.graph.model.VertexFactory;
import com.c2kernel.utils.CastorHashMap;
-import com.c2kernel.utils.Logger;
public class AggregationVertexFactory implements VertexFactory
@@ -31,15 +29,10 @@ public class AggregationVertexFactory implements VertexFactory GraphModelManager graphModelManager,
Point location,
TypeNameAndConstructionInfo typeNameAndConstructionInfo
- )
+ ) throws Exception
{
if (typeNameAndConstructionInfo.mInfo.equals("AggregationMember")) {
- try {
- mAggregation.addMember(-1, new CastorHashMap(), "", new GraphPoint(location.x, location.y), 40, 40);
- } catch (MembershipException ex) {
- Logger.error(ex);
- Logger.exceptionDialog(ex);
- }
+ mAggregation.addMember(-1, new CastorHashMap(), "", new GraphPoint(location.x, location.y), 40, 40);
}
}
}
|
