Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365326 - Action to extract manual changes in gmfgen preserved by reconciler into QVTo script
Summary: Action to extract manual changes in gmfgen preserved by reconciler into QVTo ...
Status: NEW
Alias: None
Product: GMF-Tooling
Classification: Modeling
Component: Generation / Templates (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Guillaume Hillairet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 365321
  Show dependency tree
 
Reported: 2011-12-01 10:14 EST by Michael Golubev CLA
Modified: 2011-12-20 12:39 EST (History)
1 user (show)

See Also:


Attachments
QVTO Transformation + Wizard for extraction of manual changes made in GMF GenModel in form of QVTO mapping (18.54 KB, patch)
2011-12-20 12:12 EST, Guillaume Hillairet CLA
no flags Details | Diff
QVTO Transformation + Wizard for extraction of manual changes made in GMF GenModel in form of QVTO mapping (68.44 KB, patch)
2011-12-20 12:39 EST, Guillaume Hillairet CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Golubev CLA 2011-12-01 10:14:48 EST
Manual changes made to gmfgen models by users are currently handled by the Reconciler component. 

As we decided to handle that by executing the explicit transformation against the newly created model (see Bugzilla #365321), it may make sense to help users to migrate from one approach to another. 

The migration may be done by separate wizard that compares the fresh bridge output and actually stored instance and generates qvto script that applies the found diffs.
Comment 1 Guillaume Hillairet CLA 2011-12-20 12:12:56 EST
Created attachment 208634 [details]
QVTO Transformation + Wizard for extraction of manual changes made in GMF GenModel in form of QVTO mapping

This patch adds qvto transformation that extract changes made in a GMFGen Model in form of a QVTO transformation. This operation makes use of EMF Compare to obtain a diff model between two versions of a GMFGen Model. The resulting QVTO transformation is obtained against the Diff model (see Diff2Qvto).
Comment 2 Guillaume Hillairet CLA 2011-12-20 12:39:59 EST
Created attachment 208635 [details]
QVTO Transformation + Wizard for extraction of manual changes made in GMF GenModel in form of QVTO mapping

currently supports:
- changes made on node identifiable by their visualIDs
- changes made on attributes
- deletion of elements identifiable by their visualIDs
- deletion of elements having for parent a node with visualID
- deletion or modifcation of child node of GMFGenModel root node
currently does not support:
 - changes made on attributes on type enumeration
 - changes made on node non identifiable by visualID or not having parent with visualID