Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gvozdev2010-07-08 20:57:13 +0000
committerAndrew Gvozdev2010-07-08 20:57:13 +0000
commitaa7a3e8243ebdc9c1c509d8aad090b46ba39623b (patch)
treea43f3795ff8d4efe79a044fe590f70e4c7a45797 /build/org.eclipse.cdt.managedbuilder.gnu.ui/src
parentf9860d7005de828118644b5d398ac8bafc9c17a5 (diff)
downloadorg.eclipse.cdt-aa7a3e8243ebdc9c1c509d8aad090b46ba39623b.tar.gz
org.eclipse.cdt-aa7a3e8243ebdc9c1c509d8aad090b46ba39623b.tar.xz
org.eclipse.cdt-aa7a3e8243ebdc9c1c509d8aad090b46ba39623b.zip
bug 318581: Use of deprecated org.eclipse.core.runtime.PluginVersionIdentifier discontinued.
Patch from Petri Tuononen.
Diffstat (limited to 'build/org.eclipse.cdt.managedbuilder.gnu.ui/src')
-rw-r--r--build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/cygwin/IsGnuCygwinToolChainSupported.java8
-rw-r--r--build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/mingw/MingwIsToolChainSupported.java5
2 files changed, 7 insertions, 6 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/cygwin/IsGnuCygwinToolChainSupported.java b/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/cygwin/IsGnuCygwinToolChainSupported.java
index f5f4c183b89..8e6356bbf0b 100644
--- a/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/cygwin/IsGnuCygwinToolChainSupported.java
+++ b/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/cygwin/IsGnuCygwinToolChainSupported.java
@@ -18,7 +18,7 @@ import java.io.IOException;
import org.eclipse.cdt.managedbuilder.core.IManagedIsToolChainSupported;
import org.eclipse.cdt.managedbuilder.core.IToolChain;
-import org.eclipse.core.runtime.PluginVersionIdentifier;
+import org.osgi.framework.Version;
/**
* This class implements the IManagedIsToolChainSupported for the Gnu Cygwin tool-chain
@@ -44,8 +44,10 @@ public class IsGnuCygwinToolChainSupported implements
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.core.IManagedIsToolChainSupported#isSupported(org.eclipse.cdt.managedbuilder.core.IToolChain, org.eclipse.core.runtime.PluginVersionIdentifier, java.lang.String)
*/
- public boolean isSupported(IToolChain toolChain,
- PluginVersionIdentifier version, String instance) {
+ /**
+ * @since 8.0
+ */
+ public boolean isSupported(IToolChain toolChain, Version version, String instance) {
if (suppChecked) return toolchainIsSupported;
diff --git a/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/mingw/MingwIsToolChainSupported.java b/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/mingw/MingwIsToolChainSupported.java
index 8e6b82ac43e..da46486a884 100644
--- a/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/mingw/MingwIsToolChainSupported.java
+++ b/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/mingw/MingwIsToolChainSupported.java
@@ -13,7 +13,7 @@ package org.eclipse.cdt.managedbuilder.gnu.mingw;
import org.eclipse.cdt.managedbuilder.core.IManagedIsToolChainSupported;
import org.eclipse.cdt.managedbuilder.core.IToolChain;
-import org.eclipse.core.runtime.PluginVersionIdentifier;
+import org.osgi.framework.Version;
/**
* @author Doug Schaefer
@@ -29,8 +29,7 @@ public class MingwIsToolChainSupported implements IManagedIsToolChainSupported {
supported = MingwEnvironmentVariableSupplier.getBinDir() != null;
}
- public boolean isSupported(IToolChain toolChain,
- PluginVersionIdentifier version, String instance) {
+ public boolean isSupported(IToolChain toolChain, Version version, String instance) {
return supported;
}

Back to the top