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 96140 - Show classes with main method differently inside explorer
Summary: Show classes with main method differently inside explorer
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Jan Lahoda
URL:
Keywords:
: 99851 99910 109249 114441 116095 116407 122243 122668 123335 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-02-21 12:28 UTC by Max Sauer
Modified: 2008-05-06 10:34 UTC (History)
3 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 Max Sauer 2007-02-21 12:28:56 UTC
Inside NB version <= 5.5, we used to have classes with main method visually
differed inside Explorer, by green triangle. Now that we have
http://www.netbeans.org/issues/show_bug.cgi?id=85960 fixed, could we re-enable this?

---
NetBeans IDE Dev (Build 200702201900)
1.6.0; Java HotSpot(TM) 64-Bit Server VM 1.6.0-b105
SunOS version 5.10 running on sparcv9
en (nb); ISO646-US
Comment 1 Jiri Prox 2007-04-03 18:08:38 UTC
*** Issue 99851 has been marked as a duplicate of this issue. ***
Comment 2 Jan Lahoda 2007-04-04 08:22:50 UTC
*** Issue 99910 has been marked as a duplicate of this issue. ***
Comment 3 Jiri Prox 2007-07-10 15:40:52 UTC
*** Issue 109249 has been marked as a duplicate of this issue. ***
Comment 4 Jan Lahoda 2007-08-28 10:30:47 UTC
Unfortunately, implement this properly is not very trivial (especially implementation that will not affect the
performance, eg. in case of opening huge package full of java classes). So, I propose to defer this post-6.0.
Comment 5 tprochazka 2007-08-29 08:17:06 UTC
Note to jlahoda comment: Interesting NB scan all sources in project for errors, scan todo task and scan for main method 
is performance problem. Btw. Scan todo task is also performance problem, because NB scan it again and again after every 
Netbeans run, no caching :-(
Comment 6 novakm 2007-09-03 10:05:26 UTC
*** Issue 114450 has been marked as a duplicate of this issue. ***
Comment 7 novakm 2007-09-03 10:05:41 UTC
*** Issue 114441 has been marked as a duplicate of this issue. ***
Comment 8 Peter Pis 2007-09-07 15:49:26 UTC
*** Issue 114441 has been marked as a duplicate of this issue. ***
Comment 9 Jan Lahoda 2007-09-18 16:02:29 UTC
Sorry for late answer. The problem with badging the nodes is that when a huge package is expanded, the node badges
should not hog the CPU for a long time, and even more importantly, the stuff in the editor should take precedence over
the badging. While this is certainly implementable, I am a bit afraid of possible (performance) regressions this late in
the release cycle.

If you have performance problems with the tasklist scanning, please feel free to file issues against the tasklist module.
Comment 10 Jiri Prox 2007-09-24 09:35:50 UTC
*** Issue 116407 has been marked as a duplicate of this issue. ***
Comment 11 tprochazka 2007-09-25 15:06:21 UTC
I hope that will be usable reason soon. I think that this is big usability problem. Many project has many main methods 
classes with example and best way is only click to this classes in explorer and run this main method. I missing also 
different icon for interfaces or abstract classes.
Comment 12 Jiri Prox 2007-10-02 09:51:08 UTC
*** Issue 116095 has been marked as a duplicate of this issue. ***
Comment 13 Jan Lahoda 2007-11-19 08:59:31 UTC
*** Issue 122243 has been marked as a duplicate of this issue. ***
Comment 14 Jan Lahoda 2007-11-26 08:57:45 UTC
*** Issue 122668 has been marked as a duplicate of this issue. ***
Comment 15 ulfzibis 2007-11-26 16:26:54 UTC
Good idea: different icon for interfaces or abstract classes.
Comment 16 Jan Lahoda 2007-12-04 12:37:20 UTC
*** Issue 123335 has been marked as a duplicate of this issue. ***
Comment 17 Jan Lahoda 2007-12-10 10:01:02 UTC
I have committed first version of main/executable badge for Java classes - it is disabled by default, needs to be
enabled by command line option:
-J-Dorg.netbeans.modules.java.JavaNode.enableExecutableBadge=true

I would like to ask everybody interested to test it and report problems. Thanks.

RCS file: /cvs/java/source/src/org/netbeans/modules/java/IsMainResolver.java,v
done
Checking in IsMainResolver.java;
/cvs/java/source/src/org/netbeans/modules/java/IsMainResolver.java,v  <--  IsMainResolver.java
initial revision: 1.1
done
Checking in JavaNode.java;
/cvs/java/source/src/org/netbeans/modules/java/JavaNode.java,v  <--  JavaNode.java
new revision: 1.14; previous revision: 1.13
done
Comment 18 Jan Becicka 2008-02-18 15:49:44 UTC
Do we have some measurements? Is there any significant perf. degradation?
Comment 19 Jan Lahoda 2008-02-21 11:42:54 UTC
I have implemented a faster approach for main class badges -my experiments suggest that the impact on performance should
be negligible.
http://hg.netbeans.org/main/rev/024fab6e426b
Comment 20 Jiri Prox 2008-05-06 10:34:16 UTC
verified