Way to have find/replace honor original capitalization scheme (like camelCase)? [message #1512371] |
Mon, 15 December 2014 17:56 |
tgm 1024 Messages: 8 Registered: November 2014 |
Junior Member |
|
|
Eclipse IDE for Java Developers
Version: Luna Service Release 1 (4.4.1)
Build id: 20140925-1800
I've noticed in a couple places on the web that find/replace is supposed to honor (what I believe to be a regex concept) "\C" in the replacement field to replace a string but honor the original case (lower/caps/camel).
So I could take the following code:
public void setFreeze(boolean freeze) { this.freeze = freeze; }
public boolean getFreeze() { return freeze; }
public void toggleFreeze() { freeze = !freeze; }
and do a find on "freeze" and replace all to "\Cmelt" and get:
public void setMelt(boolean melt) { this.melt= melt; }
public boolean getMelt() { return melt; }
public void toggleMelt() { melt= !melt; }
I've seen this (missing?) feature listed under a couple bug numbers, but with no resolution that I can get to work.
Is there a solution for Luna/JDT?
No, synchronized method declarations will not get you out of this newbie multithreading pitfall:
thing.set(thing.get() + 1);
|
|
|
Powered by
FUDForum. Page generated in 0.08236 seconds