|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.tu_berlin.cs.tfs.muvitorkit.ui.utils.EMFModelManager
public class EMFModelManager
Manager for persistence operations on an EMF model.
Constructor Summary | |
---|---|
EMFModelManager(String extension)
This constructor initializes the EMF model package and registers a file extension. |
Method Summary | |
---|---|
List<EObject> |
load(IPath path,
List<EObject> defaultModels)
Loads the model from the file. |
void |
save(IPath path)
Saves the content of the model to the file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EMFModelManager(String extension)
extension
- The file extensionMethod Detail |
---|
public List<EObject> load(IPath path, List<EObject> defaultModels)
save(IPath)
. Return the loaded or the default models,
respectively.
path
- A IPath
to a file containing a Resource
.defaultModels
- a list of default models to use when loading fails
public void save(IPath path) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |