Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2011-02-14 14:18:46 +0000
committerAnton Leherbauer2011-02-14 14:18:46 +0000
commit60080b30c7c062fcee82e95ac40fb4ca26c9abb9 (patch)
treedd1321f070ecb61528f4f0b88c65a4855be37740 /launch/org.eclipse.cdt.launch
parent44d5f87460cff57acf9228488cd3d293a613e8a1 (diff)
downloadorg.eclipse.cdt-60080b30c7c062fcee82e95ac40fb4ca26c9abb9.tar.gz
org.eclipse.cdt-60080b30c7c062fcee82e95ac40fb4ca26c9abb9.tar.xz
org.eclipse.cdt-60080b30c7c062fcee82e95ac40fb4ca26c9abb9.zip
Fix deprecation warnings
Diffstat (limited to 'launch/org.eclipse.cdt.launch')
-rw-r--r--launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/LaunchUtils.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/LaunchUtils.java b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/LaunchUtils.java
index b0bc9664b5..9b2c76ce60 100644
--- a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/LaunchUtils.java
+++ b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/LaunchUtils.java
@@ -19,8 +19,9 @@ import java.util.Set;
import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.IBinaryParser;
import org.eclipse.cdt.core.IBinaryParser.IBinaryObject;
-import org.eclipse.cdt.core.ICExtensionReference;
import org.eclipse.cdt.core.model.CoreModel;
+import org.eclipse.cdt.core.model.CoreModelUtil;
+import org.eclipse.cdt.core.settings.model.ICConfigExtensionReference;
import org.eclipse.cdt.core.settings.model.ICConfigurationDescription;
import org.eclipse.cdt.core.settings.model.ICOutputEntry;
import org.eclipse.cdt.core.settings.model.ICProjectDescription;
@@ -102,10 +103,10 @@ public class LaunchUtils {
* @since 6.0
*/
public static IBinaryObject getBinary(IProject project, IPath exePath) throws CoreException {
- ICExtensionReference[] parserRef = CCorePlugin.getDefault().getBinaryParserExtensions(project);
+ ICConfigExtensionReference[] parserRef = CCorePlugin.getDefault().getDefaultBinaryParserExtensions(project);
for (int i = 0; i < parserRef.length; i++) {
try {
- IBinaryParser parser = (IBinaryParser)parserRef[i].createExtension();
+ IBinaryParser parser = CoreModelUtil.getBinaryParser(parserRef[i]);
IBinaryObject exe = (IBinaryObject)parser.getBinary(exePath);
if (exe != null) {
return exe;

Back to the top