Search in sources :

Example 1 with ImportPatternsWizard

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);
        }
    }
}
Also used : IContext(org.eclipse.help.IContext) IHelpResource(org.eclipse.help.IHelpResource) OpeningHelpWizardDialog(org.talend.dataprofiler.core.ui.utils.OpeningHelpWizardDialog) ImportPatternsWizard(org.talend.dataprofiler.core.pattern.ImportPatternsWizard) OpeningHelpWizardDialog(org.talend.dataprofiler.core.ui.utils.OpeningHelpWizardDialog) WizardDialog(org.eclipse.jface.wizard.WizardDialog)

Aggregations

IContext (org.eclipse.help.IContext)1 IHelpResource (org.eclipse.help.IHelpResource)1 WizardDialog (org.eclipse.jface.wizard.WizardDialog)1 ImportPatternsWizard (org.talend.dataprofiler.core.pattern.ImportPatternsWizard)1 OpeningHelpWizardDialog (org.talend.dataprofiler.core.ui.utils.OpeningHelpWizardDialog)1