Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 7928

Summary: Toggle capitalization of identifiers [code manipulation]
Product: [Eclipse Project] JDT Reporter: Magnus Ihse Bursie <magnus.ihse.bursie>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 Keywords: helpwanted
Version: 2.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Magnus Ihse Bursie CLA 2002-01-21 08:25:12 EST
In Java, the conventional way of writing class names, method names, variable 
names and constants differ, like
MyClass
myVariable
myMethod
MY_CONSTANT

It would be nice to have a simple function to switch between these types of 
capitalization. Consider the following variable being converted to a constant:
private int myLittleValue; 
to
public final static int MY_LITTLE_VALUE = 17;

Instead of erasing "myLittleValue" and typing "MY_LITTLE_VALUE", one should 
just have to select the identifier, and choose "Toggle capitalization" from the 
Edit menu (or similar).
Comment 1 Erich Gamma CLA 2002-03-20 06:08:03 EST
cannot commit for 2.0
Comment 2 Dirk Baeumer CLA 2002-07-24 10:32:34 EDT
This should be some sort of code manipulation feature like convert to constant.

No plans to add this for 2.1. Tagged as help wanted
Comment 3 Dirk Baeumer CLA 2003-04-28 06:03:24 EDT
Chaning state from assigned later to resolved later. Assigned later got 
introduced by the last bug conversion and is not a supported Eclipse bug state.
Comment 4 Denis Roy CLA 2009-08-30 02:19:46 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.