Search in sources :

Example 1 with LabelledDirectoryField

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

the class PropertySetDialog method createDialogArea.

/**
     * Create contents of the dialog
     * 
     * @param parent
     */
@Override
protected Control createDialogArea(Composite parent) {
    Composite container = (Composite) super.createDialogArea(parent);
    final GridLayout gridLayout = new GridLayout();
    gridLayout.marginLeft = 10;
    gridLayout.marginTop = 10;
    gridLayout.marginHeight = 10;
    container.setLayout(gridLayout);
    dieOnErrorButton = new Button(container, SWT.CHECK);
    //$NON-NLS-1$
    dieOnErrorButton.setText("Die on error");
    lookupInParallelButton = new Button(container, SWT.CHECK);
    //$NON-NLS-1$
    lookupInParallelButton.setText("Lookup in parallel");
    lookupInParallelButton.setEnabled(true);
    IComponent tempNode = ComponentsFactoryProvider.getInstance().get("tParallelize", //$NON-NLS-1$
    ComponentCategory.CATEGORY_4_DI.getName());
    if (tempNode == null) {
        lookupInParallelButton.setVisible(false);
    }
    enableAutoConvertTypeBtn = new Button(container, SWT.CHECK);
    //$NON-NLS-1$
    enableAutoConvertTypeBtn.setText(Messages.getString("PropertySetDialog.Button.enable"));
    final Group storeOnDiskGroup = new Group(container, SWT.NONE);
    storeOnDiskGroup.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    storeOnDiskGroup.setText("Store on disk");
    storeOnDiskGroup.setLayout(new GridLayout(3, false));
    directoryField = new LabelledDirectoryField(storeOnDiskGroup, "Temp data directory path:");
    sizeField = new LabelledText(storeOnDiskGroup, "Max buffer size(nb of rows):");
    Label label = new Label(storeOnDiskGroup, SWT.NONE);
    label.setText("*");
    label.setToolTipText("Required filed.");
    init();
    addListener();
    updateStatus();
    //
    return container;
}
Also used : 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) Button(org.eclipse.swt.widgets.Button) LabelledDirectoryField(org.talend.commons.ui.swt.formtools.LabelledDirectoryField) IComponent(org.talend.core.model.components.IComponent) GridData(org.eclipse.swt.layout.GridData) Label(org.eclipse.swt.widgets.Label)

Aggregations

GridData (org.eclipse.swt.layout.GridData)1 GridLayout (org.eclipse.swt.layout.GridLayout)1 Button (org.eclipse.swt.widgets.Button)1 Composite (org.eclipse.swt.widgets.Composite)1 Group (org.eclipse.swt.widgets.Group)1 Label (org.eclipse.swt.widgets.Label)1 LabelledDirectoryField (org.talend.commons.ui.swt.formtools.LabelledDirectoryField)1 LabelledText (org.talend.commons.ui.swt.formtools.LabelledText)1 IComponent (org.talend.core.model.components.IComponent)1