Bug 265576 - Code Formatter doesn't run after refactor-rename
Summary: Code Formatter doesn't run after refactor-rename
Status: RESOLVED DUPLICATE of bug 244458
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-19 19:23 EST by duffyjk CLA
Modified: 2009-02-20 02:33 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description duffyjk CLA 2009-02-19 19:23:38 EST
After renaming a method, the resulting code that is changed in other files does not get formatted.  For example, if you have a rule set to line-wrap at 100 characters, then rename a method to give it a longer name, lines in other files than are currently open can get saved as more than 100 characters.  Then subsequent opening and editing of that file in the Java editor can cause those lines to be formatted correctly but long after the renaming happened.  This behavior causes the code changes to be out of sync with revision control comments on a file.  Worse problems can come up in merging or comparing revisions.
Comment 1 Dani Megert CLA 2009-02-20 02:33:14 EST
Only the editor is capable of running save actions.

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