Community
Participate
Working Groups
The outline of Java Classes shows a tree element static {...} for a static initializer like static { // Next follow a group of simple class members } My feature request is to show the outline tree element as static { Next follow a group of simple class members } Reason: I arrange the members of my class in groups: construction and object overwrites, simple properties, helpers, convenice, .... each group has an empty static {} at the begin to make this groups visible in the class outline. This "visibilty" is more valuable if the comment shows up in the outline. (I believe a good compiler compiles empty static initziliers to "nothing", so there are no negtive consequences of my crank. Thanks
After writting that feature request I noticed that this enrichment, is alos vbalueable for class with multiple regular static initializers. Perhaps that is more convincing to the kind reader, then my personal use of that feature
Move to JDT/UI.
If static initializers have a different color in the outline tree, then it helps me even more.
If we add such a scheme (named static initializers) then the name has to be provided by JDT/Core. Otherwise UI has to rescan the file to determine the name. Asking JDT/Core for comments.
Why not simply using comments, rather than expecting static initializers to behave like labels... I would rather provide @category support in javadoc annotations. Then UI would simply offer to group per categories. Back to UI for disposal.
To #5: Simple comments don't show up in the Outline view, but there is (perhaps a long) list of tree nodes "static{....}" Using "@category" may help if it shows up in the outline view as intended, but javadoc don't have it?
Philippe, how do I access @category in Javadoc annotations without scanning them?
It isn't supported yet, though there is quite some consensus on these: http://java.sun.com/j2se/javadoc/proposed-tags.html We would have to provide support to surface these in the JavaModel, we have a request for this already, see bug 23669
I like the idea of using @categroy for this instead of coming up with a "hand made" solution.
The discussion about @category or comment or whatever suggests that some kind off (specifyable) information will become displayed in the tree nodes static{...} of the outline view, i.e.: static{ "@categroy data" } static{ "Content of first line content" }. But nobody says it explicit, so please anwser it clear: Becomes some kind of editable information displayed in the outline views static{..} nodes???
Not for 3.0. Core will not provide functionality for 3.0.
As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you.