Bug 82745 - Outline view does not work in enum Math.RoundingMode
Summary: Outline view does not work in enum Math.RoundingMode
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M5   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-13 07:36 EST by Peter Svahn CLA
Modified: 2005-01-15 08:57 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 Peter Svahn CLA 2005-01-13 07:36:24 EST
The enum is displayed in the outline, but selecting an element in the outline 
does not take me to the corresponding place in the editor window (or anywhere).
Comment 1 Olivier Thomann CLA 2005-01-13 10:29:43 EST
Some element don't exist in the source code, but you can see them in the
outliner. Try to select a field like:
CEILING
DOWN
FLOOR
HALF_DOWN
HALF_EVEN
HALF_UP
UNNECESSARY
UP
it works. But selecting $VALUES doesn't work, because $VALUES is a synthetic field.
valueOf(int) works fine, but not valueOf(String) or values() that are synthetic
methods added by the compiler. They don't exist in the source.

Ok to close?
Comment 2 Peter Svahn CLA 2005-01-13 15:35:58 EST
Strange, still it does not work for me...
I'm using the 3.1.0 build 200412162000 version.

I have made some observations. If I try to browse to the corresponding 
declaration of for instance CEILING (BigDecimal.ROUND_CEILING) using F3 in 
RoundingMode I see a message in the status bar saying "current text selection 
does not resolve to a java element". 

Furthermore, if you try to use F3 in BigDecimal.divide to find the declaration 
of for example RoundingMode.CEILING the RoundingMode source file if opened but 
the cursor is placed in the beginning of the file.
Comment 3 Olivier Thomann CLA 2005-01-14 11:03:00 EST
Could you please try with a more recent build? 200412162000 is pretty old.
Comment 4 Peter Svahn CLA 2005-01-15 08:48:12 EST
OK, works fine in latest integration build I20050112-1200.
Comment 5 Philipe Mulet CLA 2005-01-15 08:57:06 EST
Thanks. Closing