|
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 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 |
| 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 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.CoreException
public static java.lang.String getDebuggerExePath(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration -
org.eclipse.core.runtime.CoreException
public static java.lang.String getDebuggerID(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration -
org.eclipse.core.runtime.CoreException
public static boolean getDebuggerStopInMainFlag(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration -
org.eclipse.core.runtime.CoreException
public static java.lang.String getDebuggerWorkDirectory(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration -
org.eclipse.core.runtime.CoreException
public static java.lang.String getExecutablePath(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration -
org.eclipse.core.runtime.CoreException
public static java.lang.String[] getProgramArguments(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration - launch configuration
org.eclipse.core.runtime.CoreException
public static java.lang.String getProgramName(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration -
org.eclipse.core.runtime.CoreException
public 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 project
public 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.CoreException
public 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 name
public static void setRemoteServicesId(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration,
java.lang.String id)
configuration - id - remote services ID
public 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 type
public static void setConfigurationName(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration,
java.lang.String name)
configuration - name - configuration name
public 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.CoreException
|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||