Search in sources :

Example 1 with ExportParserRuleWizard

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

the class ExportParserRuleAction method run.

@Override
public void run() {
    Wizard wizard = isForExchange ? new ExportForExchangeWizard(WorkbenchUtils.getFolder((RepositoryNode) parserRuleFolder).getFullPath().toString()) : new ExportParserRuleWizard(parserRuleFolder, isForExchange);
    WizardDialog dialog = new WizardDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), wizard);
    wizard.setWindowTitle(getText());
    if (WizardDialog.OK == dialog.open()) {
        try {
            IFolder folder = WorkbenchUtils.getFolder((RepositoryNode) parserRuleFolder);
            folder.refreshLocal(IResource.DEPTH_INFINITE, null);
        } catch (CoreException e) {
            log.error(e, e);
        }
    }
}
Also used : ExportParserRuleWizard(org.talend.dataprofiler.core.ui.wizard.parserrule.ExportParserRuleWizard) CoreException(org.eclipse.core.runtime.CoreException) ExportForExchangeWizard(org.talend.dataprofiler.core.ui.imex.ExportForExchangeWizard) Wizard(org.eclipse.jface.wizard.Wizard) ExportForExchangeWizard(org.talend.dataprofiler.core.ui.imex.ExportForExchangeWizard) ExportParserRuleWizard(org.talend.dataprofiler.core.ui.wizard.parserrule.ExportParserRuleWizard) WizardDialog(org.eclipse.jface.wizard.WizardDialog) IFolder(org.eclipse.core.resources.IFolder)

Aggregations

IFolder (org.eclipse.core.resources.IFolder)1 CoreException (org.eclipse.core.runtime.CoreException)1 Wizard (org.eclipse.jface.wizard.Wizard)1 WizardDialog (org.eclipse.jface.wizard.WizardDialog)1 ExportForExchangeWizard (org.talend.dataprofiler.core.ui.imex.ExportForExchangeWizard)1 ExportParserRuleWizard (org.talend.dataprofiler.core.ui.wizard.parserrule.ExportParserRuleWizard)1