Bug 9092 - Better support for prefixed instance variables
Summary: Better support for prefixed instance variables
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 2.1 M5   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-05 09:05 EST by Magnus Ihse Bursie CLA
Modified: 2003-02-05 14:24 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Magnus Ihse Bursie CLA 2002-02-05 09:05:55 EST
As of the latest stable build, Eclipse now supports removing prefix such as m_ 
from instance variables when creating getters/setters. That's great!

However, there's still room for improvement. For instance:
* Code assist suggests intelligent variable names without prefix. E.g:
MyQuickHandle qu<code assist> produces "quickHandle" as the first suggestion.
But when using a prefix, this does not work:
MyQuickHandle m_qu<code assist> produces no suggestions at all.

* Checking that all instance variables are consistently named. I'm thinking of 
something like "Organize imports", that automatically adds your favourite 
prefix (like m_ in my case) to all instance variables that doesn't have it 
already, and removes any other prefix (like _).
Comment 1 Alex Hudspith CLA 2002-09-07 08:59:01 EDT
Along similar lines, and perhaps implied by the above comment, it would also be 
good to be able to remove a prefix like 'm_' from instance variable names. 
(Personally, I find they reduce code readability and are unnecessary when all 
the required info is at your fingertips in an IDE like Eclipse.)
Comment 2 Martin Aeschlimann CLA 2003-02-05 14:24:26 EST
in M5