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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
|
<?xml version="1.0" encoding="UTF-8"?>
<gmfgen:GenEditorGenerator xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:gmfgen="http://www.eclipse.org/gmf/2009/GenModel" packageNamePrefix="org.eclipse.papyrus.sysml.diagram.blockdiagram"
modelID="BDD"
dynamicTemplates="true"
templateDirectory="/org.eclipse.papyrus.def/dynamic-templates3.5/codegen">
<diagram
visualID="1000"
editPartClassName="ResourceEditPart"
itemSemanticEditPolicyClassName="ResourceItemSemanticEditPolicy"
canonicalEditPolicyClassName="ResourceCanonicalEditPolicy"
iconProviderPriority="Low"
validationProviderPriority="Low">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Diagram"/>
<elementType
xsi:type="gmfgen:MetamodelType"
editHelperClassName="ResourceEditHelper"/>
<viewmap
xsi:type="gmfgen:FigureViewmap"
figureQualifiedClassName="org.eclipse.draw2d.FreeformLayer"/>
<domainDiagramElement
href="../../../plugin/org.eclipse.papyrus.resource/model/resource.genmodel#//resource/Resource"/>
<childNodes
visualID="3001"
editPartClassName="PropertyEditPart"
itemSemanticEditPolicyClassName="PropertyItemSemanticEditPolicy"
notationViewFactoryClassName="PropertyViewFactory"
canonicalEditPolicyClassName="PropertyCanonicalEditPolicy"
graphicalNodeEditPolicyClassName="PropertyGraphicalNodeEditPolicy"
createCommandClassName="PropertyCreateCommand"
containers="//@diagram/@compartments.0">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<elementType
xsi:type="gmfgen:MetamodelType"
editHelperClassName="PropertyEditHelper"/>
<viewmap
xsi:type="gmfgen:InnerClassViewmap"
className="PropertyFigureDescriptor"
classBody="
/**
 * @generated
 */
public class PropertyFigureDescriptor extends org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel {




	/**
	 * @generated
	 */
	public PropertyFigureDescriptor() {
				this.setText("");

this.setFont(THIS_FONT);


	}






}

/**
 * @generated
 */
static final org.eclipse.swt.graphics.Font THIS_FONT = new org.eclipse.swt.graphics.Font(org.eclipse.swt.widgets.Display.getCurrent(), "Arial", 10, org.eclipse.swt.SWT.NORMAL);

">
<attributes
xsi:type="gmfgen:StyleAttributes"
fixedFont="true"/>
</viewmap>
<modelFacet>
<metaClass
href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Property"/>
<containmentMetaFeature
href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/StructuredClassifier/ownedAttribute"/>
<childMetaFeature
href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/StructuredClassifier/ownedAttribute"/>
</modelFacet>
</childNodes>
<childNodes
visualID="3102"
editPartClassName="OperationEditPart"
itemSemanticEditPolicyClassName="OperationItemSemanticEditPolicy"
notationViewFactoryClassName="OperationViewFactory"
canonicalEditPolicyClassName="OperationCanonicalEditPolicy"
graphicalNodeEditPolicyClassName="OperationGraphicalNodeEditPolicy"
createCommandClassName="OperationCreateCommand"
containers="//@diagram/@compartments.1">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<elementType
xsi:type="gmfgen:MetamodelType"
editHelperClassName="OperationEditHelper"/>
<viewmap
xsi:type="gmfgen:InnerClassViewmap"
className="OperationFigureDescriptor"
classBody="
/**
 * @generated
 */
public class OperationFigureDescriptor extends org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel {




	/**
	 * @generated
	 */
	public OperationFigureDescriptor() {
				this.setText("");

this.setFont(THIS_FONT);


	}






}

/**
 * @generated
 */
static final org.eclipse.swt.graphics.Font THIS_FONT = new org.eclipse.swt.graphics.Font(org.eclipse.swt.widgets.Display.getCurrent(), "Arial", 10, org.eclipse.swt.SWT.NORMAL);

">
<attributes
xsi:type="gmfgen:StyleAttributes"
fixedFont="true"/>
</viewmap>
<modelFacet>
<metaClass
href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Operation"/>
<containmentMetaFeature
href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Class/ownedOperation"/>
<childMetaFeature
href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Class/ownedOperation"/>
</modelFacet>
</childNodes>
<topLevelNodes
visualID="2001"
editPartClassName="BlockEditPart"
itemSemanticEditPolicyClassName="BlockItemSemanticEditPolicy"
notationViewFactoryClassName="BlockViewFactory"
canonicalEditPolicyClassName="BlockCanonicalEditPolicy"
compartments="//@diagram/@compartments.0 //@diagram/@compartments.1"
graphicalNodeEditPolicyClassName="BlockGraphicalNodeEditPolicy"
createCommandClassName="BlockCreateCommand">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<elementType
xsi:type="gmfgen:MetamodelType"
editHelperClassName="BlockEditHelper"/>
<viewmap
xsi:type="gmfgen:InnerClassViewmap"
className="ClassifierDescriptor"
classBody="
/**
 * @generated
 */
public class ClassifierDescriptor extends org.eclipse.papyrus.diagram.common.figure.node.CClassifierFigure {


	/**
	 * @generated
	 */
	private org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel fClassifierNameLabel; 
	/**
	 * @generated
	 */
	private org.eclipse.draw2d.RectangleFigure fAttributeCompartmentFigure; 
	/**
	 * @generated
	 */
	private org.eclipse.draw2d.RectangleFigure fOperationCompartmentFigure; 
	/**
	 * @generated
	 */
	private org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel fClassifierStereotypeLabel; 
	/**
	 * @generated
	 */
	private org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel fClassifierQualifiedNameLabel; 
	/**
	 * @generated
	 */
	private org.eclipse.draw2d.RectangleFigure fNestedClassifierFigure; 


	/**
	 * @generated
	 */
	public ClassifierDescriptor() {
				

	this.setForegroundColor(THIS_FORE
);
	this.setBackgroundColor(THIS_BACK
);
		createContents();
	}
	/**
	 * @generated
	 */
	private void createContents(){


fClassifierStereotypeLabel = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel();
fClassifierStereotypeLabel.setText("");

fClassifierStereotypeLabel.setFont(FCLASSIFIERSTEREOTYPELABEL_FONT);



this.add(fClassifierStereotypeLabel);



fClassifierNameLabel = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel();
fClassifierNameLabel.setText("");

fClassifierNameLabel.setFont(FCLASSIFIERNAMELABEL_FONT);



this.add(fClassifierNameLabel);



fClassifierQualifiedNameLabel = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel();
fClassifierQualifiedNameLabel.setText("");

fClassifierQualifiedNameLabel.setFont(FCLASSIFIERQUALIFIEDNAMELABEL_FONT);



this.add(fClassifierQualifiedNameLabel);



fAttributeCompartmentFigure = new org.eclipse.draw2d.RectangleFigure();
fAttributeCompartmentFigure.setFill(false);
fAttributeCompartmentFigure.setLineWidth(1);

this.add(fAttributeCompartmentFigure);
fAttributeCompartmentFigure.setLayoutManager(new org.eclipse.draw2d.StackLayout());



fOperationCompartmentFigure = new org.eclipse.draw2d.RectangleFigure();
fOperationCompartmentFigure.setFill(false);
fOperationCompartmentFigure.setLineWidth(1);

this.add(fOperationCompartmentFigure);
fOperationCompartmentFigure.setLayoutManager(new org.eclipse.draw2d.StackLayout());



fNestedClassifierFigure = new org.eclipse.draw2d.RectangleFigure();
fNestedClassifierFigure.setFill(false);
fNestedClassifierFigure.setLineWidth(1);

this.add(fNestedClassifierFigure);
fNestedClassifierFigure.setLayoutManager(new org.eclipse.draw2d.StackLayout());


	}




	/**
	 * @generated
	 */
	private boolean myUseLocalCoordinates = false;

	/**
	 * @generated
	 */
	protected boolean useLocalCoordinates() {
		return myUseLocalCoordinates;
	}

	/**
	 * @generated
	 */
	protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
		myUseLocalCoordinates = useLocalCoordinates;
	}



	/**
	 * @generated
	 */
	public org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel getClassifierNameLabel() {
		return fClassifierNameLabel;
	}
	/**
	 * @generated
	 */
	public org.eclipse.draw2d.RectangleFigure getAttributeCompartmentFigure() {
		return fAttributeCompartmentFigure;
	}
	/**
	 * @generated
	 */
	public org.eclipse.draw2d.RectangleFigure getOperationCompartmentFigure() {
		return fOperationCompartmentFigure;
	}
	/**
	 * @generated
	 */
	public org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel getClassifierStereotypeLabel() {
		return fClassifierStereotypeLabel;
	}
	/**
	 * @generated
	 */
	public org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel getClassifierQualifiedNameLabel() {
		return fClassifierQualifiedNameLabel;
	}
	/**
	 * @generated
	 */
	public org.eclipse.draw2d.RectangleFigure getNestedClassifierFigure() {
		return fNestedClassifierFigure;
	}


}

/**
 * @generated
 */
static final org.eclipse.swt.graphics.Color THIS_FORE = new org.eclipse.swt.graphics.Color(null, 177, 207, 229);

/**
 * @generated
 */
static final org.eclipse.swt.graphics.Color THIS_BACK = new org.eclipse.swt.graphics.Color(null, 235, 248, 255);

/**
 * @generated
 */
static final org.eclipse.swt.graphics.Font FCLASSIFIERSTEREOTYPELABEL_FONT = new org.eclipse.swt.graphics.Font(org.eclipse.swt.widgets.Display.getCurrent(), "Arial", 8, org.eclipse.swt.SWT.NORMAL);

/**
 * @generated
 */
static final org.eclipse.swt.graphics.Font FCLASSIFIERNAMELABEL_FONT = new org.eclipse.swt.graphics.Font(org.eclipse.swt.widgets.Display.getCurrent(), "Arial", 10, org.eclipse.swt.SWT.BOLD);

/**
 * @generated
 */
static final org.eclipse.swt.graphics.Font FCLASSIFIERQUALIFIEDNAMELABEL_FONT = new org.eclipse.swt.graphics.Font(org.eclipse.swt.widgets.Display.getCurrent(), "Arial", 8, org.eclipse.swt.SWT.ITALIC);

">
<attributes
xsi:type="gmfgen:StyleAttributes"
fixedForeground="true"
fixedBackground="true"/>
</viewmap>
<modelFacet>
<metaClass
href="../../org.eclipse.papyrus.sysml.converted/model/sysml.genmodel#//sysml/blocks/Block"/>
<containmentMetaFeature
href="../../../plugin/org.eclipse.papyrus.resource/model/resource.genmodel#//resource/Resource/eobjects"/>
<childMetaFeature
href="../../../plugin/org.eclipse.papyrus.resource/model/resource.genmodel#//resource/Resource/eobjects"/>
</modelFacet>
</topLevelNodes>
<compartments
visualID="7001"
editPartClassName="BlockAttributeCompartmentEditPart"
itemSemanticEditPolicyClassName="BlockAttributeCompartmentItemSemanticEditPolicy"
notationViewFactoryClassName="BlockAttributeCompartmentViewFactory"
canonicalEditPolicyClassName="BlockAttributeCompartmentCanonicalEditPolicy"
childNodes="//@diagram/@childNodes.0"
title="AttributeCompartment"
needsTitle="false"
node="//@diagram/@topLevelNodes.0">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<viewmap
xsi:type="gmfgen:ParentAssignedViewmap"
getterName="getAttributeCompartmentFigure"
figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
</compartments>
<compartments
visualID="7002"
editPartClassName="BlockOperationCompartmentEditPart"
itemSemanticEditPolicyClassName="BlockOperationCompartmentItemSemanticEditPolicy"
notationViewFactoryClassName="BlockOperationCompartmentViewFactory"
canonicalEditPolicyClassName="BlockOperationCompartmentCanonicalEditPolicy"
childNodes="//@diagram/@childNodes.1"
title="OperationCompartment"
needsTitle="false"
node="//@diagram/@topLevelNodes.0">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<viewmap
xsi:type="gmfgen:ParentAssignedViewmap"
getterName="getOperationCompartmentFigure"
figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
</compartments>
<palette>
<groups
title="Element"
description=""
largeIconPath="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif"
smallIconPath="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif"
collapse="true">
<entries
xsi:type="gmfgen:ToolEntry"
title="Block"
description="Create a block"
largeIconPath="platform:/plugin/org.eclipse.papyrus.sysml.edit/icons/blocks/Block.gif"
smallIconPath="platform:/plugin/org.eclipse.papyrus.sysml.edit/icons/blocks/Block.gif"
genNodes="//@diagram/@topLevelNodes.0"/>
<entries
xsi:type="gmfgen:ToolEntry"
title="Package"
description="Create a Package"
largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Package.gif"
smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Package.gif"/>
</groups>
<groups
title="Connector"
description=""
largeIconPath="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif"
smallIconPath="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif">
<entries
xsi:type="gmfgen:ToolEntry"
title="Association"
description="Create an association"
largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Association.gif"
smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Association.gif"/>
</groups>
<groups
title="-- Mis-referenced tools --"
description="Mapping element referenced tools from palette other than one specified in Mapping instance">
<entries
xsi:type="gmfgen:ToolEntry"
title="Property"
description="Create a new Property"
genNodes="//@diagram/@childNodes.0"/>
<entries
xsi:type="gmfgen:ToolEntry"
title="Operation"
description="Create an operation"
genNodes="//@diagram/@childNodes.1"/>
</groups>
</palette>
<preferencePages
xsi:type="gmfgen:GenStandardPreferencePage"
iD="org.eclipse.papyrus.sysml.diagram.general"
name="Sysml Diagram">
<children
xsi:type="gmfgen:GenStandardPreferencePage"
iD="org.eclipse.papyrus.sysml.diagram.appearance"
name="Appearance"
kind="Appearance"/>
<children
xsi:type="gmfgen:GenStandardPreferencePage"
iD="org.eclipse.papyrus.sysml.diagram.connections"
name="Connections"
kind="Connections"/>
<children
xsi:type="gmfgen:GenStandardPreferencePage"
iD="org.eclipse.papyrus.sysml.diagram.printing"
name="Printing"
kind="Printing"/>
<children
xsi:type="gmfgen:GenStandardPreferencePage"
iD="org.eclipse.papyrus.sysml.diagram.rulersAndGrid"
name="Rulers And Grid"
kind="RulersAndGrid"/>
</preferencePages>
</diagram>
<plugin
iD="org.eclipse.papyrus.sysml.diagram.blockdiagram"
provider="Atos Origin"
version="0.7.0.qualifier">
<requiredPlugins>org.eclipse.draw2d</requiredPlugins>
<requiredPlugins>org.eclipse.gmf.runtime.draw2d.ui</requiredPlugins>
</plugin>
<editor/>
<navigator>
<childReferences
child="//@diagram"/>
<childReferences
parent="//@diagram/@topLevelNodes.0"
child="//@diagram/@childNodes.0"/>
<childReferences
parent="//@diagram/@topLevelNodes.0"
child="//@diagram/@childNodes.1"/>
<childReferences
parent="//@diagram"
child="//@diagram/@topLevelNodes.0"/>
</navigator>
<diagramUpdater/>
<propertySheet>
<tabs
xsi:type="gmfgen:GenStandardPropertyTab"
iD="appearance"/>
<tabs
xsi:type="gmfgen:GenStandardPropertyTab"
iD="diagram"/>
<tabs
xsi:type="gmfgen:GenCustomPropertyTab"
iD="domain"
label="Core">
<filter
xsi:type="gmfgen:TypeTabFilter">
<types>org.eclipse.gmf.runtime.notation.View</types>
<types>org.eclipse.gef.EditPart</types>
<generatedTypes>abstractNavigatorItem</generatedTypes>
</filter>
</tabs>
</propertySheet>
<domainGenModel
href="../../org.eclipse.papyrus.sysml.converted/model/sysml.genmodel#/"/>
<contextMenus
context="//@diagram">
<items
xsi:type="gmfgen:LoadResourceAction"/>
</contextMenus>
</gmfgen:GenEditorGenerator>
|