Search in sources :

Example 1 with TableIndicatorOptionsWizard

use of org.talend.dataprofiler.core.ui.wizard.indicator.TableIndicatorOptionsWizard in project tdq-studio-se by Talend.

the class AnalysisTableTreeViewer method openIndicatorOptionDialog.

/*
     * (non-Javadoc)
     * 
     * @see
     * org.talend.dataprofiler.core.ui.editor.composite.AbstractColumnDropTree#openIndicatorOptionDialog(org.eclipse
     * .swt.widgets.Shell, org.eclipse.swt.widgets.TreeItem)
     */
@Override
public boolean openIndicatorOptionDialog(Shell shell, TreeItem indicatorItem) {
    if (isDirty()) {
        masterPage.doSave(null);
    }
    TableIndicatorUnit indicatorUnit = (TableIndicatorUnit) indicatorItem.getData(INDICATOR_UNIT_KEY);
    if (FormEnum.isExsitingForm(indicatorUnit)) {
        TableIndicatorOptionsWizard wizard = new TableIndicatorOptionsWizard(indicatorUnit);
        String href = FormEnum.getFirstFormHelpHref(indicatorUnit);
        OpeningHelpWizardDialog optionDialog = new OpeningHelpWizardDialog(shell, wizard, href);
        optionDialog.create();
        if (Window.OK == optionDialog.open()) {
            setDirty(wizard.isDirty());
            return hasIndicatorParameters(indicatorUnit);
        }
    } else {
        openNoIndicatorOptionsMessageDialog(shell);
    }
    return false;
}
Also used : TableIndicatorOptionsWizard(org.talend.dataprofiler.core.ui.wizard.indicator.TableIndicatorOptionsWizard) TableIndicatorUnit(org.talend.dataprofiler.core.ui.editor.preview.TableIndicatorUnit) OpeningHelpWizardDialog(org.talend.dataprofiler.core.ui.utils.OpeningHelpWizardDialog)

Aggregations

TableIndicatorUnit (org.talend.dataprofiler.core.ui.editor.preview.TableIndicatorUnit)1 OpeningHelpWizardDialog (org.talend.dataprofiler.core.ui.utils.OpeningHelpWizardDialog)1 TableIndicatorOptionsWizard (org.talend.dataprofiler.core.ui.wizard.indicator.TableIndicatorOptionsWizard)1