|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.jface.text.DefaultIndentLineAutoEditStrategy
This strategy always copies the indentation of the previous line.
This class is not intended to be subclassed.
| Constructor Summary | |
|---|---|
DefaultIndentLineAutoEditStrategy()
Creates a new indent line auto edit strategy which can be installed on text viewers. |
|
| Method Summary | |
|---|---|
void |
customizeDocumentCommand(IDocument d,
DocumentCommand c)
Allows the strategy to manipulate the document command. |
protected int |
findEndOfWhiteSpace(IDocument document,
int offset,
int end)
Returns the first offset greater than offset and smaller than
end whose character is not a space or tab character. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultIndentLineAutoEditStrategy()
| Method Detail |
protected int findEndOfWhiteSpace(IDocument document,
int offset,
int end)
throws BadLocationException
offset and smaller than
end whose character is not a space or tab character. If no such
offset is found, end is returned.
document - the document to search inoffset - the offset at which searching startend - the offset at which searching stops
BadLocationException - if position is an invalid range in the given document
public void customizeDocumentCommand(IDocument d,
DocumentCommand c)
IAutoEditStrategy
customizeDocumentCommand in interface IAutoEditStrategyd - the document that will be changedc - the document command describing the change
|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.