Bug 45077 - Enrich Java Class Outline with more static {...} info [render] [general issue]
Summary: Enrich Java Class Outline with more static {...} info [render] [general issue]
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 23669
Blocks:
  Show dependency tree
 
Reported: 2003-10-17 02:29 EDT by markusle CLA
Modified: 2009-08-30 02:18 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description markusle CLA 2003-10-17 02:29:58 EDT
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
Comment 1 markusle CLA 2003-10-17 02:33:56 EDT
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
Comment 2 Olivier Thomann CLA 2003-10-17 08:14:09 EDT
Move to JDT/UI.
Comment 3 markusle CLA 2003-10-17 09:49:59 EDT
If static initializers have a different color in the
outline tree, then it helps me even more.
Comment 4 Dirk Baeumer CLA 2003-10-27 13:43:52 EST
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.
Comment 5 Philipe Mulet CLA 2003-10-27 15:12:48 EST
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.
Comment 6 markusle CLA 2003-10-27 21:04:25 EST
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?
Comment 7 Dirk Baeumer CLA 2003-10-28 02:29:21 EST
Philippe, how do I access @category in Javadoc annotations without scanning 
them?
Comment 8 Philipe Mulet CLA 2003-10-28 04:44:01 EST
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
Comment 9 Dirk Baeumer CLA 2003-10-28 05:44:25 EST
I like the idea of using @categroy for this instead of coming up with a "hand 
made" solution.
Comment 10 markusle CLA 2003-10-28 07:48:17 EST
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???
Comment 11 Dirk Baeumer CLA 2004-03-25 06:32:35 EST
Not for 3.0. Core will not provide functionality for 3.0.
Comment 12 Denis Roy CLA 2009-08-30 02:18:00 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.