Bug 195894

Summary: allow blocks to be excluded from formatting
Product: [Eclipse Project] JDT Reporter: Dan Allen <dan.j.allen>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: jarthana, jerome_lanneluc
Version: 3.3   
Target Milestone: 3.6 M6   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Dan Allen CLA 2007-07-09 15:44:51 EDT
Build ID: I20070621-1340

Steps To Reproduce:
There are times when a developer would prefer to have to Java source format engine exclude an area of the code. For instance, there may be a very complex constructor that is difficult to understand without line breaks in strategic places. I would like to request to have a feature added that flags a block as "excluded" from formatting. This would be somewhat similar to the PRE HTML tag.

More information:
Obviously this feature would have to be implemented using Java comments.  Perhaps something like:

/* BEGIN PRE */
new Entity(
  0,
  "name",
  "field1",
  "field2",
  null, null, null // blank collections
);
/* END PRE */
Comment 1 Jerome Lanneluc CLA 2007-08-09 09:17:56 EDT

*** This bug has been marked as a duplicate of bug 128630 ***
Comment 2 Frederic Fusier CLA 2010-04-19 04:54:41 EDT

*** This bug has been marked as a duplicate of bug 27079 ***
Comment 3 Jay Arthanareeswaran CLA 2010-04-27 06:48:54 EDT
Verified for 3.6M7 using build I20100424-2000.