Bug 195894 - allow blocks to be excluded from formatting
Summary: allow blocks to be excluded from formatting
Status: VERIFIED DUPLICATE of bug 27079
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: 3.6 M6   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-09 15:44 EDT by Dan Allen CLA
Modified: 2010-04-27 06:48 EDT (History)
2 users (show)

See Also:


Attachments

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