when using sevral plugins it happens that projet properties does not show metrics option. this affect 1.3.7 and 1.3.8
I've seen on some computers but I'm not able to reproduce it!
any one ?
I didn't see this problem on my Windows laptop but did see it on a Linux machine. It's tough to say what all of the different configuration variables might be. I was able to get the "Metrics" check box to appear on the property page by modifying plugin.xml by replacing the enabledWhen with the deprecated objectClass as follows:
<extension point="org.eclipse.ui.propertyPages"> <page name="Metrics" class="net.sourceforge.metrics.properties.MetricsPropertyPage" nameFilter="*" id="net.sourceforge.metrics.properties.MetricsPropertyPage"> <objectClass value="org.eclipse.jdt.core.IJavaProject"/> <!-- <enabledWhen> <instanceof value="org.eclipse.jdt.core.IJavaProject"/> </enabledWhen> --> </page> </extension>
Obviously, this is not the correct long-term answer. I have seen some bug reports relating to this. Apparently, in some cases, there is unspecified behavior if a property page is registered more than one. I don't know (yet) whether this is the case here.
The bug report I mentioned is at https://bugs.eclipse.org/bugs/show_bug.cgi?id=177557.
I am having the same problem with 1.3.8 whilst 1.3.7 works. With 1.3.8 it fails to load the Metrics2 plugin with the following error in the eclipse log:
!ENTRY org.eclipse.update.configurator 4 0 2010-09-30 12:26:07.566
!MESSAGE Unable to find feature.xml in directory: E:\eclipse\features\net.sourceforge.metrics_22.214.171.12400730-001.jar.
I am running Eclipse 3.6 (Helios) for JEE developers with JRE 1.6.0u20 and I have the following additional plugins installed:
Visual editor 1.5 (29/08/10)
Eclipse CheckStyle 5.1.0
Eclipse Utils 1.0.0
JD Eclipse 0.13
Just a bit of missed info. This is running on Windows XP SP3 with 4GB Ram and all the plugins have been installed from their downloadable versions or offline update sites as I have problems with Eclipse and the proxy servers here so cannot update from update sites directly.
Metrics2 was installed from the downloadable version on the files page.