use of org.talend.repository.hadoopcluster.ui.dynamic.form.DynamicDistributionOptionForm in project tbd-studio-se by Talend.
the class DynamicDistributionOptionPage 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);
}
@Override
public void updateButtons() {
getContainer().updateButtons();
}
@Override
public String getMessage() {
return DynamicDistributionOptionPage.this.getMessage();
}
@Override
public void run(boolean fork, boolean cancelable, IRunnableWithProgress runnable) throws Exception {
getContainer().run(fork, cancelable, runnable);
}
};
AbstractDynamicDistributionForm setupForm = new DynamicDistributionOptionForm(parent, SWT.NONE, getDynamicBuildConfigurationData(), monitor);
setupForm.setCheckListener(checkListener);
setControl(setupForm);
setCurrentForm(setupForm);
setPageComplete(false);
}
Aggregations