blob: f54f3107fbd142ed614f8433307e9db91d6d0d88 [file] [log] [blame]
<?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" diagramFileExtension="toed">
<diagram
visualID="1000"
editPartClassName="AllHolderEditPart"
itemSemanticEditPolicyClassName="AllHolderItemSemanticEditPolicy"
canonicalEditPolicyClassName="AllHolderCanonicalEditPolicy"
iconProviderPriority="Low"
validationProviderPriority="Low">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Diagram"/>
<elementType
xsi:type="gmfgen:MetamodelType"
editHelperClassName="AllHolderEditHelper"/>
<viewmap
xsi:type="gmfgen:FigureViewmap"
figureQualifiedClassName="org.eclipse.draw2d.FreeformLayer"/>
<domainDiagramElement
href="toe.genmodel#//toe/AllHolder"/>
<childNodes
visualID="3001"
editPartClassName="Employee2EditPart"
itemSemanticEditPolicyClassName="Employee2ItemSemanticEditPolicy"
notationViewFactoryClassName="EmployeeViewFactory"
canonicalEditPolicyClassName="Employee2CanonicalEditPolicy"
graphicalNodeEditPolicyClassName="Employee2GraphicalNodeEditPolicy"
createCommandClassName="Employee2CreateCommand"
containers="//@diagram/@compartments.0 //@diagram/@compartments.1">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<elementType
xsi:type="gmfgen:SpecializationType"
metamodelType="//@diagram/@topLevelNodes.0/@elementType"/>
<viewmap
xsi:type="gmfgen:InnerClassViewmap"
className="EmployeeFigure"
classBody="&#xA;/**&#xA; * @generated&#xA; */&#xA;public class EmployeeFigure extends org.eclipse.draw2d.RoundedRectangle {&#xA;&#xA;&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;private org.eclipse.gmf.examples.ocldriven.diagram.figures.StickManWithNumber fInnerEmployeeFigure; &#xA;&#xA;&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;public EmployeeFigure() {&#xA;&#x9;&#x9;&#xA;&#x9;org.eclipse.draw2d.BorderLayout layoutThis = new org.eclipse.draw2d.BorderLayout();&#xA;&#x9;this.setLayoutManager(layoutThis);&#xA;&#xA;&#x9;&#x9;this.setCornerDimensions(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(8)&#xA;, getMapMode().DPtoLP(8)&#xA;));&#xA;&#x9;this.setBackgroundColor(org.eclipse.draw2d.ColorConstants.green);&#xA;&#xA;this.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(10)&#xA;, getMapMode().DPtoLP(10)&#xA;, getMapMode().DPtoLP(10)&#xA;, getMapMode().DPtoLP(10)&#xA;));&#xA;&#x9;&#x9;createContents();&#xA;&#x9;}&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;private void createContents(){&#xA;&#xA;&#xA;org.eclipse.draw2d.RectangleFigure employeeMiddleFigure0 = new org.eclipse.draw2d.RectangleFigure();&#xA;&#xA;&#xA;employeeMiddleFigure0.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(10)&#xA;, getMapMode().DPtoLP(10)&#xA;, getMapMode().DPtoLP(10)&#xA;, getMapMode().DPtoLP(10)&#xA;));&#xA;&#xA;this.add(employeeMiddleFigure0, org.eclipse.draw2d.BorderLayout.CENTER);&#xA;&#xA;&#x9;org.eclipse.draw2d.BorderLayout layoutEmployeeMiddleFigure0 = new org.eclipse.draw2d.BorderLayout();&#xA;&#x9;employeeMiddleFigure0.setLayoutManager(layoutEmployeeMiddleFigure0);&#xA;&#xA;&#xA;&#xA;fInnerEmployeeFigure = new org.eclipse.gmf.examples.ocldriven.diagram.figures.StickManWithNumber();&#xA;&#xA;&#xA;&#xA;&#xA;employeeMiddleFigure0.add(fInnerEmployeeFigure, org.eclipse.draw2d.BorderLayout.CENTER);&#xA;&#xA;&#xA;&#xA;&#x9;}&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;public org.eclipse.gmf.examples.ocldriven.diagram.figures.StickManWithNumber getInnerEmployeeFigure() {&#xA;&#x9;&#x9;return fInnerEmployeeFigure;&#xA;&#x9;}&#xA;&#xA;&#xA;}&#xA;&#xA;">
<attributes
xsi:type="gmfgen:StyleAttributes"
fixedBackground="true"/>
</viewmap>
<behaviour
xsi:type="gmfgen:GenVisualEffect"
key="org.eclipse.gmf.examples.ocldriven.toe.diagram.edit.policies.EmployeePinCounter3001Policy.KEY"
editPolicyQualifiedClassName="org.eclipse.gmf.examples.ocldriven.toe.diagram.edit.policies.EmployeePinCounter3001Policy"
name="EmployeePinCounter"
pinKind="CustomPin"
operationName="getInnerEmployeeFigure().setCounter"
operationType="Integer"
oclExpression="self.projects->size()"/>
<behaviour
xsi:type="gmfgen:GenVisualEffect"
key="org.eclipse.gmf.examples.ocldriven.toe.diagram.edit.policies.EmployeePinVisible3001Policy.KEY"
editPolicyQualifiedClassName="org.eclipse.gmf.examples.ocldriven.toe.diagram.edit.policies.EmployeePinVisible3001Policy"
name="EmployeePinVisible"
pinKind="VisiblePin"
operationName="getInnerEmployeeFigure().setVisible"
operationType="Boolean"
oclExpression="self.projects->size() &lt;> 0"/>
<modelFacet
modelElementSelector="//@expressionProviders/@providers.0/@expressions.0">
<metaClass
href="toe.genmodel#//toe/Employee"/>
<containmentMetaFeature
href="toe.genmodel#//toe/Department/employees"/>
<childMetaFeature
href="toe.genmodel#//toe/Department/employees"/>
</modelFacet>
<labels
xsi:type="gmfgen:GenExternalNodeLabel"
visualID="5002"
editPartClassName="EmployeeName2EditPart"
itemSemanticEditPolicyClassName="EmployeeName2ItemSemanticEditPolicy"
notationViewFactoryClassName="EmployeeNameViewFactory"
elementIcon="true">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<viewmap
xsi:type="gmfgen:FigureViewmap"
figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
<modelFacet
xsi:type="gmfgen:FeatureLabelModelFacet"
parser="//@labelParsers/@implementations.0">
<metaFeatures
href="toe.genmodel#//toe/Employee/name"/>
<editableMetaFeatures
href="toe.genmodel#//toe/Employee/name"/>
</modelFacet>
</labels>
</childNodes>
<childNodes
visualID="3002"
editPartClassName="Department2EditPart"
itemSemanticEditPolicyClassName="Department2ItemSemanticEditPolicy"
notationViewFactoryClassName="DepartmentViewFactory"
canonicalEditPolicyClassName="Department2CanonicalEditPolicy"
compartments="//@diagram/@compartments.1"
graphicalNodeEditPolicyClassName="Department2GraphicalNodeEditPolicy"
createCommandClassName="Department2CreateCommand"
containers="//@diagram/@compartments.1 //@diagram/@compartments.0">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<elementType
xsi:type="gmfgen:SpecializationType"
metamodelType="//@diagram/@topLevelNodes.1/@elementType"/>
<viewmap
xsi:type="gmfgen:InnerClassViewmap"
className="DepartmentFigure"
classBody="&#xA;/**&#xA; * @generated&#xA; */&#xA;public class DepartmentFigure extends org.eclipse.draw2d.RectangleFigure {&#xA;&#xA;&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;private org.eclipse.draw2d.RectangleFigure fFigureDepartmentFigure_content_pane; &#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;private org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel fFigureDepartmentFigure_name; &#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;private org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel fFigureDepartmentFigure_ocl_gmf; &#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;private org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel fFigureDepartmentFigure_ocl_ia; &#xA;&#xA;&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;public DepartmentFigure() {&#xA;&#x9;&#x9;&#xA;&#x9;org.eclipse.draw2d.BorderLayout layoutThis = new org.eclipse.draw2d.BorderLayout();&#xA;&#x9;this.setLayoutManager(layoutThis);&#xA;&#xA;&#x9;&#x9;&#x9;&#x9;createContents();&#xA;&#x9;}&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;private void createContents(){&#xA;&#xA;&#xA;org.eclipse.draw2d.RectangleFigure departmentFigure_name_container0 = new org.eclipse.draw2d.RectangleFigure();&#xA;&#xA;&#xA;this.add(departmentFigure_name_container0, org.eclipse.draw2d.BorderLayout.TOP);&#xA;&#xA;&#x9;org.eclipse.draw2d.ToolbarLayout layoutDepartmentFigure_name_container0 = new org.eclipse.draw2d.ToolbarLayout();&#xA;&#x9;layoutDepartmentFigure_name_container0.setStretchMinorAxis(false);&#xA;&#x9;layoutDepartmentFigure_name_container0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER&#xA;);&#xA;&#xA;&#x9;layoutDepartmentFigure_name_container0.setSpacing(5);&#xA;&#x9;layoutDepartmentFigure_name_container0.setVertical(true);&#xA;&#xA;&#x9;departmentFigure_name_container0.setLayoutManager(layoutDepartmentFigure_name_container0);&#xA;&#xA;&#xA;&#xA;fFigureDepartmentFigure_name = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel();&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;fFigureDepartmentFigure_name.setAlignment(&#xA;org.eclipse.draw2d.PositionConstants.CENTER);&#xA;&#xA;&#xA;&#xA;fFigureDepartmentFigure_name.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(3)&#xA;, getMapMode().DPtoLP(10)&#xA;, getMapMode().DPtoLP(3)&#xA;, getMapMode().DPtoLP(10)&#xA;));&#xA;&#xA;departmentFigure_name_container0.add(fFigureDepartmentFigure_name);&#xA;&#xA;&#xA;&#xA;&#xA;fFigureDepartmentFigure_content_pane = new org.eclipse.draw2d.RectangleFigure();&#xA;&#xA;&#xA;this.add(fFigureDepartmentFigure_content_pane, org.eclipse.draw2d.BorderLayout.CENTER);&#xA;fFigureDepartmentFigure_content_pane.setLayoutManager(new org.eclipse.draw2d.StackLayout());&#xA;&#xA;&#xA;&#xA;org.eclipse.draw2d.RectangleFigure departmentFigure_labels_container0 = new org.eclipse.draw2d.RectangleFigure();&#xA;&#xA;&#xA;departmentFigure_labels_container0.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(2)&#xA;, getMapMode().DPtoLP(2)&#xA;, getMapMode().DPtoLP(2)&#xA;, getMapMode().DPtoLP(2)&#xA;));&#xA;&#xA;this.add(departmentFigure_labels_container0, org.eclipse.draw2d.BorderLayout.BOTTOM);&#xA;&#xA;&#x9;org.eclipse.draw2d.ToolbarLayout layoutDepartmentFigure_labels_container0 = new org.eclipse.draw2d.ToolbarLayout();&#xA;&#x9;layoutDepartmentFigure_labels_container0.setStretchMinorAxis(false);&#xA;&#x9;layoutDepartmentFigure_labels_container0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER&#xA;);&#xA;&#xA;&#x9;layoutDepartmentFigure_labels_container0.setSpacing(5);&#xA;&#x9;layoutDepartmentFigure_labels_container0.setVertical(true);&#xA;&#xA;&#x9;departmentFigure_labels_container0.setLayoutManager(layoutDepartmentFigure_labels_container0);&#xA;&#xA;&#xA;&#xA;org.eclipse.draw2d.RectangleFigure departmentFigure_firstRow1 = new org.eclipse.draw2d.RectangleFigure();&#xA;&#xA;departmentFigure_firstRow1.setOutline(false);&#xA;&#xA;departmentFigure_labels_container0.add(departmentFigure_firstRow1);&#xA;&#xA;&#x9;org.eclipse.draw2d.ToolbarLayout layoutDepartmentFigure_firstRow1 = new org.eclipse.draw2d.ToolbarLayout();&#xA;&#x9;layoutDepartmentFigure_firstRow1.setStretchMinorAxis(false);&#xA;&#x9;layoutDepartmentFigure_firstRow1.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER&#xA;);&#xA;&#xA;&#x9;layoutDepartmentFigure_firstRow1.setSpacing(5);&#xA;&#x9;layoutDepartmentFigure_firstRow1.setVertical(false);&#xA;&#xA;&#x9;departmentFigure_firstRow1.setLayoutManager(layoutDepartmentFigure_firstRow1);&#xA;&#xA;&#xA;&#xA;org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel departmentFigure_fixed_total_salary_gmf2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel();&#xA;&#xA;departmentFigure_fixed_total_salary_gmf2.setText(&quot;Total Salary (GMF):&quot;);&#xA;&#xA;departmentFigure_fixed_total_salary_gmf2.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(3)&#xA;, getMapMode().DPtoLP(10)&#xA;, getMapMode().DPtoLP(3)&#xA;, getMapMode().DPtoLP(10)&#xA;));&#xA;&#xA;departmentFigure_firstRow1.add(departmentFigure_fixed_total_salary_gmf2);&#xA;&#xA;&#xA;&#xA;fFigureDepartmentFigure_ocl_gmf = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel();&#xA;&#xA;fFigureDepartmentFigure_ocl_gmf.setText(&quot;&lt;gmf>&quot;);&#xA;&#x9;fFigureDepartmentFigure_ocl_gmf.setForegroundColor(org.eclipse.draw2d.ColorConstants.red);&#xA;&#xA;fFigureDepartmentFigure_ocl_gmf.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(3)&#xA;, getMapMode().DPtoLP(10)&#xA;, getMapMode().DPtoLP(3)&#xA;, getMapMode().DPtoLP(10)&#xA;));&#xA;&#xA;departmentFigure_firstRow1.add(fFigureDepartmentFigure_ocl_gmf);&#xA;&#xA;&#xA;&#xA;&#xA;org.eclipse.draw2d.RectangleFigure departmentFigure_secondRow1 = new org.eclipse.draw2d.RectangleFigure();&#xA;&#xA;departmentFigure_secondRow1.setOutline(false);&#xA;&#xA;departmentFigure_labels_container0.add(departmentFigure_secondRow1);&#xA;&#xA;&#x9;org.eclipse.draw2d.ToolbarLayout layoutDepartmentFigure_secondRow1 = new org.eclipse.draw2d.ToolbarLayout();&#xA;&#x9;layoutDepartmentFigure_secondRow1.setStretchMinorAxis(false);&#xA;&#x9;layoutDepartmentFigure_secondRow1.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER&#xA;);&#xA;&#xA;&#x9;layoutDepartmentFigure_secondRow1.setSpacing(5);&#xA;&#x9;layoutDepartmentFigure_secondRow1.setVertical(false);&#xA;&#xA;&#x9;departmentFigure_secondRow1.setLayoutManager(layoutDepartmentFigure_secondRow1);&#xA;&#xA;&#xA;&#xA;org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel departmentFigure_fixed_total_salary_ia2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel();&#xA;&#xA;departmentFigure_fixed_total_salary_ia2.setText(&quot;Total Salary (IA):&quot;);&#xA;&#xA;departmentFigure_fixed_total_salary_ia2.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(3)&#xA;, getMapMode().DPtoLP(10)&#xA;, getMapMode().DPtoLP(3)&#xA;, getMapMode().DPtoLP(10)&#xA;));&#xA;&#xA;departmentFigure_secondRow1.add(departmentFigure_fixed_total_salary_ia2);&#xA;&#xA;&#xA;&#xA;fFigureDepartmentFigure_ocl_ia = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel();&#xA;&#xA;fFigureDepartmentFigure_ocl_ia.setText(&quot;&lt;ia>&quot;);&#xA;&#x9;fFigureDepartmentFigure_ocl_ia.setForegroundColor(org.eclipse.draw2d.ColorConstants.yellow);&#xA;&#xA;fFigureDepartmentFigure_ocl_ia.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(3)&#xA;, getMapMode().DPtoLP(10)&#xA;, getMapMode().DPtoLP(3)&#xA;, getMapMode().DPtoLP(10)&#xA;));&#xA;&#xA;departmentFigure_secondRow1.add(fFigureDepartmentFigure_ocl_ia);&#xA;&#xA;&#xA;&#xA;&#xA;&#x9;}&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;public org.eclipse.draw2d.RectangleFigure getFigureDepartmentFigure_content_pane() {&#xA;&#x9;&#x9;return fFigureDepartmentFigure_content_pane;&#xA;&#x9;}&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;public org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel getFigureDepartmentFigure_name() {&#xA;&#x9;&#x9;return fFigureDepartmentFigure_name;&#xA;&#x9;}&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;public org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel getFigureDepartmentFigure_ocl_gmf() {&#xA;&#x9;&#x9;return fFigureDepartmentFigure_ocl_gmf;&#xA;&#x9;}&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;public org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel getFigureDepartmentFigure_ocl_ia() {&#xA;&#x9;&#x9;return fFigureDepartmentFigure_ocl_ia;&#xA;&#x9;}&#xA;&#xA;&#xA;}&#xA;&#xA;"/>
<behaviour
xsi:type="gmfgen:GenVisualEffect"
key="org.eclipse.gmf.examples.ocldriven.toe.diagram.edit.policies.DepartmentPinForeground3002Policy.KEY"
editPolicyQualifiedClassName="org.eclipse.gmf.examples.ocldriven.toe.diagram.edit.policies.DepartmentPinForeground3002Policy"
name="DepartmentPinForeground"
pinKind="ColorPin"
operationName="setForegroundColor"
operationType="Tuple(red:Integer, green:Integer, blue:Integer)"
oclExpression="--IA&#xD;&#xA;let totalSalary : Integer = self.employees->iterate(&#xD;&#xA;e: Employee; sum : Integer = 0 | &#xD;&#xA;sum + e.salary&#xD;&#xA;) in &#xD;&#xA;if totalSalary > 10000 &#xD;&#xA;then Tuple {red: Integer = 255, green: Integer = 0, blue: Integer = 0} &#xD;&#xA;else Tuple {red: Integer = 0, green: Integer = 255, blue: Integer = 0} &#xD;&#xA;endif"/>
<modelFacet>
<metaClass
href="toe.genmodel#//toe/Department"/>
<containmentMetaFeature
href="toe.genmodel#//toe/Department/subDepartments"/>
<childMetaFeature
href="toe.genmodel#//toe/Department/subDepartments"/>
</modelFacet>
<labels
visualID="5003"
editPartClassName="DepartmentName2EditPart"
itemSemanticEditPolicyClassName="DepartmentName2ItemSemanticEditPolicy"
notationViewFactoryClassName="DepartmentNameViewFactory"
elementIcon="true">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<viewmap
xsi:type="gmfgen:ParentAssignedViewmap"
getterName="getFigureDepartmentFigure_name"
figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
<modelFacet
xsi:type="gmfgen:FeatureLabelModelFacet"
parser="//@labelParsers/@implementations.0">
<metaFeatures
href="toe.genmodel#//toe/Department/name"/>
<editableMetaFeatures
href="toe.genmodel#//toe/Department/name"/>
</modelFacet>
</labels>
<labels
visualID="5004"
editPartClassName="WrappingLabel5EditPart"
itemSemanticEditPolicyClassName="WrappingLabel5ItemSemanticEditPolicy"
notationViewFactoryClassName="DepartmentLabelViewFactory"
readOnly="true">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<viewmap
xsi:type="gmfgen:ParentAssignedViewmap"
getterName="getFigureDepartmentFigure_ocl_gmf"
figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
<attributes
xsi:type="gmfgen:StyleAttributes"
fixedForeground="true"/>
</viewmap>
<modelFacet
xsi:type="gmfgen:ExpressionLabelModelFacet"
parser="//@labelParsers/@implementations.1"/>
</labels>
<labels
visualID="5005"
editPartClassName="WrappingLabel6EditPart"
itemSemanticEditPolicyClassName="WrappingLabel6ItemSemanticEditPolicy"
notationViewFactoryClassName="DepartmentLabelViewFactory"
readOnly="true">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<viewmap
xsi:type="gmfgen:ParentAssignedViewmap"
getterName="getFigureDepartmentFigure_ocl_ia"
figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
<attributes
xsi:type="gmfgen:StyleAttributes"
fixedForeground="true"/>
</viewmap>
<modelFacet
xsi:type="gmfgen:ExpressionLabelModelFacet"
parser="//@labelParsers/@implementations.2"/>
</labels>
</childNodes>
<topLevelNodes
visualID="2001"
editPartClassName="EmployeeEditPart"
itemSemanticEditPolicyClassName="EmployeeItemSemanticEditPolicy"
notationViewFactoryClassName="EmployeeViewFactory"
canonicalEditPolicyClassName="EmployeeCanonicalEditPolicy"
graphicalNodeEditPolicyClassName="EmployeeGraphicalNodeEditPolicy"
createCommandClassName="EmployeeCreateCommand">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<elementType
xsi:type="gmfgen:MetamodelType"
editHelperClassName="EmployeeEditHelper"/>
<viewmap
xsi:type="gmfgen:InnerClassViewmap"
className="EmployeeFigure"
classBody="&#xA;/**&#xA; * @generated&#xA; */&#xA;public class EmployeeFigure extends org.eclipse.draw2d.RoundedRectangle {&#xA;&#xA;&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;private org.eclipse.gmf.examples.ocldriven.diagram.figures.StickManWithNumber fInnerEmployeeFigure; &#xA;&#xA;&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;public EmployeeFigure() {&#xA;&#x9;&#x9;&#xA;&#x9;org.eclipse.draw2d.BorderLayout layoutThis = new org.eclipse.draw2d.BorderLayout();&#xA;&#x9;this.setLayoutManager(layoutThis);&#xA;&#xA;&#x9;&#x9;this.setCornerDimensions(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(8)&#xA;, getMapMode().DPtoLP(8)&#xA;));&#xA;&#x9;this.setBackgroundColor(org.eclipse.draw2d.ColorConstants.green);&#xA;&#xA;this.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(10)&#xA;, getMapMode().DPtoLP(10)&#xA;, getMapMode().DPtoLP(10)&#xA;, getMapMode().DPtoLP(10)&#xA;));&#xA;&#x9;&#x9;createContents();&#xA;&#x9;}&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;private void createContents(){&#xA;&#xA;&#xA;org.eclipse.draw2d.RectangleFigure employeeMiddleFigure0 = new org.eclipse.draw2d.RectangleFigure();&#xA;&#xA;&#xA;employeeMiddleFigure0.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(10)&#xA;, getMapMode().DPtoLP(10)&#xA;, getMapMode().DPtoLP(10)&#xA;, getMapMode().DPtoLP(10)&#xA;));&#xA;&#xA;this.add(employeeMiddleFigure0, org.eclipse.draw2d.BorderLayout.CENTER);&#xA;&#xA;&#x9;org.eclipse.draw2d.BorderLayout layoutEmployeeMiddleFigure0 = new org.eclipse.draw2d.BorderLayout();&#xA;&#x9;employeeMiddleFigure0.setLayoutManager(layoutEmployeeMiddleFigure0);&#xA;&#xA;&#xA;&#xA;fInnerEmployeeFigure = new org.eclipse.gmf.examples.ocldriven.diagram.figures.StickManWithNumber();&#xA;&#xA;&#xA;&#xA;&#xA;employeeMiddleFigure0.add(fInnerEmployeeFigure, org.eclipse.draw2d.BorderLayout.CENTER);&#xA;&#xA;&#xA;&#xA;&#x9;}&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;public org.eclipse.gmf.examples.ocldriven.diagram.figures.StickManWithNumber getInnerEmployeeFigure() {&#xA;&#x9;&#x9;return fInnerEmployeeFigure;&#xA;&#x9;}&#xA;&#xA;&#xA;}&#xA;&#xA;">
<attributes
xsi:type="gmfgen:StyleAttributes"
fixedBackground="true"/>
</viewmap>
<behaviour
xsi:type="gmfgen:GenVisualEffect"
key="org.eclipse.gmf.examples.ocldriven.toe.diagram.edit.policies.EmployeePinCounter2001Policy.KEY"
editPolicyQualifiedClassName="org.eclipse.gmf.examples.ocldriven.toe.diagram.edit.policies.EmployeePinCounter2001Policy"
name="EmployeePinCounter"
pinKind="CustomPin"
operationName="getInnerEmployeeFigure().setCounter"
operationType="Integer"
oclExpression="self.projects->size()"/>
<behaviour
xsi:type="gmfgen:GenVisualEffect"
key="org.eclipse.gmf.examples.ocldriven.toe.diagram.edit.policies.EmployeePinVisible2001Policy.KEY"
editPolicyQualifiedClassName="org.eclipse.gmf.examples.ocldriven.toe.diagram.edit.policies.EmployeePinVisible2001Policy"
name="EmployeePinVisible"
pinKind="VisiblePin"
operationName="getInnerEmployeeFigure().setVisible"
operationType="Boolean"
oclExpression="self.projects->size() &lt;> 0"/>
<modelFacet
modelElementSelector="//@expressionProviders/@providers.0/@expressions.0">
<metaClass
href="toe.genmodel#//toe/Employee"/>
<containmentMetaFeature
href="toe.genmodel#//toe/AllHolder/all"/>
<childMetaFeature
href="toe.genmodel#//toe/AllHolder/all"/>
</modelFacet>
<labels
xsi:type="gmfgen:GenExternalNodeLabel"
visualID="5001"
editPartClassName="EmployeeNameEditPart"
itemSemanticEditPolicyClassName="EmployeeNameItemSemanticEditPolicy"
notationViewFactoryClassName="EmployeeNameViewFactory"
elementIcon="true">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<viewmap
xsi:type="gmfgen:FigureViewmap"
figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
<modelFacet
xsi:type="gmfgen:FeatureLabelModelFacet"
parser="//@labelParsers/@implementations.0">
<metaFeatures
href="toe.genmodel#//toe/Employee/name"/>
<editableMetaFeatures
href="toe.genmodel#//toe/Employee/name"/>
</modelFacet>
</labels>
</topLevelNodes>
<topLevelNodes
visualID="2002"
editPartClassName="DepartmentEditPart"
itemSemanticEditPolicyClassName="DepartmentItemSemanticEditPolicy"
notationViewFactoryClassName="DepartmentViewFactory"
canonicalEditPolicyClassName="DepartmentCanonicalEditPolicy"
compartments="//@diagram/@compartments.0"
graphicalNodeEditPolicyClassName="DepartmentGraphicalNodeEditPolicy"
createCommandClassName="DepartmentCreateCommand">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<elementType
xsi:type="gmfgen:MetamodelType"
editHelperClassName="DepartmentEditHelper"/>
<viewmap
xsi:type="gmfgen:InnerClassViewmap"
className="DepartmentFigure"
classBody="&#xA;/**&#xA; * @generated&#xA; */&#xA;public class DepartmentFigure extends org.eclipse.draw2d.RectangleFigure {&#xA;&#xA;&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;private org.eclipse.draw2d.RectangleFigure fFigureDepartmentFigure_content_pane; &#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;private org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel fFigureDepartmentFigure_name; &#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;private org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel fFigureDepartmentFigure_ocl_gmf; &#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;private org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel fFigureDepartmentFigure_ocl_ia; &#xA;&#xA;&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;public DepartmentFigure() {&#xA;&#x9;&#x9;&#xA;&#x9;org.eclipse.draw2d.BorderLayout layoutThis = new org.eclipse.draw2d.BorderLayout();&#xA;&#x9;this.setLayoutManager(layoutThis);&#xA;&#xA;&#x9;&#x9;&#x9;&#x9;createContents();&#xA;&#x9;}&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;private void createContents(){&#xA;&#xA;&#xA;org.eclipse.draw2d.RectangleFigure departmentFigure_name_container0 = new org.eclipse.draw2d.RectangleFigure();&#xA;&#xA;&#xA;this.add(departmentFigure_name_container0, org.eclipse.draw2d.BorderLayout.TOP);&#xA;&#xA;&#x9;org.eclipse.draw2d.ToolbarLayout layoutDepartmentFigure_name_container0 = new org.eclipse.draw2d.ToolbarLayout();&#xA;&#x9;layoutDepartmentFigure_name_container0.setStretchMinorAxis(false);&#xA;&#x9;layoutDepartmentFigure_name_container0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER&#xA;);&#xA;&#xA;&#x9;layoutDepartmentFigure_name_container0.setSpacing(5);&#xA;&#x9;layoutDepartmentFigure_name_container0.setVertical(true);&#xA;&#xA;&#x9;departmentFigure_name_container0.setLayoutManager(layoutDepartmentFigure_name_container0);&#xA;&#xA;&#xA;&#xA;fFigureDepartmentFigure_name = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel();&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;fFigureDepartmentFigure_name.setAlignment(&#xA;org.eclipse.draw2d.PositionConstants.CENTER);&#xA;&#xA;&#xA;&#xA;fFigureDepartmentFigure_name.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(3)&#xA;, getMapMode().DPtoLP(10)&#xA;, getMapMode().DPtoLP(3)&#xA;, getMapMode().DPtoLP(10)&#xA;));&#xA;&#xA;departmentFigure_name_container0.add(fFigureDepartmentFigure_name);&#xA;&#xA;&#xA;&#xA;&#xA;fFigureDepartmentFigure_content_pane = new org.eclipse.draw2d.RectangleFigure();&#xA;&#xA;&#xA;this.add(fFigureDepartmentFigure_content_pane, org.eclipse.draw2d.BorderLayout.CENTER);&#xA;fFigureDepartmentFigure_content_pane.setLayoutManager(new org.eclipse.draw2d.StackLayout());&#xA;&#xA;&#xA;&#xA;org.eclipse.draw2d.RectangleFigure departmentFigure_labels_container0 = new org.eclipse.draw2d.RectangleFigure();&#xA;&#xA;&#xA;departmentFigure_labels_container0.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(2)&#xA;, getMapMode().DPtoLP(2)&#xA;, getMapMode().DPtoLP(2)&#xA;, getMapMode().DPtoLP(2)&#xA;));&#xA;&#xA;this.add(departmentFigure_labels_container0, org.eclipse.draw2d.BorderLayout.BOTTOM);&#xA;&#xA;&#x9;org.eclipse.draw2d.ToolbarLayout layoutDepartmentFigure_labels_container0 = new org.eclipse.draw2d.ToolbarLayout();&#xA;&#x9;layoutDepartmentFigure_labels_container0.setStretchMinorAxis(false);&#xA;&#x9;layoutDepartmentFigure_labels_container0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER&#xA;);&#xA;&#xA;&#x9;layoutDepartmentFigure_labels_container0.setSpacing(5);&#xA;&#x9;layoutDepartmentFigure_labels_container0.setVertical(true);&#xA;&#xA;&#x9;departmentFigure_labels_container0.setLayoutManager(layoutDepartmentFigure_labels_container0);&#xA;&#xA;&#xA;&#xA;org.eclipse.draw2d.RectangleFigure departmentFigure_firstRow1 = new org.eclipse.draw2d.RectangleFigure();&#xA;&#xA;departmentFigure_firstRow1.setOutline(false);&#xA;&#xA;departmentFigure_labels_container0.add(departmentFigure_firstRow1);&#xA;&#xA;&#x9;org.eclipse.draw2d.ToolbarLayout layoutDepartmentFigure_firstRow1 = new org.eclipse.draw2d.ToolbarLayout();&#xA;&#x9;layoutDepartmentFigure_firstRow1.setStretchMinorAxis(false);&#xA;&#x9;layoutDepartmentFigure_firstRow1.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER&#xA;);&#xA;&#xA;&#x9;layoutDepartmentFigure_firstRow1.setSpacing(5);&#xA;&#x9;layoutDepartmentFigure_firstRow1.setVertical(false);&#xA;&#xA;&#x9;departmentFigure_firstRow1.setLayoutManager(layoutDepartmentFigure_firstRow1);&#xA;&#xA;&#xA;&#xA;org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel departmentFigure_fixed_total_salary_gmf2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel();&#xA;&#xA;departmentFigure_fixed_total_salary_gmf2.setText(&quot;Total Salary (GMF):&quot;);&#xA;&#xA;departmentFigure_fixed_total_salary_gmf2.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(3)&#xA;, getMapMode().DPtoLP(10)&#xA;, getMapMode().DPtoLP(3)&#xA;, getMapMode().DPtoLP(10)&#xA;));&#xA;&#xA;departmentFigure_firstRow1.add(departmentFigure_fixed_total_salary_gmf2);&#xA;&#xA;&#xA;&#xA;fFigureDepartmentFigure_ocl_gmf = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel();&#xA;&#xA;fFigureDepartmentFigure_ocl_gmf.setText(&quot;&lt;gmf>&quot;);&#xA;&#x9;fFigureDepartmentFigure_ocl_gmf.setForegroundColor(org.eclipse.draw2d.ColorConstants.red);&#xA;&#xA;fFigureDepartmentFigure_ocl_gmf.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(3)&#xA;, getMapMode().DPtoLP(10)&#xA;, getMapMode().DPtoLP(3)&#xA;, getMapMode().DPtoLP(10)&#xA;));&#xA;&#xA;departmentFigure_firstRow1.add(fFigureDepartmentFigure_ocl_gmf);&#xA;&#xA;&#xA;&#xA;&#xA;org.eclipse.draw2d.RectangleFigure departmentFigure_secondRow1 = new org.eclipse.draw2d.RectangleFigure();&#xA;&#xA;departmentFigure_secondRow1.setOutline(false);&#xA;&#xA;departmentFigure_labels_container0.add(departmentFigure_secondRow1);&#xA;&#xA;&#x9;org.eclipse.draw2d.ToolbarLayout layoutDepartmentFigure_secondRow1 = new org.eclipse.draw2d.ToolbarLayout();&#xA;&#x9;layoutDepartmentFigure_secondRow1.setStretchMinorAxis(false);&#xA;&#x9;layoutDepartmentFigure_secondRow1.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER&#xA;);&#xA;&#xA;&#x9;layoutDepartmentFigure_secondRow1.setSpacing(5);&#xA;&#x9;layoutDepartmentFigure_secondRow1.setVertical(false);&#xA;&#xA;&#x9;departmentFigure_secondRow1.setLayoutManager(layoutDepartmentFigure_secondRow1);&#xA;&#xA;&#xA;&#xA;org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel departmentFigure_fixed_total_salary_ia2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel();&#xA;&#xA;departmentFigure_fixed_total_salary_ia2.setText(&quot;Total Salary (IA):&quot;);&#xA;&#xA;departmentFigure_fixed_total_salary_ia2.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(3)&#xA;, getMapMode().DPtoLP(10)&#xA;, getMapMode().DPtoLP(3)&#xA;, getMapMode().DPtoLP(10)&#xA;));&#xA;&#xA;departmentFigure_secondRow1.add(departmentFigure_fixed_total_salary_ia2);&#xA;&#xA;&#xA;&#xA;fFigureDepartmentFigure_ocl_ia = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel();&#xA;&#xA;fFigureDepartmentFigure_ocl_ia.setText(&quot;&lt;ia>&quot;);&#xA;&#x9;fFigureDepartmentFigure_ocl_ia.setForegroundColor(org.eclipse.draw2d.ColorConstants.yellow);&#xA;&#xA;fFigureDepartmentFigure_ocl_ia.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(3)&#xA;, getMapMode().DPtoLP(10)&#xA;, getMapMode().DPtoLP(3)&#xA;, getMapMode().DPtoLP(10)&#xA;));&#xA;&#xA;departmentFigure_secondRow1.add(fFigureDepartmentFigure_ocl_ia);&#xA;&#xA;&#xA;&#xA;&#xA;&#x9;}&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;public org.eclipse.draw2d.RectangleFigure getFigureDepartmentFigure_content_pane() {&#xA;&#x9;&#x9;return fFigureDepartmentFigure_content_pane;&#xA;&#x9;}&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;public org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel getFigureDepartmentFigure_name() {&#xA;&#x9;&#x9;return fFigureDepartmentFigure_name;&#xA;&#x9;}&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;public org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel getFigureDepartmentFigure_ocl_gmf() {&#xA;&#x9;&#x9;return fFigureDepartmentFigure_ocl_gmf;&#xA;&#x9;}&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;public org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel getFigureDepartmentFigure_ocl_ia() {&#xA;&#x9;&#x9;return fFigureDepartmentFigure_ocl_ia;&#xA;&#x9;}&#xA;&#xA;&#xA;}&#xA;&#xA;"/>
<behaviour
xsi:type="gmfgen:GenVisualEffect"
key="org.eclipse.gmf.examples.ocldriven.toe.diagram.edit.policies.DepartmentPinForeground2002Policy.KEY"
editPolicyQualifiedClassName="org.eclipse.gmf.examples.ocldriven.toe.diagram.edit.policies.DepartmentPinForeground2002Policy"
name="DepartmentPinForeground"
pinKind="ColorPin"
operationName="setForegroundColor"
operationType="Tuple(red:Integer, green:Integer, blue:Integer)"
oclExpression="--IA&#xD;&#xA;let totalSalary : Integer = self.employees->iterate(&#xD;&#xA;e: Employee; sum : Integer = 0 | &#xD;&#xA;sum + e.salary&#xD;&#xA;) in &#xD;&#xA;if totalSalary > 10000 &#xD;&#xA;then Tuple {red: Integer = 255, green: Integer = 0, blue: Integer = 0} &#xD;&#xA;else Tuple {red: Integer = 0, green: Integer = 255, blue: Integer = 0} &#xD;&#xA;endif"/>
<modelFacet>
<metaClass
href="toe.genmodel#//toe/Department"/>
<containmentMetaFeature
href="toe.genmodel#//toe/AllHolder/all"/>
<childMetaFeature
href="toe.genmodel#//toe/AllHolder/all"/>
</modelFacet>
<labels
visualID="5006"
editPartClassName="DepartmentNameEditPart"
itemSemanticEditPolicyClassName="DepartmentNameItemSemanticEditPolicy"
notationViewFactoryClassName="DepartmentNameViewFactory"
elementIcon="true">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<viewmap
xsi:type="gmfgen:ParentAssignedViewmap"
getterName="getFigureDepartmentFigure_name"
figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
<modelFacet
xsi:type="gmfgen:FeatureLabelModelFacet"
parser="//@labelParsers/@implementations.0">
<metaFeatures
href="toe.genmodel#//toe/Department/name"/>
<editableMetaFeatures
href="toe.genmodel#//toe/Department/name"/>
</modelFacet>
</labels>
<labels
visualID="5007"
editPartClassName="WrappingLabelEditPart"
itemSemanticEditPolicyClassName="WrappingLabelItemSemanticEditPolicy"
notationViewFactoryClassName="DepartmentLabelViewFactory"
readOnly="true">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<viewmap
xsi:type="gmfgen:ParentAssignedViewmap"
getterName="getFigureDepartmentFigure_ocl_gmf"
figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
<attributes
xsi:type="gmfgen:StyleAttributes"
fixedForeground="true"/>
</viewmap>
<modelFacet
xsi:type="gmfgen:ExpressionLabelModelFacet"
parser="//@labelParsers/@implementations.3"/>
</labels>
<labels
visualID="5008"
editPartClassName="WrappingLabel2EditPart"
itemSemanticEditPolicyClassName="WrappingLabel2ItemSemanticEditPolicy"
notationViewFactoryClassName="DepartmentLabelViewFactory"
readOnly="true">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<viewmap
xsi:type="gmfgen:ParentAssignedViewmap"
getterName="getFigureDepartmentFigure_ocl_ia"
figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
<attributes
xsi:type="gmfgen:StyleAttributes"
fixedForeground="true"/>
</viewmap>
<modelFacet
xsi:type="gmfgen:ExpressionLabelModelFacet"
parser="//@labelParsers/@implementations.4"/>
</labels>
</topLevelNodes>
<topLevelNodes
visualID="2003"
editPartClassName="ProjectEditPart"
itemSemanticEditPolicyClassName="ProjectItemSemanticEditPolicy"
notationViewFactoryClassName="ProjectViewFactory"
canonicalEditPolicyClassName="ProjectCanonicalEditPolicy"
graphicalNodeEditPolicyClassName="ProjectGraphicalNodeEditPolicy"
createCommandClassName="ProjectCreateCommand">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<elementType
xsi:type="gmfgen:MetamodelType"
editHelperClassName="ProjectEditHelper"/>
<viewmap
xsi:type="gmfgen:InnerClassViewmap"
className="ProjectFigure"
classBody="&#xA;/**&#xA; * @generated&#xA; */&#xA;public class ProjectFigure extends org.eclipse.draw2d.RoundedRectangle {&#xA;&#xA;&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;private org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel fFigureProjectFigure_name; &#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;private org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel fFigureProjectFigure_ocl_gmf; &#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;private org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel fFigureProjectFigure_ocl_ia; &#xA;&#xA;&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;public ProjectFigure() {&#xA;&#x9;&#x9;&#xA;&#x9;org.eclipse.draw2d.BorderLayout layoutThis = new org.eclipse.draw2d.BorderLayout();&#xA;&#x9;layoutThis.setHorizontalSpacing(4);// TODO mapMode?&#xA;&#x9;layoutThis.setVerticalSpacing(4);&#xA;&#x9;this.setLayoutManager(layoutThis);&#xA;&#xA;&#x9;&#x9;this.setCornerDimensions(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(12)&#xA;, getMapMode().DPtoLP(12)&#xA;));&#xA;this.setLineWidth(2);&#xA;&#x9;this.setForegroundColor(org.eclipse.draw2d.ColorConstants.green);&#xA;&#xA;this.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(12)&#xA;, getMapMode().DPtoLP(12)&#xA;, getMapMode().DPtoLP(12)&#xA;, getMapMode().DPtoLP(12)&#xA;));&#xA;&#x9;&#x9;createContents();&#xA;&#x9;}&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;private void createContents(){&#xA;&#xA;&#xA;org.eclipse.draw2d.RectangleFigure projectFigure_name_container0 = new org.eclipse.draw2d.RectangleFigure();&#xA;&#xA;projectFigure_name_container0.setOutline(false);&#xA;&#xA;this.add(projectFigure_name_container0, org.eclipse.draw2d.BorderLayout.TOP);&#xA;&#xA;&#x9;org.eclipse.draw2d.ToolbarLayout layoutProjectFigure_name_container0 = new org.eclipse.draw2d.ToolbarLayout();&#xA;&#x9;layoutProjectFigure_name_container0.setStretchMinorAxis(false);&#xA;&#x9;layoutProjectFigure_name_container0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER&#xA;);&#xA;&#xA;&#x9;layoutProjectFigure_name_container0.setSpacing(5);&#xA;&#x9;layoutProjectFigure_name_container0.setVertical(true);&#xA;&#xA;&#x9;projectFigure_name_container0.setLayoutManager(layoutProjectFigure_name_container0);&#xA;&#xA;&#xA;&#xA;fFigureProjectFigure_name = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel();&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;fFigureProjectFigure_name.setAlignment(&#xA;org.eclipse.draw2d.PositionConstants.CENTER);&#xA;&#xA;&#xA;&#xA;fFigureProjectFigure_name.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(3)&#xA;, getMapMode().DPtoLP(10)&#xA;, getMapMode().DPtoLP(3)&#xA;, getMapMode().DPtoLP(10)&#xA;));&#xA;&#xA;projectFigure_name_container0.add(fFigureProjectFigure_name);&#xA;&#xA;&#xA;&#xA;&#xA;org.eclipse.draw2d.RectangleFigure projectFigure_content_pane0 = new org.eclipse.draw2d.RectangleFigure();&#xA;&#xA;projectFigure_content_pane0.setOutline(false);&#xA;&#xA;this.add(projectFigure_content_pane0, org.eclipse.draw2d.BorderLayout.CENTER);&#xA;&#xA;&#x9;org.eclipse.draw2d.ToolbarLayout layoutProjectFigure_content_pane0 = new org.eclipse.draw2d.ToolbarLayout();&#xA;&#x9;layoutProjectFigure_content_pane0.setStretchMinorAxis(false);&#xA;&#x9;layoutProjectFigure_content_pane0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER&#xA;);&#xA;&#xA;&#x9;layoutProjectFigure_content_pane0.setSpacing(5);&#xA;&#x9;layoutProjectFigure_content_pane0.setVertical(true);&#xA;&#xA;&#x9;projectFigure_content_pane0.setLayoutManager(layoutProjectFigure_content_pane0);&#xA;&#xA;&#xA;&#xA;fFigureProjectFigure_ocl_gmf = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel();&#xA;&#xA;fFigureProjectFigure_ocl_gmf.setText(&quot;&lt;gmf>&quot;);&#xA;&#xA;fFigureProjectFigure_ocl_gmf.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(5)&#xA;, getMapMode().DPtoLP(10)&#xA;, getMapMode().DPtoLP(5)&#xA;, getMapMode().DPtoLP(10)&#xA;));&#xA;&#xA;projectFigure_content_pane0.add(fFigureProjectFigure_ocl_gmf);&#xA;&#xA;&#xA;&#xA;fFigureProjectFigure_ocl_ia = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel();&#xA;&#xA;fFigureProjectFigure_ocl_ia.setText(&quot;&lt;ia>&quot;);&#xA;&#xA;fFigureProjectFigure_ocl_ia.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(5)&#xA;, getMapMode().DPtoLP(10)&#xA;, getMapMode().DPtoLP(5)&#xA;, getMapMode().DPtoLP(10)&#xA;));&#xA;&#xA;projectFigure_content_pane0.add(fFigureProjectFigure_ocl_ia);&#xA;&#xA;&#xA;&#xA;&#x9;}&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;public org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel getFigureProjectFigure_name() {&#xA;&#x9;&#x9;return fFigureProjectFigure_name;&#xA;&#x9;}&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;public org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel getFigureProjectFigure_ocl_gmf() {&#xA;&#x9;&#x9;return fFigureProjectFigure_ocl_gmf;&#xA;&#x9;}&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;public org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel getFigureProjectFigure_ocl_ia() {&#xA;&#x9;&#x9;return fFigureProjectFigure_ocl_ia;&#xA;&#x9;}&#xA;&#xA;&#xA;}&#xA;&#xA;">
<attributes
xsi:type="gmfgen:StyleAttributes"
fixedForeground="true"/>
<attributes
xsi:type="gmfgen:DefaultSizeAttributes"
width="400"
height="50"/>
</viewmap>
<modelFacet>
<metaClass
href="toe.genmodel#//toe/Project"/>
<containmentMetaFeature
href="toe.genmodel#//toe/AllHolder/all"/>
<childMetaFeature
href="toe.genmodel#//toe/AllHolder/all"/>
</modelFacet>
<labels
visualID="5009"
editPartClassName="ProjectNameEditPart"
itemSemanticEditPolicyClassName="ProjectNameItemSemanticEditPolicy"
notationViewFactoryClassName="ProjectNameViewFactory"
elementIcon="true">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<viewmap
xsi:type="gmfgen:ParentAssignedViewmap"
getterName="getFigureProjectFigure_name"
figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
<modelFacet
xsi:type="gmfgen:FeatureLabelModelFacet"
parser="//@labelParsers/@implementations.0">
<metaFeatures
href="toe.genmodel#//toe/Project/name"/>
<editableMetaFeatures
href="toe.genmodel#//toe/Project/name"/>
</modelFacet>
</labels>
<labels
visualID="5010"
editPartClassName="WrappingLabel3EditPart"
itemSemanticEditPolicyClassName="WrappingLabel3ItemSemanticEditPolicy"
notationViewFactoryClassName="ProjectLabelViewFactory"
readOnly="true"
elementIcon="true">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<viewmap
xsi:type="gmfgen:ParentAssignedViewmap"
getterName="getFigureProjectFigure_ocl_gmf"
figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
<modelFacet
xsi:type="gmfgen:ExpressionLabelModelFacet"
parser="//@labelParsers/@implementations.5"/>
</labels>
<labels
visualID="5011"
editPartClassName="WrappingLabel4EditPart"
itemSemanticEditPolicyClassName="WrappingLabel4ItemSemanticEditPolicy"
notationViewFactoryClassName="ProjectLabelViewFactory"
readOnly="true"
elementIcon="true">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<viewmap
xsi:type="gmfgen:ParentAssignedViewmap"
getterName="getFigureProjectFigure_ocl_ia"
figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
<modelFacet
xsi:type="gmfgen:ExpressionLabelModelFacet"
parser="//@labelParsers/@implementations.6"/>
</labels>
</topLevelNodes>
<topLevelNodes
visualID="2004"
editPartClassName="ManagerEditPart"
itemSemanticEditPolicyClassName="ManagerItemSemanticEditPolicy"
notationViewFactoryClassName="ManagerViewFactory"
canonicalEditPolicyClassName="ManagerCanonicalEditPolicy"
graphicalNodeEditPolicyClassName="ManagerGraphicalNodeEditPolicy"
createCommandClassName="ManagerCreateCommand">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<elementType
xsi:type="gmfgen:MetamodelType"
editHelperClassName="ManagerEditHelper"/>
<viewmap
xsi:type="gmfgen:InnerClassViewmap"
className="ManagerFigure"
classBody="&#xA;/**&#xA; * @generated&#xA; */&#xA;public class ManagerFigure extends org.eclipse.gmf.examples.ocldriven.diagram.figures.StickManWithNumber {&#xA;&#xA;&#xA;&#xA;&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;public ManagerFigure() {&#xA;&#x9;&#x9;&#x9;&#x9;&#xA;&#xA;&#x9;this.setForegroundColor(org.eclipse.draw2d.ColorConstants.red);&#xA;&#x9;this.setBackgroundColor(org.eclipse.draw2d.ColorConstants.yellow);&#xA;&#x9;}&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;}&#xA;&#xA;">
<attributes
xsi:type="gmfgen:StyleAttributes"
fixedForeground="true"
fixedBackground="true"/>
</viewmap>
<behaviour
xsi:type="gmfgen:GenVisualEffect"
key="org.eclipse.gmf.examples.ocldriven.toe.diagram.edit.policies.ManagerPinBackgroundRGB2004Policy.KEY"
editPolicyQualifiedClassName="org.eclipse.gmf.examples.ocldriven.toe.diagram.edit.policies.ManagerPinBackgroundRGB2004Policy"
name="ManagerPinBackgroundRGB"
pinKind="CustomPin"
operationName="setBackgroundRGB"
operationType="Tuple(red:Integer, green:Integer, blue:Integer)"
oclExpression="if self.leads->size() = 0 &#xD;&#xA;then Tuple {red: Integer = 0, green: Integer = 0, blue: Integer = 255} &#xD;&#xA;else Tuple {red: Integer = 255, green: Integer = 255, blue: Integer = 0} &#xD;&#xA;endif"/>
<modelFacet>
<metaClass
href="toe.genmodel#//toe/Manager"/>
<containmentMetaFeature
href="toe.genmodel#//toe/AllHolder/all"/>
<childMetaFeature
href="toe.genmodel#//toe/AllHolder/all"/>
</modelFacet>
<labels
xsi:type="gmfgen:GenExternalNodeLabel"
visualID="5012"
editPartClassName="ManagerNameEditPart"
itemSemanticEditPolicyClassName="ManagerNameItemSemanticEditPolicy"
notationViewFactoryClassName="ManagerNameViewFactory"
elementIcon="true">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<viewmap
xsi:type="gmfgen:FigureViewmap"
figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
<modelFacet
xsi:type="gmfgen:FeatureLabelModelFacet"
parser="//@labelParsers/@implementations.0">
<metaFeatures
href="toe.genmodel#//toe/Employee/name"/>
<editableMetaFeatures
href="toe.genmodel#//toe/Employee/name"/>
</modelFacet>
</labels>
</topLevelNodes>
<links
visualID="4001"
editPartClassName="ManagerManagedDepartmentEditPart"
itemSemanticEditPolicyClassName="ManagerManagedDepartmentItemSemanticEditPolicy"
notationViewFactoryClassName="ManagerManagedDepartmentViewFactory"
createCommandClassName="ManagerManagedDepartmentCreateCommand"
reorientCommandClassName="ManagerManagedDepartmentReorientCommand">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Edge"/>
<elementType
xsi:type="gmfgen:SpecializationType"/>
<viewmap
xsi:type="gmfgen:InnerClassViewmap"
className="ManagesDepartmentConnection"
classBody="&#xA;/**&#xA; * @generated&#xA; */&#xA;public class ManagesDepartmentConnection extends org.eclipse.gmf.runtime.draw2d.ui.figures.PolylineConnectionEx {&#xA;&#xA;&#xA;&#xA;&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;public ManagesDepartmentConnection() {&#xA;&#x9;&#x9;&#x9;this.setForegroundColor(org.eclipse.draw2d.ColorConstants.blue);&#xA;&#xA;&#x9;}&#xA;&#xA;&#xA;&#xA;&#xA;}&#xA;&#xA;">
<attributes
xsi:type="gmfgen:StyleAttributes"
fixedForeground="true"/>
</viewmap>
<modelFacet
xsi:type="gmfgen:FeatureLinkModelFacet">
<metaFeature
href="toe.genmodel#//toe/Manager/managedDepartment"/>
</modelFacet>
</links>
<links
visualID="4002"
editPartClassName="ManagerLeadsEditPart"
itemSemanticEditPolicyClassName="ManagerLeadsItemSemanticEditPolicy"
notationViewFactoryClassName="ManagerLeadsViewFactory"
createCommandClassName="ManagerLeadsCreateCommand"
reorientCommandClassName="ManagerLeadsReorientCommand">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Edge"/>
<elementType
xsi:type="gmfgen:SpecializationType"/>
<viewmap
xsi:type="gmfgen:InnerClassViewmap"
className="LeadsProjectConnection"
classBody="&#xA;/**&#xA; * @generated&#xA; */&#xA;public class LeadsProjectConnection extends org.eclipse.gmf.runtime.draw2d.ui.figures.PolylineConnectionEx {&#xA;&#xA;&#xA;&#xA;&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;public LeadsProjectConnection() {&#xA;&#x9;&#x9;this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_DASH);&#xA;&#xA;&#x9;}&#xA;&#xA;&#xA;&#xA;&#xA;}&#xA;&#xA;"/>
<behaviour
xsi:type="gmfgen:GenVisualEffect"
key="org.eclipse.gmf.examples.ocldriven.toe.diagram.edit.policies.LeadsProjectConnectionPinForeground4002Policy.KEY"
editPolicyQualifiedClassName="org.eclipse.gmf.examples.ocldriven.toe.diagram.edit.policies.LeadsProjectConnectionPinForeground4002Policy"
name="LeadsProjectConnectionPinForeground"
pinKind="ColorPin"
operationName="setForegroundColor"
operationType="Tuple(red:Integer, green:Integer, blue:Integer)"
oclExpression="if _src.leads->size() > 2&#xD;&#xA;then Tuple {red: Integer = 255, green: Integer = 128, blue: Integer = 0} &#xD;&#xA;else Tuple {red: Integer = 255, green: Integer =0, blue: Integer = 0} &#xD;&#xA;endif"/>
<behaviour
xsi:type="gmfgen:GenVisualEffect"
key="org.eclipse.gmf.examples.ocldriven.toe.diagram.edit.policies.LeadsProjectConnectionPinLineWidth4002Policy.KEY"
editPolicyQualifiedClassName="org.eclipse.gmf.examples.ocldriven.toe.diagram.edit.policies.LeadsProjectConnectionPinLineWidth4002Policy"
name="LeadsProjectConnectionPinLineWidth"
pinKind="CustomPin"
operationName="setLineWidth"
operationType="Integer"
oclExpression="--IA&#xD;&#xA;if _src.leads->size() > 2&#xD;&#xA;then 3&#xD;&#xA;else 1&#xD;&#xA;endif"/>
<modelFacet
xsi:type="gmfgen:FeatureLinkModelFacet">
<metaFeature
href="toe.genmodel#//toe/Manager/leads"/>
</modelFacet>
</links>
<links
visualID="4003"
editPartClassName="ContributionEditPart"
itemSemanticEditPolicyClassName="ContributionItemSemanticEditPolicy"
notationViewFactoryClassName="ContributionViewFactory"
createCommandClassName="ContributionCreateCommand"
reorientCommandClassName="ContributionReorientCommand">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Edge"/>
<elementType
xsi:type="gmfgen:MetamodelType"
editHelperClassName="ContributionEditHelper"/>
<viewmap
xsi:type="gmfgen:InnerClassViewmap"
className="ContributionConnection"
classBody="&#xA;/**&#xA; * @generated&#xA; */&#xA;public class ContributionConnection extends org.eclipse.gmf.runtime.draw2d.ui.figures.PolylineConnectionEx {&#xA;&#xA;&#xA;&#xA;&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;public ContributionConnection() {&#xA;&#x9;&#x9;&#xA;&#x9;}&#xA;&#xA;&#xA;&#xA;&#xA;}&#xA;&#xA;"/>
<behaviour
xsi:type="gmfgen:GenVisualEffect"
key="org.eclipse.gmf.examples.ocldriven.toe.diagram.edit.policies.ContributionConnectionPinForeground4003Policy.KEY"
editPolicyQualifiedClassName="org.eclipse.gmf.examples.ocldriven.toe.diagram.edit.policies.ContributionConnectionPinForeground4003Policy"
name="ContributionConnectionPinForeground"
pinKind="ColorPin"
operationName="setForegroundColor"
operationType="Tuple(red:Integer, green:Integer, blue:Integer)"
oclExpression="if _src.contributions->size() > _dst.contributions->size()&#xD;&#xA;then Tuple {red: Integer = 0, green: Integer = 255, blue: Integer = 0} &#xD;&#xA;else Tuple {red: Integer = 0, green: Integer =0, blue: Integer = 255} &#xD;&#xA;endif"/>
<modelFacet
xsi:type="gmfgen:TypeLinkModelFacet">
<metaClass
href="toe.genmodel#//toe/Contribution"/>
<containmentMetaFeature
href="toe.genmodel#//toe/AllHolder/all"/>
<childMetaFeature
href="toe.genmodel#//toe/AllHolder/all"/>
<sourceMetaFeature
href="toe.genmodel#//toe/Contribution/employee"/>
<targetMetaFeature
href="toe.genmodel#//toe/Contribution/project"/>
</modelFacet>
</links>
<compartments
visualID="7001"
editPartClassName="DepartmentDepartment_staffEditPart"
itemSemanticEditPolicyClassName="DepartmentDepartment_staffItemSemanticEditPolicy"
notationViewFactoryClassName="DepartmentDepartment_staffViewFactory"
canonicalEditPolicyClassName="DepartmentDepartment_staffCanonicalEditPolicy"
childNodes="//@diagram/@childNodes.0 //@diagram/@childNodes.1"
title="Department_staff"
canCollapse="false"
needsTitle="false"
node="//@diagram/@topLevelNodes.1"
listLayout="false">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<viewmap
xsi:type="gmfgen:ParentAssignedViewmap"
getterName="getFigureDepartmentFigure_content_pane"
figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
</compartments>
<compartments
visualID="7002"
editPartClassName="DepartmentDepartment_staff2EditPart"
itemSemanticEditPolicyClassName="DepartmentDepartment_staff2ItemSemanticEditPolicy"
notationViewFactoryClassName="DepartmentDepartment_staffViewFactory"
canonicalEditPolicyClassName="DepartmentDepartment_staff2CanonicalEditPolicy"
childNodes="//@diagram/@childNodes.0 //@diagram/@childNodes.1"
title="Department_staff"
canCollapse="false"
needsTitle="false"
node="//@diagram/@childNodes.1"
listLayout="false">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<viewmap
xsi:type="gmfgen:ParentAssignedViewmap"
getterName="getFigureDepartmentFigure_content_pane"
figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
</compartments>
<palette>
<groups
title="Default"
description="Holds top-level non-container tools">
<entries
xsi:type="gmfgen:ToolEntry"
title="Employee"
description="Employee"
genNodes="//@diagram/@topLevelNodes.0 //@diagram/@childNodes.0"/>
<entries
xsi:type="gmfgen:ToolEntry"
title="Department"
genNodes="//@diagram/@topLevelNodes.1 //@diagram/@childNodes.1"/>
<entries
xsi:type="gmfgen:ToolEntry"
title="Project"
description="Project"
genNodes="//@diagram/@topLevelNodes.2"/>
<entries
xsi:type="gmfgen:ToolEntry"
title="Manager"
description="Manager"
genNodes="//@diagram/@topLevelNodes.3"/>
<entries
xsi:type="gmfgen:ToolEntry"
title="Manager's Link"
description="Manages the Department or Leads the Project"
genLinks="//@diagram/@links.0 //@diagram/@links.1"/>
<entries
xsi:type="gmfgen:ToolEntry"
title="Contribution"
description="Contribution of an employee to a project"
genLinks="//@diagram/@links.2"/>
</groups>
</palette>
<preferencePages
xsi:type="gmfgen:GenStandardPreferencePage"
iD="org.eclipse.gmf.examples.ocldriven.diagram.general"
name="TOE Diagram">
<children
xsi:type="gmfgen:GenStandardPreferencePage"
iD="org.eclipse.gmf.examples.ocldriven.diagram.appearance"
name="Appearance"
kind="Appearance"/>
<children
xsi:type="gmfgen:GenStandardPreferencePage"
iD="org.eclipse.gmf.examples.ocldriven.diagram.connections"
name="Connections"
kind="Connections"/>
<children
xsi:type="gmfgen:GenStandardPreferencePage"
iD="org.eclipse.gmf.examples.ocldriven.diagram.printing"
name="Printing"
kind="Printing"/>
<children
xsi:type="gmfgen:GenStandardPreferencePage"
iD="org.eclipse.gmf.examples.ocldriven.diagram.rulersAndGrid"
name="Rulers And Grid"
kind="RulersAndGrid"/>
</preferencePages>
</diagram>
<plugin>
<requiredPlugins>org.eclipse.gmf.tooling.runtime</requiredPlugins>
<requiredPlugins>org.eclipse.draw2d</requiredPlugins>
<requiredPlugins>org.eclipse.gmf.runtime.draw2d.ui</requiredPlugins>
</plugin>
<editor/>
<navigator>
<childReferences
child="//@diagram"/>
<childReferences
parent="//@diagram"
child="//@diagram/@topLevelNodes.0"/>
<childReferences
parent="//@diagram/@topLevelNodes.1"
child="//@diagram/@childNodes.0"/>
<childReferences
parent="//@diagram/@childNodes.1"
child="//@diagram/@childNodes.0"/>
<childReferences
parent="//@diagram/@childNodes.1"
child="//@diagram/@childNodes.1"/>
<childReferences
parent="//@diagram/@topLevelNodes.1"
child="//@diagram/@childNodes.1"/>
<childReferences
parent="//@diagram"
child="//@diagram/@topLevelNodes.1"/>
<childReferences
parent="//@diagram"
child="//@diagram/@topLevelNodes.2"/>
<childReferences
parent="//@diagram"
child="//@diagram/@topLevelNodes.3"/>
<childReferences
parent="//@diagram"
child="//@diagram/@links.0"
groupName="links"
groupIcon="icons/linksNavigatorGroup.gif"/>
<childReferences
parent="//@diagram/@links.0"
child="//@diagram/@topLevelNodes.1"
referenceType="out_target"
groupName="target"
groupIcon="icons/linkTargetNavigatorGroup.gif"/>
<childReferences
parent="//@diagram/@topLevelNodes.1"
child="//@diagram/@links.0"
referenceType="in_source"
groupName="incoming links"
groupIcon="icons/incomingLinksNavigatorGroup.gif"/>
<childReferences
parent="//@diagram/@links.0"
child="//@diagram/@childNodes.1"
referenceType="out_target"
groupName="target"
groupIcon="icons/linkTargetNavigatorGroup.gif"/>
<childReferences
parent="//@diagram/@childNodes.1"
child="//@diagram/@links.0"
referenceType="in_source"
groupName="incoming links"
groupIcon="icons/incomingLinksNavigatorGroup.gif"/>
<childReferences
parent="//@diagram/@links.0"
child="//@diagram/@topLevelNodes.3"
referenceType="in_source"
groupName="source"
groupIcon="icons/linkSourceNavigatorGroup.gif"/>
<childReferences
parent="//@diagram/@topLevelNodes.3"
child="//@diagram/@links.0"
referenceType="out_target"
groupName="outgoing links"
groupIcon="icons/outgoingLinksNavigatorGroup.gif"/>
<childReferences
parent="//@diagram"
child="//@diagram/@links.1"
groupName="links"
groupIcon="icons/linksNavigatorGroup.gif"/>
<childReferences
parent="//@diagram/@links.1"
child="//@diagram/@topLevelNodes.2"
referenceType="out_target"
groupName="target"
groupIcon="icons/linkTargetNavigatorGroup.gif"/>
<childReferences
parent="//@diagram/@topLevelNodes.2"
child="//@diagram/@links.1"
referenceType="in_source"
groupName="incoming links"
groupIcon="icons/incomingLinksNavigatorGroup.gif"/>
<childReferences
parent="//@diagram/@links.1"
child="//@diagram/@topLevelNodes.3"
referenceType="in_source"
groupName="source"
groupIcon="icons/linkSourceNavigatorGroup.gif"/>
<childReferences
parent="//@diagram/@topLevelNodes.3"
child="//@diagram/@links.1"
referenceType="out_target"
groupName="outgoing links"
groupIcon="icons/outgoingLinksNavigatorGroup.gif"/>
<childReferences
parent="//@diagram"
child="//@diagram/@links.2"
groupName="links"
groupIcon="icons/linksNavigatorGroup.gif"/>
<childReferences
parent="//@diagram/@links.2"
child="//@diagram/@topLevelNodes.2"
referenceType="out_target"
groupName="target"
groupIcon="icons/linkTargetNavigatorGroup.gif"/>
<childReferences
parent="//@diagram/@topLevelNodes.2"
child="//@diagram/@links.2"
referenceType="in_source"
groupName="incoming links"
groupIcon="icons/incomingLinksNavigatorGroup.gif"/>
<childReferences
parent="//@diagram/@links.2"
child="//@diagram/@topLevelNodes.0"
referenceType="in_source"
groupName="source"
groupIcon="icons/linkSourceNavigatorGroup.gif"/>
<childReferences
parent="//@diagram/@topLevelNodes.0"
child="//@diagram/@links.2"
referenceType="out_target"
groupName="outgoing links"
groupIcon="icons/outgoingLinksNavigatorGroup.gif"/>
<childReferences
parent="//@diagram/@links.2"
child="//@diagram/@topLevelNodes.3"
referenceType="in_source"
groupName="source"
groupIcon="icons/linkSourceNavigatorGroup.gif"/>
<childReferences
parent="//@diagram/@topLevelNodes.3"
child="//@diagram/@links.2"
referenceType="out_target"
groupName="outgoing links"
groupIcon="icons/outgoingLinksNavigatorGroup.gif"/>
<childReferences
parent="//@diagram/@links.2"
child="//@diagram/@childNodes.0"
referenceType="in_source"
groupName="source"
groupIcon="icons/linkSourceNavigatorGroup.gif"/>
<childReferences
parent="//@diagram/@childNodes.0"
child="//@diagram/@links.2"
referenceType="out_target"
groupName="outgoing links"
groupIcon="icons/outgoingLinksNavigatorGroup.gif"/>
</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="toe.genmodel#/"/>
<expressionProviders>
<providers
xsi:type="gmfgen:GenExpressionInterpreter">
<expressions
xsi:type="gmfgen:GenConstraint"
body="not self.oclIsKindOf(toe::Manager)"/>
<expressions
body="self.employees->iterate(&#xD;&#xA;&#x9;e: Employee; sum : Integer = 0 | &#xD;&#xA;&#x9;sum + e.salary&#xD;&#xA;)"/>
<expressions
body="--IA&#xD;&#xA;self.employees->iterate(&#xD;&#xA;&#x9;e: Employee; sum : Integer = 0 | &#xD;&#xA;&#x9;sum + e.salary&#xD;&#xA;)"/>
<expressions
body="if self.departmentWide &#xD;&#xA;then &#xD;&#xA;&#x9;self.lead.managedDepartment.employees.name&#xD;&#xA;else &#xD;&#xA;&#x9;self.projectTeam.name&#xD;&#xA;endif"/>
<expressions
body="--IA&#xD;&#xA;if self.departmentWide &#xD;&#xA;then &#xD;&#xA;&#x9;self.lead.managedDepartment.employees.name&#xD;&#xA;else &#xD;&#xA;&#x9;self.projectTeam.name&#xD;&#xA;endif"/>
</providers>
</expressionProviders>
<labelParsers
extensibleViaService="true">
<implementations
xsi:type="gmfgen:PredefinedParser"
uses="//@diagram/@topLevelNodes.0/@labels.0/@modelFacet //@diagram/@childNodes.0/@labels.0/@modelFacet //@diagram/@childNodes.1/@labels.0/@modelFacet //@diagram/@topLevelNodes.1/@labels.0/@modelFacet //@diagram/@topLevelNodes.2/@labels.0/@modelFacet //@diagram/@topLevelNodes.3/@labels.0/@modelFacet"/>
<implementations
xsi:type="gmfgen:ExpressionLabelParser"
uses="//@diagram/@childNodes.1/@labels.1/@modelFacet"
viewExpression="//@expressionProviders/@providers.0/@expressions.1">
<expressionContext
href="toe.genmodel#//toe/Department"/>
</implementations>
<implementations
xsi:type="gmfgen:ExpressionLabelParser"
uses="//@diagram/@childNodes.1/@labels.2/@modelFacet"
viewExpression="//@expressionProviders/@providers.0/@expressions.2">
<expressionContext
href="toe.genmodel#//toe/Department"/>
</implementations>
<implementations
xsi:type="gmfgen:ExpressionLabelParser"
uses="//@diagram/@topLevelNodes.1/@labels.1/@modelFacet"
viewExpression="//@expressionProviders/@providers.0/@expressions.1">
<expressionContext
href="toe.genmodel#//toe/Department"/>
</implementations>
<implementations
xsi:type="gmfgen:ExpressionLabelParser"
uses="//@diagram/@topLevelNodes.1/@labels.2/@modelFacet"
viewExpression="//@expressionProviders/@providers.0/@expressions.2">
<expressionContext
href="toe.genmodel#//toe/Department"/>
</implementations>
<implementations
xsi:type="gmfgen:ExpressionLabelParser"
uses="//@diagram/@topLevelNodes.2/@labels.1/@modelFacet"
viewExpression="//@expressionProviders/@providers.0/@expressions.3">
<expressionContext
href="toe.genmodel#//toe/Project"/>
</implementations>
<implementations
xsi:type="gmfgen:ExpressionLabelParser"
uses="//@diagram/@topLevelNodes.2/@labels.2/@modelFacet"
viewExpression="//@expressionProviders/@providers.0/@expressions.4">
<expressionContext
href="toe.genmodel#//toe/Project"/>
</implementations>
</labelParsers>
<contextMenus
context="//@diagram">
<items
xsi:type="gmfgen:LoadResourceAction"/>
</contextMenus>
</gmfgen:GenEditorGenerator>