Community
Participate
Working Groups
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.
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).