|
||||||||||
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.emf.codegen.jet.editor.util.JETTemplateAutoEditStrategy
public class JETTemplateAutoEditStrategy
Constructor Summary | |
---|---|
JETTemplateAutoEditStrategy()
|
Method Summary | |
---|---|
void |
customizeDocumentCommand(org.eclipse.jface.text.IDocument d,
org.eclipse.jface.text.DocumentCommand c)
|
protected int |
findMatchingOpenBracket(org.eclipse.jface.text.IDocument document,
int line,
int end,
int closingBracketIncrease)
Returns the line number of the next bracket after end. |
protected java.lang.String |
getIndentOfLine(org.eclipse.jface.text.IDocument document,
int line)
Returns the String at line with the leading whitespace removed. |
protected void |
smartIndentAfterNewLine(org.eclipse.jface.text.IDocument document,
org.eclipse.jface.text.DocumentCommand command)
Set the indent of a new line based on the command provided in the supplied document. |
protected void |
smartInsertAfterBracket(org.eclipse.jface.text.IDocument document,
org.eclipse.jface.text.DocumentCommand command)
Set the indent of a bracket based on the command provided in the supplied document. |
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 JETTemplateAutoEditStrategy()
Method Detail |
---|
public void customizeDocumentCommand(org.eclipse.jface.text.IDocument d, org.eclipse.jface.text.DocumentCommand c)
customizeDocumentCommand
in interface org.eclipse.jface.text.IAutoEditStrategy
customizeDocumentCommand
in class org.eclipse.jface.text.DefaultIndentLineAutoEditStrategy
protected int findMatchingOpenBracket(org.eclipse.jface.text.IDocument document, int line, int end, int closingBracketIncrease) throws org.eclipse.jface.text.BadLocationException
document
- - the document being parsedline
- - the line to start searching back fromend
- - the end position to search back fromclosingBracketIncrease
- - the number of brackets to skip
org.eclipse.jface.text.BadLocationException
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
protected void smartIndentAfterNewLine(org.eclipse.jface.text.IDocument document, org.eclipse.jface.text.DocumentCommand command)
document
- - the document being parsedcommand
- - the command being performedprotected void smartInsertAfterBracket(org.eclipse.jface.text.IDocument document, org.eclipse.jface.text.DocumentCommand command)
document
- - the document being parsedcommand
- - the command being performed
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |