1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-11 18:25:40 +02:00

Add missing tag.

This commit is contained in:
Ken Ryall 2009-04-09 00:19:01 +00:00
parent 833f436400
commit 3ff09538e2

View file

@ -12,6 +12,10 @@ package org.eclipse.cdt.launch;
import java.io.IOException; import java.io.IOException;
import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.IBinaryParser;
import org.eclipse.cdt.core.ICExtensionReference;
import org.eclipse.cdt.core.IBinaryParser.IBinaryObject;
import org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants; import org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants;
import org.eclipse.cdt.utils.CommandLineUtil; import org.eclipse.cdt.utils.CommandLineUtil;
import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.IProject;
@ -22,10 +26,6 @@ import org.eclipse.core.runtime.Path;
import org.eclipse.core.variables.IStringVariableManager; import org.eclipse.core.variables.IStringVariableManager;
import org.eclipse.core.variables.VariablesPlugin; import org.eclipse.core.variables.VariablesPlugin;
import org.eclipse.debug.core.ILaunchConfiguration; import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.IBinaryParser;
import org.eclipse.cdt.core.ICExtensionReference;
import org.eclipse.cdt.core.IBinaryParser.IBinaryObject;
/** /**
* Utility methods. * Utility methods.
@ -51,6 +51,9 @@ public class LaunchUtils {
return args; return args;
} }
/**
* @since 6.0
*/
public static IBinaryObject getBinary(IProject project, IPath exePath) throws CoreException { public static IBinaryObject getBinary(IProject project, IPath exePath) throws CoreException {
ICExtensionReference[] parserRef = CCorePlugin.getDefault().getBinaryParserExtensions(project); ICExtensionReference[] parserRef = CCorePlugin.getDefault().getBinaryParserExtensions(project);
for (int i = 0; i < parserRef.length; i++) { for (int i = 0; i < parserRef.length; i++) {
@ -74,6 +77,9 @@ public class LaunchUtils {
return null; return null;
} }
/**
* @since 6.0
*/
public static IBinaryObject getBinary(String programName, String projectName) public static IBinaryObject getBinary(String programName, String projectName)
throws CoreException throws CoreException
{ {