mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Added the rendering method for debugger processes.
This commit is contained in:
parent
4a36ad5055
commit
b59f69ac43
5 changed files with 18 additions and 6 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2004-05-09 Mikhail Khodjaiants
|
||||||
|
Added the rendering method for debugger processes.
|
||||||
|
* src/org/eclise/cdt/launch/AbstractCLaunchDelegate.java
|
||||||
|
* src/org/eclise/cdt/launch/internal/CoreFileLaunchDelegate.java
|
||||||
|
* src/org/eclise/cdt/launch/internal/LocalCLaunchConfigurationDelegate.java
|
||||||
|
* src/org/eclipse/cdt/launch/internal/ui/LaunchUIPluginResources.properties
|
||||||
|
|
||||||
2004-05-09 Mikhail Khodjaiants
|
2004-05-09 Mikhail Khodjaiants
|
||||||
Fix for bug 66015: I18N: English "Debug Console" in Debug and Console views.
|
Fix for bug 66015: I18N: English "Debug Console" in Debug and Console views.
|
||||||
Warning cleanup.
|
Warning cleanup.
|
||||||
|
|
|
@ -390,6 +390,13 @@ abstract public class AbstractCLaunchDelegate extends LaunchConfigurationDelegat
|
||||||
return MessageFormat.format(format, new String[]{commandLine, timestamp});
|
return MessageFormat.format(format, new String[]{commandLine, timestamp});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// temporary fix for #66015
|
||||||
|
protected String renderDebuggerProcessLabel() {
|
||||||
|
String format = "{0} ({1})"; //$NON-NLS-1$
|
||||||
|
String timestamp = DateFormat.getInstance().format(new Date(System.currentTimeMillis()));
|
||||||
|
return MessageFormat.format(format, new String[]{LaunchUIPlugin.getResourceString("AbstractCLaunchDelegate.Debugger_Process"), timestamp}); //$NON-NLS-1$
|
||||||
|
}
|
||||||
|
|
||||||
protected ICProject verifyCProject(ILaunchConfiguration config) throws CoreException {
|
protected ICProject verifyCProject(ILaunchConfiguration config) throws CoreException {
|
||||||
String name = getProjectName(config);
|
String name = getProjectName(config);
|
||||||
if (name == null) {
|
if (name == null) {
|
||||||
|
|
|
@ -67,8 +67,7 @@ public class CoreFileLaunchDelegate extends AbstractCLaunchDelegate {
|
||||||
abort(LaunchUIPlugin.getResourceString("CoreFileLaunchDelegate.Failed_Launching_CDI_Debugger"), e, ICDTLaunchConfigurationConstants.ERR_INTERNAL_ERROR); //$NON-NLS-1$
|
abort(LaunchUIPlugin.getResourceString("CoreFileLaunchDelegate.Failed_Launching_CDI_Debugger"), e, ICDTLaunchConfigurationConstants.ERR_INTERNAL_ERROR); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
if ( debugger != null ) {
|
if ( debugger != null ) {
|
||||||
debuggerProcess = DebugPlugin.newProcess(launch, debugger, LaunchUIPlugin.getResourceString("CoreFileLaunchDelegate.Debugger_Process")); //$NON-NLS-1$
|
debuggerProcess = DebugPlugin.newProcess(launch, debugger, renderDebuggerProcessLabel());
|
||||||
// launch.removeProcess(debuggerProcess);
|
|
||||||
}
|
}
|
||||||
// set the source locator
|
// set the source locator
|
||||||
setSourceLocator(launch, config);
|
setSourceLocator(launch, config);
|
||||||
|
|
|
@ -99,7 +99,7 @@ public class LocalCLaunchConfigurationDelegate extends AbstractCLaunchDelegate {
|
||||||
IProcess iprocess = DebugPlugin.newProcess(launch, process, renderProcessLabel(commandArray[0]));
|
IProcess iprocess = DebugPlugin.newProcess(launch, process, renderProcessLabel(commandArray[0]));
|
||||||
debugger = dsession.getSessionProcess();
|
debugger = dsession.getSessionProcess();
|
||||||
if ( debugger != null ) {
|
if ( debugger != null ) {
|
||||||
debuggerProcess = DebugPlugin.newProcess(launch, debugger, LaunchUIPlugin.getResourceString("LocalCLaunchConfigurationDelegate.Debugger_Process")); //$NON-NLS-1$
|
debuggerProcess = DebugPlugin.newProcess(launch, debugger, renderDebuggerProcessLabel());
|
||||||
}
|
}
|
||||||
boolean stopInMain = config.getAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_STOP_AT_MAIN, false);
|
boolean stopInMain = config.getAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_STOP_AT_MAIN, false);
|
||||||
CDebugModel.newDebugTarget(
|
CDebugModel.newDebugTarget(
|
||||||
|
@ -121,7 +121,7 @@ public class LocalCLaunchConfigurationDelegate extends AbstractCLaunchDelegate {
|
||||||
dsession = debugConfig.getDebugger().createAttachSession(config, exeFile, pid);
|
dsession = debugConfig.getDebugger().createAttachSession(config, exeFile, pid);
|
||||||
debugger = dsession.getSessionProcess();
|
debugger = dsession.getSessionProcess();
|
||||||
if ( debugger != null ) {
|
if ( debugger != null ) {
|
||||||
debuggerProcess = DebugPlugin.newProcess(launch, debugger, "Debug Console"); //$NON-NLS-1$
|
debuggerProcess = DebugPlugin.newProcess(launch, debugger, renderDebuggerProcessLabel());
|
||||||
launch.removeProcess(debuggerProcess);
|
launch.removeProcess(debuggerProcess);
|
||||||
}
|
}
|
||||||
CDebugModel.newAttachDebugTarget(
|
CDebugModel.newAttachDebugTarget(
|
||||||
|
|
|
@ -9,6 +9,7 @@ AbstractCLaunchDelegate.Project_NAME_does_not_exist=Project {0} does not exist
|
||||||
AbstractCLaunchDelegate.Project_NAME_is_closed=Project {0} is closed
|
AbstractCLaunchDelegate.Project_NAME_is_closed=Project {0} is closed
|
||||||
AbstractCLaunchDelegate.PROGRAM_PATH_not_found={0} not found
|
AbstractCLaunchDelegate.PROGRAM_PATH_not_found={0} not found
|
||||||
AbstractCLaunchDelegate.PROGRAM_PATH_does_not_exist={0} Does not exist.
|
AbstractCLaunchDelegate.PROGRAM_PATH_does_not_exist={0} Does not exist.
|
||||||
|
AbstractCLaunchDelegate.Debugger_Process=Debugger Process
|
||||||
AbstractCLaunchConfigurationDelegate.building_projects=Building prerequisite project list
|
AbstractCLaunchConfigurationDelegate.building_projects=Building prerequisite project list
|
||||||
AbstractCLaunchConfigurationDelegate.building=Building
|
AbstractCLaunchConfigurationDelegate.building=Building
|
||||||
AbstractCLaunchConfigurationDelegate.searching_for_errors=Searching for compile errors
|
AbstractCLaunchConfigurationDelegate.searching_for_errors=Searching for compile errors
|
||||||
|
@ -24,14 +25,12 @@ LocalCLaunchConfigurationDelegate.Platform_cannot_list_processes=Current platfor
|
||||||
LocalCLaunchConfigurationDelegate.Error_starting_process=Error starting process
|
LocalCLaunchConfigurationDelegate.Error_starting_process=Error starting process
|
||||||
LocalCLaunchConfigurationDelegate.Does_not_support_working_dir=Eclipse runtime does not support working directory
|
LocalCLaunchConfigurationDelegate.Does_not_support_working_dir=Eclipse runtime does not support working directory
|
||||||
LocalCLaunchConfigurationDelegate.Select_Process_to_attach_debugger_to=Select a Process to attach debugger to:
|
LocalCLaunchConfigurationDelegate.Select_Process_to_attach_debugger_to=Select a Process to attach debugger to:
|
||||||
LocalCLaunchConfigurationDelegate.Debugger_Process=Debugger Process
|
|
||||||
|
|
||||||
CoreFileLaunchDelegate.Launching_postmortem_debugger=Launching postmortem debugger
|
CoreFileLaunchDelegate.Launching_postmortem_debugger=Launching postmortem debugger
|
||||||
CoreFileLaunchDelegate.No_Corefile_selected=No Corefile selected
|
CoreFileLaunchDelegate.No_Corefile_selected=No Corefile selected
|
||||||
CoreFileLaunchDelegate.Failed_Launching_CDI_Debugger=Failed Launching CDI Debugger
|
CoreFileLaunchDelegate.Failed_Launching_CDI_Debugger=Failed Launching CDI Debugger
|
||||||
CoreFileLaunchDelegate.No_Shell_available_in_Launch=No Shell available in Launch
|
CoreFileLaunchDelegate.No_Shell_available_in_Launch=No Shell available in Launch
|
||||||
CoreFileLaunchDelegate.Select_Corefile=Select Corefile
|
CoreFileLaunchDelegate.Select_Corefile=Select Corefile
|
||||||
CoreFileLaunchDelegate.Debugger_Process=Debugger Process
|
|
||||||
|
|
||||||
CApplicationLaunchShortcut.Application_Launcher=Application Launcher
|
CApplicationLaunchShortcut.Application_Launcher=Application Launcher
|
||||||
CApplicationLaunchShortcut.Launch_failed_no_binaries=Launch failed no binaries
|
CApplicationLaunchShortcut.Launch_failed_no_binaries=Launch failed no binaries
|
||||||
|
|
Loading…
Add table
Reference in a new issue