IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.emf.msl
Class ResourceSetOperation

java.lang.Object
  extended bycom.ibm.xtools.emf.msl.ResourceSetOperation
All Implemented Interfaces:
IRunnableWithProgress
Direct Known Subclasses:
ResourceSetModifyOperation, ResourceSetReadOperation

public abstract class ResourceSetOperation
extends Object
implements IRunnableWithProgress

An abstract base class for operations that an EditingDomain executes.

API clients should not extend this class directly.

See Also:
EditingDomain.run(ResourceSetOperation, IProgressMonitor)

Constructor Summary
ResourceSetOperation()
           
 
Method Summary
protected abstract  void execute(IProgressMonitor monitor)
          Execute this operation.
 IStatus getResult()
          Returns the result from this operation's execution.
 void run(IProgressMonitor monitor)
           
 void setResult(IStatus resultIn)
          Sets the result of this operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceSetOperation

public ResourceSetOperation()
Method Detail

getResult

public IStatus getResult()
Returns the result from this operation's execution. null if the operation has not executed yet.

Returns:
The operation result

setResult

public void setResult(IStatus resultIn)
Sets the result of this operation. This function is expected to be called only by the modeling platform.

Parameters:
resultIn - The result of this operation execution

run

public final void run(IProgressMonitor monitor)
               throws InvocationTargetException,
                      InterruptedException
Specified by:
run in interface IRunnableWithProgress
Throws:
InvocationTargetException
InterruptedException
See Also:
IRunnableWithProgress.run(org.eclipse.core.runtime.IProgressMonitor)

execute

protected abstract void execute(IProgressMonitor monitor)
                         throws InvocationTargetException,
                                InterruptedException
Execute this operation. Subclasses are expected to implement their specific behaviour.

Parameters:
monitor - Progress monitor to display progress and allow for user cancel requests
Throws:
InvocationTargetException
InterruptedException

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

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