|
From: <mir...@us...> - 2007-03-09 16:49:53
|
Revision: 2119
http://svn.sourceforge.net/rubyeclipse/?rev=2119&view=rev
Author: mirkostocker
Date: 2007-03-09 08:49:52 -0800 (Fri, 09 Mar 2007)
Log Message:
-----------
more renaming..
Modified Paths:
--------------
trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/rename/RenameRefactoring.java
trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/LocalVariableRenamer.java
trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/RenameLocalConditionChecker.java
trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/RenameLocalConfig.java
trunk/org.rubypeople.rdt.refactoring.tests/src/org/rubypeople/rdt/refactoring/tests/core/renamelocalvariable/RenameLocalTester.java
Added Paths:
-----------
trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/RenameLocalEditProvider.java
trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/RenameLocalRefactoring.java
Removed Paths:
-------------
trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/LocalVariablesEditProvider.java
trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/RenameLocalVariableRefactoring.java
Modified: trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/rename/RenameRefactoring.java
===================================================================
--- trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/rename/RenameRefactoring.java 2007-03-09 16:43:33 UTC (rev 2118)
+++ trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/rename/RenameRefactoring.java 2007-03-09 16:49:52 UTC (rev 2119)
@@ -34,7 +34,7 @@
import org.rubypeople.rdt.refactoring.core.TextSelectionProvider;
import org.rubypeople.rdt.refactoring.core.renameclass.RenameClassRefactoring;
import org.rubypeople.rdt.refactoring.core.renamefield.RenameFieldRefactoring;
-import org.rubypeople.rdt.refactoring.core.renamelocal.RenameLocalVariableRefactoring;
+import org.rubypeople.rdt.refactoring.core.renamelocal.RenameLocalRefactoring;
import org.rubypeople.rdt.refactoring.core.renamemethod.RenameMethodRefactoring;
public class RenameRefactoring extends RubyRefactoring {
@@ -50,7 +50,7 @@
setRefactoringConditionChecker(checker);
if(checker.shouldPerform()) {
if(checker.shouldRenameLocal()) {
- delegateRenameRefactoring = new RenameLocalVariableRefactoring(selectionProvider);
+ delegateRenameRefactoring = new RenameLocalRefactoring(selectionProvider);
} else if (checker.shouldRenameField()) {
delegateRenameRefactoring = new RenameFieldRefactoring(selectionProvider);
} else if(checker.shouldRenameMethod()) {
Modified: trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/LocalVariableRenamer.java
===================================================================
--- trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/LocalVariableRenamer.java 2007-03-09 16:43:33 UTC (rev 2118)
+++ trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/LocalVariableRenamer.java 2007-03-09 16:49:52 UTC (rev 2119)
@@ -49,7 +49,7 @@
public TextEdit getEdit() {
RenameLocalConfig config = new RenameLocalConfig(doc, 0);
new RenameLocalConditionChecker(config);
- LocalVariablesEditProvider editProvider = new LocalVariablesEditProvider(config);
+ RenameLocalEditProvider editProvider = new RenameLocalEditProvider(config);
editProvider.setSelectedVariableName(from);
editProvider.setNewVariableName(to);
Deleted: trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/LocalVariablesEditProvider.java
===================================================================
--- trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/LocalVariablesEditProvider.java 2007-03-09 16:43:33 UTC (rev 2118)
+++ trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/LocalVariablesEditProvider.java 2007-03-09 16:49:52 UTC (rev 2119)
@@ -1,112 +0,0 @@
-/***** BEGIN LICENSE BLOCK *****
- * Version: CPL 1.0/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Common Public
- * License Version 1.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.eclipse.org/legal/cpl-v10.html
- *
- * Software distributed under the License is distributed on an "AS
- * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
- * implied. See the License for the specific language governing
- * rights and limitations under the License.
- *
- * Copyright (C) 2006 Mirko Stocker <me...@mi...>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either of the GNU General Public License Version 2 or later (the "GPL"),
- * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the CPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the CPL, the GPL or the LGPL.
- ***** END LICENSE BLOCK *****/
-
-package org.rubypeople.rdt.refactoring.core.renamelocal;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Observable;
-import java.util.Observer;
-
-import org.jruby.ast.DAsgnNode;
-import org.jruby.ast.DVarNode;
-import org.jruby.ast.MethodDefNode;
-import org.jruby.ast.Node;
-import org.rubypeople.rdt.refactoring.editprovider.EditProvider;
-import org.rubypeople.rdt.refactoring.editprovider.MultiEditProvider;
-import org.rubypeople.rdt.refactoring.util.NodeUtil;
-
-public class LocalVariablesEditProvider extends MultiEditProvider implements Observer {
-
- private static final class AbortOnScope implements IAbortCondition {
- public boolean abort(Node currentNode) {
- return NodeUtil.hasScope(currentNode);
- }
- }
-
- private static final class AbortOnMethodDef implements IAbortCondition {
- public boolean abort(Node currentNode) {
- return currentNode instanceof MethodDefNode;
- }
- }
-
- private String selectedVariableName = ""; //$NON-NLS-1$
-
- private String newVariableName = ""; //$NON-NLS-1$
-
- private final RenameLocalConfig config;
-
- public LocalVariablesEditProvider(RenameLocalConfig config) {
- this.config = config;
- config.setLocalVariablesEditProvider(this);
- }
-
- public void setSelectedVariableName(String name) {
- selectedVariableName = name;
- }
-
- public String getSelectedVariableName() {
- return selectedVariableName;
- }
-
- public void setNewVariableName(String name) {
- newVariableName = name;
- }
-
- public String getNewVariableName() {
- return newVariableName;
- }
-
- private ArrayList<Node> renameVariables() {
- VariableRenamer renamer = null;
- if (config.getSelectedNode() instanceof DVarNode || config.getSelectedNode() instanceof DAsgnNode) {
- renamer = new DynamicVariableRenamer(selectedVariableName, newVariableName, new AbortOnScope());
- } else {
- renamer = new VariableRenamer(selectedVariableName, newVariableName, new AbortOnMethodDef());
- }
-
- ArrayList<Node> changedNodes = renamer.replaceVariableNamesInNode(config.getSelectedMethod(), config.getLocalNames());
- return changedNodes;
- }
-
- public void update(Observable subject, Object arg1) {
- if(subject instanceof VariableNameProvider) {
- setSelectedVariableName(((VariableNameProvider) subject).getSelected());
- setNewVariableName(((VariableNameProvider) subject).getName());
- }
- }
-
- @Override
- protected Collection<EditProvider> getEditProviders() {
- Collection<EditProvider> edits = new ArrayList<EditProvider>();
- for (Node n : renameVariables()) {
- edits.add(new SingleLocalVariableEdit(n, config.getLocalNames()));
- }
- return edits;
- }
-}
Modified: trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/RenameLocalConditionChecker.java
===================================================================
--- trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/RenameLocalConditionChecker.java 2007-03-09 16:43:33 UTC (rev 2118)
+++ trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/RenameLocalConditionChecker.java 2007-03-09 16:49:52 UTC (rev 2119)
@@ -123,7 +123,7 @@
@Override
protected void checkFinalConditions() {
- LocalVariablesEditProvider editProvider = config.getRenameEditProvider();
+ RenameLocalEditProvider editProvider = config.getRenameEditProvider();
if (editProvider.getSelectedVariableName().equals("") && editProvider.getNewVariableName().equals("")) { //$NON-NLS-1$ //$NON-NLS-2$
addError(NO_VARIABLE_SELECTED);
}
Modified: trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/RenameLocalConfig.java
===================================================================
--- trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/RenameLocalConfig.java 2007-03-09 16:43:33 UTC (rev 2118)
+++ trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/RenameLocalConfig.java 2007-03-09 16:49:52 UTC (rev 2119)
@@ -41,7 +41,7 @@
private Node selectedNode;
private Node selectedMethod;
private String[] localNames;
- private LocalVariablesEditProvider editProvider;
+ private RenameLocalEditProvider editProvider;
public RenameLocalConfig(IDocumentProvider docProvider, int caretPosition) {
this.docProvider = docProvider;
@@ -85,11 +85,11 @@
return localNames;
}
- public void setLocalVariablesEditProvider(LocalVariablesEditProvider editProvider) {
+ public void setLocalVariablesEditProvider(RenameLocalEditProvider editProvider) {
this.editProvider = editProvider;
}
- public LocalVariablesEditProvider getRenameEditProvider() {
+ public RenameLocalEditProvider getRenameEditProvider() {
return editProvider;
}
Copied: trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/RenameLocalEditProvider.java (from rev 2118, trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/LocalVariablesEditProvider.java)
===================================================================
--- trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/RenameLocalEditProvider.java (rev 0)
+++ trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/RenameLocalEditProvider.java 2007-03-09 16:49:52 UTC (rev 2119)
@@ -0,0 +1,112 @@
+/***** BEGIN LICENSE BLOCK *****
+ * Version: CPL 1.0/GPL 2.0/LGPL 2.1
+ *
+ * The contents of this file are subject to the Common Public
+ * License Version 1.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.eclipse.org/legal/cpl-v10.html
+ *
+ * Software distributed under the License is distributed on an "AS
+ * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
+ * implied. See the License for the specific language governing
+ * rights and limitations under the License.
+ *
+ * Copyright (C) 2006 Mirko Stocker <me...@mi...>
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either of the GNU General Public License Version 2 or later (the "GPL"),
+ * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ * in which case the provisions of the GPL or the LGPL are applicable instead
+ * of those above. If you wish to allow use of your version of this file only
+ * under the terms of either the GPL or the LGPL, and not to allow others to
+ * use your version of this file under the terms of the CPL, indicate your
+ * decision by deleting the provisions above and replace them with the notice
+ * and other provisions required by the GPL or the LGPL. If you do not delete
+ * the provisions above, a recipient may use your version of this file under
+ * the terms of any one of the CPL, the GPL or the LGPL.
+ ***** END LICENSE BLOCK *****/
+
+package org.rubypeople.rdt.refactoring.core.renamelocal;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Observable;
+import java.util.Observer;
+
+import org.jruby.ast.DAsgnNode;
+import org.jruby.ast.DVarNode;
+import org.jruby.ast.MethodDefNode;
+import org.jruby.ast.Node;
+import org.rubypeople.rdt.refactoring.editprovider.EditProvider;
+import org.rubypeople.rdt.refactoring.editprovider.MultiEditProvider;
+import org.rubypeople.rdt.refactoring.util.NodeUtil;
+
+public class RenameLocalEditProvider extends MultiEditProvider implements Observer {
+
+ private static final class AbortOnScope implements IAbortCondition {
+ public boolean abort(Node currentNode) {
+ return NodeUtil.hasScope(currentNode);
+ }
+ }
+
+ private static final class AbortOnMethodDef implements IAbortCondition {
+ public boolean abort(Node currentNode) {
+ return currentNode instanceof MethodDefNode;
+ }
+ }
+
+ private String selectedVariableName = ""; //$NON-NLS-1$
+
+ private String newVariableName = ""; //$NON-NLS-1$
+
+ private final RenameLocalConfig config;
+
+ public RenameLocalEditProvider(RenameLocalConfig config) {
+ this.config = config;
+ config.setLocalVariablesEditProvider(this);
+ }
+
+ public void setSelectedVariableName(String name) {
+ selectedVariableName = name;
+ }
+
+ public String getSelectedVariableName() {
+ return selectedVariableName;
+ }
+
+ public void setNewVariableName(String name) {
+ newVariableName = name;
+ }
+
+ public String getNewVariableName() {
+ return newVariableName;
+ }
+
+ private ArrayList<Node> renameVariables() {
+ VariableRenamer renamer = null;
+ if (config.getSelectedNode() instanceof DVarNode || config.getSelectedNode() instanceof DAsgnNode) {
+ renamer = new DynamicVariableRenamer(selectedVariableName, newVariableName, new AbortOnScope());
+ } else {
+ renamer = new VariableRenamer(selectedVariableName, newVariableName, new AbortOnMethodDef());
+ }
+
+ ArrayList<Node> changedNodes = renamer.replaceVariableNamesInNode(config.getSelectedMethod(), config.getLocalNames());
+ return changedNodes;
+ }
+
+ public void update(Observable subject, Object arg1) {
+ if(subject instanceof VariableNameProvider) {
+ setSelectedVariableName(((VariableNameProvider) subject).getSelected());
+ setNewVariableName(((VariableNameProvider) subject).getName());
+ }
+ }
+
+ @Override
+ protected Collection<EditProvider> getEditProviders() {
+ Collection<EditProvider> edits = new ArrayList<EditProvider>();
+ for (Node n : renameVariables()) {
+ edits.add(new SingleLocalVariableEdit(n, config.getLocalNames()));
+ }
+ return edits;
+ }
+}
Copied: trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/RenameLocalRefactoring.java (from rev 2118, trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/RenameLocalVariableRefactoring.java)
===================================================================
--- trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/RenameLocalRefactoring.java (rev 0)
+++ trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/RenameLocalRefactoring.java 2007-03-09 16:49:52 UTC (rev 2119)
@@ -0,0 +1,62 @@
+/***** BEGIN LICENSE BLOCK *****
+ * Version: CPL 1.0/GPL 2.0/LGPL 2.1
+ *
+ * The contents of this file are subject to the Common Public
+ * License Version 1.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.eclipse.org/legal/cpl-v10.html
+ *
+ * Software distributed under the License is distributed on an "AS
+ * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
+ * implied. See the License for the specific language governing
+ * rights and limitations under the License.
+ *
+ * Copyright (C) 2006 Mirko Stocker <me...@mi...>
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either of the GNU General Public License Version 2 or later (the "GPL"),
+ * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ * in which case the provisions of the GPL or the LGPL are applicable instead
+ * of those above. If you wish to allow use of your version of this file only
+ * under the terms of either the GPL or the LGPL, and not to allow others to
+ * use your version of this file under the terms of the CPL, indicate your
+ * decision by deleting the provisions above and replace them with the notice
+ * and other provisions required by the GPL or the LGPL. If you do not delete
+ * the provisions above, a recipient may use your version of this file under
+ * the terms of any one of the CPL, the GPL or the LGPL.
+ ***** END LICENSE BLOCK *****/
+
+package org.rubypeople.rdt.refactoring.core.renamelocal;
+
+import org.rubypeople.rdt.refactoring.core.RubyRefactoring;
+import org.rubypeople.rdt.refactoring.core.TextSelectionProvider;
+import org.rubypeople.rdt.refactoring.documentprovider.DocumentProvider;
+import org.rubypeople.rdt.refactoring.ui.pages.RenamePage;
+
+public class RenameLocalRefactoring extends RubyRefactoring {
+
+ public static final String NAME = Messages.RenameLocalVariableRefactoring_Name;
+
+ public RenameLocalRefactoring(TextSelectionProvider selectionProvider) {
+ super(NAME);
+
+ DocumentProvider docProvider = getDocumentProvider();
+
+ RenameLocalConfig config = new RenameLocalConfig(docProvider, selectionProvider.getCarretPosition());
+ RenameLocalConditionChecker checker = new RenameLocalConditionChecker(config);
+ setRefactoringConditionChecker(checker);
+
+ if(checker.shouldPerform()) {
+ RenameLocalEditProvider editProvider = new RenameLocalEditProvider(config);
+ setEditProvider(editProvider);
+
+ String name = config.getSelectedNodeName();
+ editProvider.setSelectedVariableName(name);
+ editProvider.setNewVariableName(name);
+
+ VariableNameProvider nameProvider = new VariableNameProvider(name);
+ pages.add(new RenamePage(name, nameProvider));
+ nameProvider.addObserver(editProvider);
+ }
+ }
+}
Deleted: trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/RenameLocalVariableRefactoring.java
===================================================================
--- trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/RenameLocalVariableRefactoring.java 2007-03-09 16:43:33 UTC (rev 2118)
+++ trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/renamelocal/RenameLocalVariableRefactoring.java 2007-03-09 16:49:52 UTC (rev 2119)
@@ -1,62 +0,0 @@
-/***** BEGIN LICENSE BLOCK *****
- * Version: CPL 1.0/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Common Public
- * License Version 1.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.eclipse.org/legal/cpl-v10.html
- *
- * Software distributed under the License is distributed on an "AS
- * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
- * implied. See the License for the specific language governing
- * rights and limitations under the License.
- *
- * Copyright (C) 2006 Mirko Stocker <me...@mi...>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either of the GNU General Public License Version 2 or later (the "GPL"),
- * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the CPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the CPL, the GPL or the LGPL.
- ***** END LICENSE BLOCK *****/
-
-package org.rubypeople.rdt.refactoring.core.renamelocal;
-
-import org.rubypeople.rdt.refactoring.core.RubyRefactoring;
-import org.rubypeople.rdt.refactoring.core.TextSelectionProvider;
-import org.rubypeople.rdt.refactoring.documentprovider.DocumentProvider;
-import org.rubypeople.rdt.refactoring.ui.pages.RenamePage;
-
-public class RenameLocalVariableRefactoring extends RubyRefactoring {
-
- public static final String NAME = Messages.RenameLocalVariableRefactoring_Name;
-
- public RenameLocalVariableRefactoring(TextSelectionProvider selectionProvider) {
- super(NAME);
-
- DocumentProvider docProvider = getDocumentProvider();
-
- RenameLocalConfig config = new RenameLocalConfig(docProvider, selectionProvider.getCarretPosition());
- RenameLocalConditionChecker checker = new RenameLocalConditionChecker(config);
- setRefactoringConditionChecker(checker);
-
- if(checker.shouldPerform()) {
- LocalVariablesEditProvider editProvider = new LocalVariablesEditProvider(config);
- setEditProvider(editProvider);
-
- String name = config.getSelectedNodeName();
- editProvider.setSelectedVariableName(name);
- editProvider.setNewVariableName(name);
-
- VariableNameProvider nameProvider = new VariableNameProvider(name);
- pages.add(new RenamePage(name, nameProvider));
- nameProvider.addObserver(editProvider);
- }
- }
-}
Modified: trunk/org.rubypeople.rdt.refactoring.tests/src/org/rubypeople/rdt/refactoring/tests/core/renamelocalvariable/RenameLocalTester.java
===================================================================
--- trunk/org.rubypeople.rdt.refactoring.tests/src/org/rubypeople/rdt/refactoring/tests/core/renamelocalvariable/RenameLocalTester.java 2007-03-09 16:43:33 UTC (rev 2118)
+++ trunk/org.rubypeople.rdt.refactoring.tests/src/org/rubypeople/rdt/refactoring/tests/core/renamelocalvariable/RenameLocalTester.java 2007-03-09 16:49:52 UTC (rev 2119)
@@ -32,7 +32,7 @@
import java.io.IOException;
import org.eclipse.jface.text.BadLocationException;
-import org.rubypeople.rdt.refactoring.core.renamelocal.LocalVariablesEditProvider;
+import org.rubypeople.rdt.refactoring.core.renamelocal.RenameLocalEditProvider;
import org.rubypeople.rdt.refactoring.core.renamelocal.RenameLocalConditionChecker;
import org.rubypeople.rdt.refactoring.core.renamelocal.RenameLocalConfig;
import org.rubypeople.rdt.refactoring.tests.FileTestCase;
@@ -56,7 +56,7 @@
if(!checker.shouldPerform()) {
fail();
}
- new LocalVariablesEditProvider(config);
+ new RenameLocalEditProvider(config);
config.getRenameEditProvider().setSelectedVariableName(config.getSelectedNodeName());
config.getRenameEditProvider().setNewVariableName(testData.getProperty("name"));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|