lblSelectJCo3Archive.setText(Messages.ArchiveSelectionPage_JCo3SelectLable);
textSelectJCo3Archive = new Text(top, SWT.BORDER | SWT.READ_ONLY);
textSelectJCo3Archive.setMessage(Messages.ArchiveSelectionPage_JCo3ArchivePath_text_message);
textSelectJCo3Archive.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
binding = context.bindValue(SWTObservables.observeText(textSelectJCo3Archive, SWT.Modify), BeansObservables.observeValue(jcoImportSettings, "jco3ArchiveFilename"), new UpdateValueStrategy().setAfterConvertValidator(new ArchiveNameValidator()) , new UpdateValueStrategy()); //$NON-NLS-1$
ControlDecorationSupport.create(binding, SWT.TOP | SWT.LEFT);
btnSelectJCo3Archive = new Button(top, SWT.NONE);
btnSelectJCo3Archive.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
getJCo3ArchiveFile();
}
});
btnSelectJCo3Archive.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));
btnSelectJCo3Archive.setText(Messages.ArchiveSelectionPage_Browse_text);
lblArchiveOsPlatform = new Label(top, SWT.NONE);
GridData gd_lblArchiveOsPlatform = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);
gd_lblArchiveOsPlatform.horizontalIndent = 10;
lblArchiveOsPlatform.setLayoutData(gd_lblArchiveOsPlatform);
lblArchiveOsPlatform.setText(Messages.ArchiveSelectionPage_lblArchiveOsPlatform_text);
textArchiveOs = new Text(top, SWT.BORDER | SWT.READ_ONLY);
textArchiveOs.setEnabled(false);
textArchiveOs.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
context.bindValue(SWTObservables.observeText(textArchiveOs, SWT.Modify), BeansObservables.observeValue(jcoImportSettings, "archiveOs"), new UpdateValueStrategy(), new UpdateValueStrategy()); //$NON-NLS-1$
lblArchiveVersion = new Label(top, SWT.NONE);
GridData gd_lblArchiveVersion = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);
gd_lblArchiveVersion.horizontalIndent = 10;
lblArchiveVersion.setLayoutData(gd_lblArchiveVersion);
lblArchiveVersion.setText(Messages.ArchiveSelectionPage_lblArchiveVersion_text);
textArchiveVersion = new Text(top, SWT.BORDER | SWT.READ_ONLY);
textArchiveVersion.setEnabled(false);
textArchiveVersion.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
context.bindValue(SWTObservables.observeText(textArchiveVersion, SWT.Modify), BeansObservables.observeValue(jcoImportSettings, "archiveVersion"), new UpdateValueStrategy(), new UpdateValueStrategy()); //$NON-NLS-1$
Label lblEnterBundleName = new Label(top, SWT.NONE);
lblEnterBundleName.setText(Messages.ArchiveSelectionPage_lblEnterBundleName_text);
textEnterBundleName = new Text(top, SWT.BORDER);
textEnterBundleName.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
binding = context.bindValue(SWTObservables.observeText(textEnterBundleName, SWT.Modify), BeansObservables.observeValue(jcoImportSettings, "bundleName"), new UpdateValueStrategy().setAfterConvertValidator(new BundleNameValidator()), new UpdateValueStrategy()); //$NON-NLS-1$
ControlDecorationSupport.create(binding, SWT.TOP | SWT.LEFT);
textEnterBundleName.setText(Messages.ArchiveSelectionPage_BundleNameDefault);
Label lblEnterBundleVersion = new Label(top, SWT.NONE);
lblEnterBundleVersion.setText(Messages.ArchiveSelectionPage_lblEnterBundleVersion_text);
textEnterBundleVersion = new Text(top, SWT.BORDER);
textEnterBundleVersion.setMessage(Messages.ArchiveSelectionPage_textEnterBundleVersion_message);
textEnterBundleVersion.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
binding = context.bindValue(SWTObservables.observeText(textEnterBundleVersion, SWT.Modify), BeansObservables.observeValue(jcoImportSettings, "bundleVersion"), new UpdateValueStrategy().setAfterConvertValidator(new BundleVersionValidator()), new UpdateValueStrategy().setAfterConvertValidator(new BundleVersionValidator())); //$NON-NLS-1$
ControlDecorationSupport.create(binding, SWT.TOP | SWT.LEFT);
Label lblEnterBundleVendor = new Label(top, SWT.NONE);
lblEnterBundleVendor.setText(Messages.ArchiveSelectionPage_lblEnterVendorName_text);
textEnterBundleVendor = new Text(top, SWT.BORDER);
textEnterBundleVendor.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
binding = context.bindValue(SWTObservables.observeText(textEnterBundleVendor, SWT.Modify), BeansObservables.observeValue(jcoImportSettings, "bundleVendor"), new UpdateValueStrategy().setAfterConvertValidator(new BundleVendorValidator()), new UpdateValueStrategy()); //$NON-NLS-1$
ControlDecorationSupport.create(binding, SWT.TOP | SWT.LEFT);
textEnterBundleVendor.setText(Messages.ArchiveSelectionPage_BundleVendorDefault);
lblSelectRequiredExecution = new Label(top, SWT.NONE);
lblSelectRequiredExecution.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
lblSelectRequiredExecution.setText(Messages.ArchiveSelectionPage_lblSelectRequiredExecution_text);
comboSelectRequiredExectionEnvironment = new Combo(top, SWT.READ_ONLY);
comboSelectRequiredExectionEnvironment.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
comboSelectRequiredExectionEnvironment.setItems(ImportUtils.getExecutionEnvironments());
binding = context.bindValue(SWTObservables.observeSingleSelectionIndex(comboSelectRequiredExectionEnvironment), BeansObservables.observeValue(jcoImportSettings, "requiredExecutionEnvironment"), new UpdateValueStrategy().setAfterConvertValidator(new RequiredExecutionEnvironmentValidator()), new UpdateValueStrategy()); //$NON-NLS-1$
ControlDecorationSupport.create(binding, SWT.TOP | SWT.LEFT);
}