diff options
author | Mickael ADAM | 2014-11-14 16:57:38 +0000 |
---|---|---|
committer | Mickael ADAM | 2014-11-14 16:57:38 +0000 |
commit | 5a1e5a0cbe42f2dbd1894bff6bdbd985bab179b9 (patch) | |
tree | 4bb7be1b02960b1a50f7b6389f4de86d74ff6edf /plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.symbols | |
parent | 8a7c5464e3836c3304008b643bccb5034e2ece21 (diff) | |
download | org.eclipse.papyrus-5a1e5a0cbe42f2dbd1894bff6bdbd985bab179b9.tar.gz org.eclipse.papyrus-5a1e5a0cbe42f2dbd1894bff6bdbd985bab179b9.tar.xz org.eclipse.papyrus-5a1e5a0cbe42f2dbd1894bff6bdbd985bab179b9.zip |
440201: [Diagram] Class diagram shapes shall be refactored
https://bugs.eclipse.org/bugs/show_bug.cgi?id=440201
-Use RoundedCompartment for AssociationNode and DependencyNode
Change-Id: Ib975ed9d56aff204fc76ea0cf58a1668e785b772
Signed-off-by: Mickael ADAM <mickael.adam@ALL4TEC.net>
Diffstat (limited to 'plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.symbols')
-rw-r--r-- | plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.symbols/src/org/eclipse/papyrus/uml/diagram/symbols/provider/UMLElementShapeProvider.java | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.symbols/src/org/eclipse/papyrus/uml/diagram/symbols/provider/UMLElementShapeProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.symbols/src/org/eclipse/papyrus/uml/diagram/symbols/provider/UMLElementShapeProvider.java index a32daffe631..1a6eea0cb3f 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.symbols/src/org/eclipse/papyrus/uml/diagram/symbols/provider/UMLElementShapeProvider.java +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.symbols/src/org/eclipse/papyrus/uml/diagram/symbols/provider/UMLElementShapeProvider.java @@ -31,6 +31,7 @@ import org.eclipse.papyrus.infra.gmfdiag.common.service.shape.ProviderNotificati import org.eclipse.papyrus.uml.diagram.symbols.Activator; import org.eclipse.uml2.uml.AcceptEventAction; import org.eclipse.uml2.uml.ActivityFinalNode; +import org.eclipse.uml2.uml.Association; import org.eclipse.uml2.uml.DecisionNode; import org.eclipse.uml2.uml.DurationObservation; import org.eclipse.uml2.uml.Element; @@ -60,19 +61,19 @@ public class UMLElementShapeProvider extends AbstractShapeProvider { private static final String TIME_OBSERVATION_SVG_PATH = "/icons/symbols/TimeObservation.svg"; - /** The Constant SYMBOL_SVG_PATH. */ + /** The Constant ROUND_WITH_DOT_SVG_PATH. */ private static final String ROUND_WITH_DOT_SVG_PATH = "/icons/symbols/round_with_dot.svg"; - /** The Constant SYMBOL_SVG_PATH. */ + /** The Constant ROUND_FULL_SVG_PATH. */ private static final String ROUND_FULL_SVG_PATH = "/icons/symbols/round_full.svg"; - /** The Constant SYMBOL_SVG_PATH. */ + /** The Constant ROUND_WITH_CROSS_SVG_PATH. */ private static final String ROUND_WITH_CROSS_SVG_PATH = "/icons/symbols/round_with_cross.svg"; - /** The Constant SYMBOL_SVG_PATH. */ + /** The Constant ARROW_SVG_PATH. */ private static final String ARROW_SVG_PATH = "/icons/symbols/arrow.svg"; - /** The Constant SYMBOL_SVG_PATH. */ + /** The Constant DIAMOND_SVG_PATH. */ private static final String DIAMOND_SVG_PATH = "/icons/symbols/diamond.svg"; /** @@ -137,6 +138,9 @@ public class UMLElementShapeProvider extends AbstractShapeProvider { if (element instanceof ActivityFinalNode || (element instanceof TypedElement && ((TypedElement) element).getType() instanceof ActivityFinalNode)) { return true; }// RoundWDot + if (element instanceof Association || (element instanceof TypedElement && ((TypedElement) element).getType() instanceof Association)) { + return true; + }// Diamond return false; } @@ -256,6 +260,9 @@ public class UMLElementShapeProvider extends AbstractShapeProvider { if (element instanceof ActivityFinalNode || (element instanceof TypedElement && ((TypedElement) element).getType() instanceof ActivityFinalNode)) { uri = URI.createPlatformPluginURI(org.eclipse.papyrus.infra.gmfdiag.common.Activator.ID + ROUND_WITH_DOT_SVG_PATH, true); }// RoundWDot + if (element instanceof Association || (element instanceof TypedElement && ((TypedElement) element).getType() instanceof Association)) { + uri = URI.createPlatformPluginURI(org.eclipse.papyrus.infra.gmfdiag.common.Activator.ID + DIAMOND_SVG_PATH, true); + }// Diamond String path = uri.toString(); SVGDocument document = getSVGDocument(path); |