Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/stereotype/StereotypeDisplayUtils.java')
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/stereotype/StereotypeDisplayUtils.java37
1 files changed, 29 insertions, 8 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/stereotype/StereotypeDisplayUtils.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/stereotype/StereotypeDisplayUtils.java
index be1b60f3625..134b9eacd01 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/stereotype/StereotypeDisplayUtils.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/stereotype/StereotypeDisplayUtils.java
@@ -14,44 +14,65 @@
package org.eclipse.papyrus.uml.diagram.common.stereotype;
+import org.eclipse.papyrus.uml.diagram.common.Activator;
+
/**
* This Class regroups the Constants required for the Stereotype Display
*
- * @author CĂ©line JANSSENS
+ * @author Celine JANSSENS
*
*/
public class StereotypeDisplayUtils {
+ // Depth Separator of the Stereotype Name
public static final String STEREOTYPE_LABEL_DEPTH_SEPARATOR = "::";//$NON-NLS-1$
+ // Name of Style for Comment Node to point to related main Object
+ public static final String STEREOTYPE_COMMENT_RELATION_NAME = "BASE_ELEMENT";//$NON-NLS-1$
+
+ // Name Style of Name, Type and Depth for Stereotype Display
public static final String STEREOTYPE_LABEL_TYPE = "StereotypeLabel"; //$NON-NLS-1$
public static final String STEREOTYPE_PROPERTY_TYPE = "StereotypeProperty";//$NON-NLS-1$
public static final String STEREOTYPE_COMPARTMENT_TYPE = "StereotypeCompartment";//$NON-NLS-1$
+ public static final String STEREOTYPE_COMMENT_TYPE = "StereotypeComment";//$NON-NLS-1$
+ public static final String STEREOTYPE_COMMENT_LINK_TYPE = "StereotypeCommentLink";
public static final String STEREOTYPE_LABEL_NAME = "stereotype";//$NON-NLS-1$
public static final String STEREOTYPE_COMPARTMENT_NAME = "stereotype";//$NON-NLS-1$
public static final String STEREOTYPE_PROPERTY_NAME = "property";//$NON-NLS-1$
public static final String STEREOTYPE_LABEL_DEPTH = "depth";//$NON-NLS-1$
- public static final String DEFAULT_DEPTH_VALUE = "full";//$NON-NLS-1$
+
+ // Visibility Constants
public static final String STEREOTYPE_LABEL_VSISIBLE = "visible";//$NON-NLS-1$
public static final Boolean DEFAULT_VISIBILITY_VALUE = Boolean.TRUE;//$NON-NLS-1$
public static final Boolean DEFAULT_PROPERTY_VISIBILITY_VALUE = Boolean.TRUE;//$NON-NLS-1$
+ // Depth Constants
public static final String DEPTH_MAX = "full";//$NON-NLS-1$
public static final String DEPTH_MIN = "none";//$NON-NLS-1$
public static final String DEPTH_AUTO = "auto";//$NON-NLS-1$
+ public static final String DEFAULT_DEPTH_VALUE = "full";//$NON-NLS-1$
- public static final String DEFAULT_STEREOTYPE_PROPERTY_LOCATION = "compartment";//$NON-NLS-1$
+ // Property Constants
public static final String STEREOTYPE_PROPERTY_LOCATION_BRACE = "inBrace";//$NON-NLS-1$
public static final String STEREOTYPE_PROPERTY_LOCATION_COMPARTMENT = "inCompartment";//$NON-NLS-1$
- public static final String STEREOTYPE_PROPERTY_LOCATION_COMMENT = "inComment";//$NON-NLS-1$
+ public static final String STEREOTYPE_PROPERTY_LOCATION_COMMENT_BRACE = "inCommentBrace";//$NON-NLS-1$
+ public static final String STEREOTYPE_PROPERTY_LOCATION_COMMENT = "inCommentCompartment";//$NON-NLS-1$
+
+ // Default Display Location
+ public static final boolean DEFAULT_STEREOTYPE_PROPERTY_DISPLAY_BRACE = true;//$NON-NLS-1$
+ public static final boolean DEFAULT_STEREOTYPE_PROPERTY_DISPLAY_COMPARTMENT = true;//$NON-NLS-1$
+ public static final boolean DEFAULT_STEREOTYPE_PROPERTY_DISPLAY_COMMENT_BRACE = true;//$NON-NLS-1$
+ public static final boolean DEFAULT_STEREOTYPE_PROPERTY_DISPLAY_COMMENT = true;//$NON-NLS-1$
+ // Special Char Constants
public final static String STEREOTYPE_LABEL_SEPARATOR = ", ";//$NON-NLS-1$
public static final String STEREOTYPE_PROPERTY_SEPARATOR = "\n";//$NON-NLS-1$
public static final String STEREOTYPE_PROPERTY_VALUE_SEPARATOR = " = ";//$NON-NLS-1$
- // TODO To be changed with the French brackets
- // In order to distinguish the NamedStyle Label from the EAnnotation
- public final static String BRACE_LEFT = "<== "; // String.valueOf("\u00AB");
- public final static String BRACE_RIGHT = " ==>"; // String.valueOf("\u00AA");
+ // Ornament Constants
+ public final static String BRACE_LEFT = Activator.ST_LEFT;
+ public final static String BRACE_RIGHT = Activator.ST_RIGHT;
+
+
}

Back to the top