Example usage for org.aspectj.ajdt.internal.core.builder IStateListener IStateListener

List of usage examples for org.aspectj.ajdt.internal.core.builder IStateListener IStateListener

Introduction

In this page you can find the example usage for org.aspectj.ajdt.internal.core.builder IStateListener IStateListener.

Prototype

IStateListener

Source Link

Usage

From source file:org.eclipse.ajdt.core.builder.AJBuilder.java

License:Open Source License

public static void addStateListener() {
    if (isl == null) {
        // Uses secret API in state to get callbacks on useful events
        isl = new IStateListener() {
            public void detectedClassChangeInThisDir(File f) {
            }/* w ww. j  a  va  2 s  . c  om*/

            public void aboutToCompareClasspaths(List oldClasspath, List newClasspath) {
            }

            public void pathChangeDetected() {
            }

            public void buildSuccessful(boolean wasFull) {
                AJLog.log(AJLog.COMPILER, "AspectJ reports build successful, build was: " + //$NON-NLS-1$ 
                (wasFull ? "FULL" : "INCREMENTAL")); //$NON-NLS-1$ //$NON-NLS-2$ 
            }

            public void detectedAspectDeleted(File f) {
            }

            public void recordDecision(String decision) {
                AJLog.log(AJLog.COMPILER, decision);
            }

            public void recordInformation(String info) {
                AJLog.log(AJLog.COMPILER, info);
            }
        };
    }
    AjState.stateListener = isl;
}