Search in sources :

Example 1 with AbstractDynamicDistributionForm

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);
}
Also used : ICheckListener(org.talend.repository.hadoopcluster.ui.dynamic.form.AbstractDynamicDistributionForm.ICheckListener) ICheckListener(org.talend.repository.hadoopcluster.ui.dynamic.form.AbstractDynamicDistributionForm.ICheckListener) DummyDynamicMonitor(org.talend.designer.maven.aether.DummyDynamicMonitor) AbstractDynamicDistributionForm(org.talend.repository.hadoopcluster.ui.dynamic.form.AbstractDynamicDistributionForm) DynamicDistributionDetailsForm(org.talend.repository.hadoopcluster.ui.dynamic.form.DynamicDistributionDetailsForm) IDynamicMonitor(org.talend.designer.maven.aether.IDynamicMonitor) IRunnableWithProgress(org.eclipse.jface.operation.IRunnableWithProgress)

Example 2 with AbstractDynamicDistributionForm

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();
}
Also used : AbstractDynamicDistributionForm(org.talend.repository.hadoopcluster.ui.dynamic.form.AbstractDynamicDistributionForm)

Example 3 with AbstractDynamicDistributionForm

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();
}
Also used : AbstractDynamicDistributionForm(org.talend.repository.hadoopcluster.ui.dynamic.form.AbstractDynamicDistributionForm)

Example 4 with AbstractDynamicDistributionForm

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);
}
Also used : ICheckListener(org.talend.repository.hadoopcluster.ui.dynamic.form.AbstractDynamicDistributionForm.ICheckListener) ICheckListener(org.talend.repository.hadoopcluster.ui.dynamic.form.AbstractDynamicDistributionForm.ICheckListener) DummyDynamicMonitor(org.talend.designer.maven.aether.DummyDynamicMonitor) AbstractDynamicDistributionForm(org.talend.repository.hadoopcluster.ui.dynamic.form.AbstractDynamicDistributionForm) IDynamicMonitor(org.talend.designer.maven.aether.IDynamicMonitor) IRunnableWithProgress(org.eclipse.jface.operation.IRunnableWithProgress) DynamicDistributionOptionForm(org.talend.repository.hadoopcluster.ui.dynamic.form.DynamicDistributionOptionForm)

Aggregations

AbstractDynamicDistributionForm (org.talend.repository.hadoopcluster.ui.dynamic.form.AbstractDynamicDistributionForm)4 IRunnableWithProgress (org.eclipse.jface.operation.IRunnableWithProgress)2 DummyDynamicMonitor (org.talend.designer.maven.aether.DummyDynamicMonitor)2 IDynamicMonitor (org.talend.designer.maven.aether.IDynamicMonitor)2 ICheckListener (org.talend.repository.hadoopcluster.ui.dynamic.form.AbstractDynamicDistributionForm.ICheckListener)2 DynamicDistributionDetailsForm (org.talend.repository.hadoopcluster.ui.dynamic.form.DynamicDistributionDetailsForm)1 DynamicDistributionOptionForm (org.talend.repository.hadoopcluster.ui.dynamic.form.DynamicDistributionOptionForm)1