Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Rennie2010-11-17 17:04:51 +0000
committerMichael Rennie2010-11-17 17:04:51 +0000
commit48ae646d8bf4691b03b5ca5bffabfdb4df625640 (patch)
tree3fcbb9d514c751c535f3e5d327e57951fd0f11d1 /org.eclipse.ui.externaltools
parente7687cadfb3690df607e8a902954ae5d59eb2342 (diff)
downloadeclipse.platform.debug-48ae646d8bf4691b03b5ca5bffabfdb4df625640.tar.gz
eclipse.platform.debug-48ae646d8bf4691b03b5ca5bffabfdb4df625640.tar.xz
eclipse.platform.debug-48ae646d8bf4691b03b5ca5bffabfdb4df625640.zip
Bug 330440 - External tools launch config dialog does not handle Ctrl+Enter in Arguments field
Diffstat (limited to 'org.eclipse.ui.externaltools')
-rw-r--r--org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/launchConfigurations/ExternalToolsMainTab.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/launchConfigurations/ExternalToolsMainTab.java b/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/launchConfigurations/ExternalToolsMainTab.java
index d1bf2d994..cb1ed713b 100644
--- a/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/launchConfigurations/ExternalToolsMainTab.java
+++ b/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/launchConfigurations/ExternalToolsMainTab.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2009 IBM Corporation and others.
+ * Copyright (c) 2000, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -33,6 +33,8 @@ import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.events.TraverseEvent;
+import org.eclipse.swt.events.TraverseListener;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
@@ -255,6 +257,14 @@ public abstract class ExternalToolsMainTab extends AbstractLaunchConfigurationTa
group.setFont(parent.getFont());
argumentField = new Text(group, SWT.MULTI | SWT.WRAP | SWT.BORDER | SWT.V_SCROLL);
+ argumentField.addTraverseListener(new TraverseListener() {
+ public void keyTraversed(TraverseEvent event) {
+ if (event.detail == SWT.TRAVERSE_RETURN && (event.stateMask & SWT.MODIFIER_MASK) != 0) {
+ event.doit= true;
+ }
+ }
+ });
+
gridData = new GridData(GridData.FILL_BOTH);
gridData.widthHint = IDialogConstants.ENTRY_FIELD_WIDTH;
gridData.heightHint = 30;

Back to the top