Skip to main content
summaryrefslogtreecommitdiffstats
blob: e1c78022323cdc86539b73342afa0675f1ca5ef4 (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
<?xml version="1.0" encoding="UTF-8"?>
<description:Group xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" xmlns:description_1="http://www.eclipse.org/sirius/diagram/description/1.1.0" xmlns:style="http://www.eclipse.org/sirius/diagram/description/style/1.1.0" xmlns:tool="http://www.eclipse.org/sirius/diagram/description/tool/1.1.0" xmlns:tool_1="http://www.eclipse.org/sirius/description/tool/1.1.0" name="nodes" version="12.0.0.2017041100">
  <ownedViewpoints name="Nodes Design" modelFileExtension="nodes">
    <ownedRepresentations xsi:type="description_1:DiagramDescription" name="Nodes Diagram" domainClass="nodes::Node" enablePopupBars="true">
      <metamodel href="../../org.eclipse.emf.compare.tests/model/nodes.ecore#/"/>
      <defaultLayer name="Default">
        <containerMappings name="ND_Node" detailDescriptions="//@ownedViewpoints[name='Nodes%20Design']/@ownedRepresentations[name='Nodes%20Diagram']/@defaultLayer/@toolSections.2/@ownedTools[name='ND_CreateNodeDiagram']" deletionDescription="//@ownedViewpoints[name='Nodes%20Design']/@ownedRepresentations[name='Nodes%20Diagram']/@defaultLayer/@toolSections.1/@ownedTools[name='ND_DeleteNode']" labelDirectEdit="//@ownedViewpoints[name='Nodes%20Design']/@ownedRepresentations[name='Nodes%20Diagram']/@defaultLayer/@toolSections.2/@ownedTools[name='ND_DirectEdit']" semanticCandidatesExpression="feature:containmentRef1" domainClass="nodes::Node" reusedContainerMappings="//@ownedViewpoints[name='Nodes%20Design']/@ownedRepresentations[name='Nodes%20Diagram']/@defaultLayer/@containerMappings[name='ND_Node']">
          <style xsi:type="style:FlatContainerStyleDescription" borderSizeComputationExpression="1" labelSize="12">
            <borderColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/>
            <labelColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/>
            <backgroundColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='white']"/>
            <foregroundColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='light_gray']"/>
          </style>
        </containerMappings>
        <toolSections name="Creation Tools">
          <ownedTools xsi:type="tool:ContainerCreationDescription" name="ND_CreateNode" label="Create Node" containerMappings="//@ownedViewpoints[name='Nodes%20Design']/@ownedRepresentations[name='Nodes%20Diagram']/@defaultLayer/@containerMappings[name='ND_Node']">
            <variable name="container"/>
            <viewVariable name="containerView"/>
            <initialOperation>
              <firstModelOperations xsi:type="tool_1:CreateInstance" typeName="nodes::Node" referenceName="containmentRef1">
                <subModelOperations xsi:type="tool_1:SetValue" featureName="name" valueExpression="aql:'Node'"/>
              </firstModelOperations>
            </initialOperation>
          </ownedTools>
        </toolSections>
        <toolSections name="Deletion Tools">
          <ownedTools xsi:type="tool:DeleteElementDescription" name="ND_DeleteNode" label="Delete Node">
            <element name="element"/>
            <elementView name="elementView"/>
            <containerView name="containerView"/>
            <initialOperation>
              <firstModelOperations xsi:type="tool_1:RemoveElement"/>
            </initialOperation>
          </ownedTools>
        </toolSections>
        <toolSections name="Usability Tools">
          <ownedTools xsi:type="tool:DiagramCreationDescription" name="ND_CreateNodeDiagram" label="Nodes Diagram" diagramDescription="//@ownedViewpoints[name='Nodes%20Design']/@ownedRepresentations[name='Nodes%20Diagram']">
            <initialOperation/>
            <containerViewVariable name="containerView"/>
            <representationNameVariable name="diagramName"/>
          </ownedTools>
          <ownedTools xsi:type="tool:DirectEditLabel" name="ND_DirectEdit">
            <mask mask="{0}"/>
            <initialOperation>
              <firstModelOperations xsi:type="tool_1:SetValue" featureName="name" valueExpression="var:arg0"/>
            </initialOperation>
          </ownedTools>
        </toolSections>
        <toolSections name="Menu Tools">
          <ownedTools xsi:type="tool_1:PopupMenu" name="ND_AddElement" label="Add">
            <menuItemDescription xsi:type="tool_1:OperationAction" name="Node" precondition="aql:self.oclIsKindOf(nodes::Node)" icon="/org.eclipse.emf.compare.tests.edit/icons/full/obj16/Node.gif">
              <view name="views"/>
              <initialOperation>
                <firstModelOperations xsi:type="tool_1:CreateInstance" typeName="nodes::Node" referenceName="containmentRef1">
                  <subModelOperations xsi:type="tool_1:SetValue" featureName="name" valueExpression="aql:'Node'"/>
                </firstModelOperations>
              </initialOperation>
            </menuItemDescription>
          </ownedTools>
        </toolSections>
      </defaultLayer>
    </ownedRepresentations>
    <ownedJavaExtensions qualifiedClassName="org.eclipse.emf.compare.diagram.sirius.tests.design.Services"/>
  </ownedViewpoints>
</description:Group>

Back to the top