| 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);
|
|
|