Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot delete a "parent" relation in the extension modeler #45

Closed
vincent-zurczak opened this issue Mar 7, 2016 · 2 comments
Closed
Assignees

Comments

@vincent-zurczak
Copy link
Member

Affected version: Cloud Designer 0.1.0.201602261035

  1. Create an extension diagram.
  2. Add a parent relation between two kinds.
  3. Try to delete it. Neither delete nor a right click action allows to delete it.
@philippemerle
Copy link
Member

Hi William,
Is this a feature of Sirius or a bug of Sirius?

@wpiers
Copy link
Member

wpiers commented Mar 11, 2016

Not really a bug : deletion is supported for Nodes by default, or for Element based edges, but Relation based edges like "parent" "applies" & "depend" a Delete tool must be defined.
I did it for those references in commit a297712

It can be used as example for other designs if necessary. Below is the raw xmi for a relation deletion tool (without eOpposite) :

<ownedTools xsi:type="tool:DeleteElementDescription" name="Delete<FEATURE_NAME>">
    <element name="element"/>
    <elementView name="elementView"/>
    <containerView name="containerView"/>
    <initialOperation>
        <firstModelOperations xsi:type="tool_1:Unset" featureName="<FEATURE_NAME>" 
        elementExpression="[elementView.targetNode.oclAsType(DSemanticDecorator).target/]"/>
    </initialOperation>
</ownedTools>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants