|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.xtools.emf.msl.EditingDomain
A class that exposes an editing domain in the modeling platform. This class manages the EMF-based models in the modeling platform. It provides:
API clients should not extend this class nor instantiate it.
Constructor Summary | |
EditingDomain()
|
Method Summary | |
abstract void |
addOperationListener(OperationListener listener)
Adds the specified listener to this
EditingDomain 's listener list. |
abstract org.eclipse.emf.ecore.resource.ResourceSet |
getResourceSet()
Returns the set of Resource managed by this
EditingDomain |
abstract void |
removeOperationListener(OperationListener listener)
Removes the specified listener from this
EditingDomain 's listener list. |
abstract void |
run(ResourceSetOperation operation,
org.eclipse.core.runtime.IProgressMonitor monitor)
Runs the operation to read and/or modify models. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EditingDomain()
Method Detail |
public abstract void run(ResourceSetOperation operation, org.eclipse.core.runtime.IProgressMonitor monitor) throws InvocationTargetException, InterruptedException
operation
to read and/or modify models. Changes
performed by the specified operation
will be grouped as a
single logical undoable operation and pushed on the editing domain's
operation stack. Undo and redo support is automatically provided for
changes performed to models accessible from the domain's
ResourceSet
.
operation
- The operation object to execute.monitor
- The monitor used to report progress or cancel the operation.
InvocationTargetException
- An exception other than InterruptedException
occured. The cause exception is chained in this exception.
InterruptedException
- Operation cancelledgetResourceSet()
public abstract void addOperationListener(OperationListener listener)
listener
to this
EditingDomain
's listener list. A listener cannot be added
twice. If it is added twice, the second addition will be ignored.
listener
- The listener to add.OperationListener
public abstract void removeOperationListener(OperationListener listener)
listener
from this
EditingDomain
's listener list.
listener
- The listener to remove.public abstract org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
Resource
managed by this
EditingDomain
ResourceSet
|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2004. All rights reserved.