|
|||||||||
| Home >> All >> com >> port80 >> eclipse >> [ builder overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.port80.eclipse.builder
Class AbstractBuilderAction

java.lang.Objectcom.port80.eclipse.builder.AbstractBuilderAction
- All Implemented Interfaces:
- org.eclipse.ui.IActionDelegate, org.eclipse.ui.IWorkbenchWindowActionDelegate
- Direct Known Subclasses:
- BlacksunBuilderAction, JavaccBuilderAction, MakeBuilderAction
- public abstract class AbstractBuilderAction
- extends java.lang.Object
- implements org.eclipse.ui.IWorkbenchWindowActionDelegate
- extends java.lang.Object
Abstract base class for builder actions. Override run() to call run(builder_classname) in derived builder.
| Field Summary | |
private java.lang.String |
fBuilderClassName
|
private org.eclipse.core.resources.IProject |
fProject
|
private org.eclipse.ui.IWorkbenchWindow |
fWindow
|
| Constructor Summary | |
AbstractBuilderAction()
The constructor. |
|
| Method Summary | |
void |
dispose()
We can use this method to dispose of any system resources we previously allocated. |
private void |
execBuild(org.eclipse.core.resources.IProject project)
|
void |
init(org.eclipse.ui.IWorkbenchWindow window)
We will cache window object in order to be able to provide parent shell for the message dialog. |
abstract void |
run(org.eclipse.jface.action.IAction action)
Performs this action. |
void |
run(java.lang.String builder_classname)
Invoke builder on selected project in the PackageView. |
void |
selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
Selection in the workbench has been changed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
fWindow
private org.eclipse.ui.IWorkbenchWindow fWindow
fProject
private org.eclipse.core.resources.IProject fProject
fBuilderClassName
private java.lang.String fBuilderClassName
| Constructor Detail |
AbstractBuilderAction
public AbstractBuilderAction()
- The constructor.
| Method Detail |
run
public abstract void run(org.eclipse.jface.action.IAction action)
- Description copied from interface:
org.eclipse.ui.IActionDelegate - Performs this action.
This method is called by the proxy action when the action has been triggered. Implement this method to do the actual work.
Note: If the action delegate also implements
IActionDelegate2, then this method is not invoked but instead therunWithEvent(IAction, Event)method is called.- Specified by:
runin interfaceorg.eclipse.ui.IActionDelegate
run
public void run(java.lang.String builder_classname)
- Invoke builder on selected project in the PackageView.
For now, always invoked as 'make eclipse'.
TODO: Ask for make target with a popup dialog.
*
selectionChanged
public void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
- Selection in the workbench has been changed. We
can change the state of the 'real' action here
if we want, but this can only happen after
the delegate has been created.
- Specified by:
selectionChangedin interfaceorg.eclipse.ui.IActionDelegate
dispose
public void dispose()
- We can use this method to dispose of any system
resources we previously allocated.
- Specified by:
disposein interfaceorg.eclipse.ui.IWorkbenchWindowActionDelegate
init
public void init(org.eclipse.ui.IWorkbenchWindow window)
- We will cache window object in order to
be able to provide parent shell for the message dialog.
- Specified by:
initin interfaceorg.eclipse.ui.IWorkbenchWindowActionDelegate
execBuild
private void execBuild(org.eclipse.core.resources.IProject project)
|
|||||||||
| Home >> All >> com >> port80 >> eclipse >> [ builder overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.port80.eclipse.builder.AbstractBuilderAction