use of org.talend.repository.hadoopcluster.ui.dynamic.form.AbstractDynamicDistributionForm 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);
}
use of org.talend.repository.hadoopcluster.ui.dynamic.form.AbstractDynamicDistributionForm in project tbd-studio-se by Talend.
the class DynamicDistributionPreferencePage method performApply.
@Override
protected void performApply() {
AbstractDynamicDistributionForm currentForm = getCurrentForm();
if (currentForm != null) {
currentForm.performApply();
}
super.performApply();
}
use of org.talend.repository.hadoopcluster.ui.dynamic.form.AbstractDynamicDistributionForm in project tbd-studio-se by Talend.
the class DynamicDistributionPreferencePage method performDefaults.
@Override
protected void performDefaults() {
AbstractDynamicDistributionForm currentForm = getCurrentForm();
if (currentForm != null) {
currentForm.performDefaults();
}
super.performDefaults();
}
use of org.talend.repository.hadoopcluster.ui.dynamic.form.AbstractDynamicDistributionForm 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