List of usage examples for org.eclipse.jdt.internal.core JavaModelManager create
public static IJavaElement create(IFolder folder, IJavaProject project)
From source file:org.eclipse.ajdt.core.AspectJCore.java
License:Open Source License
public static IJavaElement create(IFile file) { if ("aj".equals(file.getFileExtension())) { return AJCompilationUnitManager.INSTANCE.getAJCompilationUnit(file); }/*w w w .java 2 s . c o m*/ return JavaModelManager.create(file, null/*unknown java project*/); }