IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.ras.impord.rollback
Interface IRollbackAction


public interface IRollbackAction

Interface to allow for recording of actions performed to aid rollback and cleanup when necessary. Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability.


Method Summary
 IStatus finish(IProgressMonitor progressMonitor)
          Finish specification associated with this IRollbackAction finalization.
 boolean isRestartRecommended()
          Check if the Eclipse session is recommended to be restarted.
 boolean isRestartRequired()
          Check if the Eclipse session needs to be restarted.
 IStatus rollback(IProgressMonitor progressMonitor)
          Rollback specification associated with this IRollbackAction.
 

Method Detail

rollback

public IStatus rollback(IProgressMonitor progressMonitor)
Rollback specification associated with this IRollbackAction.

Parameters:
progressMonitor - to monitor progress of this operation.
Returns:
IStatus for status of rollback operation. IStatus can potentially have children, check status tree to get the full picture.

finish

public IStatus finish(IProgressMonitor progressMonitor)
Finish specification associated with this IRollbackAction finalization. After invoking finish, rolling back executed operation(s) may not be possible.

Parameters:
progressMonitor - to monitor progress of this operation.
Returns:
IStatus for status of finish operation. IStatus can potentially have children, check status tree to get the full picture.

isRestartRequired

public boolean isRestartRequired()
Check if the Eclipse session needs to be restarted.

Returns:
true if a restart of the eclipse session is required.

isRestartRecommended

public boolean isRestartRecommended()
Check if the Eclipse session is recommended to be restarted.

Returns:
true if a restart of the eclipse session is recommended.

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

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