home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgLangD.iso
/
VCAFE.3.0A
/
Main.bin
/
BuildListener.java
< prev
next >
Wrap
Text File
|
1998-10-25
|
2KB
|
50 lines
/*
* Copyright 1998 Symantec Corporation, All Rights Reserved.
*/
package com.symantec.itools.vcafe.openapi;
/**
* The listener interface for receiving notification about the status of a <code>VisualProject</code>'s
* build.
* To be notified of changes, a plug-in implements this interface then calls
* <code>BuildManager.addBuildListener</code> to place itself on the notification list. When
* the build status changes, the appropriate method of this interface is called.
* If you are only interested in a subset of the notification methods, you can extend the
* <code>BuildAdapter</code> class rather than implement all the methods yourself.
*
* @see VisualProject#getBuildManager
* @see BuildManager#addBuildListener
* @see BuildAdapter
*
* @author Symantec Internet Tools Division
* @version 1.0
* @since VCafe 3.0
*/
public interface BuildListener
{
/**
* Invoked when a project build commences.
* @param visualProject the project that is being built.
*/
public void aboutToBuildProject(VisualProject visualProject);
/** Indicates that a build completed normally. */
public final int BUILD_FINISHED = 0;
/** Indicates that the user cancelled a build. */
public final int BUILD_CANCELLED = 1;
/** Indicates that a build failed. */
public final int BUILD_FAILED = 2;
/**
* Invoked when the project build finishes.
* @param visualProject the project that was being built.
* @param howFinished how the build finished. Can be one of:<ul type=circle>
* <li>BUILD_FINISHED - the build completed normally,
* <li>BUILD_CANCELLED - the user cancelled the build, or
* <li>BUILD_FAILED - the build failed.
* </ul>
*/
public void doneBuildingProject(VisualProject visualProject, int howFinished);
}