use of org.talend.commons.ui.swt.formtools.LabelledText in project tdi-studio-se by Talend.
the class CreateSandboxProjectDialog method createUserInfors.
private void createUserInfors(Composite parent) {
userGroup = new Group(parent, SWT.NULL);
userGroup.setLayout(new GridLayout(4, false));
GridData userLayoutData = new GridData(GridData.FILL_HORIZONTAL);
userLayoutData.horizontalSpan = 2;
userGroup.setLayoutData(userLayoutData);
//$NON-NLS-1$
userLoginText = new LabelledText(userGroup, Messages.getString("CreateSandboxProjectDialog.Login"));
//$NON-NLS-1$
userPassText = new LabelledText(userGroup, Messages.getString("CreateSandboxProjectDialog.Password"));
userPassText.getTextControl().setEchoChar('*');
//$NON-NLS-1$
userFirstNameText = new LabelledText(userGroup, Messages.getString("CreateSandboxProjectDialog.userFirstname"));
//$NON-NLS-1$
userLastNameText = new LabelledText(userGroup, Messages.getString("CreateSandboxProjectDialog.userLastname"));
}
use of org.talend.commons.ui.swt.formtools.LabelledText in project tdi-studio-se by Talend.
the class GenericSchemaForm method addFields.
@Override
protected void addFields() {
Composite mainComposite = Form.startNewDimensionnedGridLayout(this, 2, WIDTH_GRIDDATA_PIXEL, 60);
//$NON-NLS-1$
metadataNameText = new LabelledText(mainComposite, Messages.getString("GenericSchemaForm.metadataName"));
//$NON-NLS-1$
metadataCommentText = new LabelledText(mainComposite, Messages.getString("GenericSchemaForm.metadataComment"));
//$NON-NLS-1$
Group groupMetaData = Form.createGroup(this, 1, Messages.getString("GenericSchemaForm.groupMetadata"), 280);
Composite compositeMetaData = Form.startNewGridLayout(groupMetaData, 1);
Composite compositeTable = Form.startNewDimensionnedGridLayout(compositeMetaData, 1, WIDTH_GRIDDATA_PIXEL, 200);
compositeTable.setLayout(new FillLayout());
//$NON-NLS-1$
metadataEditor = new MetadataEmfTableEditor(Messages.getString("GenericSchemaForm.metadataDescription"));
tableEditorView = new MetadataEmfTableEditorView(compositeTable, SWT.NONE);
}
use of org.talend.commons.ui.swt.formtools.LabelledText in project tdi-studio-se by Talend.
the class PublishOnSpagoExportWizardPage method createOptions.
/**
* Create the buttons for the group that determine if the entire or selected directory structure should be created.
*
* @param optionsGroup
* @param font
*/
protected void createOptions(Composite optionsGroup, Font font) {
// create directory structure radios
List<SpagoBiServer> listServerSapgo = null;
List<String> listEngine = new ArrayList<String>();
// TODO SML remove unused lines if this fabulous code works fine
// ProxyRepositoryFactory proxyRepositoryFactory = ProxyRepositoryFactory.getInstance();
// try {
// listServerSapgo = proxyRepositoryFactory.getSpagoBiServer();
listServerSapgo = SpagoBiServerHelper.parse(new SpagoBiPreferencePage().getPreferenceStore().getString(SpagoBiServer.SPAGOBI_SERVER));
if (listServerSapgo != null && !listServerSapgo.isEmpty()) {
Iterator<SpagoBiServer> iterator = listServerSapgo.iterator();
while (iterator.hasNext()) {
SpagoBiServer spagoBiServer = iterator.next();
listEngine.add(spagoBiServer.getEngineName());
}
}
// } catch (PersistenceException e) {
// displayErrorDialog(e.getMessage());
// }
serverSpagoBi = new LabelledCombo(optionsGroup, Messages.getString("PublishOnSpagoExportWizardPage.SpagoBI.Server"), Messages.getString("PublishOnSpagoExportWizardPage.SpecifyServer.PublishJob"), //$NON-NLS-1$ //$NON-NLS-2$
listEngine);
serverSpagoBi.select(0);
//$NON-NLS-1$
jobLabel = new LabelledText(optionsGroup, Messages.getString("PublishOnSpagoExportWizardPage.jobLabel"), true);
jobLabel.setText(jobLabelName);
//$NON-NLS-1$
jobName = new LabelledText(optionsGroup, Messages.getString("PublishOnSpagoExportWizardPage.jobName"), true);
jobName.setText(jobLabelName);
//$NON-NLS-1$
jobDescription = new LabelledText(optionsGroup, Messages.getString("PublishOnSpagoExportWizardPage.jobDescription"), true);
jobDescription.setText(jobPurposeDescription);
contextButton = new Button(optionsGroup, SWT.CHECK | SWT.LEFT);
//$NON-NLS-1$
contextButton.setText(Messages.getString("JobScriptsExportWizardPage.contextPerlScripts"));
contextButton.setSelection(true);
contextButton.setFont(font);
contextCombo = new Combo(optionsGroup, SWT.PUSH);
// spagoVisible = new Button(optionsGroup, SWT.CHECK | SWT.LEFT);
// spagoVisible.setText(Messages.getString("PublishOnSpagoExportWizardPage.spagoVisible")); //$NON-NLS-1$
// spagoVisible.setSelection(true);
// spagoVisible.setFont(font);
}
use of org.talend.commons.ui.swt.formtools.LabelledText in project tdi-studio-se by Talend.
the class MultiSchemasUI method addGroupMultiSchemaSettings.
private void addGroupMultiSchemaSettings(final Composite mainComposite) {
//$NON-NLS-1$
Group group = Form.createGroup(mainComposite, 1, Messages.getString("FileStep2.groupDelimitedFileSettings"), 280);
Composite composite = new Composite(group, SWT.NONE);
GridLayout gridLayout = new GridLayout(4, false);
gridLayout.marginHeight = 1;
composite.setLayout(gridLayout);
GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true);
composite.setLayoutData(gd);
EMetadataEncoding[] values = EMetadataEncoding.values();
String[] encodingData = new String[values.length];
for (int j = 0; j < values.length; j++) {
encodingData[j] = values[j].getName();
}
encodingCombo = new LabelledCombo(composite, Messages.getString("FileStep2.encoding"), //$NON-NLS-1$
Messages.getString("FileStep2.encodingTip"), encodingData, 3, true, //$NON-NLS-1$
SWT.NONE);
// Field Separator Combo & Text
String[] fieldSeparatorData = getFieldSeparatorStyleSupportByLanguage();
fieldSeparatorCombo = new LabelledCombo(composite, Messages.getString("FileStep2.fieldSeparator"), //$NON-NLS-1$
Messages.getString("FileStep2.fieldSeparatorDelimitedTip"), fieldSeparatorData, 1, true, //$NON-NLS-1$
SWT.READ_ONLY);
//$NON-NLS-1$
fieldSeparatorText = new LabelledText(composite, "", 1, true, SWT.RIGHT);
// Dimension of columb of Separator Text
GridData gridData = new GridData(SWT.FILL, SWT.BOTTOM, true, false);
gridData.minimumWidth = 80;
fieldSeparatorText.setLayoutData(gridData);
// Row Separator Combo & Text
String[] rowSeparatorData = { RowSeparator.STANDART_EOL_LITERAL.getLiteral(), RowSeparator.CUSTOM_STRING_LITERAL.getLiteral() };
rowSeparatorCombo = new LabelledCombo(composite, Messages.getString("FileStep2.rowSeparator"), //$NON-NLS-1$
Messages.getString("FileStep2.rowSeparatorTip"), rowSeparatorData, 1, true, //$NON-NLS-1$
SWT.READ_ONLY);
//$NON-NLS-1$
rowSeparatorText = new LabelledText(composite, "", 1, true, SWT.RIGHT);
useMultiSaparators = new Button(group, SWT.CHECK);
Composite multiComp = new Composite(group, SWT.NONE);
gridLayout = new GridLayout(2, false);
gridLayout.marginHeight = 1;
multiComp.setLayout(gridLayout);
gd = new GridData(SWT.FILL, SWT.FILL, true, true);
multiComp.setLayoutData(gd);
useMultiSaparators.setText(Messages.getString("MultiSchemasUI.useMultiSchemabtn"));
//$NON-NLS-1$
multiSeparatorsText = new LabelledText(multiComp, "Multiple Separators", 1, true);
multiSeparatorsText.setEditable(false);
//$NON-NLS-1$
keyValuesText = new LabelledText(multiComp, Messages.getString("MultiSchemasUI.keyValues"), 1, true);
keyValuesText.setEditable(false);
//$NON-NLS-1$
keyIndexText = new LabelledText(multiComp, Messages.getString("MultiSchemasUI.keyIndex"), 1, true);
keyIndexText.setEditable(false);
}
use of org.talend.commons.ui.swt.formtools.LabelledText 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