Menu

#72 Metrics item does not appear on context menu

open
nobody
None
5
2005-10-27
2005-10-27
BC Holmes
No

Using Eclipse 3.1 and JDK 1.4 and Metrics 1.3.6, I
don't see the Metrics option in my context menu for the
package explorer.

I get the following item in my .log file:

org.eclipse.core.internal.resources.ResourceException:
Resource /anttools is not open.
at
org.eclipse.core.internal.resources.Project.checkAccessible(Project.java:127)
at
org.eclipse.core.internal.resources.Project.hasNature(Project.java:479)
at
net.sourceforge.metrics.ui.MetricsView.selectionChanged(MetricsView.java:302)
at
org.eclipse.ui.internal.AbstractSelectionService.fireSelection(AbstractSelectionService.java:156)
at
org.eclipse.ui.internal.AbstractSelectionService$1.selectionChanged(AbstractSelectionService.java:62)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
...

Everything else seems fine. So long as I have a
project that has metrics turned on, I can see the
metrics in the Metrics View. I can also fiddle with
the .project file to turn metrics on for a particular
project (as a work-around), but Metrics does not show
up in the context menu.

BC

Discussion


Log in to post a comment.