Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329623 - Reindenter Select Case Formatting
Summary: Reindenter Select Case Formatting
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: Photran.Refactoring Engine (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 minor (vote)
Target Milestone: 7.0   Edit
Assignee: Jeffrey Overbey CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-06 18:14 EDT by Andrea CLA
Modified: 2011-03-14 18:20 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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