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.
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
*** Issue 99851 has been marked as a duplicate of this issue. ***
*** Issue 99910 has been marked as a duplicate of this issue. ***
*** Issue 109249 has been marked as a duplicate of this issue. ***
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.
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 :-(
*** Issue 114450 has been marked as a duplicate of this issue. ***
*** Issue 114441 has been marked as a duplicate of this issue. ***
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.
*** Issue 116407 has been marked as a duplicate of this issue. ***
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.
*** Issue 116095 has been marked as a duplicate of this issue. ***
*** Issue 122243 has been marked as a duplicate of this issue. ***
*** Issue 122668 has been marked as a duplicate of this issue. ***
Good idea: different icon for interfaces or abstract classes.
*** Issue 123335 has been marked as a duplicate of this issue. ***
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
Do we have some measurements? Is there any significant perf. degradation?
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
verified