public class AutoCloseCandidate extends Object
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.jface.text.DocumentCommand |
command |
protected org.eclipse.jface.text.IDocument |
document |
Constructor and Description |
---|
AutoCloseCandidate(org.eclipse.jface.text.IDocument document,
org.eclipse.jface.text.DocumentCommand command) |
Modifier and Type | Method and Description |
---|---|
AutoCloseAction |
close(AutoClosePair pair) |
int |
countInCurrentLine(char what) |
boolean |
evenInCurrentLine(char what) |
char |
getChar() |
org.eclipse.jface.text.DocumentCommand |
getCommand() |
org.eclipse.jface.text.IDocument |
getDocument() |
char |
getNextChar() |
void |
ignore() |
boolean |
isBackspace() |
boolean |
isSingleChar() |
boolean |
oddInCurrentLine(char what) |
void |
setCommand(org.eclipse.jface.text.DocumentCommand command) |
void |
setDocument(org.eclipse.jface.text.IDocument document) |
protected org.eclipse.jface.text.IDocument document
protected org.eclipse.jface.text.DocumentCommand command
public AutoCloseCandidate(org.eclipse.jface.text.IDocument document, org.eclipse.jface.text.DocumentCommand command)
public boolean isBackspace()
public boolean isSingleChar()
public char getChar()
public char getNextChar()
public AutoCloseAction close(AutoClosePair pair)
public void ignore()
public boolean evenInCurrentLine(char what)
public boolean oddInCurrentLine(char what)
public int countInCurrentLine(char what)
public org.eclipse.jface.text.IDocument getDocument()
public void setDocument(org.eclipse.jface.text.IDocument document)
public org.eclipse.jface.text.DocumentCommand getCommand()
public void setCommand(org.eclipse.jface.text.DocumentCommand command)
Copyright © 2016. All rights reserved.