Eclipse metric issue

I installed Metrics Plguin 1.3.8 in eclipse 3.7 indigo. After reassigning and granting my system a reboot, I can’t see the Metrics option in the project properties.

Does anyone have an idea on this.

+6
source share
5 answers

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

After several updates and Eclipse topics, metrics no longer work. It simply showed the progress of the calculation, but no longer displays the results of the calculations.

After some network searching, I found that http://metrics.sourceforge.net/ is developing at http://metrics2.sourceforge.net/ , so I will make changes. But metric 2 (1.3.8) shows the same problem.

After a short search in my Eclipse work files, I found a directory called ".metadata". Then a subdirectory named .plugins. Then a subdirectory called "net.sourceforge.metrics" with two files inside:

  • metricsdb.db
  • metricsdb.lg

So, after exiting Eclipse, I go to the directory "MyJunoWorkspace / .metadata / .plugins / net.sourceforge.metrics /", then I move the two files to another place, restart Eclipse, do a clean / full rebuild of my project from the package view. Metric calculation results are now displayed again. The dependency graph is also displayed repeatedly.

The first step of switching versions (indicators from 1 to 2) is the result of my tests and may not be necessary in all cases. First try moving the two files.

+11
source

When you right-click a project to open its properties, make sure that you are in the Package Explorer view. This does not work if you are in Project Explorer.

+9
source

Right-click on Java Project in Project Explorer. Then go to "Configure> Convert to Plug-in Projects," then click Finish in the dialog box.

Now right-click again on Java Project in Project Explorer. Now go to "Settings", you will find "Metrics" in the left sidebar. Click on it and select "Include metrics." Now, the metrics view will show the calculated metrics.

I am using Eclipse Juno and Metrics 1.3.8.

0
source

I know that it seems to me the rebirth of the dead, but I had a similar problem when moving from Indigo to Mars.

The plugin is installed correctly and that’s it, but I couldn’t configure or use it. I looked on the Internet and found nothing, until I remember that the first step is ALWAYS looking at the journal (.metadata / .log). And here is what it looks like:

! The plugin MESSAGE on .eclipse / org.eclipse.platform_3.7.0_155965261 / plugins / com.stateofflow.eclipse.metrics_3.14.1.201104282140 'does not have an OSGi package manifest. To use the 2.0-style plugin, you must install the plug-in service. Go to Help> Install New Software and install Eclipse 2.0 Style Plugin Support on the Eclipse Project Updates software site.

I installed support for Eclipse 2.0 style plugins and reinstalled metrics and voila! Everything is good.

Hope this helps when I ended up here troubleshooting.

0
source

To display the Metrics window:

1) Click “Window” in the top options bar.

2) Select "Show View" → "Other" → "Metrics" → "Metric Metric".

To enable project metrics:

1) Right-click on the project.

2) Select "Properties".

3) Click on the "Metrics" label.

4) Check "Enable metrics."

You must be in the package explorer view.

0
source

All Articles