I don't think Eclipse supports Macro refactoring since implementing a
feature such as renaming a function is easier than implementing the
same thing for, say a macro.
I also looked at the Eclipse documentation and the rename action does
not seem to have support for Macros.
I believe you can select that portion of the text and refactor only
within the selected text.
At worst you can copy/paste it into a new file, run the refactor, and
then paste it back, but that's rather awkward.
The two variables tempString are not "related" in Java terms.
The compiler can't see that one use the other and can't discover by
itself the logical relation between your 2 annotations.
So Eclipse refactoring can't do that as is.
If you want to achieve this kind of refactoring you have to develop an
Eclipse plugin of your own, specific to your project.