<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The eflow blog &#187; plugin</title>
	<atom:link href="http://blog.eflow.org/archives/tag/plugin/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.eflow.org</link>
	<description>Insert some amazingly witty tagline here</description>
	<lastBuildDate>Fri, 23 Apr 2010 03:19:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>OpenMRS Metrics</title>
		<link>http://blog.eflow.org/archives/60</link>
		<comments>http://blog.eflow.org/archives/60#comments</comments>
		<pubDate>Fri, 25 Jul 2008 17:16:57 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[openmrs]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://blog.eflow.org/?p=60</guid>
		<description><![CDATA[I was recently tasked with finding out the number of methods in each class in each package inside of OpenMRS.  My first thought was to write a java class to do some reflection.  My second thought was to find a java class that someone else had written and use that.  My third [...]]]></description>
			<content:encoded><![CDATA[<p>I was recently tasked with finding out the number of methods in each class in each package inside of OpenMRS.  My first thought was to write a java class to do some reflection.  My second thought was to find a java class that someone <em>else</em> had written and use that.  My third thought was to find a way for Eclipse to do it.</p>
<p>I really should have jumped to that last one first.  Googling for my second thought gave me nothing useful.  However, simply adding &#8220;eclipse&#8221; to my search term brought up the <a href="http://metrics.sourceforge.net/">Metrics plugin</a> as the first result!  The Metrics plugin counts all different types of things.  Lucky for me, &#8220;number of methods&#8221; just happens to be one of them.</p>
<p>To get the counts working for you, follow these easy steps:</p>
<ol>
<li>Add <strong>http://metrics.sourceforge.net/update</strong> to eclipse as a plugin update site</li>
<li>Turn metrics on for your project:
<ol>
<li>Right click on the root of your project in <span style="text-decoration: underline;">Package Explorer</span> view</li>
<li>Choose Properties&#8211;&gt;Metrics&#8211;&gt;Enable Metrics</li>
</ol>
</li>
<li>Do an Eclipse clean rebuild</li>
<li>Click on the root of your project in the Package Explorer</li>
<li>Open the &#8220;Metrics&#8221; view</li>
</ol>
<p>These are the relevant statistics from the OpenMRS project:</p>
<p><a href="http://blog.eflow.org/wp-content/uploads/2008/07/metrics.png"><img class="alignnone size-full wp-image-61" title="metrics" src="http://blog.eflow.org/wp-content/uploads/2008/07/metrics.png" alt="" width="448" height="127" /></a></p>
<p>The second api/web are from the test package.  We have a lot of work to do to catch our total number of unit test methods up with our number of api methods.</p>
<p>I&#8217;ve also uploaded the <a href="http://blog.eflow.org/wp-content/uploads/2008/07/metrics-total.png">entire OpenMRS metrics output</a>.</p>
 <img src="http://blog.eflow.org/wp-content/plugins/feed-statistics.php?view=1&post_id=60" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.eflow.org/archives/60/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
