|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.text.DefaultIndentLineAutoEditStrategy
org.eclipse.m2m.atl.adt.ui.text.atl.AtlAutoIndentStrategy
public class AtlAutoIndentStrategy
Constructor Summary | |
---|---|
AtlAutoIndentStrategy(java.lang.String partitioning)
Creates a new ATL auto indent strategy for the given document fPartitioning. |
Method Summary | |
---|---|
protected java.lang.String |
createIndent()
Returns a string buffer containing one indent. |
protected java.lang.String |
createIndent(int indents)
Creates an indented string buffer. |
void |
customizeDocumentCommand(org.eclipse.jface.text.IDocument document,
org.eclipse.jface.text.DocumentCommand command)
|
protected java.lang.String |
getIndentOfLine(org.eclipse.jface.text.IDocument document,
int line)
Returns the String at line with the leading whitespace removed. |
Methods inherited from class org.eclipse.jface.text.DefaultIndentLineAutoEditStrategy |
---|
findEndOfWhiteSpace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AtlAutoIndentStrategy(java.lang.String partitioning)
partitioning
- the document fPartitioningMethod Detail |
---|
protected java.lang.String createIndent()
protected java.lang.String createIndent(int indents)
indents
- the requested indentation level
public void customizeDocumentCommand(org.eclipse.jface.text.IDocument document, org.eclipse.jface.text.DocumentCommand command)
customizeDocumentCommand
in interface org.eclipse.jface.text.IAutoEditStrategy
customizeDocumentCommand
in class org.eclipse.jface.text.DefaultIndentLineAutoEditStrategy
DefaultIndentLineAutoEditStrategy.customizeDocumentCommand(org.eclipse.jface.text.IDocument,
org.eclipse.jface.text.DocumentCommand)
protected java.lang.String getIndentOfLine(org.eclipse.jface.text.IDocument document, int line) throws org.eclipse.jface.text.BadLocationException
document
- the document being parsedline
- the line being searched
org.eclipse.jface.text.BadLocationException
|
Copyright 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |