[patch] Migrators are not run during startup on the models that reside in the workspace
Description
Migrators are only applied in the following cases
- When files are imported using the “File ->Import” functionality
- When files are copied into the workspace after AF3 has already started (note that this case has not been tested but I assume according to my understanding of the code)
Analysis:
EclipseResourceStorageService.postLoadContext()
triggers the migration
of the currently loaded model. However, during startup of AF3, the list
of available migrators is still empty since the MigrationService
has
not been initialized / started .
Proposed fix
Move initialization of MigrationService
right before initialization of
EclipseResourceStorageService
(see attached patch)
(from redmine: issue id 2840, created on 2017-02-15, closed on 2017-02-17)