Search in sources :

Example 1 with UDIndicatorParameter

use of org.talend.dq.analysis.parameters.UDIndicatorParameter 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();
    }
}
Also used : FolderProvider(org.talend.cwm.management.api.FolderProvider) IContext(org.eclipse.help.IContext) NewUDIndicatorWizard(org.talend.dataprofiler.core.ui.wizard.indicator.NewUDIndicatorWizard) IHelpResource(org.eclipse.help.IHelpResource) OpeningHelpWizardDialog(org.talend.dataprofiler.core.ui.utils.OpeningHelpWizardDialog) OpeningHelpWizardDialog(org.talend.dataprofiler.core.ui.utils.OpeningHelpWizardDialog) WizardDialog(org.eclipse.jface.wizard.WizardDialog) UDIndicatorParameter(org.talend.dq.analysis.parameters.UDIndicatorParameter)

Aggregations

IContext (org.eclipse.help.IContext)1 IHelpResource (org.eclipse.help.IHelpResource)1 WizardDialog (org.eclipse.jface.wizard.WizardDialog)1 FolderProvider (org.talend.cwm.management.api.FolderProvider)1 OpeningHelpWizardDialog (org.talend.dataprofiler.core.ui.utils.OpeningHelpWizardDialog)1 NewUDIndicatorWizard (org.talend.dataprofiler.core.ui.wizard.indicator.NewUDIndicatorWizard)1 UDIndicatorParameter (org.talend.dq.analysis.parameters.UDIndicatorParameter)1