Search in sources :

Example 46 with LabelledText

use of org.talend.commons.ui.swt.formtools.LabelledText in project tbd-studio-se by Talend.

the class AbstractConnectionForm method createAuthenticationFields.

protected void createAuthenticationFields(Composite parent) {
    useAuthBtn = new Button(parent, SWT.CHECK);
    // $NON-NLS-1$
    useAuthBtn.setText(Messages.getString("HadoopImportRemoteOptionPage.auth.check2"));
    GridData useAuthGD = new GridData();
    useAuthGD.horizontalSpan = 3;
    useAuthBtn.setLayoutData(useAuthGD);
    trustStoreTypeCombo = new // $NON-NLS-1$
    LabelledCombo(// $NON-NLS-1$
    parent, // $NON-NLS-1$
    Messages.getString("HadoopImportRemoteOptionPage.auth.type"), null, ETrustStoreType.getAllTrustStoreTypeNames().toArray(new String[0]), 2, true);
    trustStoreTypeCombo.select(0);
    // $NON-NLS-1$
    trustStorePasswordText = new LabelledText(parent, Messages.getString("HadoopImportRemoteOptionPage.auth.pwd"), 2);
    trustStorePasswordText.getTextControl().setEchoChar('*');
    trustStoreFileText = new // $NON-NLS-1$
    LabelledFileField(// $NON-NLS-1$
    parent, // $NON-NLS-1$
    Messages.getString("HadoopImportRemoteOptionPage.auth.file"), // $NON-NLS-1$
    new String[] { "*.*" });
    updateAuthFieldsState(false);
}
Also used : LabelledText(org.talend.commons.ui.swt.formtools.LabelledText) Button(org.eclipse.swt.widgets.Button) GridData(org.eclipse.swt.layout.GridData)

Aggregations

LabelledText (org.talend.commons.ui.swt.formtools.LabelledText)46 GridData (org.eclipse.swt.layout.GridData)40 Composite (org.eclipse.swt.widgets.Composite)31 GridLayout (org.eclipse.swt.layout.GridLayout)28 Group (org.eclipse.swt.widgets.Group)26 Button (org.eclipse.swt.widgets.Button)21 LabelledCombo (org.talend.commons.ui.swt.formtools.LabelledCombo)11 ScrolledComposite (org.eclipse.swt.custom.ScrolledComposite)9 UtilsButton (org.talend.commons.ui.swt.formtools.UtilsButton)7 Label (org.eclipse.swt.widgets.Label)6 FillLayout (org.eclipse.swt.layout.FillLayout)5 LabelledFileField (org.talend.commons.ui.swt.formtools.LabelledFileField)5 MetadataEmfTableEditor (org.talend.core.ui.metadata.editor.MetadataEmfTableEditor)5 Text (org.eclipse.swt.widgets.Text)4 MetadataEmfTableEditorView (org.talend.core.ui.metadata.editor.MetadataEmfTableEditorView)4 SelectionAdapter (org.eclipse.swt.events.SelectionAdapter)3 SelectionEvent (org.eclipse.swt.events.SelectionEvent)3 Point (org.eclipse.swt.graphics.Point)3 NoSQLRepositoryFactory (org.talend.repository.nosql.factory.NoSQLRepositoryFactory)3 ArrayList (java.util.ArrayList)2