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