Search in sources :

Example 1 with RefactoringStatusEntry

use of com.jetbrains.lang.dart.ide.refactoring.status.RefactoringStatusEntry in project intellij-plugins by JetBrains.

the class ServerRefactoring method toRefactoringStatus.

private static RefactoringStatus toRefactoringStatus(@NotNull List<RefactoringProblem> problems) {
    RefactoringStatus status = new RefactoringStatus();
    for (RefactoringProblem problem : problems) {
        final String serverSeverity = problem.getSeverity();
        final RefactoringStatusSeverity problemSeverity = toProblemSeverity(serverSeverity);
        final String message = problem.getMessage();
        status.addEntry(new RefactoringStatusEntry(problemSeverity, message));
    }
    return status;
}
Also used : RefactoringStatusSeverity(com.jetbrains.lang.dart.ide.refactoring.status.RefactoringStatusSeverity) RefactoringStatusEntry(com.jetbrains.lang.dart.ide.refactoring.status.RefactoringStatusEntry) RefactoringStatus(com.jetbrains.lang.dart.ide.refactoring.status.RefactoringStatus)

Aggregations

RefactoringStatus (com.jetbrains.lang.dart.ide.refactoring.status.RefactoringStatus)1 RefactoringStatusEntry (com.jetbrains.lang.dart.ide.refactoring.status.RefactoringStatusEntry)1 RefactoringStatusSeverity (com.jetbrains.lang.dart.ide.refactoring.status.RefactoringStatusSeverity)1