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();
}
Aggregations