Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Way to have find/replace honor original capitalization scheme (like camelCase)?
Way to have find/replace honor original capitalization scheme (like camelCase)? [message #1512371] Mon, 15 December 2014 17:56
tgm 1024 is currently offline tgm 1024Friend
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);
Previous Topic:Server Tomcat v8.0 Server at localhost failed to start.
Next Topic:recover plugins without reinstall
Goto Forum:
  


Current Time: Tue Sep 29 21:27:10 GMT 2020

Powered by FUDForum. Page generated in 0.02732 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top