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

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

Issue 250823006: Translate parts of engine.services project. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Move to pkg/analysis_services/ Created 6 years, 8 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/RefactoringStatusEntry.java
diff --git a/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/status/RefactoringStatusEntry.java b/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/status/RefactoringStatusEntry.java
index f2ecdde96f5b84f2301bbf20188c28fa5fb0367e..d6eb582d33bf6a822a6f8c9cc033a1329e5f868e 100644
--- a/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/status/RefactoringStatusEntry.java
+++ b/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/status/RefactoringStatusEntry.java
@@ -13,30 +13,47 @@
*/
package com.google.dart.engine.services.status;
+import com.google.dart.engine.utilities.translation.DartOmit;
+import com.google.dart.engine.utilities.translation.DartOptional;
+
/**
* An immutable object representing an entry in the list in {@link RefactoringStatus}. A refactoring
* status entry consists of a severity, a message and a context object.
*/
public class RefactoringStatusEntry {
+ /**
+ * The severity level.
+ */
private final RefactoringStatusSeverity severity;
+
+ /**
+ * The message of the status entry.
+ */
private final String message;
+
+ /**
+ * The {@link RefactoringStatusContext} which can be used to show more detailed information
+ * regarding this status entry in the UI. May be {@code null} indicating that no context is
+ * available.
+ */
private final RefactoringStatusContext context;
- public RefactoringStatusEntry(RefactoringStatusSeverity severity, String msg) {
- this(severity, msg, null);
+ @DartOmit
+ public RefactoringStatusEntry(RefactoringStatusSeverity severity, String message) {
+ this(severity, message, null);
}
- public RefactoringStatusEntry(RefactoringStatusSeverity severity, String msg,
- RefactoringStatusContext context) {
+ public RefactoringStatusEntry(RefactoringStatusSeverity severity, String message,
+ @DartOptional RefactoringStatusContext ctx) {
this.severity = severity;
- this.message = msg;
- this.context = context;
+ this.message = message;
+ this.context = ctx;
}
/**
* @return the {@link RefactoringStatusContext} which can be used to show more detailed
- * information regarding this status entry in the UI. The method may return
- * <code>null</code> indicating that no context is available.
+ * information regarding this status entry in the UI. The method may return {@code null}
+ * indicating that no context is available.
*/
public RefactoringStatusContext getContext() {
return context;

Powered by Google App Engine
This is Rietveld 408576698