|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
BuildSystemListener instances are objects created by BuildSystem clients and used by the BuildSystem as a callback mechanism to allow clients to integrate pre-build & post-build operations. A BuildSystem client would write a BuildSystemListener implementation and plug it in the build system using JCompiler.addBuildSystemListener(). The BuildSystem allows you to register one or more listener objects. The method buildWillStart and buildFinished would be called as specified below. If more than one listener is registered, each listener would be called in the order the've been registered. The ordering is not customizable. Each listeners are called in sequential fashion until one of them throws an exception in which case, others after that are not being called anymore. BuildSystem client may remove listener at anytime using JCompiler. removeBuildSystemListener() API. Warning: buildWillStart() and buildFinishedMethod() will be invoked from a NON-Swing UI thread. Any Swing code perfomed by one of those callbacks will have to be performed using a SwingUtilities.{InvokeAndWait,InvokeLater}() system calls.
Method Summary | |
void |
buildFinished(int errorCount,
int warningCount,
int infoCount)
This method is called right after the build is complete and just before returning to the caller. |
void |
buildWillStart(Context context)
This method is called just before actually starting a build for the following context, context may be one or more workspace(s), one or more project(s), or one or more files within a project. |
Method Detail |
public void buildWillStart(Context context) throws BuildSystemVetoException
context
- -- context to build
BuildSystemVetoException
public void buildFinished(int errorCount, int warningCount, int infoCount) throws BuildSystemVetoException
errorCount
- -- # of errors for this buildwarningCount
- -- # of warnings for this buildinfoCount
- -- # of informational messages for this build
BuildSystemVetoException
|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.