public class Formatting
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
Formatting.Selection  | 
| Modifier and Type | Method and Description | 
|---|---|
static Formatting.Selection | 
reformatRegion(SourceFile file,
              int startOffset,
              int endOffset)
Attempts to reformat between the (inclusive) input Textbuffer
 offsets. 
 | 
static javax.swing.undo.UndoableEdit | 
reformatSelection(SourceFile file,
                 int start,
                 int end)
This method reformats the selected region of code. 
 | 
static boolean | 
reformatSubtree(SourceElement subtree)
Attempts to reformat the given subtree. 
 | 
public static Formatting.Selection reformatRegion(SourceFile file, int startOffset, int endOffset)
public static boolean reformatSubtree(SourceElement subtree)
subtree - The SourceElement whose contents should be formatted.public static javax.swing.undo.UndoableEdit reformatSelection(SourceFile file, int start, int end)
file - is the source file that contains the selection regionstart - is the start offset of the selected regionend - is the end offset of the selected region