Search in sources :

Example 41 with LabelledText

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

the class StandardHCInfoForm method addWebHDFSEncryptionFields.

private void addWebHDFSEncryptionFields(Composite downsash) {
    // $NON-NLS-1$
    webHDFSSSLEncryptionGrp = Form.createGroup(downsash, 1, Messages.getString("HadoopClusterForm.webHDFS.encryption"), 110);
    webHDFSSSLEncryptionGrp.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    useWebHDFSSSLEncryptionBtn = new Button(webHDFSSSLEncryptionGrp, SWT.CHECK);
    // $NON-NLS-1$
    useWebHDFSSSLEncryptionBtn.setText(Messages.getString("HadoopClusterForm.webHDFS.encryption.useSSLEncryption"));
    useWebHDFSSSLEncryptionBtn.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 5, 1));
    webHDFSSSLEncryptionDetailComposite = new Composite(webHDFSSSLEncryptionGrp, SWT.NULL);
    GridLayout webHDFSSSLEncryptionDetailCompLayout = new GridLayout(5, false);
    webHDFSSSLEncryptionDetailCompLayout.marginWidth = 0;
    webHDFSSSLEncryptionDetailCompLayout.marginHeight = 0;
    webHDFSSSLEncryptionDetailComposite.setLayout(webHDFSSSLEncryptionDetailCompLayout);
    webHDFSSSLEncryptionDetailComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    // $NON-NLS-1$
    String[] extensions = { "*.*" };
    webHDFSSSLTrustStorePath = new LabelledFileField(webHDFSSSLEncryptionDetailComposite, Messages.getString("HadoopClusterForm.webHDFS.encryption.useSSLEncryption.trustStorePath"), // $NON-NLS-1$
    extensions);
    webHDFSSSLTrustStorePassword = new LabelledText(webHDFSSSLEncryptionDetailComposite, Messages.getString("HadoopClusterForm.webHDFS.encryption.useSSLEncryption.trustStorePassword"), 1, // $NON-NLS-1$
    SWT.PASSWORD | SWT.BORDER | SWT.SINGLE);
    webHDFSSSLTrustStorePassword.getTextControl().setEchoChar('*');
}
Also used : LabelledText(org.talend.commons.ui.swt.formtools.LabelledText) GridLayout(org.eclipse.swt.layout.GridLayout) Composite(org.eclipse.swt.widgets.Composite) ScrolledComposite(org.eclipse.swt.custom.ScrolledComposite) Button(org.eclipse.swt.widgets.Button) UtilsButton(org.talend.commons.ui.swt.formtools.UtilsButton) GridData(org.eclipse.swt.layout.GridData) LabelledFileField(org.talend.commons.ui.swt.formtools.LabelledFileField)

Example 42 with LabelledText

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

the class StandardHCInfoForm method addConnectionFields.

private void addConnectionFields(Composite scrolledComposite) {
    connectionGroup = // $NON-NLS-1$
    Form.createGroup(// $NON-NLS-1$
    scrolledComposite, // $NON-NLS-1$
    1, // $NON-NLS-1$
    Messages.getString("HadoopClusterForm.connectionSettings"), 110);
    connectionGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    Composite uriPartComposite = new Composite(connectionGroup, SWT.NULL);
    GridLayout uriPartLayout = new GridLayout(2, false);
    uriPartLayout.marginWidth = 0;
    uriPartLayout.marginHeight = 0;
    uriPartComposite.setLayout(uriPartLayout);
    uriPartComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    // $NON-NLS-1$
    namenodeUriText = new LabelledText(uriPartComposite, Messages.getString("HadoopClusterForm.text.namenodeURI"), 1);
    // $NON-NLS-1$
    jobtrackerUriText = new LabelledText(uriPartComposite, Messages.getString("HadoopClusterForm.text.jobtrackerURI"), 1);
    // $NON-NLS-1$
    rmSchedulerText = new LabelledText(uriPartComposite, Messages.getString("HadoopClusterForm.text.rmScheduler"), 1);
    // $NON-NLS-1$
    jobHistoryText = new LabelledText(uriPartComposite, Messages.getString("HadoopClusterForm.text.jobHistory"), 1);
    stagingDirectoryText = new LabelledText(uriPartComposite, Messages.getString("HadoopClusterForm.text.stagingDirectory"), // $NON-NLS-1$
    1);
    useDNHostBtn = new Button(uriPartComposite, SWT.CHECK);
    // $NON-NLS-1$
    useDNHostBtn.setText(Messages.getString("HadoopClusterForm.button.useDNHost"));
    useDNHostBtn.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 2, 1));
}
Also used : LabelledText(org.talend.commons.ui.swt.formtools.LabelledText) GridLayout(org.eclipse.swt.layout.GridLayout) Composite(org.eclipse.swt.widgets.Composite) ScrolledComposite(org.eclipse.swt.custom.ScrolledComposite) Button(org.eclipse.swt.widgets.Button) UtilsButton(org.talend.commons.ui.swt.formtools.UtilsButton) GridData(org.eclipse.swt.layout.GridData)

Example 43 with LabelledText

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

the class StandardHCInfoForm method addAuthenticationFields.

private void addAuthenticationFields(Composite downsash) {
    // $NON-NLS-1$
    authGroup = Form.createGroup(downsash, 1, Messages.getString("HadoopClusterForm.authenticationSettings"), 110);
    authGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    authPartComposite = new Composite(authGroup, SWT.NULL);
    GridLayout authPartLayout = new GridLayout(1, false);
    authPartLayout.marginWidth = 0;
    authPartLayout.marginHeight = 0;
    authPartComposite.setLayout(authPartLayout);
    authPartComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    authCommonComposite = new Composite(authPartComposite, SWT.NULL);
    GridLayout authCommonCompLayout = new GridLayout(1, false);
    authCommonCompLayout.marginWidth = 0;
    authCommonCompLayout.marginHeight = 0;
    authCommonComposite.setLayout(authCommonCompLayout);
    authCommonComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    kerberosBtn = new Button(authCommonComposite, SWT.CHECK);
    // $NON-NLS-1$
    kerberosBtn.setText(Messages.getString("HadoopClusterForm.button.kerberos"));
    kerberosBtn.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 4, 1));
    authNodejtOrRmHistoryComposite = new Composite(authCommonComposite, SWT.NULL);
    GridLayout authNodejtOrRmHistoryCompLayout = new GridLayout(4, false);
    authNodejtOrRmHistoryCompLayout.marginWidth = 0;
    authNodejtOrRmHistoryCompLayout.marginHeight = 0;
    authNodejtOrRmHistoryComposite.setLayout(authNodejtOrRmHistoryCompLayout);
    authNodejtOrRmHistoryComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    namenodePrincipalText = new LabelledText(authNodejtOrRmHistoryComposite, Messages.getString("HadoopClusterForm.text.namenodePrincipal"), // $NON-NLS-1$
    1);
    jtOrRmPrincipalText = new LabelledText(authNodejtOrRmHistoryComposite, Messages.getString("HadoopClusterForm.text.rmPrincipal"), // $NON-NLS-1$
    1);
    jobHistoryPrincipalText = new LabelledText(authNodejtOrRmHistoryComposite, Messages.getString("HadoopClusterForm.text.jobHistoryPrincipal"), // $NON-NLS-1$
    1);
    // placeHolder is only used to make userNameText and groupText to new line
    Composite placeHolder = new Composite(authCommonComposite, SWT.NULL);
    GridLayout placeHolderLayout = new GridLayout(4, false);
    placeHolderLayout.marginWidth = 0;
    placeHolderLayout.marginHeight = 0;
    placeHolder.setLayout(placeHolderLayout);
    placeHolder.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    // $NON-NLS-1$
    userNameText = new LabelledText(placeHolder, Messages.getString("HadoopClusterForm.text.userName"), 1);
    // $NON-NLS-1$
    groupText = new LabelledText(placeHolder, Messages.getString("HadoopClusterForm.text.group"), 1);
    authKeytabComposite = new Composite(authPartComposite, SWT.NULL);
    GridLayout authKeytabCompLayout = new GridLayout(5, false);
    authKeytabCompLayout.marginWidth = 0;
    authKeytabCompLayout.marginHeight = 0;
    authKeytabComposite.setLayout(authKeytabCompLayout);
    authKeytabComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    keytabBtn = new Button(authKeytabComposite, SWT.CHECK);
    // $NON-NLS-1$
    keytabBtn.setText(Messages.getString("HadoopClusterForm.button.keytab"));
    keytabBtn.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 5, 1));
    keytabPrincipalText = new LabelledText(authKeytabComposite, Messages.getString("HadoopClusterForm.text.keytabPrincipal"), // $NON-NLS-1$
    1);
    // $NON-NLS-1$
    String[] extensions = { "*.*" };
    // $NON-NLS-1$
    keytabText = new LabelledFileField(authKeytabComposite, Messages.getString("HadoopClusterForm.text.keytab"), extensions);
    // Mapr Ticket Authentication
    authMaprTComposite = new Composite(authPartComposite, SWT.NULL);
    GridLayout authMaprTicketCompLayout = new GridLayout(1, false);
    authMaprTicketCompLayout.marginWidth = 0;
    authMaprTicketCompLayout.marginHeight = 0;
    authMaprTComposite.setLayout(authMaprTicketCompLayout);
    authMaprTComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    maprTBtn = new Button(authMaprTComposite, SWT.CHECK);
    // $NON-NLS-1$
    maprTBtn.setText(Messages.getString("HadoopClusterForm.button.maprTicket"));
    maprTBtn.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));
    maprTPCDCompposite = new Composite(authMaprTComposite, SWT.NULL);
    GridLayout maprTPCDCompositeLayout = new GridLayout(1, false);
    maprTPCDCompositeLayout.marginWidth = 0;
    maprTPCDCompositeLayout.marginHeight = 0;
    maprTPCDCompposite.setLayout(maprTPCDCompositeLayout);
    maprTPCDCompposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    maprTPasswordCompposite = new Composite(maprTPCDCompposite, SWT.NULL);
    GridLayout maprTPasswordComppositeLayout = new GridLayout(2, false);
    maprTPasswordComppositeLayout.marginWidth = 0;
    maprTPasswordComppositeLayout.marginHeight = 0;
    maprTPasswordCompposite.setLayout(maprTPasswordComppositeLayout);
    maprTPasswordCompposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    maprTPasswordText = new LabelledText(maprTPasswordCompposite, Messages.getString("HadoopClusterForm.text.maprTPassword"), 1, // $NON-NLS-1$
    SWT.PASSWORD | SWT.BORDER | SWT.SINGLE);
    maprTPasswordText.getTextControl().setEchoChar('*');
    Composite maprTCDCompposite = new Composite(maprTPCDCompposite, SWT.NULL);
    GridLayout maprTCDComppositeLayout = new GridLayout(2, false);
    maprTCDComppositeLayout.marginWidth = 0;
    maprTCDComppositeLayout.marginHeight = 0;
    maprTCDCompposite.setLayout(maprTCDComppositeLayout);
    maprTCDCompposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    // $NON-NLS-1$
    maprTClusterText = new LabelledText(maprTCDCompposite, Messages.getString("HadoopClusterForm.text.maprTCluster"), 1);
    // $NON-NLS-1$
    maprTDurationText = new LabelledText(maprTCDCompposite, Messages.getString("HadoopClusterForm.text.maprTDuration"), 1);
    maprTSetComposite = new Composite(authMaprTComposite, SWT.NULL);
    GridLayout maprTicketSetCompLayout = new GridLayout(3, false);
    maprTicketSetCompLayout.marginWidth = 0;
    maprTicketSetCompLayout.marginHeight = 0;
    maprTSetComposite.setLayout(maprTicketSetCompLayout);
    maprTSetComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    setMaprTHomeDirBtn = new Button(maprTSetComposite, SWT.CHECK);
    // $NON-NLS-1$
    setMaprTHomeDirBtn.setText(Messages.getString("HadoopClusterForm.button.setMaprTHomeDir"));
    // $NON-NLS-1$
    maprTHomeDirText = new LabelledText(maprTSetComposite, "", 1);
    setHadoopLoginBtn = new Button(maprTSetComposite, SWT.CHECK);
    // $NON-NLS-1$
    setHadoopLoginBtn.setText(Messages.getString("HadoopClusterForm.button.setHadoopLogin"));
    // $NON-NLS-1$
    maprTHadoopLoginText = new LabelledText(maprTSetComposite, "", 1);
    preloadAuthentificationBtn = new Button(maprTSetComposite, SWT.CHECK);
    // $NON-NLS-1$
    preloadAuthentificationBtn.setText(Messages.getString("HadoopClusterForm.button.preloadAuthentification.label"));
}
Also used : LabelledText(org.talend.commons.ui.swt.formtools.LabelledText) GridLayout(org.eclipse.swt.layout.GridLayout) Composite(org.eclipse.swt.widgets.Composite) ScrolledComposite(org.eclipse.swt.custom.ScrolledComposite) Button(org.eclipse.swt.widgets.Button) UtilsButton(org.talend.commons.ui.swt.formtools.UtilsButton) GridData(org.eclipse.swt.layout.GridData) LabelledFileField(org.talend.commons.ui.swt.formtools.LabelledFileField)

Example 44 with LabelledText

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

the class SynapseInfoForm method addTuningFields.

private void addTuningFields() {
    Group tuningGroup = Form.createGroup(this, 4, Messages.getString("SynapseInfoForm.tuningSettings"), 110);
    tuningGroup.setLayoutData(new GridData(GridData.FILL_BOTH));
    tuningPropButton = new Button(tuningGroup, SWT.CHECK);
    tuningPropButton.setText(Messages.getString("SynapseInfoForm.useTuningProperties"));
    tuningPropButton.setLayoutData(new GridData(SWT.BEGINNING, SWT.CENTER, true, false, 2, 1));
    // $NON-NLS-1$
    driverMemoryText = new LabelledText(tuningGroup, Messages.getString("SynapseInfoForm.text.synapse.driverMemory"), 1);
    // $NON-NLS-1$;
    driverCoresText = new LabelledText(tuningGroup, Messages.getString("SynapseInfoForm.text.synapse.driverCores"), 1);
    // $NON-NLS-1$;
    executorMemoryText = new LabelledText(tuningGroup, Messages.getString("SynapseInfoForm.text.synapse.executorMemory"), 1);
}
Also used : LabelledText(org.talend.commons.ui.swt.formtools.LabelledText) Group(org.eclipse.swt.widgets.Group) Button(org.eclipse.swt.widgets.Button) GridData(org.eclipse.swt.layout.GridData)

Example 45 with LabelledText

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

the class SynapseInfoForm method addFSFields.

private void addFSFields() {
    // $NON-NLS-1$
    Group azureGroup = Form.createGroup(this, 1, Messages.getString("SynapseInfoForm.azureSettings"), 110);
    azureGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    storagePartComposite = new Composite(azureGroup, SWT.NULL);
    GridLayout storagePartLayout = new GridLayout(4, false);
    storagePartLayout.marginWidth = 0;
    storagePartLayout.marginHeight = 0;
    storagePartComposite.setLayout(storagePartLayout);
    storagePartComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    storageCombo = new LabelledCombo(storagePartComposite, Messages.getString("SynapseInfoForm.text.azure.storage"), Messages.getString("SynapseInfoForm.text.azure.storage.tip"), ESynapseStorage.getAllSynapseStorageDisplayNames().toArray(new String[0]), 1, true);
    Composite azurePartComposite = new Composite(azureGroup, SWT.NULL);
    GridLayout azurePartLayout = new GridLayout(4, false);
    azurePartLayout.marginWidth = 0;
    azurePartLayout.marginHeight = 0;
    azurePartComposite.setLayout(azurePartLayout);
    azurePartComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    // $NON-NLS-1$
    azureHostnameText = new LabelledText(azurePartComposite, Messages.getString("SynapseInfoForm.text.azure.hostname"), 1);
    // $NON-NLS-1$
    azureUsernameText = new LabelledText(azurePartComposite, Messages.getString("SynapseInfoForm.text.azure.username"), 1);
    // $NON-NLS-1$
    azureContainerText = new LabelledText(azurePartComposite, Messages.getString("SynapseInfoForm.text.azure.container"), 1);
    azurePasswordText = new LabelledText(azurePartComposite, Messages.getString("SynapseInfoForm.text.azure.password"), 1, // $NON-NLS-1$
    SWT.PASSWORD | SWT.BORDER | SWT.SINGLE);
    azurePasswordText.getTextControl().setEchoChar('*');
    azureDeployBlobText = new LabelledText(azurePartComposite, Messages.getString("SynapseInfoForm.text.azure.deployBlob"), 1);
}
Also used : LabelledCombo(org.talend.commons.ui.swt.formtools.LabelledCombo) LabelledText(org.talend.commons.ui.swt.formtools.LabelledText) Group(org.eclipse.swt.widgets.Group) GridLayout(org.eclipse.swt.layout.GridLayout) Composite(org.eclipse.swt.widgets.Composite) 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