use of org.talend.dataprofiler.core.ui.views.provider.DQRepositoryViewLabelProviderWithFilter in project tdq-studio-se by Talend.
the class IndicatorSettingsPage method openAnalysesSelectionDialog.
/**
* DOC qzhang Comment method "openAnalysesSelectionDialog".
*/
protected void openAnalysesSelectionDialog(boolean isLowCase) {
SpecialLimitFrequencyAnalysisFilter limitFilter = new SpecialLimitFrequencyAnalysisFilter(isLowCase ? 0 : freResultLimit, isLowCase ? lowFreResultLimit : 0);
CheckedTreeSelectionDialog checkedTreeSelectionDialog = new CheckedTreeSelectionDialog(this.getShell(), new DQRepositoryViewLabelProviderWithFilter(limitFilter), new ResourceViewContentProvider());
// $NON-NLS-1$
checkedTreeSelectionDialog.setTitle(DefaultMessagesImpl.getString("IndicatorSettingsPage.analysisSelectDialog.title"));
checkedTreeSelectionDialog.setMessage(// $NON-NLS-1$
DefaultMessagesImpl.getString("IndicatorSettingsPage.analysisSelectDialog.message"));
checkedTreeSelectionDialog.setContainerMode(true);
checkedTreeSelectionDialog.addFilter(new SelectAnalysisDialogNodeFilter());
checkedTreeSelectionDialog.addFilter(limitFilter);
DQRepositoryNode analysisSelectDialogInputData = AnalysisUtils.getAnalysisSelectDialogInputDataWithoutRef(EResourceConstant.ANALYSIS);
checkedTreeSelectionDialog.setInput(analysisSelectDialogInputData);
if (checkedTreeSelectionDialog.open() == Dialog.OK) {
Object[] result = checkedTreeSelectionDialog.getResult();
for (Object obj : result) {
if (obj instanceof AnalysisRepNode) {
AnalysisRepNode anaNode = (AnalysisRepNode) obj;
modifyAndSaveLimit(anaNode, isLowCase);
}
}
}
}
Aggregations