Community
Participate
Working Groups
Version: 3.2.0 Build id: I20060125-0800 When adding @category tags to some field constants, the outliner doesn't reflect them quickly, and sometimes it takes a save action, and a 5s wait. 1. open editor on org.eclipse.jdt.core.search.IJavaSearchConstants 2. go to line after definition of READ_ACCESSES field 3. add "int foo" and observe quick reconcile action, revealing new field decl. then discard field addition 4. in comment of READ_ACCESSES field, add (*do not save yet*) a @category tag on first line: * @category limitTo it should look like: /** * @category limitTo * When searching for field matches, it will exclusively find read accesses, as * opposed to write accesses. Note that some expressions are considered both * as field read/write accesses: for example, x++; x+= 1; * * @since 2.0 */ int READ_ACCESSES = 4; Observe the outliner doesn't reflect the category addition. 5. save editor. Observe that after a 5 sec. wait, the outliner reflects the category addition
Changed JavaElementDeltaBuilder#findContentChange(...) to take the union of old and new category elements (it used to only look at the old ones). Added regression test ReconcilerTests#testCategories4().
Verified for 3.2 M5 using build I20060214-0010.