Example usage for org.eclipse.jdt.apt.core.env EclipseAnnotationProcessorEnvironment getPhase

List of usage examples for org.eclipse.jdt.apt.core.env EclipseAnnotationProcessorEnvironment getPhase

Introduction

In this page you can find the example usage for org.eclipse.jdt.apt.core.env EclipseAnnotationProcessorEnvironment getPhase.

Prototype

Phase getPhase();

Source Link

Document

Indicate whether the processor is being called during a build or during editing (that is, during reconcile).

Usage

From source file:com.farata.dto2extjs.asap.env.EclipseEnvironmentInspector.java

License:MIT License

public boolean isReconciliation(final AnnotationProcessorEnvironment env) {
    if (env instanceof EclipseAnnotationProcessorEnvironment) {
        final EclipseAnnotationProcessorEnvironment eenv = (EclipseAnnotationProcessorEnvironment) env;
        final Phase phase = eenv.getPhase();
        return Phase.RECONCILE == phase;
    } else/*from w w w  .j  av  a  2 s. c om*/
        return false;
}