Search in sources :

Example 1 with IssueResolution

use of org.eclipse.xtext.ui.editor.quickfix.IssueResolution in project xtext-xtend by eclipse.

the class XtendQuickfixProvider method getResolutions.

@Override
public List<IssueResolution> getResolutions(Issue issue) {
    StopWatch stopWatch = new StopWatch(logger);
    try {
        if (LINKING_ISSUE_CODES.contains(issue.getCode())) {
            List<IssueResolution> result = new ArrayList<IssueResolution>();
            result.addAll(getResolutionsForLinkingIssue(issue));
            return result;
        } else
            return super.getResolutions(issue);
    } finally {
        stopWatch.resetAndLog("#getResolutions");
    }
}
Also used : IssueResolution(org.eclipse.xtext.ui.editor.quickfix.IssueResolution) ArrayList(java.util.ArrayList) StopWatch(org.eclipse.xtext.util.StopWatch)

Aggregations

ArrayList (java.util.ArrayList)1 IssueResolution (org.eclipse.xtext.ui.editor.quickfix.IssueResolution)1 StopWatch (org.eclipse.xtext.util.StopWatch)1