|
Bus | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.topcased.service.writeemfxmi.WriteModelManager
public class WriteModelManager
Drives the model. Acts as the model entry point.
| Constructor Summary | |
|---|---|
WriteModelManager()
|
|
| Method Summary | |
|---|---|
EObject |
createModel(org.eclipse.core.runtime.IPath path)
Creates a new model. |
AdapterFactory |
getAdapterFactory()
Returns the Adapter factory for the current model |
EObject |
getModel()
Gets the top level object. |
Resource |
getResource(org.eclipse.core.runtime.IPath path)
Returns the resource containing the network. |
void |
load(org.eclipse.core.runtime.IPath path)
Loads the content of the model from the file. |
void |
reload(org.eclipse.core.runtime.IPath path)
reloads the content of the model from the file. |
void |
save(org.eclipse.core.runtime.IPath path,
EObject diagrams)
Saves the content of the model to the file. |
void |
saveAs(org.eclipse.core.runtime.IPath path,
EObject theModel)
Saves the content of the model to a new file. |
void |
setModel()
Sets the model in the EMF resource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WriteModelManager()
| Method Detail |
|---|
public Resource getResource(org.eclipse.core.runtime.IPath path)
path -
public EObject createModel(org.eclipse.core.runtime.IPath path)
path - the model path
public void load(org.eclipse.core.runtime.IPath path)
throws java.io.IOException
path -
java.io.IOException
public void reload(org.eclipse.core.runtime.IPath path)
throws java.io.IOException
path -
java.io.IOException
public void save(org.eclipse.core.runtime.IPath path,
EObject diagrams)
throws java.io.IOException
path - diagrams -
java.io.IOException
public void saveAs(org.eclipse.core.runtime.IPath path,
EObject theModel)
throws java.io.IOException
path - theModel - The model to save
java.io.IOExceptionpublic EObject getModel()
public void setModel()
public AdapterFactory getAdapterFactory()
|
Bus | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.