IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.emf.msl
Class EditingDomain

java.lang.Object
  extended bycom.ibm.xtools.emf.msl.EditingDomain

public abstract class EditingDomain
extends Object

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  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, 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

EditingDomain

public EditingDomain()
Method Detail

run

public abstract void run(ResourceSetOperation operation,
                         IProgressMonitor monitor)
                  throws InvocationTargetException,
                         InterruptedException
Runs the 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.

Parameters:
operation - The operation object to execute.
monitor - The monitor used to report progress or cancel the operation.
Throws:
InvocationTargetException - An exception other than InterruptedException occured. The cause exception is chained in this exception.
InterruptedException - Operation cancelled
See Also:
getResourceSet()

addOperationListener

public abstract void addOperationListener(OperationListener listener)
Adds the specified listener to this EditingDomain's listener list. A listener cannot be added twice. If it is added twice, the second addition will be ignored.

Parameters:
listener - The listener to add.
See Also:
OperationListener

removeOperationListener

public abstract void removeOperationListener(OperationListener listener)
Removes the specified listener from this EditingDomain's listener list.

Parameters:
listener - The listener to remove.

getResourceSet

public abstract ResourceSet getResourceSet()
Returns the set of Resource managed by this EditingDomain

Returns:
The ResourceSet

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2004. All rights reserved.