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