For refactoring tests, uncomment the refactoring action: net.sourceforge.phpdt.ltk...
authoraxelcl <axelcl>
Sun, 15 Jan 2006 21:56:00 +0000 (21:56 +0000)
committeraxelcl <axelcl>
Sun, 15 Jan 2006 21:56:00 +0000 (21:56 +0000)
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.

net.sourceforge.phpeclipse/plugin.xml

index f48ed5d..3dde386 100644 (file)
                id="net.sourceforge.phpeclipse.actions.PHPOpenDeclarationEditorAction">
          </action>
       </viewerContribution>
+ <!--     <viewerContribution
+        targetID="#PHPEditorContext"
+        id="net.sourceforge.phpdt.ltk.renamePHPIdentifier">
+        <action label="Rename Local Variable in Functions/Methods"
+                class="net.sourceforge.phpdt.ltk.ui.actions.RenameLocalVariable"
+                menubarPath="additions"
+                id="net.sourceforge.phpdt.ltk.ui.actions.RenameLocalVariable"/>
+      </viewerContribution>
+      <viewerContribution
+        targetID="#PHPEditorContext"
+        id="net.sourceforge.phpdt.ltk.renamePHPIdentifier">
+        <action label="Rename PHP Identifier"
+                class="net.sourceforge.phpdt.ltk.ui.actions.RenamePHPIdentifier"
+                menubarPath="additions"
+                id="net.sourceforge.phpdt.ltk.ui.actions.RenamePHPIdentifier"/>
+      </viewerContribution>  -->
       <viewerContribution
             targetID="#PHPRulerContext"
             id="net.sourceforge.phpdt.ui.PHPEditorPopupActions">