| Index: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/ExtractMethodWizard_NEW.java
|
| diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/ExtractMethodWizard.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/ExtractMethodWizard_NEW.java
|
| similarity index 62%
|
| copy from editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/ExtractMethodWizard.java
|
| copy to editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/ExtractMethodWizard_NEW.java
|
| index 206f6e61f7cf69fcd05dbbcb3f260cc9b5019c93..bbb6658e37f8345e36460a98e1f5359045fe0252 100644
|
| --- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/ExtractMethodWizard.java
|
| +++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/ExtractMethodWizard_NEW.java
|
| @@ -1,5 +1,5 @@
|
| /*
|
| - * Copyright (c) 2012, the Dart project authors.
|
| + * Copyright (c) 2014, the Dart project authors.
|
| *
|
| * Licensed under the Eclipse Public License v1.0 (the "License"); you may not use this file except
|
| * in compliance with the License. You may obtain a copy of the License at
|
| @@ -15,35 +15,21 @@ package com.google.dart.tools.ui.internal.refactoring;
|
|
|
| import com.google.dart.tools.ui.DartToolsPlugin;
|
|
|
| -import org.eclipse.core.runtime.CoreException;
|
| -import org.eclipse.core.runtime.NullProgressMonitor;
|
| -import org.eclipse.ltk.core.refactoring.Change;
|
| -
|
| /**
|
| * @coverage dart.editor.ui.refactoring.ui
|
| */
|
| -public class ExtractMethodWizard extends ServiceRefactoringWizard {
|
| +public class ExtractMethodWizard_NEW extends ServerRefactoringWizard {
|
|
|
| static final String DIALOG_SETTING_SECTION = "ExtractMethodWizard"; //$NON-NLS-1$
|
|
|
| - public ExtractMethodWizard(ServiceExtractMethodRefactoring ref) {
|
| + public ExtractMethodWizard_NEW(ServerExtractMethodRefactoring ref) {
|
| super(ref, DIALOG_BASED_USER_INTERFACE | PREVIEW_EXPAND_FIRST_NODE);
|
| setDefaultPageTitle(RefactoringMessages.ExtractMethodWizard_extract_method);
|
| setDialogSettings(DartToolsPlugin.getDefault().getDialogSettings());
|
| }
|
|
|
| - public Change createChange() {
|
| - // creating the change is cheap. So we don't need to show progress.
|
| - try {
|
| - return getRefactoring().createChange(new NullProgressMonitor());
|
| - } catch (CoreException e) {
|
| - DartToolsPlugin.log(e);
|
| - return null;
|
| - }
|
| - }
|
| -
|
| @Override
|
| protected void addUserInputPages() {
|
| - addPage(new ExtractMethodInputPage());
|
| + addPage(new ExtractMethodInputPage_NEW());
|
| }
|
| }
|
|
|