|
PTP Release 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.debug.core.model.LaunchConfigurationDelegate
org.eclipse.ptp.launch.AbstractParallelLaunchConfigurationDelegate
public abstract class AbstractParallelLaunchConfigurationDelegate
| Field Summary | |
|---|---|
protected Map<String,org.eclipse.ptp.launch.AbstractParallelLaunchConfigurationDelegate.JobSubmission> |
jobSubmissions
|
| Fields inherited from class org.eclipse.debug.core.model.LaunchConfigurationDelegate |
|---|
complileErrorProjectPromptStatus, complileErrorPromptStatus, promptStatus, saveScopedDirtyEditors, switchToDebugPromptStatus |
| Constructor Summary | |
|---|---|
AbstractParallelLaunchConfigurationDelegate()
Constructor |
|
| Method Summary | |
|---|---|
void |
addSynchronizationRule(org.eclipse.ptp.launch.rulesengine.ISynchronizationRule rule)
|
protected void |
copyExecutable(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
Check if the copy local file is enabled. |
protected void |
copyFileFromRemoteHost(String remotePath,
String localPath,
org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
Copy a data from a path (can be a file or directory) from the remote host to the local host. |
protected void |
copyFileToRemoteHost(String localPath,
String remotePath,
org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
Copy a data from a path (can be a file or directory) from the local host to the remote host. |
protected abstract void |
doCleanupLaunch(IPLaunch launch)
Called to cleanup once the job terminates |
protected abstract void |
doCompleteJobLaunch(IPLaunch launch,
IPDebugger debugger)
This method is called when the job state changes to RUNNING. |
protected void |
doPostLaunchSynchronization(org.eclipse.debug.core.ILaunchConfiguration configuration)
|
protected void |
doPreLaunchSynchronization(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method does the synchronization step before the job submission |
protected static String |
getArguments(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get the program arguments specified in the Arguments tab |
boolean |
getCopyExecutable(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get if the executable shall be copied to remote target before launch. |
protected IPDebugConfiguration |
getDebugConfig(org.eclipse.debug.core.ILaunchConfiguration config)
Get the debugger configuration |
protected static String |
getDebuggerExePath(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get the debugger executable path |
protected static String |
getDebuggerID(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get the ID of the debugger for this launch |
protected static boolean |
getDebuggerStopInMainFlag(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get the debugger "stop in main" flag |
protected static String |
getDebuggerWorkDirectory(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get the working directory for this debug session |
protected static String[] |
getEnvironmentToAppend(org.eclipse.debug.core.ILaunchConfiguration configuration)
|
protected String |
getExecutablePath(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get the absolute path of the executable to launch. |
org.eclipse.debug.core.ILaunch |
getLaunch(org.eclipse.debug.core.ILaunchConfiguration configuration,
String mode)
|
IRemoteFileManager |
getLocalFileManager(org.eclipse.debug.core.ILaunchConfiguration configuration)
|
protected String[] |
getProgramArguments(org.eclipse.debug.core.ILaunchConfiguration configuration)
Convert application arguments to an array of strings. |
protected String |
getProgramName(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get the name of the executable to launch |
protected String |
getProgramPath(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get the path component of the executable to launch. |
protected org.eclipse.core.resources.IProject |
getProject(String project)
Get the IProject object from the project name. |
protected static String |
getProjectName(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get the name of the project |
protected org.eclipse.ptp.core.elements.IPQueue |
getQueueDefault(org.eclipse.ptp.core.elements.IPResourceManager rm)
Get the default queue for the given resource manager |
protected static String |
getQueueName(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get the name of the queue for the launch |
IRemoteFileManager |
getRemoteFileManager(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
protected org.eclipse.ptp.rmsystem.IResourceManager |
getResourceManager(org.eclipse.debug.core.ILaunchConfiguration configuration)
Find the resource manager that corresponds to the unique name specified in the configuration |
protected static String |
getResourceManagerUniqueName(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get the resource manager to use for the launch |
protected org.eclipse.ptp.launch.rulesengine.ISynchronizationRule[] |
getSynchronizeRules(org.eclipse.debug.core.ILaunchConfiguration configuration)
Returns the (possible empty) list of synchronization rule objects according to the rules described in the configuration. |
protected String |
getWorkingDirectory(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get the working directory for the application launch |
protected org.eclipse.core.resources.IWorkspaceRoot |
getWorkspaceRoot()
Get the workspace root. |
protected void |
setDefaultSourceLocator(org.eclipse.debug.core.ILaunch launch,
org.eclipse.debug.core.ILaunchConfiguration configuration)
Create a source locator from the ID specified in the configuration, or create a default one if it hasn't been specified. |
protected void |
setSourceLocator(org.eclipse.debug.core.ILaunch launch,
org.eclipse.debug.core.ILaunchConfiguration config)
Set the source locator for this application |
protected void |
setWorkingDirectory(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration,
String dir)
Set the working directory |
protected void |
submitJob(org.eclipse.debug.core.ILaunchConfiguration configuration,
String mode,
IPLaunch launch,
IPDebugger debugger,
org.eclipse.core.runtime.IProgressMonitor monitor)
Submit a job to the resource manager. |
protected void |
verifyDebuggerPath(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
Verify the validity of the debugger path. |
protected org.eclipse.core.runtime.IPath |
verifyExecutablePath(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
Verify the validity of executable path. |
protected void |
verifyLaunchAttributes(org.eclipse.debug.core.ILaunchConfiguration configuration,
String mode,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
protected org.eclipse.core.resources.IProject |
verifyProject(org.eclipse.debug.core.ILaunchConfiguration configuration)
Verify that the project exists prior to the launch. |
protected org.eclipse.core.runtime.IPath |
verifyResource(String path,
org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
protected String |
verifyWorkDirectory(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
Verify the working directory. |
| Methods inherited from class org.eclipse.debug.core.model.LaunchConfigurationDelegate |
|---|
addReferencedProjects, buildForLaunch, buildProjects, computeBuildOrder, computeReferencedBuildOrder, existsProblems, finalLaunchCheck, getBreakpoints, getBuildOrder, getProjectsForProblemSearch, isLaunchProblem, preLaunchCheck, saveBeforeLaunch |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.debug.core.model.ILaunchConfigurationDelegate |
|---|
launch |
| Field Detail |
|---|
protected Map<String,org.eclipse.ptp.launch.AbstractParallelLaunchConfigurationDelegate.JobSubmission> jobSubmissions
| Constructor Detail |
|---|
public AbstractParallelLaunchConfigurationDelegate()
| Method Detail |
|---|
protected static String getArguments(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration -
org.eclipse.core.runtime.CoreException
protected static String getDebuggerExePath(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration -
org.eclipse.core.runtime.CoreException
protected static String getDebuggerID(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration -
org.eclipse.core.runtime.CoreException
protected static boolean getDebuggerStopInMainFlag(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration -
org.eclipse.core.runtime.CoreException
protected static String getDebuggerWorkDirectory(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration -
org.eclipse.core.runtime.CoreException
protected static String[] getEnvironmentToAppend(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration -
org.eclipse.core.runtime.CoreException
protected static String getProjectName(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration -
org.eclipse.core.runtime.CoreException
protected static String getQueueName(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration -
org.eclipse.core.runtime.CoreException
protected static String getResourceManagerUniqueName(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration -
org.eclipse.core.runtime.CoreExceptionpublic void addSynchronizationRule(org.eclipse.ptp.launch.rulesengine.ISynchronizationRule rule)
addSynchronizationRule in interface org.eclipse.ptp.launch.rulesengine.ILaunchProcessCallback
public boolean getCopyExecutable(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration -
org.eclipse.core.runtime.CoreException
public org.eclipse.debug.core.ILaunch getLaunch(org.eclipse.debug.core.ILaunchConfiguration configuration,
String mode)
throws org.eclipse.core.runtime.CoreException
getLaunch in interface org.eclipse.debug.core.model.ILaunchConfigurationDelegate2getLaunch in class org.eclipse.debug.core.model.LaunchConfigurationDelegateorg.eclipse.core.runtime.CoreException
public IRemoteFileManager getLocalFileManager(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
getLocalFileManager in interface org.eclipse.ptp.launch.rulesengine.ILaunchProcessCallbackorg.eclipse.core.runtime.CoreException
public IRemoteFileManager getRemoteFileManager(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
getRemoteFileManager in interface org.eclipse.ptp.launch.rulesengine.ILaunchProcessCallbackorg.eclipse.core.runtime.CoreException
protected void copyExecutable(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
configuration - launch configuration
org.eclipse.core.runtime.CoreException - if the copy fails or is cancelled
protected void copyFileFromRemoteHost(String remotePath,
String localPath,
org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
remotePath - localPath - configuration -
org.eclipse.core.runtime.CoreException
protected void copyFileToRemoteHost(String localPath,
String remotePath,
org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
localPath - remotePath - configuration -
org.eclipse.core.runtime.CoreExceptionprotected abstract void doCleanupLaunch(IPLaunch launch)
config - mode - launch -
protected abstract void doCompleteJobLaunch(IPLaunch launch,
IPDebugger debugger)
launch - debugger -
protected void doPostLaunchSynchronization(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration -
org.eclipse.core.runtime.CoreException
protected void doPreLaunchSynchronization(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
configuration - monitor -
org.eclipse.core.runtime.CoreException
protected void verifyLaunchAttributes(org.eclipse.debug.core.ILaunchConfiguration configuration,
String mode,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
protected IPDebugConfiguration getDebugConfig(org.eclipse.debug.core.ILaunchConfiguration config)
throws org.eclipse.core.runtime.CoreException
configuration - launch configuration
org.eclipse.core.runtime.CoreException
protected String getExecutablePath(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration -
org.eclipse.core.runtime.CoreException
protected String[] getProgramArguments(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration - launch configuration
org.eclipse.core.runtime.CoreException
protected String getProgramName(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration -
org.eclipse.core.runtime.CoreException
protected String getProgramPath(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration -
org.eclipse.core.runtime.CoreExceptionprotected org.eclipse.core.resources.IProject getProject(String project)
project - name of the project
protected org.eclipse.ptp.core.elements.IPQueue getQueueDefault(org.eclipse.ptp.core.elements.IPResourceManager rm)
rm - resource manager
protected org.eclipse.ptp.rmsystem.IResourceManager getResourceManager(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration - launch configuration
org.eclipse.core.runtime.CoreException
protected org.eclipse.ptp.launch.rulesengine.ISynchronizationRule[] getSynchronizeRules(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
protected String getWorkingDirectory(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration -
org.eclipse.core.runtime.CoreException
protected void setWorkingDirectory(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration,
String dir)
throws org.eclipse.core.runtime.CoreException
configuration - dir -
org.eclipse.core.runtime.CoreExceptionprotected org.eclipse.core.resources.IWorkspaceRoot getWorkspaceRoot()
protected void setDefaultSourceLocator(org.eclipse.debug.core.ILaunch launch,
org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
launch - configuration -
org.eclipse.core.runtime.CoreException
protected void setSourceLocator(org.eclipse.debug.core.ILaunch launch,
org.eclipse.debug.core.ILaunchConfiguration config)
throws org.eclipse.core.runtime.CoreException
launch - config -
org.eclipse.core.runtime.CoreException
protected void submitJob(org.eclipse.debug.core.ILaunchConfiguration configuration,
String mode,
IPLaunch launch,
IPDebugger debugger,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
configuration - mode - launch - debugger - monitor -
org.eclipse.core.runtime.CoreException
protected void verifyDebuggerPath(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
configuration - launch configurationmonitor - progress monitor
org.eclipse.core.runtime.CoreException - if the path is invalid or the monitor was canceled.
protected org.eclipse.core.runtime.IPath verifyExecutablePath(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
configuration - launch configurationmonitor - progress monitor
org.eclipse.core.runtime.CoreException - if the resource can't be found or the monitor was canceled.
protected org.eclipse.core.resources.IProject verifyProject(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration -
org.eclipse.core.runtime.CoreException
protected org.eclipse.core.runtime.IPath verifyResource(String path,
org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
path - configuration -
org.eclipse.core.runtime.CoreException
protected String verifyWorkDirectory(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
configuration - launch configurationmonitor - progress monitor
org.eclipse.core.runtime.CoreException - if the working directory is invalid or the monitor was
canceled.
|
PTP Release 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||