Re: eclipse: pluging for variable/function name replacement



kayoux@xxxxxxxxxxx wrote:
Hi,

Is there a plugin that would enable me to change all occurrences of a
variable/function name in a software project?

I mean I see that I can change a variable name in one file at time,
selecting each one.

I also saw that there's a org.eclipse.core.variables package that could
help to do so.. but I believe I have to write my own code.

I want a plugin that will take as arguments all the names I want ot
change or a certain type (say all globals or functions) and change them
all given a pattern.

Is there something already done for this?

Thank you,

Yvan

Maybe you're looking for something else, but in Java projects you can use the rename refactoring to rename a variable/method/type throughout your project.

Select the variable/method/type by clicking on it. Then right-click and choose Refactor > Rename from the popup menu. Alternatively, use the keyboard shortcut Alt+Shift+R.

Refactor > Rename and Refactor > Move also works for files in the package explorer.
--
Regards,

Roland
.



Relevant Pages

  • Re: eclipse: pluging for variable/function name replacement
    ... When you say Java projects, do you assume I'm coding in Java? ... use the rename refactoring to rename a variable/method/type throughout ... Select the variable/method/type by clicking on it. ... Refactor> Rename and Refactor> Move also works for files in the ...
    (comp.lang.java.softwaretools)
  • Re: eclipse: pluging for variable/function name replacement
    ... When you say Java projects, do you assume I'm coding in Java? ... use the rename refactoring to rename a variable/method/type throughout ... Select the variable/method/type by clicking on it. ... Refactor> Rename and Refactor> Move also works for files in the ...
    (comp.lang.java.softwaretools)