Bug 187811 - Make GMF 1.0 -> 2.0 model migration mechanism more straightforward
Summary: Make GMF 1.0 -> 2.0 model migration mechanism more straightforward
Status: RESOLVED FIXED
Alias: None
Product: GMF-Tooling (ARCHIVED)
Classification: Modeling
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 2.0   Edit
Assignee: Anna Karjakina CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2007-05-18 10:12 EDT by Anna Karjakina CLA
Modified: 2010-07-19 22:23 EDT (History)
1 user (show)

See Also:


Attachments
Buggy version of this refactoring (40.74 KB, patch)
2007-05-18 16:43 EDT, Anna Karjakina CLA
no flags Details | Diff
checks for bugs from patch (7.89 KB, patch)
2007-05-18 17:51 EDT, Anna Karjakina CLA
no flags Details | Diff
Support for new metamodel-based files, containing obsolete uris (33.29 KB, patch)
2007-05-21 05:55 EDT, Anna Karjakina CLA
no flags Details | Diff
Fixed removing of metaFeature of FeatureLabelMappingModelFacet, refactored code, especially uri detection. (69.79 KB, patch)
2007-05-22 12:18 EDT, Anna Karjakina CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anna Karjakina CLA 2007-05-18 10:12:28 EDT
The list of supported migrations stays the same. Collecting them in one place:

= GMF Map Model (see org.eclipse.gmf.mappings.util.GMFMapMigrationHelper) =

Narrowed references:

FeatureSeqInitializer
-initializers -> FeatureValueSpec
https://bugs.eclipse.org/bugs/show_bug.cgi?id=138440
MappingEntry
-labelMappings -> FeatureLabelMapping
https://bugs.eclipse.org/bugs/show_bug.cgi?id=161380

Complex structure changes:
FeatureLabelMapping with no features as LabelMapping
https://bugs.eclipse.org/bugs/show_bug.cgi?id=161380

= GMF Gen Model (see org.eclipse.gmf.codegen.gmfgen.util.GMFGenMigrationHelper) =

Removed attributes:

EditorCandies
-diagramFileCreatorClassName
-preferenceInitializerClassName
ProviderClassNames
-abstractParserClassName
-structuralFeatureParserClassName
-structuralFeaturesParserClassName
-paletteProviderClassName
-paletteProviderPriority
-propertyProviderClassName
-propertyProviderPriority
EditPartCandies
-referenceConnectionEditPolicyClassName
-externalNodeLabelHostLayoutEditPolicyClassName
TypeLinkModelFacet
-createCommandClassName

Renamed attributes:

FeatureLabelModelFacet
-metaFeature -> metaFeatures

Narrowed references:

GenFeatureSeqInitializer
-initializers -> GenFeatureValueSpec
https://bugs.eclipse.org/bugs/show_bug.cgi?id=138440

Renamed types:

-CompositeFeatureLabelModelFacet -> FeatureLabelModelFacet

Complex structure changes:

-GenAuditContainer and GenAuditRule structures https://bugs.eclipse.org/bugs/show_bug.cgi?id=185372
Comment 1 Anna Karjakina CLA 2007-05-18 16:43:40 EDT
Created attachment 67870 [details]
Buggy version of this refactoring
Comment 2 Anna Karjakina CLA 2007-05-18 17:51:42 EDT
Created attachment 67881 [details]
checks for bugs from patch
Comment 3 Anna Karjakina CLA 2007-05-21 05:55:50 EDT
Created attachment 67955 [details]
Support for new metamodel-based files, containing obsolete uris
Comment 4 Artem Tikhomirov CLA 2007-05-21 06:30:29 EDT
reviewed, refactored and committed
Comment 5 Anna Karjakina CLA 2007-05-22 12:18:31 EDT
Created attachment 68152 [details]
Fixed removing of metaFeature of FeatureLabelMappingModelFacet, refactored code, especially uri detection.
Comment 6 Artem Tikhomirov CLA 2007-05-22 12:35:39 EDT
reopened to consider new tests/refactorings
Comment 7 Artem Tikhomirov CLA 2007-05-22 13:42:23 EDT
(In reply to comment #5)
> Created an attachment (id=68152) [details]
reviewed and committed
Comment 8 Richard Gronback CLA 2008-08-13 13:11:53 EDT
[target cleanup] 2.0 M7 was the original target milestone for this bug
Comment 9 Eclipse Webmaster CLA 2010-07-19 22:23:02 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Models was the original product and component for this bug