List of usage examples for org.eclipse.jdt.internal.core.util ResourceCompilationUnit ResourceCompilationUnit
public ResourceCompilationUnit(IFile file, char[] mod)
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; } }; }