com.ibm.jdg2e.jdt
Class AddTraceStatementToMemberAction

java.lang.Object
  extended bycom.ibm.jdg2e.jdt.AddTraceStatementsAction
      extended bycom.ibm.jdg2e.jdt.AddTraceStatementToMemberAction
All Implemented Interfaces:
org.eclipse.ui.IActionDelegate, org.eclipse.ui.IObjectActionDelegate

public class AddTraceStatementToMemberAction
extends AddTraceStatementsAction
implements org.eclipse.ui.IObjectActionDelegate

The purpose of AddTraceStatementToMemberAction is to demonstrate how to add simple code modifications ("refactoring") to the Java editor. This action adds System.out.println statements to the selected method(s), including all parameters.

See Also:
IBuffer, JavaCore, IWorkingCopyManager, ICompilationUnit

Constructor Summary
AddTraceStatementToMemberAction()
           
 
Method Summary
 void run(org.eclipse.jface.action.IAction action)
           
 void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
          Selection has changed, the default is to do nothing.
 void setActivePart(org.eclipse.jface.action.IAction action, org.eclipse.ui.IWorkbenchPart targetPart)
           
 
Methods inherited from class com.ibm.jdg2e.jdt.AddTraceStatementsAction
addTraceStatement, createTraceStatement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddTraceStatementToMemberAction

public AddTraceStatementToMemberAction()
Method Detail

run

public void run(org.eclipse.jface.action.IAction action)
Specified by:
run in interface org.eclipse.ui.IActionDelegate

selectionChanged

public void selectionChanged(org.eclipse.jface.action.IAction action,
                             org.eclipse.jface.viewers.ISelection selection)
Description copied from class: AddTraceStatementsAction
Selection has changed, the default is to do nothing. Subclasses can override to fit their needs, e.g., test for the type of selection or singularity.

Specified by:
selectionChanged in interface org.eclipse.ui.IActionDelegate
Overrides:
selectionChanged in class AddTraceStatementsAction

setActivePart

public void setActivePart(org.eclipse.jface.action.IAction action,
                          org.eclipse.ui.IWorkbenchPart targetPart)
Specified by:
setActivePart in interface org.eclipse.ui.IObjectActionDelegate