public class LaunchUtils
extends java.lang.Object
| Constructor and Description |
|---|
LaunchUtils()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getArguments(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get the program arguments specified in the Arguments tab
|
static java.lang.String |
getConnectionName(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get the connection name specified in the Resources tab
|
static boolean |
getCopyExecutable(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get if the executable shall be copied to remote target before launch.
|
static java.lang.String |
getDebuggerExePath(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get the debugger executable path
|
static java.lang.String |
getDebuggerID(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get the ID of the debugger for this launch
|
static boolean |
getDebuggerStopInMainFlag(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get the debugger "stop in main" flag
|
static java.lang.String |
getDebuggerWorkDirectory(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get the working directory for this debug session
|
static java.lang.String |
getExecutablePath(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get the absolute path of the executable to launch.
|
static java.lang.String[] |
getProgramArguments(org.eclipse.debug.core.ILaunchConfiguration configuration)
Convert application arguments to an array of strings.
|
static java.lang.String |
getProgramName(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get the name of the executable to launch
|
static java.lang.String |
getProgramPath(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get the path component of the executable to launch.
|
static org.eclipse.core.resources.IProject |
getProject(java.lang.String project)
Get the IProject object from the project name.
|
static java.lang.String |
getProjectName(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get the name of the project
|
static java.lang.String |
getRemoteServicesId(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get the remote services ID specified in the Resources tab (possibly implicitly)
|
static java.lang.String |
getResourceManagerUniqueName(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get the target controller to use for the launch
|
static java.lang.String |
getSystemType(org.eclipse.debug.core.ILaunchConfiguration configuration)
Given a launch configuration, find the system type that was been selected.
|
static java.lang.String |
getTemplateName(org.eclipse.debug.core.ILaunchConfiguration configuration)
Given a launch configuration, find the template name that was been selected.
|
static java.lang.String |
getWorkingDirectory(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get the working directory for the application launch
|
static org.eclipse.core.resources.IWorkspaceRoot |
getWorkspaceRoot()
Get the workspace root.
|
static void |
setConfigurationName(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration,
java.lang.String name)
Set the name of the launch configuration
|
static void |
setConnectionName(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration,
java.lang.String name)
Set the connection name attribute
|
static void |
setRemoteServicesId(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration,
java.lang.String id)
Set the remote services ID attribute
|
static void |
setResourceManagerUniqueName(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration,
java.lang.String id)
Set the target controller used for the launch
|
static void |
setSystemType(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration,
java.lang.String type)
Set the target system type used for the launch
|
static void |
setWorkingDirectory(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration,
java.lang.String dir)
Set the working directory
|
public static java.lang.String getArguments(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration - org.eclipse.core.runtime.CoreExceptionpublic static java.lang.String getConnectionName(org.eclipse.debug.core.ILaunchConfiguration configuration)
configuration - public static boolean getCopyExecutable(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration - org.eclipse.core.runtime.CoreExceptionpublic static java.lang.String getDebuggerExePath(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration - org.eclipse.core.runtime.CoreExceptionpublic static java.lang.String getDebuggerID(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration - org.eclipse.core.runtime.CoreExceptionpublic static boolean getDebuggerStopInMainFlag(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration - org.eclipse.core.runtime.CoreExceptionpublic static java.lang.String getDebuggerWorkDirectory(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration - org.eclipse.core.runtime.CoreExceptionpublic static java.lang.String getExecutablePath(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration - org.eclipse.core.runtime.CoreExceptionpublic static java.lang.String[] getProgramArguments(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration - launch configurationorg.eclipse.core.runtime.CoreExceptionpublic static java.lang.String getProgramName(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration - org.eclipse.core.runtime.CoreExceptionpublic static java.lang.String getProgramPath(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration - org.eclipse.core.runtime.CoreExceptionpublic static org.eclipse.core.resources.IProject getProject(java.lang.String project)
project - name of the projectpublic static java.lang.String getProjectName(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration - org.eclipse.core.runtime.CoreExceptionpublic static java.lang.String getRemoteServicesId(org.eclipse.debug.core.ILaunchConfiguration configuration)
configuration - public static java.lang.String getResourceManagerUniqueName(org.eclipse.debug.core.ILaunchConfiguration configuration)
configuration - org.eclipse.core.runtime.CoreExceptionpublic static java.lang.String getSystemType(org.eclipse.debug.core.ILaunchConfiguration configuration)
configuration - org.eclipse.core.runtime.CoreExceptionpublic static java.lang.String getTemplateName(org.eclipse.debug.core.ILaunchConfiguration configuration)
configuration - org.eclipse.core.runtime.CoreExceptionpublic static java.lang.String getWorkingDirectory(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration - org.eclipse.core.runtime.CoreExceptionpublic static org.eclipse.core.resources.IWorkspaceRoot getWorkspaceRoot()
public static void setConnectionName(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration,
java.lang.String name)
configuration - name - connection namepublic static void setRemoteServicesId(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration,
java.lang.String id)
configuration - id - remote services IDpublic static void setResourceManagerUniqueName(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration,
java.lang.String id)
configuration - public static void setSystemType(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration,
java.lang.String type)
configuration - type - target system typepublic static void setConfigurationName(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration,
java.lang.String name)
configuration - name - configuration namepublic static void setWorkingDirectory(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration,
java.lang.String dir)
throws org.eclipse.core.runtime.CoreException
configuration - dir - org.eclipse.core.runtime.CoreExceptionCopyright (c) 2011 IBM Corporation and others. All Rights Reserved.