|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.javatools.parser.java.v2.util.Formatting
public class Formatting
Utility class for use in formatting a SourceFile.
Nested Class Summary | |
---|---|
static class |
Formatting.Selection |
Method Summary | |
---|---|
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 void |
reformatSubtree(SourceElement subtree) Attempts to reformat the given subtree. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Formatting.Selection reformatRegion(SourceFile file, int startOffset, int endOffset)
public static void reformatSubtree(SourceElement subtree)
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
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |