Skip to content

Commit

Permalink
[2638] Remove delete button precondition workaround
Browse files Browse the repository at this point in the history
- Due to a Sirius bug, the delete button was not active if the selected
element was the target of the diagram or one of its ancestors
- This bug has been since fixed in Sirius
https://bugs.eclipse.org/bugs/show_bug.cgi?id=553182

Bug: 2638
Change-Id: I07bd695813ea4d5d27c1f95c4d2cbb22c74e5579
Signed-off-by: Sandu Postaru <[email protected]>
  • Loading branch information
sandupostaru authored and minhtutonthat committed Feb 14, 2020
1 parent 4a3c6cf commit a175e74
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@
<firstModelOperations xsi:type="tool:SetValue" featureName="name" valueExpression="aql:arg0"/>
</initialOperation>
</ownedTools>
<ownedTools xsi:type="tool_1:DeleteElementDescription" name="delete a CI" precondition="aql: not self.makeUnion(self.eContainerOrSelf(diagram::DDiagram).target, self.eContainerOrSelf(diagram::DDiagram).target.ancestors())->includes(element)">
<ownedTools xsi:type="tool_1:DeleteElementDescription" name="delete a CI" >
<element name="element"/>
<elementView name="view"/>
<containerView name="containerView"/>
Expand Down Expand Up @@ -821,7 +821,7 @@
</initialOperation>
<edgeView name="edgeView"/>
</ownedTools>
<ownedTools xsi:type="tool_1:DeleteElementDescription" name="delete Configuration Item" precondition="aql: not self.makeUnion(self.eContainerOrSelf(diagram::DDiagram).target, self.eContainerOrSelf(diagram::DDiagram).target.ancestors())->includes(element)">
<ownedTools xsi:type="tool_1:DeleteElementDescription" name="delete Configuration Item" >
<element name="element"/>
<elementView name="elementView"/>
<containerView name="containerView"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@
<firstModelOperations xsi:type="tool_1:SetValue" featureName="triggerDescription" valueExpression="aql:arg0"/>
</initialOperation>
</ownedTools>
<ownedTools xsi:type="tool:DeleteElementDescription" name="Delete StateMode" precondition="aql: not self.makeUnion(self.eContainerOrSelf(diagram::DDiagram).target, self.eContainerOrSelf(diagram::DDiagram).target.ancestors())->includes(element)">
<ownedTools xsi:type="tool:DeleteElementDescription" name="Delete StateMode" >
<element name="element"/>
<elementView name="view"/>
<containerView name="containerView"/>
Expand Down Expand Up @@ -1543,7 +1543,7 @@
<firstModelOperations xsi:type="tool_1:SetValue" featureName="triggerDescription" valueExpression="aql:arg0"/>
</initialOperation>
</ownedTools>
<ownedTools xsi:type="tool:DeleteElementDescription" name="Delete StateMode" precondition="aql: not self.makeUnion(self.eContainerOrSelf(diagram::DDiagram).target, self.eContainerOrSelf(diagram::DDiagram).target.ancestors())->includes(element)">
<ownedTools xsi:type="tool:DeleteElementDescription" name="Delete StateMode" >
<element name="element"/>
<elementView name="view"/>
<containerView name="containerView"/>
Expand Down Expand Up @@ -3830,7 +3830,7 @@
<firstModelOperations xsi:type="tool_1:SetValue" featureName="name" valueExpression="aql:arg0"/>
</initialOperation>
</ownedTools>
<ownedTools xsi:type="tool:DeleteElementDescription" name="Delete_DataType" precondition="aql: not self.makeUnion(self.eContainerOrSelf(diagram::DDiagram).target, self.eContainerOrSelf(diagram::DDiagram).target.ancestors())->includes(element)">
<ownedTools xsi:type="tool:DeleteElementDescription" name="Delete_DataType" >
<element name="element"/>
<elementView name="view"/>
<containerView name="containerView"/>
Expand Down Expand Up @@ -6321,7 +6321,7 @@
<containerViewVariable name="containerView"/>
<representationNameVariable name="diagramName"/>
</ownedTools>
<ownedTools xsi:type="tool:DeleteElementDescription" name="delete capella elements" precondition="aql: not self.makeUnion(self.eContainerOrSelf(diagram::DDiagram).target, self.eContainerOrSelf(diagram::DDiagram).target.ancestors())->includes(element)">
<ownedTools xsi:type="tool:DeleteElementDescription" name="delete capella elements" >
<element name="element"/>
<elementView name="elementView"/>
<containerView name="containerView"/>
Expand Down Expand Up @@ -7925,7 +7925,7 @@
<containerViewVariable name="containerView"/>
<representationNameVariable name="diagramName"/>
</ownedTools>
<ownedTools xsi:type="tool:DeleteElementDescription" name="delete capella elements" precondition="aql: not self.makeUnion(self.eContainerOrSelf(diagram::DDiagram).target, self.eContainerOrSelf(diagram::DDiagram).target.ancestors())->includes(element)">
<ownedTools xsi:type="tool:DeleteElementDescription" name="delete capella elements" >
<element name="element"/>
<elementView name="elementView"/>
<containerView name="containerView"/>
Expand Down Expand Up @@ -9645,7 +9645,7 @@
</initialOperation>
<edgeView name="edgeView"/>
</ownedTools>
<ownedTools xsi:type="tool:DeleteElementDescription" name="delete capella elements" precondition="aql: not self.makeUnion(self.eContainerOrSelf(diagram::DDiagram).target, self.eContainerOrSelf(diagram::DDiagram).target.ancestors())->includes(element)">
<ownedTools xsi:type="tool:DeleteElementDescription" name="delete capella elements" >
<element name="element"/>
<elementView name="elementView"/>
<containerView name="containerView"/>
Expand Down Expand Up @@ -11373,7 +11373,7 @@
</firstModelOperations>
</initialOperation>
</ownedTools>
<ownedTools xsi:type="tool:DeleteElementDescription" name="delete capella elements" precondition="aql: not self.makeUnion(self.eContainerOrSelf(diagram::DDiagram).target, self.eContainerOrSelf(diagram::DDiagram).target.ancestors())->includes(element)">
<ownedTools xsi:type="tool:DeleteElementDescription" name="delete capella elements" >
<element name="element"/>
<elementView name="elementView"/>
<containerView name="containerView"/>
Expand Down Expand Up @@ -12310,7 +12310,7 @@
</firstModelOperations>
</initialOperation>
</ownedTools>
<ownedTools xsi:type="tool:DeleteElementDescription" name="delete capella elements" precondition="aql: not self.makeUnion(self.eContainerOrSelf(diagram::DDiagram).target, self.eContainerOrSelf(diagram::DDiagram).target.ancestors())->includes(element)">
<ownedTools xsi:type="tool:DeleteElementDescription" name="delete capella elements" >
<element name="element"/>
<elementView name="elementView"/>
<containerView name="containerView"/>
Expand Down Expand Up @@ -13758,7 +13758,7 @@
</firstModelOperations>
</initialOperation>
</ownedTools>
<ownedTools xsi:type="tool:DeleteElementDescription" name="delete capella elements" precondition="aql: not self.makeUnion(self.eContainerOrSelf(diagram::DDiagram).target, self.eContainerOrSelf(diagram::DDiagram).target.ancestors())->includes(element)">
<ownedTools xsi:type="tool:DeleteElementDescription" name="delete capella elements" >
<element name="element"/>
<elementView name="elementView"/>
<containerView name="containerView"/>
Expand Down Expand Up @@ -15609,7 +15609,7 @@
</firstModelOperations>
</initialOperation>
</ownedTools>
<ownedTools xsi:type="tool:DeleteElementDescription" name="delete capella elements IS" precondition="aql: not self.makeUnion(self.eContainerOrSelf(diagram::DDiagram).target, self.eContainerOrSelf(diagram::DDiagram).target.ancestors())->includes(element)">
<ownedTools xsi:type="tool:DeleteElementDescription" name="delete capella elements IS" >
<element name="element"/>
<elementView name="elementView"/>
<containerView name="containerView"/>
Expand Down Expand Up @@ -17369,7 +17369,7 @@
</initialOperation>
</tools>
</ownedTools>
<ownedTools xsi:type="tool:DeleteElementDescription" name="delete capella elements DF" precondition="aql: not self.makeUnion(self.eContainerOrSelf(diagram::DDiagram).target, self.eContainerOrSelf(diagram::DDiagram).target.ancestors())->includes(element)">
<ownedTools xsi:type="tool:DeleteElementDescription" name="delete capella elements DF" >
<element name="element"/>
<elementView name="elementView"/>
<containerView name="containerView"/>
Expand Down Expand Up @@ -18485,7 +18485,7 @@
<startingEndPredecessor name="messageEndBefore"/>
<finishingEndPredecessor name="messageEndAfter"/>
</ownedTools>
<ownedTools xsi:type="tool:DeleteElementDescription" name="delete capella elements" precondition="aql: not self.makeUnion(self.eContainerOrSelf(diagram::DDiagram).target, self.eContainerOrSelf(diagram::DDiagram).target.ancestors())->includes(element)">
<ownedTools xsi:type="tool:DeleteElementDescription" name="delete capella elements" >
<element name="element"/>
<elementView name="elementView"/>
<containerView name="containerView"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@
<containerViewVariable name="containerView"/>
<representationNameVariable name="diagramName"/>
</ownedTools>
<ownedTools xsi:type="tool:DeleteElementDescription" name="capellaElement" precondition="aql: not self.makeUnion(self.eContainerOrSelf(diagram::DDiagram).target, self.eContainerOrSelf(diagram::DDiagram).target.ancestors())->includes(element)">
<ownedTools xsi:type="tool:DeleteElementDescription" name="capellaElement" >
<element name="element"/>
<elementView name="elementView"/>
<containerView name="containerView"/>
Expand Down Expand Up @@ -719,7 +719,7 @@
</firstModelOperations>
</initialOperation>
</ownedTools>
<ownedTools xsi:type="tool:DeleteElementDescription" name="capellaElement" precondition="aql: not self.makeUnion(self.eContainerOrSelf(diagram::DDiagram).target, self.eContainerOrSelf(diagram::DDiagram).target.ancestors())->includes(element)">
<ownedTools xsi:type="tool:DeleteElementDescription" name="capellaElement" >
<element name="element"/>
<elementView name="elementView"/>
<containerView name="containerView"/>
Expand Down Expand Up @@ -1238,7 +1238,7 @@
<containerViewVariable name="containerView"/>
<representationNameVariable name="diagramName"/>
</ownedTools>
<ownedTools xsi:type="tool:DeleteElementDescription" name="capellaElement" precondition="aql: not self.makeUnion(self.eContainerOrSelf(diagram::DDiagram).target, self.eContainerOrSelf(diagram::DDiagram).target.ancestors())->includes(element)">
<ownedTools xsi:type="tool:DeleteElementDescription" name="capellaElement" >
<element name="element"/>
<elementView name="elementView"/>
<containerView name="containerView"/>
Expand Down Expand Up @@ -1779,7 +1779,7 @@
</firstModelOperations>
</initialOperation>
</ownedTools>
<ownedTools xsi:type="tool:DeleteElementDescription" name="capellaElement" precondition="aql: not self.makeUnion(self.eContainerOrSelf(diagram::DDiagram).target, self.eContainerOrSelf(diagram::DDiagram).target.ancestors())->includes(element)">
<ownedTools xsi:type="tool:DeleteElementDescription" name="capellaElement" >
<element name="element"/>
<elementView name="elementView"/>
<containerView name="containerView"/>
Expand Down Expand Up @@ -2332,7 +2332,7 @@
<firstModelOperations xsi:type="tool_1:ChangeContext" browseExpression="aql:elementView.sourceNode.target.dndDFBAbstractFunction(elementView.sourceNode.target.eContainer(),containerView.target)"/>
</initialOperation>
</ownedTools>
<ownedTools xsi:type="tool:DeleteElementDescription" name="capellaElement" precondition="aql: not self.makeUnion(self.eContainerOrSelf(diagram::DDiagram).target, self.eContainerOrSelf(diagram::DDiagram).target.ancestors())->includes(element)">
<ownedTools xsi:type="tool:DeleteElementDescription" name="capellaElement" >
<element name="element"/>
<elementView name="elementView"/>
<containerView name="containerView"/>
Expand Down Expand Up @@ -3008,7 +3008,7 @@
</initialOperation>
<edgeView name="edgeView"/>
</ownedTools>
<ownedTools xsi:type="tool:DeleteElementDescription" name="capellaElement" precondition="aql: not self.makeUnion(self.eContainerOrSelf(diagram::DDiagram).target, self.eContainerOrSelf(diagram::DDiagram).target.ancestors())->includes(element)">
<ownedTools xsi:type="tool:DeleteElementDescription" name="capellaElement" >
<element name="element"/>
<elementView name="elementView"/>
<containerView name="containerView"/>
Expand Down Expand Up @@ -4282,7 +4282,7 @@
</initialOperation>
<edgeView name="edgeView"/>
</ownedTools>
<ownedTools xsi:type="tool:DeleteElementDescription" name="capellaElement" precondition="aql: not self.makeUnion(self.eContainerOrSelf(diagram::DDiagram).target, self.eContainerOrSelf(diagram::DDiagram).target.ancestors())->includes(element)">
<ownedTools xsi:type="tool:DeleteElementDescription" name="capellaElement" >
<element name="element"/>
<elementView name="elementView"/>
<containerView name="containerView"/>
Expand Down Expand Up @@ -5099,7 +5099,7 @@
<firstModelOperations xsi:type="tool_1:SetValue" featureName="name" valueExpression="aql:arg0"/>
</initialOperation>
</ownedTools>
<ownedTools xsi:type="tool:DeleteElementDescription" name="capellaElement" precondition="aql: not self.makeUnion(self.eContainerOrSelf(diagram::DDiagram).target, self.eContainerOrSelf(diagram::DDiagram).target.ancestors())->includes(element)">
<ownedTools xsi:type="tool:DeleteElementDescription" name="capellaElement" >
<element name="element"/>
<elementView name="elementView"/>
<containerView name="containerView"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@
<containerViewVariable name="containerView"/>
<representationNameVariable name="diagramName"/>
</ownedTools>
<ownedTools xsi:type="tool_1:DeleteElementDescription" name="delete Logical Component" precondition="aql: not self.makeUnion(self.eContainerOrSelf(diagram::DDiagram).target, self.eContainerOrSelf(diagram::DDiagram).target.ancestors())->includes(element)">
<ownedTools xsi:type="tool_1:DeleteElementDescription" name="delete Logical Component" >
<element name="element"/>
<elementView name="elementView"/>
<containerView name="containerView"/>
Expand Down Expand Up @@ -864,7 +864,7 @@
</firstModelOperations>
</initialOperation>
</ownedTools>
<ownedTools xsi:type="tool_1:DeleteElementDescription" name="delete LF" precondition="aql: not self.makeUnion(self.eContainerOrSelf(diagram::DDiagram).target, self.eContainerOrSelf(diagram::DDiagram).target.ancestors())->includes(element)">
<ownedTools xsi:type="tool_1:DeleteElementDescription" name="delete LF" >
<element name="element"/>
<elementView name="elementView"/>
<containerView name="containerView"/>
Expand Down Expand Up @@ -1568,7 +1568,7 @@
</initialOperation>
<edgeView name="edgeView"/>
</ownedTools>
<ownedTools xsi:type="tool_1:DeleteElementDescription" name="delete capella element" precondition="aql: not self.makeUnion(self.eContainerOrSelf(diagram::DDiagram).target, self.eContainerOrSelf(diagram::DDiagram).target.ancestors())->includes(element)">
<ownedTools xsi:type="tool_1:DeleteElementDescription" name="delete capella element" >
<element name="element"/>
<elementView name="elementView"/>
<containerView name="containerView"/>
Expand Down Expand Up @@ -3569,7 +3569,7 @@
<firstModelOperations xsi:type="tool:SetValue" featureName="name" valueExpression="aql:arg0"/>
</initialOperation>
</ownedTools>
<ownedTools xsi:type="tool_1:DeleteElementDescription" name="delete capella element" precondition="aql: not self.makeUnion(self.eContainerOrSelf(diagram::DDiagram).target, self.eContainerOrSelf(diagram::DDiagram).target.ancestors())->includes(element)">
<ownedTools xsi:type="tool_1:DeleteElementDescription" name="delete capella element" >
<element name="element"/>
<elementView name="elementView"/>
<containerView name="containerView"/>
Expand Down
Loading

0 comments on commit a175e74

Please sign in to comment.