Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 35447

Summary: Add data to File Property Pop Up [metrics]
Product: [Eclipse Project] Platform Reporter: Robert Klemme <shortcutter>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P4 CC: shortcutter
Version: 2.1Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Robert Klemme CLA 2003-03-21 05:13:01 EST
I'd like to have added some information to the resource property pop up that is 
reachable from the navigator and package explorer.  IMHO these things could be 
useful:

Category "Info":
 - lines and maybe words in file
 - empty lines vs. non empty lines

Category "Java" (not present at the moment)
 - number of classes defined
 - number of methods (maybe separated by visibility and static / instance) per 
class or overall
 - number of members (maybe separation as above) per class or overall
 - number of non comment lines

I guess the data is there already (since eclipse can show those entities in 
package explorer) and need only be presented.

Reason: these simple metrics can give a quick indication whether a class is too 
big and should be split up or otherwise dealt with.  I am not fixed on the 
exact set of data presented, but I think something along these lines could be 
helpful.
Comment 1 Nick Edgar CLA 2003-03-21 11:31:15 EST
Since your primary interest is in Java metrics, I'm moving this to JDT.
If you'd also like to see metrics on non-Java files, please enter a separate 
PR against Platform-UI.
Comment 2 Dirk Baeumer CLA 2003-03-21 12:23:31 EST
No action planned for 2.1. This is also a good third party opportunity.
Comment 3 Robert Klemme CLA 2003-03-24 08:36:08 EST
Since there are already third party activities for Java metrics I drop the Java 
part and suggest just to include words, lines and (non) empty lines into 
category "Info".  Thus moved back to "Platform-UI". :-)
Comment 4 Nick Edgar CLA 2003-03-25 21:53:52 EST
Note that, currently, the properties shown on the Info property page do not 
require reading the file.  The stats you suggest here would require reading the 
file, and therefore might have an adverse performance impact, particularly on 
slow network drives.

There are no plans for the UI team to work on this defect until higher priority 
items are addressed.  
If you would like to work on this defect, please let us know on the platform-ui-
dev mailing list.
Comment 5 Tod Creasey CLA 2005-08-12 13:57:59 EDT
There are currently no plans to address this.