From e3f8cf7e036d50aaea4d2285e6d897ddf6468d5f Mon Sep 17 00:00:00 2001 From: igorlombacx Date: Fri, 7 Jul 2023 13:57:37 +0100 Subject: [PATCH] AST-26473 - fixing StringFieldEditor compatibility for eclipse 2019/03 --- .../src/com/checkmarx/eclipse/properties/PreferencesPage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/checkmarx-ast-eclipse-plugin/src/com/checkmarx/eclipse/properties/PreferencesPage.java b/checkmarx-ast-eclipse-plugin/src/com/checkmarx/eclipse/properties/PreferencesPage.java index abe9c41..f36c6e5 100644 --- a/checkmarx-ast-eclipse-plugin/src/com/checkmarx/eclipse/properties/PreferencesPage.java +++ b/checkmarx-ast-eclipse-plugin/src/com/checkmarx/eclipse/properties/PreferencesPage.java @@ -65,9 +65,9 @@ protected void createFieldEditors() { Text textControl = apiKey.getTextControl(topComposite); StringFieldEditor additionalParams = new StringFieldEditor(Preferences.ADDITIONAL_OPTIONS, - PluginConstants.PREFERENCES_ADDITIONAL_OPTIONS, topGridData.widthHint, 5, 0, topComposite); + PluginConstants.PREFERENCES_ADDITIONAL_OPTIONS, StringFieldEditor.UNLIMITED, StringFieldEditor.VALIDATE_ON_KEY_STROKE, topComposite); addField(additionalParams); - + //set the width for API Key text field GridData gridData = new GridData(SWT.BEGINNING, SWT.CENTER, true, false); gridData.widthHint = 500; // Some width