Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2011-06-28 18:23:20 -0400
committerspingel2011-06-28 18:23:20 -0400
commit0c1d6c747e7be4b4913a39172b542e291a674a5e (patch)
treee251760e38f5b5ef7946f707e16a59c9d6a26950
parent376fdb0529c800d47923c5251aa7a330916125e9 (diff)
downloadorg.eclipse.mylyn.tasks-0c1d6c747e7be4b4913a39172b542e291a674a5e.tar.gz
org.eclipse.mylyn.tasks-0c1d6c747e7be4b4913a39172b542e291a674a5e.tar.xz
org.eclipse.mylyn.tasks-0c1d6c747e7be4b4913a39172b542e291a674a5e.zip
NEW - bug 350639: simplify maintaining compatibility with older Eclipse platform releases
https://bugs.eclipse.org/bugs/show_bug.cgi?id=350639
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/notifications/Environment.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/notifications/Environment.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/notifications/Environment.java
index 924de9f95..cceae9426 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/notifications/Environment.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/notifications/Environment.java
@@ -19,6 +19,7 @@ import java.util.Set;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.Platform;
+import org.eclipse.mylyn.commons.core.CoreUtil;
import org.eclipse.osgi.service.resolver.VersionRange;
import org.osgi.framework.Bundle;
import org.osgi.framework.Filter;
@@ -40,7 +41,7 @@ public class Environment {
public Version getFrameworkVersion() {
Bundle bundle = Platform.getBundle("org.eclipse.mylyn"); //$NON-NLS-1$
if (bundle != null) {
- return bundle.getVersion();
+ return CoreUtil.getVersion(bundle);
} else {
return Version.emptyVersion;
}

Back to the top