com.ibm.jdg2e.jdt
Class HelloASTAction
java.lang.Object
com.ibm.jdg2e.jdt.HelloASTAction
- All Implemented Interfaces:
- org.eclipse.ui.IActionDelegate, org.eclipse.ui.IWorkbenchWindowActionDelegate
- public class HelloASTAction
- extends java.lang.Object
- implements org.eclipse.ui.IWorkbenchWindowActionDelegate
The purpose of HelloASTAction is to introduce Abstract Syntax Trees (AST)
and demonstrate how to process them with the ASTVisitor subclass,
ASTNode2StringVisitor. This action will be shown on the window menu
under JDG2E: JDT Actions > Run Hello AST.
- See Also:
ASTNode2StringVisitor,
ASTNode,
ASTVisitor,
ICompilationUnit
|
Method Summary |
void |
dispose()
|
void |
init(org.eclipse.ui.IWorkbenchWindow window)
|
void |
run(org.eclipse.jface.action.IAction action)
Execute the two examples: first, the AST of a "Hello, World", and
then the AST of a Java source file provided by the user. |
void |
selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HelloASTAction
public HelloASTAction()
dispose
public void dispose()
- Specified by:
dispose in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
init
public void init(org.eclipse.ui.IWorkbenchWindow window)
- Specified by:
init in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
run
public void run(org.eclipse.jface.action.IAction action)
- Execute the two examples: first, the AST of a "Hello, World", and
then the AST of a Java source file provided by the user.
- Specified by:
run in interface org.eclipse.ui.IActionDelegate
- See Also:
IActionDelegate.run(IAction)
selectionChanged
public void selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
- Specified by:
selectionChanged in interface org.eclipse.ui.IActionDelegate