bluej.extensions.event
Interface CompileListener


public interface CompileListener

This interface allows you to listen for compile events. The order of occurence of these method calls for a given compilation is:

     compileStarted()
     compileError()                        # If a compilation error occurs
     compileWarning()                      # If a compilation warning occurs
     compileFailed() or compileSucceeded()
 
Note that currently BlueJ only reports the first compilation error or warning.

Version:
$Id: CompileListener.java 6215 2009-03-30 13:28:25Z polle $

Method Summary
 void compileError(CompileEvent event)
          This method will be called when there is a report of a compile error.
 void compileFailed(CompileEvent event)
          This method will be called when the compile fails.
 void compileStarted(CompileEvent event)
          This method will be called when a compilation starts.
 void compileSucceeded(CompileEvent event)
          This method will be called when the compile ends successfully.
 void compileWarning(CompileEvent event)
          This method will be called when there is a report of a compile warning.
 

Method Detail

compileStarted

void compileStarted(CompileEvent event)
This method will be called when a compilation starts. If a long operation must be performed you should start a Thread.


compileError

void compileError(CompileEvent event)
This method will be called when there is a report of a compile error. If a long operation must be performed you should start a Thread.


compileWarning

void compileWarning(CompileEvent event)
This method will be called when there is a report of a compile warning. If a long operation must be performed you should start a Thread.


compileSucceeded

void compileSucceeded(CompileEvent event)
This method will be called when the compile ends successfully. If a long operation must be performed you should start a Thread.


compileFailed

void compileFailed(CompileEvent event)
This method will be called when the compile fails. If a long operation must be performed you should start a Thread.



BlueJ homepage