Example usage for org.eclipse.jdt.internal.core.util ResourceCompilationUnit ResourceCompilationUnit

List of usage examples for org.eclipse.jdt.internal.core.util ResourceCompilationUnit ResourceCompilationUnit

Introduction

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

Prototype

public ResourceCompilationUnit(IFile file, char[] mod) 

Source Link

Usage

From source file:org.eclipse.jdt.internal.core.hierarchy.HierarchyBuilder.java

License:Open Source License

/**
 * Create an ICompilationUnit info from the given compilation unit on disk.
 *//*from   www. j ava  2 s . c om*/
protected ICompilationUnit createCompilationUnitFromPath(Openable handle, IFile file) {
    final char[] elementName = handle.getElementName().toCharArray();
    return new ResourceCompilationUnit(file, file.getLocationURI()) {
        public char[] getFileName() {
            return elementName;
        }
    };
}