1 8 package com.mountainminds.eclemma.internal.core; 9 10 import org.eclipse.core.runtime.Platform; 11 import org.osgi.framework.Bundle; 12 import org.osgi.framework.Version; 13 14 22 public class EclipseVersion { 23 24 public static final Version CURRENT; 25 26 public static final Version V320 = new Version("3.2.0"); 28 35 public static boolean isGreaterOrEqualTo(Version version) { 36 return CURRENT.compareTo(version) >= 0; 37 } 38 39 static { 40 Bundle rt = Platform.getBundle(Platform.PI_RUNTIME); 41 String version = (String ) rt.getHeaders().get(org.osgi.framework.Constants.BUNDLE_VERSION); 42 CURRENT = new Version(version); 43 } 44 45 } 46 | Popular Tags |