Community
Participate
Working Groups
Build 20020416 Right now, when one change the attached source of a jar, a F_REMOVED_FROM_CLASSPATH java delta is fired, which is obviously wrong. As a consequence, the UI reacts by closing the class file editors opened on this jar, which is right for a F_REMOVED_FROM_CLASSPATH java delta. However I tried to fix the delta to be a (F_SOURCEDETACHED | F_SOURCEATTACHED) delta, but the UI would not react. In this case, I think it should refresh the class file editor to get the new source. For now, I will fire a (F_REMOVED_FROM_CLASSPATH | F_SOURCEDETACHED | F_SOURCEATTACHED) delta, and I will remove the F_REMOVED_FROM_CLASSPATH when this bug is fixed.
we should refresh the contents of the class file editor. this should also fix the feature request to refresh the class file editor when it is open with no source and then the user attaches source.
blocked by 15423
fixed >= 20020414-N Jerome, you can remove the flag F_REMOVED_FROM_CLASSPATH.
Claude, is your change in 20020515-I? I tried to remove the flag F_REMOVED_FROM_CLASSPATH, but the UI would not react.
yes, it should be. Even if it wasn't in the integration build, you should be able to test it since you're connected to source with jdt.ui. I simulated the behaviour by ignoring the F_REMOVED_FROM_CLASSPATH (commented out lines 107-110 in ClassFileDocumentProvider.java) and relying only on F_SOURCE_DETACHED/F_SOURCE_ATTACHED and it worked for me. I tested this with attaching/detaching source from org.eclipse.core.boot/boot.jar.
Ack. This now works for me. I removed the F_REMOVED_FROM_CLASSPATH flag from the delta.
changed milestone from F1 to F2
pls verify
Please verify and close if possible. Otherwise reopen.
Verified.