Skip to main content
summaryrefslogtreecommitdiffstats
blob: cebea7ea7c3e87f6c7a5fe00dd4f132b79a85786 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="di2" nsURI="http://www.papyrusuml.org" nsPrefix="di2">
  <eClassifiers xsi:type="ecore:EClass" name="DiagramElement">
    <eOperations name="getProperty" eType="#//Property">
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
        <details key="body" value="java.util.Iterator it = getProperty().iterator();&#xD;&#xA;while (it.hasNext()) {&#xD;&#xA;&#x9;Property element = (Property) it.next();&#xD;&#xA;&#x9;if(key.equals(element.getKey())) {&#xD;&#xA;&#x9;&#x9;return element;&#xD;&#xA;&#x9;}&#xD;&#xA;}&#xD;&#xA;return null;"/>
      </eAnnotations>
      <eParameters name="key" eType="ecore:EDataType ../../org.eclipse.uml2.types/model/Types.ecore#//String"/>
    </eOperations>
    <eOperations name="getPropertyValue" eType="#//String">
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
        <details key="body" value=" if(this.getProperty(key)!=null){&#xD;&#xA;&#x9;return this.getProperty(key).getValue();}&#xD;&#xA;return null;&#xD;&#xA;&#x9;"/>
      </eAnnotations>
      <eParameters name="key" eType="ecore:EDataType ../../org.eclipse.uml2.types/model/Types.ecore#//String"/>
    </eOperations>
    <eOperations name="getEditpartName" eType="ecore:EDataType ../../org.eclipse.uml2.types/model/Types.ecore#//String">
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
        <details key="body" value="return this.getPropertyValue(com.cea.papyrus.diagraminterchange2.di2.PapyrusKeyEnumeration.PAPYRUSEDITPART.getLiteral());"/>
        <details key="documentation" value="it is used to obtain the name of the good editpart"/>
      </eAnnotations>
    </eOperations>
    <eStructuralFeatures xsi:type="ecore:EReference" name="property" upperBound="-1"
        eType="#//Property" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="isVisible" eType="ecore:EDataType ../../org.eclipse.uml2.types/model/Types.ecore#//Boolean"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="reference" upperBound="-1"
        eType="#//Reference"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="container" eType="#//GraphElement"
        eOpposite="#//GraphElement/contained"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="fontFamily" eType="ecore:EDataType ../../org.eclipse.uml2.types/model/Types.ecore#//String"
        defaultValueLiteral=""/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="fontSize" eType="ecore:EDataType ../../org.eclipse.uml2.types/model/Types.ecore#//Integer"
        defaultValueLiteral="10"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="lineStyle" eType="ecore:EDataType ../../org.eclipse.uml2.types/model/Types.ecore#//String"
        defaultValueLiteral=""/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="lineThickness" eType="ecore:EDataType ../../org.eclipse.uml2.types/model/Types.ecore#//Integer"
        defaultValueLiteral="1"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="fontColor" eType="#//RGB"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="foregroundColor" eType="#//RGB"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="backgroundColor" eType="#//RGB"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="borderColor" eType="#//RGB"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="translucent" eType="ecore:EDataType ../../org.eclipse.uml2.types/model/Types.ecore#//Boolean"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="semanticParent" eType="#//DiagramElement"
        eOpposite="#//DiagramElement/semanticChild"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="semanticChild" upperBound="-1"
        eType="#//DiagramElement" eOpposite="#//DiagramElement/semanticParent"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="GraphElement" eSuperTypes="#//DiagramElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="contained" upperBound="-1"
        eType="#//DiagramElement" containment="true" eOpposite="#//DiagramElement/container"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="link" upperBound="-1" eType="#//DiagramLink"
        containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="semanticModel" eType="#//SemanticModelBridge"
        containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="position" eType="#//Point"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="anchorage" upperBound="-1"
        eType="#//GraphConnector" containment="true" eOpposite="#//GraphConnector/graphElement"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Reference" eSuperTypes="#//DiagramElement">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="isIndividualRepresentation"
        eType="ecore:EDataType ../../org.eclipse.uml2.types/model/Types.ecore#//Boolean"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="referenced" lowerBound="1"
        eType="#//DiagramElement"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Property">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="key" eType="ecore:EDataType ../../org.eclipse.uml2.types/model/Types.ecore#//String"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType ../../org.eclipse.uml2.types/model/Types.ecore#//String"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="GraphEdge" eSuperTypes="#//GraphElement">
    <eOperations name="getAnchorSource" eType="#//GraphElement">
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
        <details key="body" value="return ((GraphConnector)getAnchor().get(0)).getGraphElement();"/>
      </eAnnotations>
    </eOperations>
    <eOperations name="getAnchorTarget" eType="#//GraphElement">
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
        <details key="body" value="return ((GraphConnector)getAnchor().get(1)).getGraphElement();"/>
      </eAnnotations>
    </eOperations>
    <eOperations name="setAnchorSource">
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
        <details key="body" value="initConnectors();&#xD;&#xA;((GraphConnector)getAnchor().get(0)).setGraphElement(value);"/>
      </eAnnotations>
      <eParameters name="value" eType="#//GraphElement"/>
    </eOperations>
    <eOperations name="setAnchorTarget">
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
        <details key="body" value="initConnectors();&#xD;&#xA;((GraphConnector)getAnchor().get(1)).setGraphElement(value);"/>
      </eAnnotations>
      <eParameters name="value" eType="#//GraphElement"/>
    </eOperations>
    <eOperations name="initConnectors">
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
        <details key="body" value="if(!getAnchor().isEmpty())&#xD;&#xA;    return;&#xD;&#xA;    &#x9;&#xD;&#xA;getAnchor().add( Di2Package.eINSTANCE.getDi2Factory().createGraphConnector() ) ;&#xD;&#xA;getAnchor().add( Di2Package.eINSTANCE.getDi2Factory().createGraphConnector() ) ;&#xD;&#xA;"/>
      </eAnnotations>
    </eOperations>
    <eStructuralFeatures xsi:type="ecore:EReference" name="anchor" upperBound="2"
        eType="#//GraphConnector" eOpposite="#//GraphConnector/graphEdge"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="waypoints" upperBound="-1"
        eType="#//Point" defaultValueLiteral=""/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="GraphConnector">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="position" eType="#//Point"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="graphEdge" upperBound="-1"
        eType="#//GraphEdge" eOpposite="#//GraphEdge/anchor"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="graphElement" lowerBound="1"
        eType="#//GraphElement" eOpposite="#//GraphElement/anchorage"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="GraphNode" eSuperTypes="#//GraphElement">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="size" eType="#//Dimension"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="DiagramLink">
    <eStructuralFeatures xsi:type="ecore:EReference" name="diagram" lowerBound="1"
        eType="#//Diagram"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="zoom" eType="#//Double"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="viewport" eType="#//Point"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="graphElement" lowerBound="1"
        eType="#//GraphElement"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Diagram" eSuperTypes="#//GraphNode">
    <eStructuralFeatures xsi:type="ecore:EReference" name="owner" lowerBound="1" eType="#//SemanticModelBridge"
        containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType ../../org.eclipse.uml2.types/model/Types.ecore#//String"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="zoom" eType="#//Double"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="viewport" eType="#//Point"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="diagramLink" upperBound="-1"
        eType="#//DiagramLink"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="ecore:EDataType ../../org.eclipse.uml2.types/model/Types.ecore#//String"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="SemanticModelBridge">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="presentation" eType="ecore:EDataType ../../org.eclipse.uml2.types/model/Types.ecore#//String"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="graphElement" eType="#//GraphElement"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="SimpleSemanticModelElement" eSuperTypes="#//SemanticModelBridge">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="typeinfo" eType="ecore:EDataType ../../org.eclipse.uml2.types/model/Types.ecore#//String"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Uml1SemanticModelBridge" eSuperTypes="#//SemanticModelBridge">
    <eStructuralFeatures xsi:type="ecore:EReference" name="element" eType="ecore:EClass ../../org.eclipse.uml2.uml/model/UML.ecore#//Element"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="CoreSemanticModelBridge" eSuperTypes="#//SemanticModelBridge"/>
  <eClassifiers xsi:type="ecore:EClass" name="LeafElement" eSuperTypes="#//DiagramElement"/>
  <eClassifiers xsi:type="ecore:EClass" name="TextElement" eSuperTypes="#//LeafElement">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="text" eType="ecore:EDataType ../../org.eclipse.uml2.types/model/Types.ecore#//String"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Image" eSuperTypes="#//LeafElement">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="uri" eType="ecore:EDataType ../../org.eclipse.uml2.types/model/Types.ecore#//String"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="mimeType" eType="ecore:EDataType ../../org.eclipse.uml2.types/model/Types.ecore#//String"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="GraphicPrimitive" eSuperTypes="#//LeafElement"/>
  <eClassifiers xsi:type="ecore:EClass" name="Polilyne" eSuperTypes="#//GraphicPrimitive">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="waypoints" lowerBound="2"
        upperBound="-1" eType="#//Point"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="closed" lowerBound="2"
        upperBound="-1" eType="ecore:EDataType ../../org.eclipse.uml2.types/model/Types.ecore#//Boolean"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Ellipse" eSuperTypes="#//GraphicPrimitive">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="center" eType="#//Point"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="radiusX" eType="#//Double"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="radiusY" eType="#//Double"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="rotation" eType="#//Double"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="startAngle" eType="#//Double"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="endAngle" eType="#//Double"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EDataType" name="Point" instanceClassName="org.eclipse.draw2d.geometry.Point"/>
  <eClassifiers xsi:type="ecore:EDataType" name="Dimension" instanceClassName="org.eclipse.draw2d.geometry.Dimension"/>
  <eClassifiers xsi:type="ecore:EDataType" name="Double" instanceClassName="double"/>
  <eClassifiers xsi:type="ecore:EDataType" name="RGB" instanceClassName="org.eclipse.swt.graphics.RGB"/>
  <eClassifiers xsi:type="ecore:EDataType" name="String" instanceClassName="java.lang.String"/>
  <eClassifiers xsi:type="ecore:EEnum" name="PapyrusKeyEnumeration">
    <eLiterals name="papyruseditpart"/>
  </eClassifiers>
</ecore:EPackage>

Back to the top