use of com.jetbrains.lang.dart.ide.refactoring.status.RefactoringStatusSeverity 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;
}
Aggregations