use of org.talend.repository.hadoopcluster.ui.dynamic.form.DynamicDistributionDetailsForm in project tbd-studio-se by Talend.
the class DynamicDistributionDetailsPage method createControl.
@Override
public void createControl(Composite parent) {
IDynamicMonitor monitor = new DummyDynamicMonitor();
AbstractDynamicDistributionForm.ICheckListener checkListener = new ICheckListener() {
@Override
public void showMessage(String message, int level) {
setMessage(message, level);
setErrorMessage(message);
}
@Override
public void updateButtons() {
getContainer().updateButtons();
}
@Override
public String getMessage() {
return DynamicDistributionDetailsPage.this.getMessage();
}
@Override
public void run(boolean fork, boolean cancelable, IRunnableWithProgress runnable) throws Exception {
getContainer().run(fork, cancelable, runnable);
}
};
AbstractDynamicDistributionForm setupForm = new DynamicDistributionDetailsForm(parent, SWT.NONE, getDynamicBuildConfigurationData(), monitor);
setupForm.setCheckListener(checkListener);
setControl(setupForm);
setCurrentForm(setupForm);
setPageComplete(false);
}
Aggregations