Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Metrics Plugin issue in Eclipse

I have installed Metrics Plguin 1.3.8 in eclipse 3.7 indigo.After intalling and giving my system a restart I cant see any Metrics option in Project properties.

Any one have any idea on this.

like image 700
John Avatar asked Dec 04 '12 07:12

John


1 Answers

I had the same problem with Eclipse Juno and metrics 1 (1.3.6) .

After a few Eclipse upgrade and theming, the metrics doesn't work anymore. It was just showing the calculation progression but it doesn't display the calculation results anymore.

After some net search, i found that http://metrics.sourceforge.net/ evolve into http://metrics2.sourceforge.net/, so i make the change. But, the metrics 2 (1.3.8) shows the same problem.

After a little search in my Eclipse workspace files, i found a directory named ".metadata". Then a sub directory named ".plugins". Then a sub directory named "net.sourceforge.metrics" with two files inside :

  • metricsdb.db
  • metricsdb.lg

So, after quitting Eclipse, i go to "MyJunoWorkspace/.metadata/.plugins/net.sourceforge.metrics/" directory, then i move the two files to another place, relaunch Eclipse, make a clean/full rebuild of my project from the package view. The metrics calculation results are now redisplayed. The dependency graph is also redisplayed.

The first step of version switching (metrics 1 to 2), result from my tests, and couldn't be necessary in all cases. Try first to move the two files.

like image 76
chan Avatar answered Sep 21 '22 13:09

chan