Bug 391968 - [introduce parameter] refactoring ignores code style settings
Summary: [introduce parameter] refactoring ignores code style settings
Status: CLOSED DUPLICATE of bug 101419
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-15 14:26 EDT by Michael Rüegg CLA
Modified: 2019-12-28 11:55 EST (History)
5 users (show)

See Also:


Attachments
Minimal project to verify the problem (3.10 KB, application/x-zip-compressed)
2013-02-11 18:38 EST, Jesse Weinstein CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rüegg CLA 2012-10-15 14:26:59 EDT
The "Introduce parameter" refactoring does not consider code style settings. An example is the code style setting for using a prefix for every parameter. Steps to reproduce:

1. Go to Window->Preferences->Java->Code style
2. Add prefix "p" to the parameters field
3. Select an expression and execute "Introduce parameter" refactoring
4. Newly created parameter does not have a "p" prefix in its name
Comment 1 Jesse Weinstein CLA 2013-02-11 18:38:16 EST
Created attachment 226889 [details]
Minimal project to verify the problem

Verified with eclipse-SDK-N20130210-2000-win32. Attached is a project with the appropriate Code Style setting in the project-specific settings (rather than workspace wide, as described by the OP), and code to test with.
Comment 2 Peter Lutz CLA 2019-12-27 23:08:23 EST
This bug seems to be a duplicate of Bug #101419
Comment 3 Dani Megert CLA 2019-12-28 11:55:44 EST

*** This bug has been marked as a duplicate of bug 101419 ***