com.borland.primetime.build
Class BuildListenerSwingHelper

java.lang.Object
  |
  +--com.borland.primetime.build.BuildListenerSwingHelper
All Implemented Interfaces:
BuildListener

public class BuildListenerSwingHelper
extends java.lang.Object
implements BuildListener

Responds to build notifications by scheduling a listener notification on the Swing event thread.


Constructor Summary
BuildListenerSwingHelper(BuildListener listener, boolean includeDetails)
          Class constructor.
 
Method Summary
 void buildFinish(BuildProcess process)
          Dispatches a buildFinish notification on the Swing event thread.
 void buildMessage(BuildProcess process, java.lang.String file, java.lang.String message)
          Dispatches a buildMessage notification on the Swing event thread if the helper was constructed with includeDetails set to true.
 void buildProblem(BuildProcess process, Project project, Url url, boolean error, java.lang.String message, int line, int column, java.lang.String helpTopic)
          Dispatches a buildProblem notification on the Swing event thread if the helper was constructed with includeDetails set to true.
 void buildStart(BuildProcess process)
          Dispatches a buildStart notification on the Swing event thread.
 void buildStatus(BuildProcess process, java.lang.String message, boolean incrementFileCount)
          Dispatches a buildStatus notification on the Swing event thread if the helper was constructed with includeDetails set to true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildListenerSwingHelper

public BuildListenerSwingHelper(BuildListener listener,
                                boolean includeDetails)
Class constructor.
Parameters:
listener - The listener to be notified.
includeDetails - False if only want to know when build is complete.
Method Detail

buildStart

public void buildStart(BuildProcess process)
Dispatches a buildStart notification on the Swing event thread.
Specified by:
buildStart in interface BuildListener
Parameters:
process - The BuildProcess to which to attach the listener.

buildFinish

public void buildFinish(BuildProcess process)
Dispatches a buildFinish notification on the Swing event thread.
Specified by:
buildFinish in interface BuildListener
Parameters:
process - The BuildProcess to which to attach the listener.

buildStatus

public void buildStatus(BuildProcess process,
                        java.lang.String message,
                        boolean incrementFileCount)
Dispatches a buildStatus notification on the Swing event thread if the helper was constructed with includeDetails set to true.
Specified by:
buildStatus in interface BuildListener
Parameters:
process - The BuildProcess to which to attach the listener.
message - The notification message.
incrementFileCount - The current file counter.

buildMessage

public void buildMessage(BuildProcess process,
                         java.lang.String file,
                         java.lang.String message)
Dispatches a buildMessage notification on the Swing event thread if the helper was constructed with includeDetails set to true.
Specified by:
buildMessage in interface BuildListener
Parameters:
process - The BuildProcess to which to attach the listener.
file - The file being built.
message - The notification message.

buildProblem

public void buildProblem(BuildProcess process,
                         Project project,
                         Url url,
                         boolean error,
                         java.lang.String message,
                         int line,
                         int column,
                         java.lang.String helpTopic)
Dispatches a buildProblem notification on the Swing event thread if the helper was constructed with includeDetails set to true.
Specified by:
buildProblem in interface BuildListener
Parameters:
process - The BuildProcess to which to attach the listener.
project - The Project containing the files being built.
url - The Url of the file being built.
error - True if an error, false if a warning message.
message - The text of the message.
line - The line containing the error, or -1 if unknown.
column - The column of the given line containing the error, or -1 if unknown.
helpTopic - Location of any HTML file with context sensitive help, or null.