diff options
author | Anton Leherbauer | 2011-02-14 14:18:46 +0000 |
---|---|---|
committer | Anton Leherbauer | 2011-02-14 14:18:46 +0000 |
commit | 60080b30c7c062fcee82e95ac40fb4ca26c9abb9 (patch) | |
tree | dd1321f070ecb61528f4f0b88c65a4855be37740 /debug/org.eclipse.cdt.debug.core | |
parent | 44d5f87460cff57acf9228488cd3d293a613e8a1 (diff) | |
download | org.eclipse.cdt-60080b30c7c062fcee82e95ac40fb4ca26c9abb9.tar.gz org.eclipse.cdt-60080b30c7c062fcee82e95ac40fb4ca26c9abb9.tar.xz org.eclipse.cdt-60080b30c7c062fcee82e95ac40fb4ca26c9abb9.zip |
Fix deprecation warnings
Diffstat (limited to 'debug/org.eclipse.cdt.debug.core')
-rw-r--r-- | debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDIDebugModel.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDIDebugModel.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDIDebugModel.java index f718bb9f96a..6961023eae1 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDIDebugModel.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDIDebugModel.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2004, 2010 QNX Software Systems and others. + * Copyright (c) 2004, 2011 QNX Software Systems and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -21,10 +21,11 @@ import java.util.Map; import org.eclipse.cdt.core.CCorePlugin; import org.eclipse.cdt.core.IAddress; import org.eclipse.cdt.core.IBinaryParser; -import org.eclipse.cdt.core.ICExtensionReference; import org.eclipse.cdt.core.IBinaryParser.IBinaryExecutable; import org.eclipse.cdt.core.IBinaryParser.IBinaryFile; import org.eclipse.cdt.core.IBinaryParser.IBinaryObject; +import org.eclipse.cdt.core.model.CoreModelUtil; +import org.eclipse.cdt.core.settings.model.ICConfigExtensionReference; import org.eclipse.cdt.debug.core.cdi.model.ICDITarget; import org.eclipse.cdt.debug.core.model.ICAddressBreakpoint; import org.eclipse.cdt.debug.core.model.ICBreakpoint; @@ -729,9 +730,9 @@ public class CDIDebugModel { private static IBinaryExecutable getBinary( IFile file ) throws CoreException { IProject project = file.getProject(); - ICExtensionReference[] binaryParsersExt = CCorePlugin.getDefault().getBinaryParserExtensions( project ); + ICConfigExtensionReference[] binaryParsersExt = CCorePlugin.getDefault().getDefaultBinaryParserExtensions( project ); for( int i = 0; i < binaryParsersExt.length; i++ ) { - IBinaryParser parser = (IBinaryParser)binaryParsersExt[i].createExtension(); + IBinaryParser parser = CoreModelUtil.getBinaryParser(binaryParsersExt[i]); try { IBinaryFile exe = parser.getBinary( file.getLocation() ); if ( exe instanceof IBinaryExecutable ) { |