From bc4d8f9fca275eceee86e38c52975461ca504d07 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Tue, 26 Jun 2012 20:57:01 +0200 Subject: More GUI refactoring --- .../collection/gui/model/AggregationVertexFactory.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/main/java/com/c2kernel/collection/gui') 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); } } } -- cgit v1.2.3