|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ptp.core.util.LaunchUtils
public class LaunchUtils
Utility methods for managing launch configuration attributes.
| Constructor Summary | |
|---|---|
LaunchUtils()
Constructor |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LaunchUtils()
| Method Detail |
|---|
public static String getArguments(ILaunchConfiguration configuration)
throws CoreException
configuration -
CoreExceptionpublic 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 configuration
CoreException
public static String getProgramName(ILaunchConfiguration configuration)
throws CoreException
configuration -
CoreException
public static String getProgramPath(ILaunchConfiguration configuration)
throws CoreException
configuration -
CoreExceptionpublic static IProject getProject(String project)
project - name of the project
public static String getProjectName(ILaunchConfiguration configuration)
throws CoreException
configuration -
CoreExceptionpublic static String getRemoteServicesId(ILaunchConfiguration configuration)
configuration -
public static String getResourceManagerUniqueName(ILaunchConfiguration configuration)
configuration -
CoreExceptionpublic static String getSystemType(ILaunchConfiguration configuration)
configuration -
CoreExceptionpublic static String getTemplateName(ILaunchConfiguration configuration)
configuration -
CoreException
public static String getWorkingDirectory(ILaunchConfiguration configuration)
throws CoreException
configuration -
CoreExceptionpublic static IWorkspaceRoot getWorkspaceRoot()
public static void setConnectionName(ILaunchConfigurationWorkingCopy configuration,
String name)
configuration - name - connection name
public static void setRemoteServicesId(ILaunchConfigurationWorkingCopy configuration,
String id)
configuration - id - remote services ID
public static void setResourceManagerUniqueName(ILaunchConfigurationWorkingCopy configuration,
String id)
configuration -
public static void setSystemType(ILaunchConfigurationWorkingCopy configuration,
String type)
configuration - type - target system type
public static void setConfigurationName(ILaunchConfigurationWorkingCopy configuration,
String name)
configuration - name - configuration name
public static void setWorkingDirectory(ILaunchConfigurationWorkingCopy configuration,
String dir)
throws CoreException
configuration - dir -
CoreException
|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||