public abstract class AbstractDamagerRepairerTest
extends org.junit.Assert
implements org.eclipse.jface.text.IDocumentListener, org.eclipse.jface.text.rules.ITokenScanner
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.jface.text.IRegion |
lastRegion |
Constructor and Description |
---|
AbstractDamagerRepairerTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertEquals(int expStart,
int expLength,
org.eclipse.jface.text.IRegion actual) |
protected org.eclipse.jface.text.IRegion |
check(java.lang.String before,
int start,
int replaceLength,
java.lang.String text) |
protected org.eclipse.jface.text.Document |
createDocument(java.lang.String before) |
protected abstract Lexer |
createLexer() |
protected org.eclipse.jface.text.presentation.IPresentationDamager |
createRegionDamager() |
void |
documentAboutToBeChanged(org.eclipse.jface.text.DocumentEvent event) |
void |
documentChanged(org.eclipse.jface.text.DocumentEvent event) |
int |
getTokenLength() |
int |
getTokenOffset() |
org.eclipse.jface.text.rules.IToken |
nextToken() |
void |
setRange(org.eclipse.jface.text.IDocument document,
int offset,
int length) |
void |
setUp() |
void |
tearDown() |
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, fail
public void setUp() throws java.lang.Exception
java.lang.Exception
public void tearDown() throws java.lang.Exception
java.lang.Exception
protected org.eclipse.jface.text.IRegion check(java.lang.String before, int start, int replaceLength, java.lang.String text) throws java.lang.Exception
java.lang.Exception
protected org.eclipse.jface.text.presentation.IPresentationDamager createRegionDamager()
protected abstract Lexer createLexer()
protected org.eclipse.jface.text.Document createDocument(java.lang.String before) throws java.lang.Exception
java.lang.Exception
protected void assertEquals(int expStart, int expLength, org.eclipse.jface.text.IRegion actual)
public void documentChanged(org.eclipse.jface.text.DocumentEvent event)
documentChanged
in interface org.eclipse.jface.text.IDocumentListener
public void documentAboutToBeChanged(org.eclipse.jface.text.DocumentEvent event)
documentAboutToBeChanged
in interface org.eclipse.jface.text.IDocumentListener
public void setRange(org.eclipse.jface.text.IDocument document, int offset, int length)
setRange
in interface org.eclipse.jface.text.rules.ITokenScanner
public org.eclipse.jface.text.rules.IToken nextToken()
nextToken
in interface org.eclipse.jface.text.rules.ITokenScanner
public int getTokenOffset()
getTokenOffset
in interface org.eclipse.jface.text.rules.ITokenScanner
public int getTokenLength()
getTokenLength
in interface org.eclipse.jface.text.rules.ITokenScanner