com.ibm.jdg2e.jdt
Class AddTraceStatementToMemberAction
java.lang.Object
com.ibm.jdg2e.jdt.AddTraceStatementsAction
com.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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AddTraceStatementToMemberAction
public AddTraceStatementToMemberAction()
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