I have a java project with a lot java files. So, I want to know the number of .java
files in m开发者_开发技巧y project in Eclipse. How to know that?
Press Ctrl+Shift+r to show the resources. Then enter *.java
and mark all items of the list (Ctrl+a). The list will give you a summary how many resources it has found.
Other way is to search for something in 'File search'(Ctrl+H) with 'File name patterns' as '*.java'. As soon as you hit Search button, it will show you the number of java files on the bottom.
For eg: Scanning file xx of xxxx. Where xxxx
will be the number of java files in your project. ;-)
Take a look at JavaNCSS - it provides many relevant code metrics.
精彩评论