IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.patterns.framework.test
Class AbstractTestAction

java.lang.Object
  extended byorg.eclipse.ui.actions.ActionDelegate
      extended bycom.ibm.xtools.patterns.framework.test.AbstractTestAction
All Implemented Interfaces:
IActionDelegate, IActionDelegate2, IWorkbenchWindowActionDelegate

public abstract class AbstractTestAction
extends ActionDelegate
implements IWorkbenchWindowActionDelegate


Constructor Summary
AbstractTestAction()
           
 
Method Summary
 void dispose()
           
 List getFailures()
          Returns the list of test errors and failures.
protected abstract  Plugin getTestPlugin()
          Return the testplugin.
abstract  junit.framework.Test getTestSuite()
          Returns the test suite to be executed by the action
 void init(IWorkbenchWindow arg0)
           
protected abstract  void logTestResults()
          Log the results of the tests.
 void run(IAction arg0)
           
 void selectionChanged(IAction action, ISelection arg1)
           
 
Methods inherited from class org.eclipse.ui.actions.ActionDelegate
init, runWithEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTestAction

public AbstractTestAction()
Method Detail

dispose

public void dispose()
Specified by:
dispose in interface IWorkbenchWindowActionDelegate
See Also:
IWorkbenchWindowActionDelegate.dispose()

getTestSuite

public abstract junit.framework.Test getTestSuite()
Returns the test suite to be executed by the action


init

public void init(IWorkbenchWindow arg0)
Specified by:
init in interface IWorkbenchWindowActionDelegate
See Also:
IWorkbenchWindowActionDelegate.init(IWorkbenchWindow)

getTestPlugin

protected abstract Plugin getTestPlugin()
Return the testplugin. Subclasses may override to return their specific test plugin


logTestResults

protected abstract void logTestResults()
Log the results of the tests. Subclasses may override to perform their specific logging


run

public void run(IAction arg0)
Specified by:
run in interface IActionDelegate
See Also:
IActionDelegate.run(IAction)

getFailures

public List getFailures()
Returns the list of test errors and failures.


selectionChanged

public void selectionChanged(IAction action,
                             ISelection arg1)
Specified by:
selectionChanged in interface IActionDelegate
See Also:
IActionDelegate.selectionChanged(IAction, ISelection)

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

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