|
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 IndentTask
Indent task performs indentation on a single or multiple lines.
Typically it is used to fix indentation after newline was inserted
or to fix indentation for a selected block of code.
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 |
IndentTask.Factory
Indent task factory produces indent tasks for the given context. |
| Method Summary | |
|---|---|
ExtraLock |
indentLock()
Get an extra locking or null if no extra locking is necessary. |
void |
reindent()
Perform reindentation of the line(s) of Context.document()
between Context.startOffset() and Context.endOffset(). |
| Method Detail |
|---|
void reindent()
throws BadLocationException
Context.document()
between Context.startOffset() and Context.endOffset().
BadLocationException - in case the indent task attempted to insert/remove
at an invalid offset or e.g. into a guarded section.ExtraLock indentLock()
|
org.netbeans.modules.editor.indent/2 1.28 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||