Bug 15852 - need set api on IClasspathEntry
Summary: need set api on IClasspathEntry
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 2.0 M6   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-13 11:26 EDT by Ritchie Schacher CLA
Modified: 2002-05-13 12:35 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).