Bug 43968 - Type hierarchy: Cache if a class is anonymous
Summary: Type hierarchy: Cache if a class is anonymous
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M6   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-01 04:41 EDT by Martin Aeschlimann CLA
Modified: 2003-12-11 13:56 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 Martin Aeschlimann CLA 2003-10-01 04:41:05 EDT
20031001

To render the labels (and in the future the image) in the type hierarchy we 
have to know if a class is anonymous. It would be good to have a new flag in
'getCachedFlags'.
Comment 1 Jerome Lanneluc CLA 2003-12-10 07:24:16 EST
Flags don't include an 'isAnonymous' flag (see Flags class). However, to know 
if a type is anonynous, you can check its name (getElemmentName()). If empty, 
it is an anonymous type.

Ok to close?
Comment 2 Martin Aeschlimann CLA 2003-12-10 21:40:40 EST
I think the name test fails for anonymous types from class files
Comment 3 Jerome Lanneluc CLA 2003-12-11 05:48:11 EST
Right. But why would showing 'A$1' as a label be a problem?
Comment 4 Martin Aeschlimann CLA 2003-12-11 11:05:46 EST
That's of course possible, in fact that's what I do now. So far I haven't had 
any complaints about it.
Comment 5 Jerome Lanneluc CLA 2003-12-11 11:41:05 EST
So you can use the empty type name for a source type and use the regular name 
for a binary type.

Can this be closed?
Comment 6 Martin Aeschlimann CLA 2003-12-11 13:34:52 EST
you can. I might reopen this if somebody complains about the name 
inconsistency: then I would need the feature.
Comment 7 Jerome Lanneluc CLA 2003-12-11 13:56:52 EST
Closing