Bug 414130 - [save actions] Allow additional save actions to be only applied on edited lines
Summary: [save actions] Allow additional save actions to be only applied on edited lines
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.8   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-31 09:01 EDT by Pedro Pedruzzi CLA
Modified: 2013-08-02 03:25 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pedro Pedruzzi CLA 2013-07-31 09:01:36 EDT
Additional actions (under Preferences > Java > Editor > Save Actions) are great but I really miss an option to only affect edited lines (like format source code action has).

Changing non-edited lines can generate uneccesary edit conflicts in team projects. At least the automatic save actions (cleanup/indent/format) should not mix with other effective changes.
Comment 1 Srikanth Sankaran CLA 2013-08-01 00:40:25 EDT
Move to UI for comment.
Comment 2 Martin Mathew CLA 2013-08-01 05:54:05 EDT
I fear whether such a feature will hamper the look and feel of the file if we end up with a file where for e.g. some private fields are marked with 'final' whereas some not or some members use 'this' qualifier for field access whereas some do not. 
We should not apply this option to all the save actions option, but can come up with the list of options that can be qualified to be part of this feature.