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

Bug 329623

Summary: Reindenter Select Case Formatting
Product: [Tools] PTP Reporter: Andrea <a.merry.giraffe>
Component: Photran.Refactoring EngineAssignee: Jeffrey Overbey <com-eclipse-dot-org>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: com-eclipse-dot-org, hammonds.john9, paramvir.singh, rajashekharma, rockmylife
Version: unspecified   
Target Milestone: 7.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Andrea CLA 2010-11-06 18:14:08 EDT
The Reindenter class blocks the body of a select case at the same indentation level like this:
SELECT CASE (selector) 
CASE (label-list-1) 
statements-1 
CASE (label-list-2) 
statements-2 
CASE (label-list-3) 
statements-3 
............. 
CASE (label-list-n) 
statements-n 
CASE DEFAULT statements-DEFAULT 
END SELECT

The desired format would be the following:
SELECT CASE (selector) 
   CASE (label-list-1) 
      statements-1 
   CASE (label-list-2)
      statements-2 
   CASE (label-list-3) 
      statements-3 
      ............. 
   CASE (label-list-n) 
      statements-n 
   CASE DEFAULT 
      statements-DEFAULT 
END SELECT
Comment 1 Greg Watson CLA 2010-11-08 08:04:41 EST
This is not a PTP issue. Please move to the correct product.
Comment 2 Jeffrey Overbey CLA 2011-03-14 18:20:09 EDT
This is fixed in 7.0/HEAD