|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.gui.NameBearerHandle.ExportApplicationAction.ExporterBuildListener
class NameBearerHandle.ExportApplicationAction.ExporterBuildListener
Build listener to receive log messages from Ant tasks and forward them to the GATE status listener (i.e. the status bar). This class implements Executable not because it is itself executed, but in order to support interruption. If the user presses the stop button in the GUI lock window this object will be interrupted, and will throw an exception at the next call to messageLogged, which has the effect of interrupting the currently executing Ant task.
| Field Summary | |
|---|---|
private boolean |
interrupted
|
| Constructor Summary | |
|---|---|
NameBearerHandle.ExportApplicationAction.ExporterBuildListener()
|
|
| Method Summary | |
|---|---|
void |
buildFinished(org.apache.tools.ant.BuildEvent buildEvent)
|
void |
buildStarted(org.apache.tools.ant.BuildEvent buildEvent)
|
void |
execute()
Starts the execution of this executable |
void |
interrupt()
Notifies this executable that it should stop its execution as soon as possible. |
boolean |
isInterrupted()
Returns true if this executable has been interrupted via the Executable.interrupt() method since the last time its Executable.execute() method
was called |
void |
messageLogged(org.apache.tools.ant.BuildEvent buildEvent)
This is called for every log message (of any priority). |
void |
targetFinished(org.apache.tools.ant.BuildEvent buildEvent)
|
void |
targetStarted(org.apache.tools.ant.BuildEvent buildEvent)
|
void |
taskFinished(org.apache.tools.ant.BuildEvent buildEvent)
Set status message appropriately when task completes or fails. |
void |
taskStarted(org.apache.tools.ant.BuildEvent buildEvent)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private boolean interrupted
| Constructor Detail |
|---|
NameBearerHandle.ExportApplicationAction.ExporterBuildListener()
| Method Detail |
|---|
public boolean isInterrupted()
ExecutableExecutable.interrupt() method since the last time its Executable.execute() method
was called
isInterrupted in interface Executablepublic void interrupt()
Executable
interrupt in interface Executablepublic void taskFinished(org.apache.tools.ant.BuildEvent buildEvent)
taskFinished in interface org.apache.tools.ant.BuildListenerpublic void messageLogged(org.apache.tools.ant.BuildEvent buildEvent)
messageLogged in interface org.apache.tools.ant.BuildListenerpublic void buildStarted(org.apache.tools.ant.BuildEvent buildEvent)
buildStarted in interface org.apache.tools.ant.BuildListenerpublic void buildFinished(org.apache.tools.ant.BuildEvent buildEvent)
buildFinished in interface org.apache.tools.ant.BuildListenerpublic void targetStarted(org.apache.tools.ant.BuildEvent buildEvent)
targetStarted in interface org.apache.tools.ant.BuildListenerpublic void targetFinished(org.apache.tools.ant.BuildEvent buildEvent)
targetFinished in interface org.apache.tools.ant.BuildListenerpublic void taskStarted(org.apache.tools.ant.BuildEvent buildEvent)
taskStarted in interface org.apache.tools.ant.BuildListenerpublic void execute()
Executable
execute in interface Executable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||