Example usage for org.eclipse.jdt.internal.core.builder MissingSourceFileException MissingSourceFileException

List of usage examples for org.eclipse.jdt.internal.core.builder MissingSourceFileException MissingSourceFileException

Introduction

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

Prototype

public MissingSourceFileException(String missingSourceFile) 

Source Link

Usage

From source file:org.eclipse.jdt.internal.core.builder.SourceFile.java

License:Open Source License

public char[] getContents() {

    try {//from  w w w . j  a  va  2s .  c  o m
        return Util.getResourceContentsAsCharArray(this.resource);
    } catch (CoreException e) {
        throw new AbortCompilation(true,
                new MissingSourceFileException(this.resource.getFullPath().toString()));
    }
}