| Summary: | Search for file occurences keybinding doesn't work | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Jean-Michel Lemieux <jean-michel_lemieux> | ||||
| Component: | Text | Assignee: | JDT-Text-Inbox <jdt-text-inbox> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | critical | ||||||
| Priority: | P3 | CC: | grant_gayed, jerome_lanneluc | ||||
| Version: | 3.0 | ||||||
| Target Milestone: | 3.0 RC4 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Jean-Michel Lemieux
I'm marking as critical because this is a regression. This had always worked and now I have to close/re-open editors all the time. Disucssed it with Kai, and the problem is that as soon as analyse annotations while typing is turned off the editor doesn't refresh the AST anymore. The find occurrences action takes tha AST from the editor. The problem is that an AST is constructed by core but this AST does not contain the full information. We set the problem requestor of the compilation unit to inactive when we are not interested in problems. The side effect it seems is that an empty AST is constructed. The simplest fix at this point in time is that the compilation unit annotation model that implements the problem requestor interface distinguishes between internal and external activation state. The external activation state would then only be used by JCore and always return true. The internal state would depend on the preference setting. Created attachment 12689 [details]
patch for CompilationUnitDocumentProvider
With the proposed solution, users won't be able to disable code resolution (which is CPU intensive). This means that editing a very large compilation unit can become tedious as the code resolution can take several seconds. No, in this scenario editing is not impacted at all. Build I200406231600. Verified for I20040625. both problems are fixed: - after adding another field to the Button fields (step3), and then clicking on another field and pressing ctrl+shirt+u (setp 4), no beep occurs and Occurrences in File works correctly. - adter saving ctrl+shirt+u works too, and there is no error message in the status line. *** Bug 65178 has been marked as a duplicate of this bug. *** For a follow-up see bug 76738. |