Example usage for org.aspectj.ajdt.internal.core.builder AjState stateListener

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

Introduction

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

Prototype

IStateListener stateListener

To view the source code for org.aspectj.ajdt.internal.core.builder AjState stateListener.

Click 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) {
            }/*from  w w  w  .j  ava2  s  . c o  m*/

            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;
}

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

License:Open Source License

public static void removeStateListener() {
    AjState.stateListener = null;
}

From source file:org.eclipse.ajdt.core.model.AJModelChecker.java

License:Open Source License

public static boolean shouldCheckModel() {
    // if the state listener is not null, this means that debug tracing is enabled.
    return AjState.stateListener != null;
}