Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 240399
Collapse All | Expand All

(-)guide/jdt_api_codeformatter.htm (-1 / +1 lines)
Lines 123-129 Link Here
123
The default <b><a href="../reference/api/org/eclipse/jdt/core/formatter/CodeFormatter.html">code formatter</a></b> allows to format a set of regions of a given source file.<br>
123
The default <b><a href="../reference/api/org/eclipse/jdt/core/formatter/CodeFormatter.html">code formatter</a></b> allows to format a set of regions of a given source file.<br>
124
This can be achieved by calling the <b><a href="../reference/api/org/eclipse/jdt/core/formatter/CodeFormatter.html#format(int, java.lang.String, org.eclipse.jface.text.IRegion[], int, java.lang.String)">format(int, String, IRegion[], int, String)</a></b> method of the code formatter,
124
This can be achieved by calling the <b><a href="../reference/api/org/eclipse/jdt/core/formatter/CodeFormatter.html#format(int, java.lang.String, org.eclipse.jface.text.IRegion[], int, java.lang.String)">format(int, String, IRegion[], int, String)</a></b> method of the code formatter,
125
with a given <b><a href="../reference/api/org/eclipse/jdt/core/formatter/CodeFormatter.html#K_UNKNOWN">source kind</a></b>
125
with a given <b><a href="../reference/api/org/eclipse/jdt/core/formatter/CodeFormatter.html#K_UNKNOWN">source kind</a></b>
126
and an array of <b><a href="../reference/api/org/eclipse/jface/text/IRegion.html">regions</a></b>.
126
and an array of <b><a href="../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/jface/text/IRegion.html">regions</a></b>.
127
<ul>
127
<ul>
128
<li>Each of the region to format must be within source range and should not overlap with another region.</li>
128
<li>Each of the region to format must be within source range and should not overlap with another region.</li>
129
<li>The array of regions to format must contain at least one region. Regions should be sorted by their offsets, smaller offset first.</li>
129
<li>The array of regions to format must contain at least one region. Regions should be sorted by their offsets, smaller offset first.</li>

Return to bug 240399