de.cau.cs.kieler.synccharts.custom.update
Class UpdateResourceFactoryImpl

java.lang.Object
  extended by org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl
      extended by org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl
          extended by de.cau.cs.kieler.synccharts.custom.update.UpdateResourceFactoryImpl
All Implemented Interfaces:
Resource.Factory

public class UpdateResourceFactoryImpl
extends XMIResourceFactoryImpl

This class handles the migration from Synccharts 0.1 to 0.2.1.

Rating red

Nested Class Summary
static class UpdateResourceFactoryImpl.Synccharts_MM_Version
           
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.resource.Resource.Factory
Resource.Factory.Descriptor, Resource.Factory.Registry
 
Field Summary
static UpdateResourceFactoryImpl.Synccharts_MM_Version CURRENT_VERSION
           
 
Constructor Summary
UpdateResourceFactoryImpl()
           
 
Method Summary
static void checkDiagramEditorInput(FileEditorInput input)
          Check whether the editor is out of date and thrown an exception if it is.
 Resource createResource(URI uri)
          
static void setReInitDiagramCommand(AbstractInitDiagramHandler cmdParam)
          Set the reinitialize command for automatic migration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CURRENT_VERSION

public static final UpdateResourceFactoryImpl.Synccharts_MM_Version CURRENT_VERSION
Constructor Detail

UpdateResourceFactoryImpl

public UpdateResourceFactoryImpl()
Method Detail

setReInitDiagramCommand

public static void setReInitDiagramCommand(AbstractInitDiagramHandler cmdParam)
Set the reinitialize command for automatic migration. FIXME: currently not active

Parameters:
cmdParam - the param

checkDiagramEditorInput

public static void checkDiagramEditorInput(FileEditorInput input)
Check whether the editor is out of date and thrown an exception if it is.

Parameters:
input - the file editor input

createResource

public Resource createResource(URI uri)

Specified by:
createResource in interface Resource.Factory
Overrides:
createResource in class XMIResourceFactoryImpl