Added a new refactoring action: net.sourceforge.phpdt.ltk.ui.actions.RenameLocalVariable
authoraxelcl <axelcl>
Sun, 15 Jan 2006 21:54:16 +0000 (21:54 +0000)
committeraxelcl <axelcl>
Sun, 15 Jan 2006 21:54:16 +0000 (21:54 +0000)
commit336953ba53efa6b549cbd0d7811abae56fac80c2
tree74585984327cccd3820e3631fe749f422a061b96
parent01dd600af224ad778dceb7498b078092c9b881df
Added a new refactoring action: net.sourceforge.phpdt.ltk.ui.actions.RenameLocalVariable
This refactoring replaces any $-variable inside a function or method declaration
The action can detect the scope of a PHP function or class method.
Currently this refactoring doesn't replace variables inside double quoted strings.
This refactoring doesn't look for global variables inside the function or method.
This refactoring doesn't look correctly for "self::" and "$this" tokens inside the function or method.
This refactoring doesn't look for a preceding PHPDoc comment and therefore cannot replace any local variables inside the PHPdoc comment.
16 files changed:
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ltk/core/CoreTexts.java
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ltk/core/RenameIdentifierDelegate.java [moved from net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ltk/core/RenamePropertyDelegate.java with 96% similarity]
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ltk/core/RenameIdentifierInfo.java [new file with mode: 0644]
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ltk/core/RenameIdentifierRefactoring.java [new file with mode: 0644]
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ltk/core/RenameLocalVariableDelegate.java [new file with mode: 0644]
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ltk/core/RenamePHPProcessor.java [moved from net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ltk/core/RenamePropertyProcessor.java with 83% similarity]
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ltk/core/RenamePropertyInfo.java [deleted file]
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ltk/core/RenamePropertyRefactoring.java [deleted file]
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ltk/ui/UITexts.java
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ltk/ui/actions/RenameLocalVariable.java [new file with mode: 0644]
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ltk/ui/actions/RenamePHPIdentifier.java
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ltk/ui/uitexts.properties
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ltk/ui/wizards/RenameIdentifierPage.java [copied from net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ltk/ui/wizards/RenamePropertyInputPage.java with 93% similarity]
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ltk/ui/wizards/RenameIdentifierWizard.java [copied from net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ltk/ui/wizards/RenamePropertyWizard.java with 60% similarity]
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ltk/ui/wizards/RenameLocalVariablePage.java [moved from net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ltk/ui/wizards/RenamePropertyInputPage.java with 72% similarity]
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ltk/ui/wizards/RenameLocalVariableWizard.java [moved from net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ltk/ui/wizards/RenamePropertyWizard.java with 60% similarity]