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

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/ServiceUtils_NEW.java

Issue 788983002: Sort Quick Fixes. Make lower priorities more relavant than higher. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/ServiceUtils_NEW.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/ServiceUtils_NEW.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/ServiceUtils_NEW.java
index a01b46c5862d3832b0b89df034d76f4a3a8d4d37..8172cb133b6c3c35da0d014560678e214869f25c 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/ServiceUtils_NEW.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/ServiceUtils_NEW.java
@@ -170,7 +170,7 @@ public class ServiceUtils_NEW {
/**
* @return the {@link LinkedCorrectionProposal_NEW} for the given {@link SourceChange}.
*/
- public static ChangeCorrectionProposal toUI(SourceChange sourceChange) {
+ public static ChangeCorrectionProposal toUI(SourceChange sourceChange, int relevance) {
List<SourceFileEdit> fileEdits = sourceChange.getEdits();
if (fileEdits.size() != 1) {
return null;
@@ -178,7 +178,6 @@ public class ServiceUtils_NEW {
SourceFileEdit fileEdit = fileEdits.get(0);
// prepare presentation
Image image = DartPluginImages.get(DartPluginImages.IMG_CORRECTION_CHANGE);
- int relevance = 50;
// prepare TextChange
TextChange textChange;
Change change = toLTK(fileEdit);
@@ -190,7 +189,7 @@ public class ServiceUtils_NEW {
return null;
}
// prepare UI proposal
- // TODO(scheglov) expose "image" and "relevance" through the server API
+ // TODO(scheglov) expose "image" through the server API
LinkedCorrectionProposal_NEW uiProposal = new LinkedCorrectionProposal_NEW(
sourceChange.getMessage(),
fileEdit.getFile(),
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/correction/QuickAssistProcessor.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698