Search in sources :

Example 1 with NewParserRulesWizard

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

the class CreateParserRuleAction method run.

@Override
public void run() {
    DQParserRulesParameter parameter = new DQParserRulesParameter();
    FolderProvider folderProvider = new FolderProvider();
    folderProvider.setFolderResource(folder);
    parameter.setFolderProvider(folderProvider);
    NewParserRulesWizard fileWizard = WizardFactory.createNewParserRuleWizard(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) DQParserRulesParameter(org.talend.dq.analysis.parameters.DQParserRulesParameter) NewParserRulesWizard(org.talend.dataprofiler.core.ui.wizard.parserrule.NewParserRulesWizard) WizardDialog(org.eclipse.jface.wizard.WizardDialog)

Aggregations

WizardDialog (org.eclipse.jface.wizard.WizardDialog)1 FolderProvider (org.talend.cwm.management.api.FolderProvider)1 NewParserRulesWizard (org.talend.dataprofiler.core.ui.wizard.parserrule.NewParserRulesWizard)1 DQParserRulesParameter (org.talend.dq.analysis.parameters.DQParserRulesParameter)1