mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 15:15:25 +02:00
[239704] No Validation for Command textbox in Work with Compile and User Action dialogs
This commit is contained in:
parent
6901fba518
commit
f567af1815
2 changed files with 6 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
*
|
||||
* Contributors:
|
||||
* IBM Corporation - initial API and implementation
|
||||
* Kevin Doyle (IBM) - [239704] No Validation for Command textbox in Work with Compile and User Action dialogs
|
||||
*******************************************************************************/
|
||||
package org.eclipse.rse.internal.useractions.ui;
|
||||
|
||||
|
@ -14,6 +15,7 @@ import org.eclipse.jface.text.source.ISourceViewer;
|
|||
import org.eclipse.jface.text.source.SourceViewer;
|
||||
import org.eclipse.jface.window.Window;
|
||||
import org.eclipse.rse.internal.useractions.ui.uda.SystemUDAResources;
|
||||
import org.eclipse.rse.internal.useractions.ui.validators.ValidatorUserActionCommand;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
|
||||
import org.eclipse.rse.shells.ui.view.ISystemCommandTextModifyListener;
|
||||
import org.eclipse.rse.shells.ui.view.SystemCommandEditor;
|
||||
|
@ -223,6 +225,7 @@ public class SystemCommandTextField implements SelectionListener {
|
|||
private SystemCommandEditor createEditor(Composite parent, int nbrColumns, SystemCommandViewerConfiguration sourceViewerConfiguration) {
|
||||
textCommand = new SystemCommandEditor(null, parent, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL, nbrColumns, sourceViewerConfiguration,
|
||||
"", SystemUDAResources.RESID_UDA_INSERTVAR_BUTTON_LABEL); //$NON-NLS-1$
|
||||
textCommand.setCommandValidator(new ValidatorUserActionCommand());
|
||||
return textCommand;
|
||||
}
|
||||
|
||||
|
|
|
@ -9,12 +9,14 @@ package org.eclipse.rse.internal.useractions.ui;
|
|||
*
|
||||
* Contributors:
|
||||
* IBM Corporation - initial API and implementation
|
||||
* Kevin Doyle (IBM) - [239704] No Validation for Command textbox in Work with Compile and User Action dialogs
|
||||
*******************************************************************************/
|
||||
import org.eclipse.jface.dialogs.Dialog;
|
||||
import org.eclipse.jface.dialogs.IDialogConstants;
|
||||
import org.eclipse.jface.text.source.ISourceViewer;
|
||||
import org.eclipse.jface.text.source.SourceViewer;
|
||||
import org.eclipse.rse.internal.useractions.ui.uda.SystemUDAResources;
|
||||
import org.eclipse.rse.internal.useractions.ui.validators.ValidatorUserActionCommand;
|
||||
import org.eclipse.rse.shells.ui.view.SystemCommandEditor;
|
||||
import org.eclipse.swt.SWT;
|
||||
import org.eclipse.swt.layout.GridData;
|
||||
|
@ -91,6 +93,7 @@ public class SystemEditCommandDialog extends Dialog {
|
|||
*/
|
||||
private SourceViewer createEditor(Composite parent, int columnSpan, SystemCommandViewerConfiguration sourceViewerConfiguration, String cmd) {
|
||||
textCommand = new SystemCommandEditor(null, parent, style, columnSpan, sourceViewerConfiguration, cmd, SystemUDAResources.RESID_UDA_INSERTVAR_BUTTON_LABEL);
|
||||
textCommand.setCommandValidator(new ValidatorUserActionCommand());
|
||||
return textCommand;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue