org.eclipse.graphiti.services
Interface IMigrationService


public interface IMigrationService

Migration support for converting models from older to newer versions.

Since:
0.8.0

Method Summary
 void migrate070To080(Diagram diagram)
          Moves fonts which, in 0.7.0, were aggregated by AbstractText and Style to the diagram which aggregates fonts centrally as of 0.8.0.
 boolean shouldMigrate070To080(Diagram diagram)
          Checks if fonts are set on graphical elements while not being managed by the diagram.
 

Method Detail

migrate070To080

void migrate070To080(Diagram diagram)
Moves fonts which, in 0.7.0, were aggregated by AbstractText and Style to the diagram which aggregates fonts centrally as of 0.8.0. Possibly modifies the diagram. Has to be called from within a write transaction. It is assumed that there is only one diagram stored in the underlying resource.

Parameters:
diagram - the diagram to be migrated
See Also:
#shouldMigrate070To080(Diagram)}

shouldMigrate070To080

boolean shouldMigrate070To080(Diagram diagram)
Checks if fonts are set on graphical elements while not being managed by the diagram. It is assumed that there is only one diagram stored in the underlying resource.

Parameters:
diagram - the diagram under consideration
Returns:
true if the diagram should be migrated, false otherwise
See Also:
#migrate070To080(Diagram)}


Copyright (c) SAP AG 2005, 2010.