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;
}
Aggregations