Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356012 - EGL code format action should not cause dirty editor if no changes were made
Summary: EGL code format action should not cause dirty editor if no changes were made
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Xiao Bin Chen CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-28 00:58 EDT by Will Smythe CLA
Modified: 2017-02-23 14:14 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Will Smythe CLA 2011-08-28 00:58:38 EDT
The EGL code format action available in the EGL source editor allows a developer to apply formatting rules to the EGL source code in the editor. This action normally results in some change to the code (e.g. changes to spacing, etc), but if the code is already formatted (and therefore the format action has no effect), the editor should not be flagged as dirty (meaning it needs saved) after the format action is performed (unless the editor was already dirty). 

Also, currently, you can press CTRL+F multiple times, and although no change is made to the content of the file (because it is already formatted), the Undo action can be executed multiple times. If the format action did not change the contents of the file, there is no need to allow for an Undo.

The Java source editor behaves as expected.