| Summary: | classpath variable change listener | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Walter Harley <eclipse> |
| Component: | APT | Assignee: | Generic inbox for the JDT-APT component <jdt-apt-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | konstantin |
| Version: | 3.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | stalebug | ||
|
Description
Walter Harley
There does not appear to be any way to listen for changes to classpath variables. However, the classpath variable preference UI already offers to rebuild if variables are changed; and there is no other way for them to change, because classpath variables are not version-controllable (since they're at the workspace level rather than per project). So, resolving this as "won't fix". Although, rebuilding doesn't help here because it won't flush the processor cache. But the bottom line is there doesn't appear to be any reasonable way with existing APIs to catch this event. The two options would seem to be: 1) Add an API to JDT to let plugins register to listen to classpath variable changes. 2) Dump the processor cache on every build, or at least on a clean. I'm not sure this problem is important enough to bother with either one. Leaving it to see if anyone in the real world complains. Reopening per bug 159535. *** Bug 159535 has been marked as a duplicate of this bug. *** Couldn't you keep the list of vars and their values that you used to initialize the processor cache with (along with any vars that you couldn't resolve)? You could then compare that agains the current state on every build and know whether you need to dump the processor cache. This way a rebuild takes care of the problem, which is what users would expect. Reassigning to jdt-apt-inbox, per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |