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

Unified Diff: editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/refactoring/ExtractMethodRefactoringImpl.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/internal/refactoring/ExtractMethodRefactoringImpl.java
diff --git a/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/refactoring/ExtractMethodRefactoringImpl.java b/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/refactoring/ExtractMethodRefactoringImpl.java
index 93497891ec347bbcd887a5ebe22e8dbcb452415d..39a35c2e557601caa569676183a4945f153f2026 100644
--- a/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/refactoring/ExtractMethodRefactoringImpl.java
+++ b/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/refactoring/ExtractMethodRefactoringImpl.java
@@ -346,7 +346,7 @@ public class ExtractMethodRefactoringImpl extends RefactoringImpl implements
String msg = MessageFormat.format(occurence.isSelection
? "Substitute statements with call to ''{0}''"
: "Replace duplicate code fragment with call to ''{0}''", methodName);
- change.addEdit(msg, edit);
+ change.addEdit(edit, msg);
}
// add method declaration
{
@@ -408,7 +408,7 @@ public class ExtractMethodRefactoringImpl extends RefactoringImpl implements
String msg = MessageFormat.format(selectionExpression != null
? "Create new method ''{0}'' from selected expression"
: "Create new method ''{0}'' from selected statements", methodName);
- change.addEdit(msg, edit);
+ change.addEdit(edit, msg);
}
}
pm.worked(1);

Powered by Google App Engine
This is Rietveld 408576698