Search in sources :

Example 1 with ProblemsAnalyser

use of org.talend.designer.mapper.utils.problems.ProblemsAnalyser in project tdi-studio-se by Talend.

the class MapperComponent method getProblems.

/*
     * (non-Javadoc)
     * 
     * @see org.talend.core.model.process.AbstractExternalNode#getProblems()
     */
@Override
public List<Problem> getProblems() {
    initMapperMain(false);
    ProblemsAnalyser problemsAnalyser = new ProblemsAnalyser(mapperMain.getMapperManager());
    return problemsAnalyser.checkProblems(externalData);
}
Also used : ProblemsAnalyser(org.talend.designer.mapper.utils.problems.ProblemsAnalyser)

Example 2 with ProblemsAnalyser

use of org.talend.designer.mapper.utils.problems.ProblemsAnalyser in project tdi-studio-se by Talend.

the class InputDataMapTableView method checkLookupTableProblems.

private void checkLookupTableProblems(boolean stateAtLeastOneHashKey) {
    ProblemsAnalyser problemAnalyser = new ProblemsAnalyser(mapperManager);
    List<Problem> lookupTableProblem = problemAnalyser.getLookupTableProblem(getInputTable(), stateAtLeastOneHashKey);
    if (!lookupTableProblem.isEmpty()) {
        String problemTxt = "";
        for (Problem problem : lookupTableProblem) {
            problemTxt = problemTxt + problem.getDescription();
        }
        warningLabel.setToolTipText(problemTxt);
        nameLabel.setToolTipText(problemTxt);
        // headerComposite.setBackground(ColorProviderMapper.getColor(ColorInfo.COLOR_ENTRY_SEARCH_HIGHLIGHTED));
        headerComposite.setToolTipText(problemTxt);
        warningLabel.setVisible(true);
        warnLabelData.exclude = false;
    } else {
        warningLabel.setVisible(false);
        nameLabel.setToolTipText(getInputTable().getName());
        headerComposite.setToolTipText(null);
        // headerComposite.setBackground(this.getBackground());
        warnLabelData.exclude = true;
    }
    layoutToolBar();
}
Also used : ProblemsAnalyser(org.talend.designer.mapper.utils.problems.ProblemsAnalyser) Problem(org.talend.core.model.process.Problem)

Aggregations

ProblemsAnalyser (org.talend.designer.mapper.utils.problems.ProblemsAnalyser)2 Problem (org.talend.core.model.process.Problem)1