Skip to content
Snippets Groups Projects
Select Git revision
  • d53424fad5547cdc781a97e257fe90dbfba3aebb
  • master default protected
2 results

Literals.java

Blame
  • Literals.java 4.13 KiB
    package rolemodel;
    
    import org.eclipse.graphiti.util.IColorConstant;
    import org.framed.iorm.ui.UILiterals;
    import org.framed.iorm.ui.palette.PaletteView;
    
    /**
     * The literals of role models are mostly the same as the ones of a compartment type, since a created role model is handled like
     * a compartment type if the corresponding feature is chosen. 
     * @author Kevin Kassin
     */
    public class Literals {
    	
    	/**
    	 * the features names used for the palette entry of this feature
    	 */
    	public final String FEATURE_NAME = "Role Model",
    						ELEMENTS_FEATURE_NAME = "RoleModelElementPattern";
    	
    	/**
    	 * the standard name for a pictogramm element and business object created by the feature
    	 */
    	public final String STANDARD_NAME = "roleModel";
    						
    	/**
    	 * the ids or the paths for icon used for palette entry of this feature
    	 */		
    	public final String	ICON_IMG_ID = "org.framed.iorm.ui.core.rolemodel",
    						ELEMENTS_ICON_IMG_ID = "org.framed.iorm.ui.core.roleModelElements",
    						ICON_IMG_PATH = "core/rolemodel/icon_rolemodel.png";
    	
    	/**
    	 * the kind of diagram this module's pattern creates
    	 */
    	public final String DIAGRAM_KIND = "compartment_diagram";
    	
    	/**
    	 * the palette view of this module's patterns
    	 */
    	public final PaletteView paletteView = PaletteView.COMPARTMENT_VIEW; 
    	
    	/**
    	 * identifiers used for role models
    	 * <p>
    	 * can be for:<br>
    	 * (1) the container shape or<br>
    	 * (2) type body shape or<br>
    	 * (3) drop shadow shape or<br>
    	 * (4) name shape or<br>
    	 * (5) first line shape or<br>
    	 * (6) second line shape or<br>
    	 * (7) third line shape or<br>
    	 * (8) attribute container shape or<br>
    	 * (9) operation container shape or<br>
    	 * (10) content preview segment or<br>
    	 * (11) the elements in the content preview segment or<br>
    	 * (12) the dot elements that indicate some elements are not shown in the preview
    	 */
    	public final String SHAPE_ID_ROLEMODEL_CONTAINER = "shape_ct_container",
    						SHAPE_ID_ROLEMODEL_TYPEBODY = "shape_ct_typebody",
    						SHAPE_ID_ROLEMODEL_SHADOW = "shape_ct_shadow",
    						SHAPE_ID_ROLEMODEL_NAME = "shape_ct_name", 
    						SHAPE_ID_ROLEMODEL_FIRSTLINE = "shape_ct_firstline",
    						SHAPE_ID_ROLEMODEL_SECONDLINE = "shape_ct_secondline", 
    						SHAPE_ID_ROLEMODEL_THIRDLINE = "shape_ct_thirdline", 
    						SHAPE_ID_ROLEMODEL_ATTRIBUTECONTAINER = "shape_ct_attcontainer",
    						SHAPE_ID_ROLEMODEL_OPERATIONCONTAINER = "shape_ct_opcontainer",
    						SHAPE_ID_ROLEMODEL_CONTENT_PREVIEW = "shape_ct_contentpreview",
    						SHAPE_ID_ROLEMODEL_ELEMENT = "shape_ct_element",
    						SHAPE_ID_ROLEMODEL_INDICATOR_DOTS = "shape_ct_indicator_dots";