Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Le Fevre2017-06-16 04:27:03 -0400
committerPatrick Tessier2017-08-03 11:50:39 -0400
commit93b2632ddbff13e6c0c2386a1619e50a8043dfec (patch)
treee82a2b4f1e9edac4620193bd135412aaca6d3cae /plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment
parentff6e28da205a32354f78e0b927417ccba8010ca0 (diff)
downloadorg.eclipse.papyrus-93b2632ddbff13e6c0c2386a1619e50a8043dfec.tar.gz
org.eclipse.papyrus-93b2632ddbff13e6c0c2386a1619e50a8043dfec.tar.xz
org.eclipse.papyrus-93b2632ddbff13e6c0c2386a1619e50a8043dfec.zip
Bug 480423: [Class Diagram] Relationship keyword labels missing the
guillemets Actions -add reference to the norm -open the API -add a new parser dedicated to manage the keyword Tests -starting a remote eclipse and check the package relationship with use keyword -apply an ecore stereotype on the use relationship and check also the result Change-Id: Id106a7862dd980ec3f33f52ba008d1dd358222f6 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=480423 Signed-off-by: Francois Le Fevre <francois.le-fevre@cea.fr>
Diffstat (limited to 'plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment')
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/providers/CustomUMLParserProvider.java26
1 files changed, 24 insertions, 2 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/providers/CustomUMLParserProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/providers/CustomUMLParserProvider.java
index 4fb7ec99d69..960c2413358 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/providers/CustomUMLParserProvider.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/providers/CustomUMLParserProvider.java
@@ -1,6 +1,21 @@
+/*****************************************************************************
+ * Copyright (c) 2015, 2017 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ *
+ *****************************************************************************/
package org.eclipse.papyrus.uml.diagram.deployment.custom.providers;
import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.papyrus.uml.diagram.common.keyword.KeywordLabel;
+import org.eclipse.papyrus.uml.diagram.common.parser.stereotype.AppliedKeywordParser;
import org.eclipse.papyrus.uml.diagram.common.parser.stereotype.AppliedStereotypeParser;
import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentAppliedStereotypeEditPart;
import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationAppliedStereotypeEditPart;
@@ -15,14 +30,21 @@ public class CustomUMLParserProvider extends UMLParserProvider {
protected IParser getAppliedStereotypeParser(String defaultEditString) {
return new AppliedStereotypeParser(defaultEditString);
}
+
+ /**
+ * @since 3.0
+ */
+ protected IParser getAppliedKeywordParser(String defaultPrintString) {
+ return new AppliedKeywordParser(defaultPrintString);
+ }
@Override
protected IParser getParser(String visualID) {
switch (visualID) {
case DeploymentAppliedStereotypeEditPart.VISUAL_ID:
- return getAppliedStereotypeParser("deployment"); //$NON-NLS-1$
+ return getAppliedKeywordParser(KeywordLabel.DEPLOY);
case ManifestationAppliedStereotypeEditPart.VISUAL_ID:
- return getAppliedStereotypeParser("manifestation"); //$NON-NLS-1$
+ return getAppliedKeywordParser(KeywordLabel.MANIFEST);
}
return super.getParser(visualID);
}

Back to the top