mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-16 21:45:22 +02:00
use default constant for terminal
This commit is contained in:
parent
e0546e73af
commit
e2b84054ef
2 changed files with 3 additions and 3 deletions
|
@ -120,7 +120,7 @@ public class LocalRunLaunchDelegate extends AbstractCLaunchDelegate {
|
||||||
command.add(exePath.toOSString());
|
command.add(exePath.toOSString());
|
||||||
command.addAll(Arrays.asList(arguments));
|
command.addAll(Arrays.asList(arguments));
|
||||||
String[] commandArray = (String[]) command.toArray(new String[command.size()]);
|
String[] commandArray = (String[]) command.toArray(new String[command.size()]);
|
||||||
boolean usePty = config.getAttribute(ICDTLaunchConfigurationConstants.ATTR_USE_TERMINAL, true);
|
boolean usePty = config.getAttribute(ICDTLaunchConfigurationConstants.ATTR_USE_TERMINAL, ICDTLaunchConfigurationConstants.USE_TERMINAL_DEFAULT);
|
||||||
monitor.worked(5);
|
monitor.worked(5);
|
||||||
Process process = exec(commandArray, getEnvironment(config), wd, usePty);
|
Process process = exec(commandArray, getEnvironment(config), wd, usePty);
|
||||||
monitor.worked(3);
|
monitor.worked(3);
|
||||||
|
|
|
@ -246,7 +246,7 @@ public class CMainTab extends CLaunchConfigurationTab {
|
||||||
if (fTerminalButton != null) {
|
if (fTerminalButton != null) {
|
||||||
boolean useTerminal = true;
|
boolean useTerminal = true;
|
||||||
try {
|
try {
|
||||||
useTerminal = config.getAttribute(ICDTLaunchConfigurationConstants.ATTR_USE_TERMINAL, true);
|
useTerminal = config.getAttribute(ICDTLaunchConfigurationConstants.ATTR_USE_TERMINAL, ICDTLaunchConfigurationConstants.USE_TERMINAL_DEFAULT);
|
||||||
} catch (CoreException e) {
|
} catch (CoreException e) {
|
||||||
LaunchUIPlugin.log(e);
|
LaunchUIPlugin.log(e);
|
||||||
}
|
}
|
||||||
|
@ -597,7 +597,7 @@ public class CMainTab extends CLaunchConfigurationTab {
|
||||||
initializeProgramName(cElement, config);
|
initializeProgramName(cElement, config);
|
||||||
}
|
}
|
||||||
if (wantsTerminalOption()) {
|
if (wantsTerminalOption()) {
|
||||||
config.setAttribute(ICDTLaunchConfigurationConstants.ATTR_USE_TERMINAL, true);
|
config.setAttribute(ICDTLaunchConfigurationConstants.ATTR_USE_TERMINAL, ICDTLaunchConfigurationConstants.USE_TERMINAL_DEFAULT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue