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

Bug 365326

Summary: Action to extract manual changes in gmfgen preserved by reconciler into QVTo script
Product: [Modeling] GMF-Tooling Reporter: Michael Golubev <borlander>
Component: Generation / TemplatesAssignee: Guillaume Hillairet <g.hillairet>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: borlander
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 365321    
Attachments:
Description Flags
QVTO Transformation + Wizard for extraction of manual changes made in GMF GenModel in form of QVTO mapping
none
QVTO Transformation + Wizard for extraction of manual changes made in GMF GenModel in form of QVTO mapping none

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