Bug 125675

Summary: @category not reflected in outliner in live fashion
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: 3.2 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Philipe Mulet CLA 2006-01-30 04:40:32 EST
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
Comment 1 Jerome Lanneluc CLA 2006-01-30 06:11:17 EST
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().
Comment 2 Frederic Fusier CLA 2006-02-14 09:16:51 EST
Verified for 3.2 M5 using build I20060214-0010.