Bug 237059 - MoveRequest to provide information about actual semantic parent of moved element
Summary: MoveRequest to provide information about actual semantic parent of moved element
Status: NEW
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal
Target Milestone: ---   Edit
Assignee: Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-13 07:55 EDT by Michael Golubev CLA
Modified: 2010-07-19 12:26 EDT (History)
0 users

See Also:


Attachments
Demonstrates the changes we made in the U2T to workaround the problem (2.62 KB, application/octet-stream)
2008-06-13 10:29 EDT, Michael Golubev CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Golubev CLA 2008-06-13 07:55:02 EDT
Actually, the org.eclipse.gmf.runtime.emf.type.core.requests.MoveRequest contains information about moved element, target container and optionally the target feature to be used for moved element. 

In context of UML2Tools, processing of some moves requires information about actual semantic element that is diagram parent of the moved element. It is basically all the cases when diagram relationship between element and container is not a semantic containment. 

E.g, at UseCases diagram, component visually owns the usecases that have it as their subject (Classifier#getUseCases / UseCase#getSubjects). Its not a containment reference, and it may result in the case when single semantic UseCase is visually owned by two different Components. 

While moving this UseCase from one of its Components, we want to remove it from the actualContainer#getUseCases() list, but not from the otherComponentThatHasTheSameUseCaseButWasNotAffectedByTheMove#getUseCases(). 

Right now we can't do it correctly because MoveRequest does not provide any information about container for this particular move.
Comment 1 Michael Golubev CLA 2008-06-13 10:29:46 EDT
Created attachment 104867 [details]
Demonstrates the changes we made in the U2T to workaround the problem
Comment 2 Eclipse Webmaster CLA 2010-07-19 12:26:55 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime Diagram was the original product and component for this bug