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

Bug 316967

Summary: Refactoring: Remove Arithmetic If Statement
Product: [Tools] PTP Reporter: Matthew Fotzler <incongruous>
Component: Photran.Refactoring EngineAssignee: Matthew Fotzler <incongruous>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: com-eclipse-dot-org
Version: 6.0   
Target Milestone: 7.0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
patch with refactoring and test suite com-eclipse-dot-org: iplog+

Description Matthew Fotzler CLA 2010-06-15 16:27:34 EDT
Build Identifier: 

The attachment is a patch which provides a resource refactoring for removing arithmetic if statements and replacing them into if/else if/else statements.

Reproducible: Always
Comment 1 Matthew Fotzler CLA 2010-06-15 16:29:05 EDT
Created attachment 171989 [details]
patch with refactoring and test suite
Comment 2 Jeffrey Overbey CLA 2010-06-15 16:43:25 EDT
Thanks.  Can you please confirm that

1. you wrote 100% of the code without incorporating content from elsewhere or relying on the intellectual property of others,

2. you have the right to contribute the code to Eclipse, and

3. you have included the EPL license header in all source files?
Comment 3 Matthew Fotzler CLA 2010-06-15 16:46:22 EDT
Yes,

I wrote 100% of the code without incorporating content from elsewhere or
relying on the intellectual property of others, I have the right to contribute the code to Eclipse, and I have included the EPL license header in all source files.
Comment 4 Jeffrey Overbey CLA 2010-06-15 18:09:46 EDT
This is a small contribution, so we will not need to file a CQ.
Comment 5 Jeffrey Overbey CLA 2010-06-22 16:47:09 EDT
Thanks, Matt.  I have committed this to CVS.

Could you please add documentation for it to the Photran *7.0* Advanced Features manual?  It is here:

http://wiki.eclipse.org/PTP/photran/documentation/photran7advanced

Please follow the general form used for the other refactorings.  Let me know when that's done, and we can close this bug.  Thanks a lot.
Comment 6 Matthew Fotzler CLA 2010-07-15 09:17:58 EDT
(In reply to comment #5)
> Thanks, Matt.  I have committed this to CVS.
> 
> Could you please add documentation for it to the Photran *7.0* Advanced
> Features manual?  It is here:
> 
> http://wiki.eclipse.org/PTP/photran/documentation/photran7advanced
> 
> Please follow the general form used for the other refactorings.  Let me know
> when that's done, and we can close this bug.  Thanks a lot.

Documentation added.
Comment 7 Jeffrey Overbey CLA 2010-07-15 11:32:22 EDT
Thanks.