Menu

#1 Enable metrics can not appear in project properties

open
G.B.
None
8
2009-11-25
2009-11-25
G.B.
No

when using sevral plugins it happens that projet properties does not show metrics option. this affect 1.3.7 and 1.3.8

Discussion

  • G.B.

    G.B. - 2009-11-25
    • assigned_to: nobody --> gboissier
     
  • G.B.

    G.B. - 2010-01-06

    I've seen on some computers but I'm not able to reproduce it!
    any one ?

     
  • Keith Cassell

    Keith Cassell - 2010-02-12

    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.

     
  • Shaper

    Shaper - 2010-09-30

    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_1.3.8.20100730-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:
    EclEmma 1.5.0
    Implementors 0.16
    EclBatis 1.1.0.RC3
    Eclipse-Fullscreen 1.0.7
    AnyEditTools 2.3.1
    Findbugs 1.3.9
    RegExTester 1.3
    Visual editor 1.5 (29/08/10)
    Eclipse CheckStyle 5.1.0
    Eclipse Utils 1.0.0
    JD Eclipse 0.13

    HTH,

    Shaper

     
  • Shaper

    Shaper - 2010-09-30

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.