Bug 125675 - @category not reflected in outliner in live fashion
Summary: @category not reflected in outliner in live fashion
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M5   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-30 04:40 EST by Philipe Mulet CLA
Modified: 2006-02-14 09:16 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.