IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.emf.msl
Class OperationListener

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

public abstract class OperationListener
extends Object

A listener to IOperationEvents. API clients should extend this class and register their listeners through EditingDomain.addOperationListener and unregister through EditingDomain.addOperationListener


Constructor Summary
OperationListener()
           
 
Method Summary
 void done(IOperationEvent event)
          Notifies listener that an ResourceSetOperationwas executed.
 void redone(IOperationEvent event)
          Notifies listener that an ResourceSetOperationwas redone Implements default do nothing behaviour.
 void undone(IOperationEvent event)
          Notifies listener that an ResourceSetOperationwas undone.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationListener

public OperationListener()
Method Detail

done

public void done(IOperationEvent event)
Notifies listener that an ResourceSetOperationwas executed. Implements default do nothing behaviour. Derived client implementations generally override this method to look for specific events.

Implementations are allowed to start new ResourceSetReadOperation.

Implementations are allowed to start new ResourceSetModifyOperation. However, it should be noted that the title of the operation may not be displayed in the Edit menu in case the event was sent as the result of another ResourceSetModifyOperation.

Parameters:
event - Event describing the change

undone

public void undone(IOperationEvent event)
Notifies listener that an ResourceSetOperationwas undone. Implements default do nothing behaviour. Derived client implementations generally override this method to look for specific events.

Implementations are allowed to start new ResourceSetReadOperation.

Implementations are not allowed to start new ResourceSetModifyOperation.

Parameters:
event - Event describing the change

redone

public void redone(IOperationEvent event)
Notifies listener that an ResourceSetOperationwas redone Implements default do nothing behaviour. Derived client implementations generally override this method to look for specific events.

Implementations are allowed to start new ResourceSetReadOperation.

Implementations are not allowed to start new ResourceSetModifyOperation.

Parameters:
event - Event describing the change

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

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