Skip to content

Commit

Permalink
Fix #22 add composition tool in requirement diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
mbats committed Dec 26, 2013
1 parent d87edb4 commit e752cc3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions plugins/org.obeonetwork.dsl.sysml.design/description/sysml.odesign
Original file line number Diff line number Diff line change
Expand Up @@ -2052,6 +2052,17 @@
</firstModelOperations>
</initialOperation>
</ownedTools>
<ownedTools xsi:type="tool:EdgeCreationDescription" name="Composition" label="Contained in" precondition="[preSourceView.target &lt;> preTargetView.target/]" edgeMappings="//@ownedViewpoints[name='SysML']/@ownedRepresentations[name='Requirement%20Diagram']/@defaultLayer/@edgeMappings[name='RD_Composition']" iconPath="/org.eclipse.uml2.uml.edit/icons/full/obj16/Association.gif">
<sourceVariable name="source"/>
<targetVariable name="target"/>
<sourceViewVariable name="sourceView"/>
<targetViewVariable name="targetView"/>
<initialOperation>
<firstModelOperations xsi:type="tool:ChangeContext" browseExpression="var:target">
<subModelOperations xsi:type="tool:SetValue" featureName="nestedClassifier" valueExpression="var:source"/>
</firstModelOperations>
</initialOperation>
</ownedTools>
</toolSections>
<toolSections name="RD_Edit">
<ownedTools xsi:type="tool:DirectEditLabel" name="RD_Edit" inputLabelExpression="feature:name">
Expand Down

0 comments on commit e752cc3

Please sign in to comment.