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

Bug 339087

Summary: Connecion endpoints can be moved freely between pictogram elements
Product: [Modeling] Graphiti Reporter: Stanislav Nichev <stanislav.nichev>
Component: CoreAssignee: Project Inbox <graphiti-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: michael.wenz
Version: 0.7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
archive with screenshots none

Description Stanislav Nichev CLA 2011-03-07 09:11:40 EST
Build Identifier: 

Hi Colleagues,

In Graphiti the following scenario fails:
1) Create three pictogram elements (pe1, pe2, pe3)
2) Create connection between pe1 and pe2
The correct connection feature methods are called - canCreate, create...
3) Drag one of the endpoints and drop it onto the pe3 pictogram
The connection transfer does not execute the canCreate, create methods and thus - allows free tranfer (even if the new target does not allow connections)

I'm attaching an archive with some screenshots. We have a custom layout feature for connections and it is working fine on pictogram element move.

Regards,
Stanislav

Reproducible: Always
Comment 1 Stanislav Nichev CLA 2011-03-07 09:12:38 EST
Created attachment 190547 [details]
archive with screenshots
Comment 2 Michael Wenz CLA 2011-03-07 10:51:40 EST
Hi Stanislav,

this is done by intention, CreateConnectionFeatures only control the creation of new connections. Drag&drop of an endpoint is controlled by a so-called ReconnectionFeature (subclass of DefaultReconnectionFeature). The corresponding methods there will be called.

Plese reopen if this does not solve the issue.

Michael
Comment 3 Stanislav Nichev CLA 2011-03-08 03:43:26 EST
Hi Michael,

This solves the issue, yes :)
I must have missed the ReconnectionFeature while reading the Graphiti help context.

Regards,
Stanislav