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 15045 - Icon/badge for .class files
Summary: Icon/badge for .class files
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-09-01 09:20 UTC by emmanuel
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description emmanuel 2001-09-01 09:20:16 UTC
Could NB be changed please so that .class files have a very different 
icon/badge to the .java files.  When source and target directories are the 
same, the .java & .class files cannot be easily distinguished from each other.

On some projects I use a different target directory for compiling and then NB 
displays a different badge for .class files.  Could the icon/badge used when 
target directory set please be used throughout for .class files.

Kind regards
Emmanuel
Comment 1 Jan Zajicek 2001-09-07 09:36:26 UTC
moving to java module
Comment 2 Svata Dedic 2001-09-07 09:41:51 UTC
Sorry - I don't understand this. When classes are placed in the same
directory as sources (target dir not set), they should not be
displayed at all. Class files are "consumed" by their .java siblings'
objects so you shouldn't be able to seen them.
Can you clarify it a bit ?
Comment 3 emmanuel 2001-09-07 11:11:06 UTC
Hello Svatopuk,

I have several 'calling and worker' classes, each in one .java file.  
Once these are compiled, several .class files are created from 
each .java file and these are visible in the explorer filesystem view.

These orphaned .class files originated this request.

Hope this clarifies my request.

Kind regards
Emmanuel
Comment 4 Svata Dedic 2001-09-07 13:25:26 UTC
Yes, it's clear now.
a) the class objects already have different (grayscale) icon than java
ones. Class Elements, however, have just the same one.

b) the orphaned classes are not recognized as coming from those java
sources, otherwise they would be "consumed" underneath them.
If you want to enable such recognition, go to Tools -> Options ->
Object Types -> Java Sources and turn "Parse class files" on. The IDE
will try harder to pair class files with their java counterparts then.
The option is off by default, because it slows down processing in the IDE.

If b) is what you wanted, then please close the bug, since it is
designed to work this way.

BTW if you can avoid more than one top-level class in a source, please
do so. It's just the same as creating a static inner class and only
pollutes package namespace - besides that, tools which are attempting
to find a source for such class may fail, because - if they don't
parse the .class file - they don't have a clue what it was and
eventually slows down compilation.
Comment 5 emmanuel 2001-09-08 10:46:10 UTC
Hello Svatopuk,

Thank you for all your feedback and assistance.  It worked as 
descibed.

One further point though, I noticed that this option (and many 
others) are not available at project level.  Is this intended?

When I experiment I'd have multiple classes in one .java source file 
and therefore in such a project I could set the option, whereas in 
other 'production related' projects I would then have this option off.

Please advise.

Kind regards
Emmanuel
Comment 6 Svata Dedic 2001-09-08 11:21:55 UTC
I haven't even thought about having the option varied per-project 
yet :-) It always seemed more like configuration parameter of the 
IDE, rather than project thing; we've though about this option in the 
same way as an installed module, or a recognized extension setting.
Comment 7 emmanuel 2001-09-08 16:08:30 UTC
It would have added advantages if 'per project'.
Comment 8 Jan Chalupa 2001-11-27 12:50:04 UTC
Target milestone -> 3.3.1.
Comment 9 Svata Dedic 2002-05-21 17:51:48 UTC
Cleaning up before 4.0 planning
Comment 10 Jan Becicka 2002-05-22 16:39:12 UTC
Described behavior is as disigned.
Comment 11 Marek Grummich 2002-07-19 16:47:19 UTC
Target milestone was changed from not determined to TBD