Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339087 - Connecion endpoints can be moved freely between pictogram elements
Summary: Connecion endpoints can be moved freely between pictogram elements
Status: CLOSED WORKSFORME
Alias: None
Product: Graphiti
Classification: Modeling
Component: Core (show other bugs)
Version: 0.7.0   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-07 09:11 EST by Stanislav Nichev CLA
Modified: 2011-03-08 03:43 EST (History)
1 user (show)

See Also:


Attachments
archive with screenshots (69.07 KB, application/x-zip-compressed)
2011-03-07 09:12 EST, Stanislav Nichev CLA
no flags Details

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