|
org.netbeans.modules.editor.indent/2 1.28 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ReformatTask
Reformat task performs actual reformatting within offset bounds of the given context.
Since org.netbeans.modules.editor.indent/2 1.12 classes implementing this
interface can implement also Lookup.Provider and provide a lookup which will be
available to formatters via Context.getLookup().
| Nested Class Summary | |
|---|---|
static interface |
ReformatTask.Factory
Reformat task factory produces reformat tasks for the given context. |
| Method Summary | |
|---|---|
void |
reformat()
Perform reformatting of the Context.document()
between Context.startOffset() and Context.endOffset(). |
ExtraLock |
reformatLock()
Get an extra locking or null if no extra locking is necessary. |
| Method Detail |
|---|
void reformat()
throws BadLocationException
Context.document()
between Context.startOffset() and Context.endOffset().
BadLocationException - in case the formatter attempted to insert/remove
at an invalid offset or e.g. into a guarded section.ExtraLock reformatLock()
|
org.netbeans.modules.editor.indent/2 1.28 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||