Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 360140

Summary: Source editing connection element and then the node element can remove an existing connection
Product: z_Archived Reporter: Shenxue Zhou <shenxue.zhou>
Component: SapphireAssignee: Shenxue Zhou <shenxue.zhou>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ram.venkataswamy
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Shenxue Zhou CLA 2011-10-06 13:30:22 EDT
1. Using the map sample, start with the following content in map.xml:

<?xml version="1.0" encoding="UTF-8"?>
<map>
    <DetailLevel>1</DetailLevel>
    <destination>
        <name>First</name>
        <railway-destinations>
            <railway-destination>
                <to-destination>Third</to-destination>
                <distance>200</distance>
            </railway-destination>
        </railway-destinations>
    </destination>
    <destination>
        <name>Second</name>
    </destination>
    <route>
        <from-destination>First</from-destination>
        <to-destination>Second</to-destination>
        <distance>100</distance>
    </route>
    <destination>
        <name>Third</name>
    </destination>
</map>

2. In the source tab, change the <to-destination> element of the <route> to "Second2", switch to diagram tab, notice the connection between "First" and "Second" is gone. That's expected.

3. Switch to source tab again, and change the destination name to "Second2" and then switch to diagram tab again, the connection between "First" and "Second2" is still missing.

4. Similar problems exist for <railway-destination>
Comment 1 Shenxue Zhou CLA 2011-10-06 13:31:23 EDT
In the xml, please remove <DetailLevel>1</DetailLevel>. It's not needed
Comment 2 Shenxue Zhou CLA 2011-10-06 15:19:47 EDT
Fixed by listening to endpoint model elements in DiagramConnetionPart
Comment 3 Ram Venkataswamy CLA 2011-10-07 13:19:02 EDT
verified
Comment 4 Shenxue Zhou CLA 2011-10-07 13:21:04 EDT
Closing based on Ram's verification