This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 36318 - Remove text "class" from class node display names
Summary: Remove text "class" from class node display names
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Pokorsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-27 21:59 UTC by _ tboudreau
Modified: 2007-09-26 09:14 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2003-09-27 21:59:32 UTC
I was just horizontally scrolling Explorer to 
find an inner class, and realized that having the 
text be "class MyClass" on class nodes is nearly 
completely useless, and makes it harder to see 
the class name.

Two possible solutions:
1. (preferred) Simply remove the text.  That does 
make it a little confusing, because the DataNode 
above it will have the same name. In a perfect 
world, we could simply hide the top level class 
node except in the case of JDK 1.0 sources, and 
supply the actions for the class node from the 
DataNode (well, it could be done with Looks).

2. Switch the positions - "MyClass class" is just 
as legal as "class MyClass" (the order "clazz 
Foo" is more typical of Czech than English 
anyway).  That way, the thing that differentiates 
the nodes comes first, and horizontal scrolling 
is less likely to be necessary.
Comment 1 Jan Becicka 2003-09-29 10:43:49 UTC
BTW you can change it yourself: Tools | Options | IDE Configuration |
Look and Feel | Java Elements.
Comment 2 _ tboudreau 2003-09-29 14:39:17 UTC
Yes, I can.  But that doesn't help everyone else :-(
Comment 3 Tomas Zezula 2003-09-29 17:39:18 UTC
Tim is right, that the constant part of teh name is not very helpfull
for user and should be more hidden than the actual class name.
Comment 4 Jan Pokorsky 2004-06-10 15:23:22 UTC
I would also prefer to remove prefixes by default. In nb4.0 it applies
to class, interface, enum and annotation type (@interface).

Gabo is the right person to consider this from the HIE point of view.
So if he does not object I remove them.
Comment 5 Gabriel Tichy 2004-06-10 16:49:32 UTC
We do agree with the removal.
Comment 6 Jan Pokorsky 2004-07-12 16:10:19 UTC
fixed in

/cvs/java/src/org/netbeans/modules/java/ui/nodes/elements/Bundle.properties
new revision: 1.6; previous revision: 1.5
/cvs/java/srcmodel/src/org/openide/src/nodes/Bundle.properties
new revision: 1.8; previous revision: 1.7
Comment 7 Quality Engineering 2007-09-20 09:49:07 UTC
Reorganization of java component