Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.ide.build
Class BuildEvent  view BuildEvent download BuildEvent.java

java.lang.Object
  extended byjava.util.EventObject
      extended byjavax.ide.build.BuildEvent
All Implemented Interfaces:
java.io.Serializable

public final class BuildEvent
extends java.util.EventObject

Event object passed to the BuildListeners.


Field Summary
private  javax.ide.command.Context _context
           
private  boolean _success
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BuildEvent(BuildSystem buildSystem, javax.ide.command.Context context)
          Constructor.
BuildEvent(BuildSystem buildSystem, javax.ide.command.Context context, boolean success)
          Constructor.
 
Method Summary
 BuildSystem getBuildSystem()
          Get the BuildSystem where the event happened.
 javax.ide.command.Context getContext()
          Get the context currently used to build.
 boolean isBuildSuccessful()
          Flag indicating if the build was successful.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_context

private final javax.ide.command.Context _context

_success

private final boolean _success
Constructor Detail

BuildEvent

public BuildEvent(BuildSystem buildSystem,
                  javax.ide.command.Context context)
Constructor.


BuildEvent

public BuildEvent(BuildSystem buildSystem,
                  javax.ide.command.Context context,
                  boolean success)
Constructor.

Method Detail

getBuildSystem

public BuildSystem getBuildSystem()
Get the BuildSystem where the event happened. This is functionally equivalent to casting the result of getSource() to a BuildSystem object.


getContext

public javax.ide.command.Context getContext()
Get the context currently used to build. The context selection lists all documents being built. The context project provides the source and class path.


isBuildSuccessful

public boolean isBuildSuccessful()
Flag indicating if the build was successful. Implementors must check this flag before proceeding with their pre or post build behavior.