Search in sources :

Example 1 with NewDQRulesWizard

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

the class CreateDQRulesAction method run.

/*
     * (non-Javadoc)
     * 
     * @see org.eclipse.jface.action.Action#run()
     */
@Override
public void run() {
    DQRulesParameter parameter = new DQRulesParameter();
    FolderProvider folderProvider = new FolderProvider();
    folderProvider.setFolderResource(folder);
    parameter.setFolderProvider(folderProvider);
    NewDQRulesWizard fileWizard = WizardFactory.createNewDQRuleWizard(parameter);
    fileWizard.setWindowTitle(getText());
    WizardDialog dialog = new WizardDialog(Display.getDefault().getActiveShell(), fileWizard);
    if (WizardDialog.OK == dialog.open())
        ProxyRepositoryManager.getInstance().save();
}
Also used : FolderProvider(org.talend.cwm.management.api.FolderProvider) DQRulesParameter(org.talend.dq.analysis.parameters.DQRulesParameter) NewDQRulesWizard(org.talend.dataprofiler.core.ui.wizard.dqrules.NewDQRulesWizard) WizardDialog(org.eclipse.jface.wizard.WizardDialog)

Aggregations

WizardDialog (org.eclipse.jface.wizard.WizardDialog)1 FolderProvider (org.talend.cwm.management.api.FolderProvider)1 NewDQRulesWizard (org.talend.dataprofiler.core.ui.wizard.dqrules.NewDQRulesWizard)1 DQRulesParameter (org.talend.dq.analysis.parameters.DQRulesParameter)1