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

Unified Diff: editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/correction/CorrectionKind.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/correction/CorrectionKind.java
diff --git a/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/correction/CorrectionKind.java b/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/correction/CorrectionKind.java
index afe73f5a45e92406ee58609cd6215d9ed5d180f5..ddd534fea312d51e86784a16cb7f03277a4eb14d 100644
--- a/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/correction/CorrectionKind.java
+++ b/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/correction/CorrectionKind.java
@@ -49,7 +49,7 @@ public enum CorrectionKind {
QF_ADD_SUPER_CONSTRUCTOR_INVOCATION(50, "Add super constructor %s invocation"),
QF_CHANGE_TO(51, "Change to '%s'"),
QF_CHANGE_TO_STATIC_ACCESS(50, "Change access to static using '%s'"),
- QF_CREATE_CLASS(50, CorrectionImage.IMG_CORRECTION_CLASS, "Create class '%s'"),
+ QF_CREATE_CLASS(50, "Create class '%s'", CorrectionImage.IMG_CORRECTION_CLASS),
QF_CREATE_CONSTRUCTOR(50, "Create constructor '%s'"),
QF_CREATE_CONSTRUCTOR_SUPER(50, "Create constructor to call %s"),
QF_CREATE_FUNCTION(49, "Create function '%s'"),
@@ -74,17 +74,17 @@ public enum CorrectionKind {
QF_USE_NOT_EQ_NULL(50, "Use != null instead of 'is! Null'");
private final int relevance;
+ private final String message;
private final CorrectionImage image;
- private final String name;
- private CorrectionKind(int relevance, CorrectionImage image, String name) {
- this.relevance = relevance;
- this.image = image;
- this.name = name;
+ private CorrectionKind(int relevance, String message) {
+ this(relevance, message, CorrectionImage.IMG_CORRECTION_CHANGE);
}
- private CorrectionKind(int relevance, String message) {
- this(relevance, CorrectionImage.IMG_CORRECTION_CHANGE, message);
+ private CorrectionKind(int relevance, String message, CorrectionImage image) {
+ this.relevance = relevance;
+ this.message = message;
+ this.image = image;
}
/**
@@ -97,8 +97,8 @@ public enum CorrectionKind {
/**
* @return the name template used to create the name to be displayed for user.
*/
- public String getName() {
- return name;
+ public String getMessage() {
+ return message;
}
/**

Powered by Google App Engine
This is Rietveld 408576698