use of org.talend.dataprofiler.core.ui.wizard.indicator.NewUDIndicatorWizard in project tdq-studio-se by Talend.
the class CreateUDIAction method run.
@Override
public void run() {
if (this.folder == null) {
this.folder = ResourceManager.getUDIFolder();
}
UDIndicatorParameter parameter = new UDIndicatorParameter();
FolderProvider folderProvider = new FolderProvider();
folderProvider.setFolderResource(folder);
parameter.setFolderProvider(folderProvider);
NewUDIndicatorWizard fileWizard = WizardFactory.createNewUDIWizard(parameter);
fileWizard.setWindowTitle(getText());
IContext context = HelpSystem.getContext(HelpPlugin.getDefault().getUDIndicatorHelpContextID());
IHelpResource[] relatedTopics = context.getRelatedTopics();
String href = relatedTopics[0].getHref();
WizardDialog dialog = new OpeningHelpWizardDialog(null, fileWizard, href);
if (WizardDialog.OK == dialog.open()) {
ProxyRepositoryManager.getInstance().save();
}
}
Aggregations