public abstract static class StructuredDocumentProcessor.RegionProcessor<T>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument |
document |
protected int |
firstLine |
protected int |
indentationLevel |
protected int |
lastLine |
protected org.eclipse.jface.text.ITypedRegion |
region |
| Modifier | Constructor and Description |
|---|---|
protected |
RegionProcessor(org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument document,
org.eclipse.jface.text.ITypedRegion region,
java.lang.String htmlIndent) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
applyFirst(T formatter)
First application of modifications
|
protected abstract void |
applySecond(T formatter)
Second application of modifications (based on new regions)
|
protected int |
fixDelimiter(org.eclipse.text.edits.MultiTextEdit modifications,
int offset,
boolean addAfter)
Add delimiter at or after given offset, if there is none at the offset position.
|
protected void |
fixTagIndent(org.eclipse.text.edits.MultiTextEdit modifications,
int offset,
java.lang.String indentString)
Fix the tag indentation at a given position with a predefined indentation.
|
int |
getFirstLine() |
int |
getLastLine() |
protected final org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument document
protected final org.eclipse.jface.text.ITypedRegion region
protected final int indentationLevel
protected final int firstLine
protected final int lastLine
protected RegionProcessor(org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument document,
org.eclipse.jface.text.ITypedRegion region,
java.lang.String htmlIndent)
public int getFirstLine()
public int getLastLine()
protected int fixDelimiter(org.eclipse.text.edits.MultiTextEdit modifications,
int offset,
boolean addAfter)
throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationExceptionprotected void fixTagIndent(org.eclipse.text.edits.MultiTextEdit modifications,
int offset,
java.lang.String indentString)
throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationExceptionprotected abstract void applyFirst(T formatter) throws org.eclipse.text.edits.MalformedTreeException, org.eclipse.jface.text.BadLocationException
org.eclipse.text.edits.MalformedTreeExceptionorg.eclipse.jface.text.BadLocationExceptionprotected abstract void applySecond(T formatter) throws org.eclipse.text.edits.MalformedTreeException, org.eclipse.jface.text.BadLocationException
org.eclipse.text.edits.MalformedTreeExceptionorg.eclipse.jface.text.BadLocationException