Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 356012

Summary: EGL code format action should not cause dirty editor if no changes were made
Product: z_Archived Reporter: Will Smythe <smythew>
Component: EDTAssignee: Xiao Bin Chen <xiaobinc>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: chenzhh
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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.