Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Inconsistency after deleting element based edge
Inconsistency after deleting element based edge [message #1787251] Tue, 22 May 2018 19:13 Go to next message
Tom Brandenburg is currently offline Tom BrandenburgFriend
Messages: 1
Registered: May 2018
Junior Member

I am currently making my first steps with Sirius and I am quite impressed.
On my way I found some strange behaviour.

1. I am starting with a clean model:
<?xml version="1.0" encoding="UTF-8"?>
<mbse:Package xmi:version="2.0" xmlns:xmi="..." xmlns:xsi="..." xmlns:mbse="tb.mbse">
  <packagedElement xsi:type="mbse:Component"/>
  <packagedElement xsi:type="mbse:Component"/>
  <packagedElement xsi:type="mbse:Component"/>

2. I am adding an element based edge between a bordered node (Port is a connection end) and a container (an invisible connection end is created in the context of the container during creation of the edge):

3. In the model tree editor it looks like:

4. Now I am deleting the node based edge with:

5. It (and the connection ends) seems to be removed in the diagram and in the project explorer:

6. But in the model editor and in the XMI file the elements are remaining:

<?xml version="1.0" encoding="UTF-8"?>
<mbse:Package xmi:version="2.0" xmlns:xmi="..." xmlns:xsi="..." xmlns:mbse="tb.mbse">
  <packagedElement xsi:type="mbse:Component">
    <ownedFeature xsi:type="mbse:Port" connection="//@packagedElement.3"/>
  <packagedElement xsi:type="mbse:Component">
    <ownedFeature xsi:type="mbse:ConnectionEnd" connection="//@packagedElement.3"/>
  <packagedElement xsi:type="mbse:Component"/>
  <packagedElement xsi:type="mbse:Connection" end="//@packagedElement.0/@ownedFeature.0 //@packagedElement.1/@ownedFeature.0"/>

Do you have any clue on what is going on there? :)
Do I have to unset something before removing?

Thanks a lot and best regards,
Re: Inconsistency after deleting element based edge [message #1789941 is a reply to message #1787251] Fri, 01 June 2018 06:20 Go to previous message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 443
Registered: July 2009
Location: Nantes, France
Senior Member
Hi Tom,

The Remove operation removes each elements from its container, then at the end of the tool operations, Sirius is supposed to remove the references from the model to the removed elements.

It seems that the model file as not been saved : did you save it ?
Do you still have the '*' in your editor tab ?

Could you check if something has been reported in the error log ?



Maxime Porhel - Obeo

Need training or professional services for Sirius?

Join the Sirius community at SiriusCon. Register for free: Nov. 9th Paris
Previous Topic:Attach Other Figures/EditParts to an Edge
Next Topic:Anchors in Diagrams
Goto Forum:

Current Time: Thu Nov 15 02:08:09 GMT 2018

Powered by FUDForum. Page generated in 0.02051 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top