Example usage for org.eclipse.jdt.internal.core NameLookup findPackageFragment

List of usage examples for org.eclipse.jdt.internal.core NameLookup findPackageFragment

Introduction

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

Prototype

public IPackageFragment findPackageFragment(IPath path) 

Source Link

Document

Returns the package fragment whose path matches the given (absolute) path, or null if none exist.

Usage

From source file:org.eclipse.jdt.internal.core.JavaProject.java

License:Open Source License

private IPackageFragment findPackageFragment0(IPath path) throws JavaModelException {

    NameLookup lookup = newNameLookup((WorkingCopyOwner) null/*no need to look at working copies for pkgs*/);
    return lookup.findPackageFragment(path);
}