Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360140 - Source editing connection element and then the node element can remove an existing connection
Summary: Source editing connection element and then the node element can remove an exi...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sapphire (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Shenxue Zhou CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-06 13:30 EDT by Shenxue Zhou CLA
Modified: 2021-11-19 09:21 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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