public class DefaultIndentLineAutoEditStrategy extends Object implements IAutoEditStrategy
This class is not intended to be subclassed.
Constructor and Description |
---|
DefaultIndentLineAutoEditStrategy()
Creates a new indent line auto edit strategy which can be installed on
text viewers.
|
Modifier and Type | Method and Description |
---|---|
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. |
public DefaultIndentLineAutoEditStrategy()
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 stopsBadLocationException
- if position is an invalid range in the given documentpublic void customizeDocumentCommand(IDocument d, DocumentCommand c)
IAutoEditStrategy
customizeDocumentCommand
in interface IAutoEditStrategy
d
- the document that will be changedc
- the document command describing the change
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.