Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2566)

Unified Diff: editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/status/RefactoringStatus.java

Issue 12340077: Initial binding of RenameRefactoring service to Eclipse. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/status/RefactoringStatus.java
diff --git a/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/status/RefactoringStatus.java b/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/status/RefactoringStatus.java
index 8f412c889b86a9b368391592c0b095fc53df41de..564bad13ab7c60b23c1e0c350f12107d0226775d 100644
--- a/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/status/RefactoringStatus.java
+++ b/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/status/RefactoringStatus.java
@@ -103,6 +103,20 @@ public class RefactoringStatus {
addEntry(new RefactoringStatusEntry(RefactoringStatusSeverity.WARNING, msg, context));
}
+ // XXX
+ public RefactoringStatus escalateErrorToFatal() {
+ RefactoringStatus result = new RefactoringStatus();
+ List<RefactoringStatusEntry> entries2 = entries;
+ for (RefactoringStatusEntry entry : entries2) {
+ RefactoringStatusSeverity severity = entry.getSeverity();
+ if (severity == RefactoringStatusSeverity.ERROR) {
+ severity = RefactoringStatusSeverity.FATAL;
+ }
+ result.addEntry(new RefactoringStatusEntry(severity, entry.getMessage(), entry.getContext()));
+ }
+ return result;
+ }
+
/**
* @return the {@link RefactoringStatusEntry}s.
*/

Powered by Google App Engine
This is Rietveld 408576698