|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EMFStoreMigrator
Migrates models in the given URIs to the most recent version. Users should check if this migrator can handle the given URI by calling canHandle, then checking if a migration is actually needed by calling needsMigration and if so use the migrate-Method to do so.
Method Summary | |
---|---|
boolean |
canHandle(List<org.eclipse.emf.common.util.URI> uris)
Checks if this migrator can work with the specified URIs. |
void |
migrate(List<org.eclipse.emf.common.util.URI> resources,
org.eclipse.core.runtime.IProgressMonitor monitor)
Migrate the models in the given URIs from the given source version to the most recent version. |
boolean |
needsMigration(List<org.eclipse.emf.common.util.URI> uris)
Checks whether the models in the specified URIs need a to be migrated. |
Method Detail |
---|
boolean canHandle(List<org.eclipse.emf.common.util.URI> uris)
uris
- the physical URIs
boolean needsMigration(List<org.eclipse.emf.common.util.URI> uris)
uris
- the physical URIs
void migrate(List<org.eclipse.emf.common.util.URI> resources, org.eclipse.core.runtime.IProgressMonitor monitor) throws EMFStoreMigrationException
resources
- the URIs of the contents to migratemonitor
- a progress monitor
EMFStoreMigrationException
- if the migration fails.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |