Bug 15852

Summary: need set api on IClasspathEntry
Product: [Eclipse Project] JDT Reporter: Ritchie Schacher <schacher>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M6   
Hardware: All   
OS: All   
Whiteboard:

Description Ritchie Schacher CLA 2002-05-13 11:26:46 EDT
I'd like to be able to do the following with an IClasspathEntry:
if (!entry.isExported())
 entry.setExported(true);

but there is no such api.  Looks like the current workaround is to
create a new entry and copy the other info.
Comment 1 Philipe Mulet CLA 2002-05-13 12:35:58 EDT
Yes, this is intentional. Classpath entries are read-only, if you want to 
change some, then you need to create another one and reset the classpath (think 
of the side-effects in term of Java model updating).