use of org.talend.dataprofiler.core.pattern.ImportPatternsWizard in project tdq-studio-se by Talend.
the class ImportPatternsAction method run.
/*
* (non-Javadoc)
*
* @see org.eclipse.jface.action.Action#run()
*/
@Override
public void run() {
ImportPatternsWizard wizard = new ImportPatternsWizard(folder, type);
IContext context = HelpSystem.getContext(HelpPlugin.getDefault().getPatternHelpContextID());
IHelpResource[] relatedTopics = context.getRelatedTopics();
String href = relatedTopics[2].getHref();
WizardDialog dialog = new OpeningHelpWizardDialog(null, wizard, href);
wizard.setWindowTitle(getText());
if (WizardDialog.OK == dialog.open()) {
if (this.node != null) {
CorePlugin.getDefault().refreshDQView(this.node);
}
}
}
Aggregations