|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectroneditor.model.RONModelManager
public class RONModelManager
Manager for persistency operations on the model.
Field Summary | |
---|---|
private org.eclipse.emf.ecore.resource.Resource |
resource
For the purpose of the simple editor, a file can only contain one RON. |
private org.eclipse.emf.ecore.resource.ResourceSet |
resourceSet
The ResourceSet |
private ronmodel.RON |
ron
The top level RON in the resource. |
private static ronmodel.RonmodelFactory |
ronmodelFactory
Contains the factory associated with the model. |
Constructor Summary | |
---|---|
RONModelManager()
This constructor initializes the EMF model package and registers |
Method Summary | |
---|---|
ronmodel.RON |
createDefaultRon(org.eclipse.core.runtime.IPath path)
Creates a new default RON in a Resource. |
private org.eclipse.emf.ecore.resource.Resource |
createResource(org.eclipse.core.runtime.IPath path)
|
static ronmodel.RonmodelFactory |
getFactory()
|
org.eclipse.emf.ecore.resource.Resource |
getResource(org.eclipse.core.runtime.IPath path)
|
private org.eclipse.emf.ecore.resource.ResourceSet |
getResourceSet()
|
ronmodel.RON |
getRON()
|
void |
load(org.eclipse.core.runtime.IPath path)
Loads the model from the file. |
void |
reload(org.eclipse.core.runtime.IPath path)
Reloads the model from the file. |
void |
save(org.eclipse.core.runtime.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 |
Field Detail |
---|
private org.eclipse.emf.ecore.resource.Resource resource
private static ronmodel.RonmodelFactory ronmodelFactory
private ronmodel.RON ron
private org.eclipse.emf.ecore.resource.ResourceSet resourceSet
Constructor Detail |
---|
public RONModelManager()
Method Detail |
---|
public org.eclipse.emf.ecore.resource.Resource getResource(org.eclipse.core.runtime.IPath path)
path
- A IPath
to a file containing a Resource
.
path
.private org.eclipse.emf.ecore.resource.Resource createResource(org.eclipse.core.runtime.IPath path)
path
- A IPath
to a file to be created for hosting the
Resource
.
path
.private org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
public static ronmodel.RonmodelFactory getFactory()
public ronmodel.RON createDefaultRon(org.eclipse.core.runtime.IPath path)
path
- A IPath
to a file to be created for hosting the
Resource
.
public void load(org.eclipse.core.runtime.IPath path) throws java.lang.Exception
path
- A IPath
to a file containing a Resource
.
java.io.IOException
java.lang.Exception
public void reload(org.eclipse.core.runtime.IPath path) throws java.lang.Exception
path
- A IPath
to a file containing a Resource
.
java.io.IOException
java.lang.Exception
public void save(org.eclipse.core.runtime.IPath path) throws java.io.IOException
java.io.IOException
public ronmodel.RON getRON()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |