Bug 163137 - Cannot get inclusion/exclusion patterns for classpaths using public interfaces
Summary: Cannot get inclusion/exclusion patterns for classpaths using public interfaces
Status: VERIFIED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0.2   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.5 M2   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-01 16:01 EST by Justin Weir CLA
Modified: 2008-09-15 08:44 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Weir CLA 2006-11-01 16:01:50 EST
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.
Comment 1 Jerome Lanneluc CLA 2008-08-25 07:09:58 EDT
Exclusion/inclusion patterns can be retrieved on the corresponding IClasspathEntry using getExclusionPatterns()/getInclusionPatterns(). The classpath entry for an IPackageFragmentRoot is retrieved using getRawClasspathEntry().
Comment 2 Frederic Fusier CLA 2008-09-15 08:44:29 EDT
Verified for 3.5M2 using I20080914-2000.