Search in sources :

Example 1 with StringFieldEditor

use of org.eclipse.jface.preference.StringFieldEditor in project OpenGrok by OpenGrok.

the class EGrokPreferencePage method createFieldEditors.

@Override
protected void createFieldEditors() {
    addField(new StringFieldEditor(BASE_URL, "{OpenGrok base URL", getFieldEditorParent()));
    addField(new StringFieldEditor(USERNAME, "Username for Basic Authentication (optional)", getFieldEditorParent()));
    addField(new StringFieldEditor(PASSWORD, "Password for Basic Authentication (optional)", getFieldEditorParent()) {

        @Override
        protected void doFillIntoGrid(Composite parent, int numColumns) {
            super.doFillIntoGrid(parent, numColumns);
            getTextControl().setEchoChar('*');
        }
    });
    addField(new BooleanFieldEditor(FILTER_REGEX, "Filter with Regular Expressions", getFieldEditorParent()));
    addField(new BooleanFieldEditor(WORKSPACE_MATCHES, "Corelate matches with files in workspace (experimental)", getFieldEditorParent()));
}
Also used : StringFieldEditor(org.eclipse.jface.preference.StringFieldEditor) Composite(org.eclipse.swt.widgets.Composite) BooleanFieldEditor(org.eclipse.jface.preference.BooleanFieldEditor)

Example 2 with StringFieldEditor

use of org.eclipse.jface.preference.StringFieldEditor in project gfm_viewer by satyagraha.

the class PreferencePage method createFieldEditors.

/**
     * Creates the field editors. Field editors are abstractions of the common
     * GUI blocks needed to manipulate various types of preferences. Each field
     * editor knows how to save and restore itself.
     */
@Override
public void createFieldEditors() {
    Composite parent = getFieldEditorParent();
    addField(new BooleanFieldEditor(P_USE_TEMP_DIR, "Use temp dir", parent));
    addField(new StringFieldEditor(P_API_URL, "API URL:", parent));
    addField(new StringFieldEditor(P_USERNAME, "Username:", parent));
    StringFieldEditor passwordFieldEditor = new StringFieldEditor(P_PASSWORD, "Password:", parent);
    passwordFieldEditor.getTextControl(parent).setEchoChar('*');
    addField(passwordFieldEditor);
    FileFieldEditor templateEditor = new FileFieldEditor(P_TEMPLATE, "Template File:", true, parent);
    templateEditor.setFilterPath(File.listRoots()[0]);
    addField(templateEditor);
    addField(new StringFieldEditor(P_CSS_URL_1, "CSS URL 1:", parent));
    addField(new StringFieldEditor(P_CSS_URL_2, "CSS URL 2:", parent));
    addField(new StringFieldEditor(P_CSS_URL_3, "CSS URL 3:", parent));
    addField(new StringFieldEditor(P_JS_URL_1, "JS URL 1:", parent));
    addField(new StringFieldEditor(P_JS_URL_2, "JS URL 2:", parent));
    addField(new StringFieldEditor(P_JS_URL_3, "JS URL 3:", parent));
    addField(new BooleanFieldEditor(P_USE_ECLIPSE_CONSOLE, "Use Eclipse Console", parent));
    addField(new StringFieldEditor(P_MARKDOWN_EXTENSIONS, "Markdown Extensions", parent));
}
Also used : StringFieldEditor(org.eclipse.jface.preference.StringFieldEditor) FileFieldEditor(org.eclipse.jface.preference.FileFieldEditor) Composite(org.eclipse.swt.widgets.Composite) BooleanFieldEditor(org.eclipse.jface.preference.BooleanFieldEditor)

Example 3 with StringFieldEditor

use of org.eclipse.jface.preference.StringFieldEditor in project tdi-studio-se by Talend.

the class DesignerPreferencePage method createFieldEditors.

/**
     * Creates the field editors. Field editors are abstractions of the common GUI blocks needed to manipulate various
     * types of preferences. Each field editor knows how to save and restore itself.
     */
@Override
public void createFieldEditors() {
    StringFieldEditor labelField;
    StringFieldEditor hintField;
    StringFieldEditor connectionField;
    BooleanFieldEditor showHint;
    // BooleanFieldEditor displayComponent;
    BooleanFieldEditor useRepositoryName;
    // BooleanFieldEditor deactiveRepositoryUpdate;
    labelField = new StringFieldEditor(TalendDesignerPrefConstants.DEFAULT_LABEL, //$NON-NLS-1$
    Messages.getString("DesignerPreferencePage.component.defaultLabel"), getFieldEditorParent());
    hintField = new StringFieldEditor(TalendDesignerPrefConstants.DEFAULT_HINT, //$NON-NLS-1$
    Messages.getString("DesignerPreferencePage.component.defaultHint"), getFieldEditorParent());
    connectionField = new StringFieldEditor(TalendDesignerPrefConstants.DEFAULT_CONNECTION_FORMAT, Messages.getString("DesignerPreferencePage.defaultConnection"), //$NON-NLS-1$
    getFieldEditorParent());
    showHint = new BooleanFieldEditor(TalendDesignerPrefConstants.DEFAULT_HINT_USED, //$NON-NLS-1$
    Messages.getString("DesignerPreferencePage.hintShowed"), getFieldEditorParent());
    // displayComponent = new BooleanFieldEditor(TalendDesignerPrefConstants.DEFAULT_DISPLAY, Messages
    // .getString("DesignerPreferencePage.display.hiddenComponents"), getFieldEditorParent()); //$NON-NLS-1$
    useRepositoryName = new BooleanFieldEditor(TalendDesignerPrefConstants.USE_REPOSITORY_NAME, Messages.getString("DesignerPreferencePage.display.useRepositoryName"), //$NON-NLS-1$
    getFieldEditorParent());
    // deactiveRepositoryUpdate = new BooleanFieldEditor(ITalendCorePrefConstants.DEACTIVE_REPOSITORY_UPDATE,
    // Messages
    //                .getString("DesignerPreferencePage.display.deactiveRepositoryUpdate"), getFieldEditorParent()); //$NON-NLS-1$
    addField(labelField);
    addField(hintField);
    addField(connectionField);
    addField(showHint);
    // addField(displayComponent);
    addField(useRepositoryName);
    // addField(deactiveRepositoryUpdate);
    // addField(new BooleanFieldEditor(TalendDesignerPrefConstants.PROPERTY_CODE_CHECK, Messages
    //                .getString("DesignerPreferencePage.propertyCodeCheck"), getFieldEditorParent())); //$NON-NLS-1$
    BooleanFieldEditor antialiasing;
    antialiasing = new BooleanFieldEditor(TalendDesignerPrefConstants.EDITOR_ANTIALIASING, Messages.getString("DesignerPreferencePage.actionInJobDesigner"), //$NON-NLS-1$
    getFieldEditorParent());
    addField(antialiasing);
    BooleanFieldEditor lineStyle;
    lineStyle = new BooleanFieldEditor(TalendDesignerPrefConstants.EDITOR_LINESTYLE, Messages.getString("DesignerPreferencePage.lineStyle"), //$NON-NLS-1$
    getFieldEditorParent());
    addField(lineStyle);
    if (PluginChecker.isTestCasePluginLoaded()) {
        BooleanFieldEditor duplicateTestCases;
        duplicateTestCases = new BooleanFieldEditor(TalendDesignerPrefConstants.DUPLICATE_TESTCASE, Messages.getString("DesignerPreferencePage.duplicateTestCases"), //$NON-NLS-1$
        getFieldEditorParent());
        addField(duplicateTestCases);
    }
    DirectoryFieldEditor compDefaultFileDir = new DirectoryFieldEditor(TalendDesignerPrefConstants.COMP_DEFAULT_FILE_DIR, Messages.getString("DesignerPreferencePage.defaultFilePathDirectory"), getFieldEditorParent()) {

        @Override
        protected // wzhang added to set the separator as "/" of default component filePath in preference.
        String changePressed() {
            File f = new File(getTextControl().getText());
            if (!f.exists()) {
                f = null;
            }
            DirectoryDialog fileDialog = new DirectoryDialog(getShell(), SWT.OPEN);
            if (f != null) {
                fileDialog.setFilterPath(f.getPath());
            }
            String openDir = fileDialog.open();
            if (openDir != null) {
                openDir.trim();
                if (openDir.length() > 0) {
                    File filePath = new File(openDir);
                    if (!filePath.exists()) {
                        return null;
                    }
                }
                return Path.fromOSString(openDir).toPortableString();
            }
            return null;
        }
    };
    addField(compDefaultFileDir);
    RadioGroupFieldEditor largeIconsSizeField = new RadioGroupFieldEditor(TalendDesignerPrefConstants.LARGE_ICONS_SIZE, Messages.getString("DesignerPreferencePage.largeIconsSize"), 2, new String[][] { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ 
    { Messages.getString("DesignerPreferencePage.iconSize24"), "" + 24 }, { Messages.getString("DesignerPreferencePage.iconSize32"), "" + 32 } }, //$NON-NLS-1$ //$NON-NLS-2$
    getFieldEditorParent());
    addField(largeIconsSizeField);
    // disable this feature 1722 for the M1 release as it's not used yet in Perl or Java.
    // RadioGroupFieldEditor schemaOptions = new RadioGroupFieldEditor(
    // TalendDesignerPrefConstants.SCHEMA_OPTIONS,
    // Messages.getString("DesignerPreferencePage.schemaOptions"), 4, new String[][] { { "do nothing", "nothing" },
    // { "die", "die" }, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
    // { "warn", "warn" }, { "enlarge or truncate row", "adapt" } }, getFieldEditorParent(), true); //$NON-NLS-1$
    // //$NON-NLS-2$
    // addField(schemaOptions);
    RadioGroupFieldEditor viewOptions = new RadioGroupFieldEditor(TalendDesignerPrefConstants.VIEW_OPTIONS, Messages.getString("DesignerPreferencePage.viewOptions"), 2, new String[][] { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
    { Messages.getString("DesignerPreferencePage.compactView"), "default" }, { Messages.getString("DesignerPreferencePage.tableView"), "table view" } }, getFieldEditorParent(), //$NON-NLS-1$ //$NON-NLS-2$
    true);
    addField(viewOptions);
    // BooleanFieldEditor viewSubjobs = new BooleanFieldEditor(TalendDesignerPrefConstants.DISPLAY_SUBJOBS,
    // "Highlight subjobs in the job designs", getFieldEditorParent());
    // addField(viewSubjobs);
    // BooleanFieldEditor generateCodeWhenOpenJob = new BooleanFieldEditor(
    // TalendDesignerPrefConstants.GENERATE_CODE_WHEN_OPEN_JOB, Messages
    //                        .getString("DesignerPreferencePage.generateCode"), //$NON-NLS-1$
    // getFieldEditorParent());
    // addField(generateCodeWhenOpenJob);
    // When updating jobs or joblets, check only the last version, and checked by default
    // BooleanFieldEditor checkOnlyLastVersion = new
    // BooleanFieldEditor(TalendDesignerPrefConstants.CHECK_ONLY_LAST_VERSION,
    //                Messages.getString("DesignerPreferencePage.checkVersion"), getFieldEditorParent()); //$NON-NLS-1$
    // addField(checkOnlyLastVersion);
    // BooleanFieldEditor propagateContextVariable = new BooleanFieldEditor(
    // TalendDesignerPrefConstants.PROPAGATE_CONTEXT_VARIABLE, Messages
    //                        .getString("DesignerPreferencePage.addOrDeleteVariable"), getFieldEditorParent()); //$NON-NLS-1$
    // addField(propagateContextVariable);
    BooleanFieldEditor displayMethodSize = new BooleanFieldEditor(TalendDesignerPrefConstants.DISPLAY_METHOD_SIZE, Messages.getString("DesignerPreferencePage.computeLength"), //$NON-NLS-1$
    getFieldEditorParent());
    addField(displayMethodSize);
    BooleanFieldEditor allowDelConnWithJLTriggLinkCompField = new BooleanFieldEditor(TalendDesignerPrefConstants.NOT_SHOW_WARNING_WHEN_DELETE_LINK_WITH_JOBLETTRIGGERLINKCOMPONENT, Messages.getString("DesignerPreferencePage.notShowWarningDialog"), //$NON-NLS-1$
    getFieldEditorParent());
    addField(allowDelConnWithJLTriggLinkCompField);
}
Also used : StringFieldEditor(org.eclipse.jface.preference.StringFieldEditor) RadioGroupFieldEditor(org.eclipse.jface.preference.RadioGroupFieldEditor) BooleanFieldEditor(org.eclipse.jface.preference.BooleanFieldEditor) DirectoryFieldEditor(org.eclipse.jface.preference.DirectoryFieldEditor) File(java.io.File) DirectoryDialog(org.eclipse.swt.widgets.DirectoryDialog)

Example 4 with StringFieldEditor

use of org.eclipse.jface.preference.StringFieldEditor in project tdi-studio-se by Talend.

the class DocumentationPreferencePage method createFieldEditors.

/*
     * (non-Javadoc)
     * 
     * @see org.eclipse.jface.preference.FieldEditorPreferencePage#createFieldEditors()
     */
@Override
protected void createFieldEditors() {
    sourceCodeGenFieldEditor = new BooleanFieldEditor(ITalendCorePrefConstants.DOC_GENERATESOURCECODE, org.talend.repository.i18n.Messages.getString("DocumentationPreferencePage.sourceCodeToHTML"), //$NON-NLS-1$
    getFieldEditorParent());
    addField(sourceCodeGenFieldEditor);
    generateLatestVersionFieldEditor = new BooleanFieldEditor(ITalendCorePrefConstants.DOC_GENERATE_LASTEST_VERSION, Messages.getString("PerformancePreferencePage.generateLatestVersion"), //$NON-NLS-1$
    getFieldEditorParent());
    addField(generateLatestVersionFieldEditor);
    // see the bug 7073,qli
    if (isDocumentationPluginLoaded) {
        BooleanFieldEditor booleanFieldEditor = new BooleanFieldEditor(ITalendCorePrefConstants.DOC_GENERATION, Messages.getString("PerformancePreferencePage.autoUpdateDoc"), //$NON-NLS-1$
        getFieldEditorParent());
        addField(booleanFieldEditor);
        FileFieldEditor documentationLogo = new FileFieldEditor(ITalendCorePrefConstants.DOC_USER_LOGO, Messages.getString("DocumentationPreferencePage.userDocLogo"), getFieldEditorParent());
        addField(documentationLogo);
        StringFieldEditor companyName = new StringFieldEditor(ITalendCorePrefConstants.DOC_COMPANY_NAME, Messages.getString("DocumentationPreferencePage.companyName"), getFieldEditorParent());
        addField(companyName);
    }
    useCss = new BooleanFieldEditor(ITalendCorePrefConstants.USE_CSS_TEMPLATE, Messages.getString("DocumentationPreferencePage.use_css_template"), //$NON-NLS-1$
    getFieldEditorParent());
    addField(useCss);
    documentCssFile = new FileFieldEditor(ITalendCorePrefConstants.CSS_FILE_PATH, Messages.getString("DocumentationPreferencePage.css_file"), //$NON-NLS-1$
    getFieldEditorParent());
    //$NON-NLS-1$
    documentCssFile.setFileExtensions(new String[] { "*.css" });
    addField(documentCssFile);
    activateFields(getPreferenceStore().getBoolean(ITalendCorePrefConstants.USE_CSS_TEMPLATE));
    addCssFileListener();
}
Also used : StringFieldEditor(org.eclipse.jface.preference.StringFieldEditor) FileFieldEditor(org.eclipse.jface.preference.FileFieldEditor) BooleanFieldEditor(org.eclipse.jface.preference.BooleanFieldEditor)

Example 5 with StringFieldEditor

use of org.eclipse.jface.preference.StringFieldEditor in project tdi-studio-se by Talend.

the class MetadataTypeLengthPreferencePage method createJavaFieldEditors.

/**
     * DOC qwei Comment method "createJavaFieldEditors".
     */
private void createJavaFieldEditors(Composite com) {
    JavaType[] strTypeValue = JavaTypesManager.getJavaTypes();
    String[] strDisplay = new String[strTypeValue.length];
    String[] strValue = new String[strTypeValue.length];
    for (int i = 0; i < strDisplay.length; i++) {
        strDisplay[i] = strTypeValue[i].getNullableClass().getSimpleName();
        strValue[i] = strTypeValue[i].getId();
    }
    String[][] strvalueType = new String[strDisplay.length][2];
    for (int i = 0; i < strDisplay.length; i++) {
        strvalueType[i][0] = strDisplay[i];
        strvalueType[i][1] = strValue[i];
    }
    comboValueTypeField = new ComboFieldEditor(MetadataTypeLengthConstants.VALUE_DEFAULT_TYPE, Messages.getString("MetadataTypeLengthConstants.VALUE_DEFAULT_TYPE"), strvalueType, //$NON-NLS-1$
    com);
    GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
    gridData.horizontalSpan = 4;
    com.setLayoutData(gridData);
    GridLayout gridLayout = (GridLayout) com.getLayout();
    gridLayout.numColumns = 6;
    com.setLayout(gridLayout);
    valueLengthField = new StringFieldEditor(MetadataTypeLengthConstants.VALUE_DEFAULT_LENGTH, Messages.getString("MetadataTypeLengthConstants.VALUE_DEFAULT_LENGTH"), //$NON-NLS-1$
    valueGroup);
    addField(comboValueTypeField);
    addField(valueLengthField);
    /**
         * set Fields
         * 
         */
    fieldGroup = new Group(parent, SWT.NONE);
    //$NON-NLS-1$
    fieldGroup.setText(Messages.getString("MetadataTypeLengthPreferencePage.FIELD"));
    GridData gd = new GridData(GridData.FILL_HORIZONTAL);
    fieldGroup.setLayoutData(gd);
    com = new Composite(fieldGroup, SWT.NONE);
    comboFieldTypeField = new ComboFieldEditor(MetadataTypeLengthConstants.FIELD_DEFAULT_TYPE, Messages.getString("MetadataTypeLengthConstants.FIELD_DEFAULT_TYPE"), strvalueType, //$NON-NLS-1$
    com);
    gridData = new GridData(GridData.FILL_HORIZONTAL);
    gridData.horizontalSpan = 4;
    com.setLayoutData(gridData);
    gridLayout = (GridLayout) com.getLayout();
    gridLayout.numColumns = 6;
    com.setLayout(gridLayout);
    fieldLengthField = new StringFieldEditor(MetadataTypeLengthConstants.FIELD_DEFAULT_LENGTH, Messages.getString("MetadataTypeLengthConstants.FIELD_DEFAULT_LENGTH"), //$NON-NLS-1$
    fieldGroup);
    /**
         * set data Type
         */
    dbTypeGroup = new Group(parent, SWT.NONE);
    //$NON-NLS-1$
    dbTypeGroup.setText(Messages.getString("MetadataTypeLengthPreferencePage.DBTYPE"));
    gd = new GridData(GridData.FILL_HORIZONTAL);
    dbTypeGroup.setLayoutData(gd);
    booleanField = new StringFieldEditor(MetadataTypeLengthConstants.ID_BOOLEAN, Messages.getString("MetadataTypeLengthConstants.BOOLEAN_LENGTH"), //$NON-NLS-1$
    dbTypeGroup);
    bigDecimalField = new StringFieldEditor(MetadataTypeLengthConstants.ID_BIGDECIMAL, Messages.getString("MetadataTypeLengthConstants.BIGDECIMAL_LENGTH"), //$NON-NLS-1$
    dbTypeGroup);
    byteField = new StringFieldEditor(MetadataTypeLengthConstants.ID_BYTE, Messages.getString("MetadataTypeLengthConstants.BYTE_LENGTH"), //$NON-NLS-1$
    dbTypeGroup);
    integerField = new StringFieldEditor(MetadataTypeLengthConstants.ID_INTEGER, Messages.getString("MetadataTypeLengthConstants.INTEGER_LENGTH"), //$NON-NLS-1$
    dbTypeGroup);
    bytearrayField = new StringFieldEditor(MetadataTypeLengthConstants.ID_BYTEARRAY, Messages.getString("MetadataTypeLengthConstants.BYTEARRAY_LENGTH"), //$NON-NLS-1$
    dbTypeGroup);
    longField = new StringFieldEditor(MetadataTypeLengthConstants.ID_LONG, Messages.getString("MetadataTypeLengthConstants.LONG_LENGTH"), //$NON-NLS-1$
    dbTypeGroup);
    characterField = new StringFieldEditor(MetadataTypeLengthConstants.ID_CHARACTER, Messages.getString("MetadataTypeLengthConstants.CHARACTER_LENGTH"), //$NON-NLS-1$
    dbTypeGroup);
    objectField = new StringFieldEditor(MetadataTypeLengthConstants.ID_OBJECT, Messages.getString("MetadataTypeLengthConstants.OBJECT_LENGTH"), //$NON-NLS-1$
    dbTypeGroup);
    dateField = new StringFieldEditor(MetadataTypeLengthConstants.ID_DATE, Messages.getString("MetadataTypeLengthConstants.DATE_LENGHT"), //$NON-NLS-1$
    dbTypeGroup);
    shortField = new StringFieldEditor(MetadataTypeLengthConstants.ID_SHORT, Messages.getString("MetadataTypeLengthConstants.SHORT_LENGTH"), //$NON-NLS-1$
    dbTypeGroup);
    doubleField = new StringFieldEditor(MetadataTypeLengthConstants.ID_DOUBLE, Messages.getString("MetadataTypeLengthConstants.DOUBLE_LENGTH"), //$NON-NLS-1$
    dbTypeGroup);
    stringField = new StringFieldEditor(MetadataTypeLengthConstants.ID_STRING, Messages.getString("MetadataTypeLengthConstants.STRING_LENGTH"), //$NON-NLS-1$
    dbTypeGroup);
    floatField = new StringFieldEditor(MetadataTypeLengthConstants.ID_FLOAT, Messages.getString("MetadataTypeLengthConstants.FLOAT_LENGTH"), //$NON-NLS-1$
    dbTypeGroup);
    listField = new StringFieldEditor(MetadataTypeLengthConstants.ID_LIST, Messages.getString("MetadataTypeLengthConstants.LIST_LENGTH"), //$NON-NLS-1$
    dbTypeGroup);
    addField(comboFieldTypeField);
    addField(fieldLengthField);
    gridLayout = (GridLayout) dbTypeGroup.getLayout();
    gridLayout.numColumns = 4;
    dbTypeGroup.setLayout(gridLayout);
    addField(bigDecimalField);
    addField(booleanField);
    addField(byteField);
    addField(integerField);
    addField(bytearrayField);
    addField(longField);
    addField(characterField);
    addField(objectField);
    addField(dateField);
    addField(shortField);
    addField(doubleField);
    addField(stringField);
    addField(floatField);
    addField(listField);
}
Also used : StringFieldEditor(org.eclipse.jface.preference.StringFieldEditor) Group(org.eclipse.swt.widgets.Group) JavaType(org.talend.core.model.metadata.types.JavaType) GridLayout(org.eclipse.swt.layout.GridLayout) Composite(org.eclipse.swt.widgets.Composite) GridData(org.eclipse.swt.layout.GridData) ComboFieldEditor(org.talend.commons.ui.utils.workbench.preferences.ComboFieldEditor)

Aggregations

StringFieldEditor (org.eclipse.jface.preference.StringFieldEditor)7 BooleanFieldEditor (org.eclipse.jface.preference.BooleanFieldEditor)5 Composite (org.eclipse.swt.widgets.Composite)4 FileFieldEditor (org.eclipse.jface.preference.FileFieldEditor)2 GridData (org.eclipse.swt.layout.GridData)2 GridLayout (org.eclipse.swt.layout.GridLayout)2 Group (org.eclipse.swt.widgets.Group)2 File (java.io.File)1 IOException (java.io.IOException)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 DirectoryFieldEditor (org.eclipse.jface.preference.DirectoryFieldEditor)1 FieldEditor (org.eclipse.jface.preference.FieldEditor)1 IntegerFieldEditor (org.eclipse.jface.preference.IntegerFieldEditor)1 RadioGroupFieldEditor (org.eclipse.jface.preference.RadioGroupFieldEditor)1 WizardDialog (org.eclipse.jface.wizard.WizardDialog)1 SelectionAdapter (org.eclipse.swt.events.SelectionAdapter)1 SelectionEvent (org.eclipse.swt.events.SelectionEvent)1 Button (org.eclipse.swt.widgets.Button)1 DirectoryDialog (org.eclipse.swt.widgets.DirectoryDialog)1 Label (org.eclipse.swt.widgets.Label)1