Community
Participate
Working Groups
I want to get the inclusion and exclusion patterns of a java project's classpath. I can't do it unless I cast an IPackageFragmentRoot to a PackageFragmentRoot or use the org.eclipse.jdt.internal.core.util.Util class, both of which are non-public.
Exclusion/inclusion patterns can be retrieved on the corresponding IClasspathEntry using getExclusionPatterns()/getInclusionPatterns(). The classpath entry for an IPackageFragmentRoot is retrieved using getRawClasspathEntry().
Verified for 3.5M2 using I20080914-2000.