Community
Participate
Working Groups
In N20050526-0010, "Add JUnit Libraries" intentionally dirties the current editor, even though no text has changed. See bug 94287. This is potentially confusing to the user. I'm adding Erich to the CC, because it's possible that there's a reason behind this that I'm not aware of.
Erich, any comments here ?
The dirtying is done to force a reconcile so that the error message goes away in the source. This is hacky...What is a better way to force a reconcile?
Have to check with Jerome what happens on reconcile if the structure of the CU didn't change. Jerome, can you please comment on this ?
Maybe I'm missing something, but to force problem to be recomputed you can use the 'forceProblemDetection' flag on ICompilationUnit#reconcile(...).
I wasn't aware of this flag when I did it, so we should give it a try
Tried it with the flag, the problem is that the problem requestor of the Java editor isn't active at this point. Therefore no update takes place. Another workaround would be to undo the change, but this is a workaround following a workaround and the problem isn't that critical. suggest no action for 3.1 (3.0 was already shipped with this problem)
Deferrring then.
It seems to me that the editor should also listen to classpath changes so it can force a reconcile. Dani, what do you think?
see bug 65267
When we bug 65267 gets fixed, we can take away the code that dirties the CU. Setting to REMIND until this is the case.
*** Bug 86320 has been marked as a duplicate of this bug. ***
As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you.