| 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(),
|
|
|