Example usage for org.eclipse.jdt.internal.core CompilationUnit isWorkingCopy

List of usage examples for org.eclipse.jdt.internal.core CompilationUnit isWorkingCopy

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.core CompilationUnit isWorkingCopy.

Prototype

@Override
    public boolean isWorkingCopy() 

Source Link

Usage

From source file:org.eclipse.ajdt.core.reconcile.AJReconcileWorkingCopyOperation.java

License:Open Source License

protected IJavaModelStatus verify() {
    IJavaModelStatus status = super.verify();
    if (!status.isOK()) {
        return status;
    }// ww w  .  j av  a2 s . c o  m
    CompilationUnit workingCopy = getWorkingCopy();
    if (!workingCopy.isWorkingCopy()) {
        return new JavaModelStatus(IJavaModelStatusConstants.ELEMENT_DOES_NOT_EXIST, workingCopy); //was destroyed
    }
    return status;
}