Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Bernard2017-12-21 13:23:40 +0000
committerSimon Bernard2017-12-21 13:23:40 +0000
commit50c1c0fc60f0632753a059d50fc275ad7b7703d7 (patch)
tree085f34be3f57034d7926a319283e67d4fd163ab2
parent36b07c72674724dfacb8a4e89d410bec18439a07 (diff)
downloadorg.eclipse.ldt-50c1c0fc60f0632753a059d50fc275ad7b7703d7.tar.gz
org.eclipse.ldt-50c1c0fc60f0632753a059d50fc275ad7b7703d7.tar.xz
org.eclipse.ldt-50c1c0fc60f0632753a059d50fc275ad7b7703d7.zip
By default don't use output redirection.
-rw-r--r--plugins/org.eclipse.ldt.debug.ui/src/org/eclipse/ldt/debug/ui/internal/launchconfiguration/local/LuaApplicationLaunchShortcut.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/plugins/org.eclipse.ldt.debug.ui/src/org/eclipse/ldt/debug/ui/internal/launchconfiguration/local/LuaApplicationLaunchShortcut.java b/plugins/org.eclipse.ldt.debug.ui/src/org/eclipse/ldt/debug/ui/internal/launchconfiguration/local/LuaApplicationLaunchShortcut.java
index 9e2d7ec..fc89169 100644
--- a/plugins/org.eclipse.ldt.debug.ui/src/org/eclipse/ldt/debug/ui/internal/launchconfiguration/local/LuaApplicationLaunchShortcut.java
+++ b/plugins/org.eclipse.ldt.debug.ui/src/org/eclipse/ldt/debug/ui/internal/launchconfiguration/local/LuaApplicationLaunchShortcut.java
@@ -158,6 +158,7 @@ public class LuaApplicationLaunchShortcut extends AbstractScriptLaunchShortcut {
wc.setAttribute(ScriptLaunchConfigurationConstants.ATTR_PROJECT_NAME, script.getProject().getName());
wc.setAttribute(ScriptLaunchConfigurationConstants.ATTR_MAIN_SCRIPT_NAME, script.getProjectRelativePath().toPortableString());
wc.setAttribute(DebugPlugin.ATTR_PROCESS_FACTORY_ID, ScriptRuntimeProcessFactory.PROCESS_FACTORY_ID);
+ wc.setAttribute(ScriptLaunchConfigurationConstants.ATTR_DEBUG_CONSOLE, false);
// Manage interpreters.
IInterpreterInstall guessInterpreter = findBestInterpreter(script);
@@ -304,8 +305,8 @@ public class LuaApplicationLaunchShortcut extends AbstractScriptLaunchShortcut {
*
* see {@link org.eclipse.dltk.internal.debug.ui.launcher.AbstractScriptLaunchShortcut.getScriptResources(Object[], IProgressMonitor)}
*/
- private List<ILaunchConfiguration> filterConfig(Object selection, List<ILaunchConfiguration> candidateConfigs) throws InterruptedException,
- CoreException {
+ private List<ILaunchConfiguration> filterConfig(Object selection, List<ILaunchConfiguration> candidateConfigs)
+ throws InterruptedException, CoreException {
IResource[] scripts = findScripts(new Object[] { selection }, PlatformUI.getWorkbench().getProgressService());
return filterConfig(Arrays.asList(scripts), candidateConfigs);
}
@@ -317,10 +318,11 @@ public class LuaApplicationLaunchShortcut extends AbstractScriptLaunchShortcut {
List<ILaunchConfiguration> candidateConfigs = new ArrayList<ILaunchConfiguration>();
for (ILaunchConfiguration config : configs) {
for (IResource script : scripts) {
- if (config.getAttribute(ScriptLaunchConfigurationConstants.ATTR_MAIN_SCRIPT_NAME, Util.EMPTY_STRING).equals(
- script.getProjectRelativePath().toString())
- && config.getAttribute(ScriptLaunchConfigurationConstants.ATTR_PROJECT_NAME, Util.EMPTY_STRING).equals(
- script.getProject().getName()) && config.getType().equals(getConfigurationType())) {
+ if (config.getAttribute(ScriptLaunchConfigurationConstants.ATTR_MAIN_SCRIPT_NAME, Util.EMPTY_STRING)
+ .equals(script.getProjectRelativePath().toString())
+ && config.getAttribute(ScriptLaunchConfigurationConstants.ATTR_PROJECT_NAME, Util.EMPTY_STRING)
+ .equals(script.getProject().getName())
+ && config.getType().equals(getConfigurationType())) {
candidateConfigs.add(config);
}
}

Back to the top