TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.instrumentation.ui.internal.sourceeditor.actions
Class AbstractInstrumentRemoveAction

java.lang.Object
  extended by org.eclipse.tptp.platform.instrumentation.ui.internal.sourceeditor.actions.AbstractObjectActionDelegate
      extended by org.eclipse.tptp.platform.instrumentation.ui.internal.sourceeditor.actions.AbstractInstrumentRemoveAction
All Implemented Interfaces:
org.eclipse.ui.IActionDelegate, org.eclipse.ui.IObjectActionDelegate

public abstract class AbstractInstrumentRemoveAction
extends AbstractObjectActionDelegate

This class used for common logic functions of remove BtM source instrument(ARM/CBE)


Constructor Summary
AbstractInstrumentRemoveAction()
           
 
Method Summary
protected abstract  java.lang.String getDetermineDeletedString()
          return determined string needed to be deleted
protected abstract  java.lang.String getMethodEntryDeletedText()
           
protected  java.util.List getMethodEntryDeleteRegionList(org.eclipse.jdt.core.dom.TryStatement tryStatement)
          return default document region list for method entry.
protected abstract  java.lang.String getMethodExitDeletedText()
           
protected  java.util.List getMethodExitDeleteRegionList(org.eclipse.jdt.core.dom.TryStatement tryStatement)
          return default document region list for method exit.
protected  java.lang.String getWarningMessage()
          no needed message for remove action
protected  void processBtmInstrumentAction(org.eclipse.jdt.core.dom.MethodDeclaration methodDeclaration, org.eclipse.jdt.core.IMethod method, org.eclipse.text.edits.MultiTextEdit edit, java.lang.StringBuffer msgBuffer)
          Center entry to process BtM add/remove instrumentaion code to specified method.
 
Methods inherited from class org.eclipse.tptp.platform.instrumentation.ui.internal.sourceeditor.actions.AbstractObjectActionDelegate
run, selectionChanged, setActivePart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractInstrumentRemoveAction

public AbstractInstrumentRemoveAction()
Method Detail

processBtmInstrumentAction

protected void processBtmInstrumentAction(org.eclipse.jdt.core.dom.MethodDeclaration methodDeclaration,
                                          org.eclipse.jdt.core.IMethod method,
                                          org.eclipse.text.edits.MultiTextEdit edit,
                                          java.lang.StringBuffer msgBuffer)
Description copied from class: AbstractObjectActionDelegate
Center entry to process BtM add/remove instrumentaion code to specified method. Subclass must provide its implementation to process add or remove logic code

Specified by:
processBtmInstrumentAction in class AbstractObjectActionDelegate
Parameters:
methodDeclaration - method AST node associated with method needed to add/remove code
method - method needed to add/remove code
edit - multi-text edit can be used to aggregate several edits into one edit

getDetermineDeletedString

protected abstract java.lang.String getDetermineDeletedString()
return determined string needed to be deleted


getMethodEntryDeleteRegionList

protected java.util.List getMethodEntryDeleteRegionList(org.eclipse.jdt.core.dom.TryStatement tryStatement)
return default document region list for method entry. Subclass may provide additional documents regions

Parameters:
tryStatement - try statement that contains deletable statement
Returns:
default document region list for method entry

getMethodExitDeleteRegionList

protected java.util.List getMethodExitDeleteRegionList(org.eclipse.jdt.core.dom.TryStatement tryStatement)
return default document region list for method exit. Subclass may provide additional documents regions

Parameters:
tryStatement - try statement that contains deletable statement
Returns:
default document region list for method exit

getWarningMessage

protected java.lang.String getWarningMessage()
no needed message for remove action

Specified by:
getWarningMessage in class AbstractObjectActionDelegate

getMethodEntryDeletedText

protected abstract java.lang.String getMethodEntryDeletedText()

getMethodExitDeletedText

protected abstract java.lang.String getMethodExitDeletedText()

TPTP 4.5.0 Platform Project
Internal API Specification