|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.eclipse.xtext.ui.junit.editor.AbstractDamagerRepairerTest
public abstract class AbstractDamagerRepairerTest
Field Summary | |
---|---|
protected org.eclipse.jface.text.IRegion |
lastRegion
|
Constructor Summary | |
---|---|
AbstractDamagerRepairerTest()
|
Method Summary | |
---|---|
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)
The manipulation described by the document event will be performed. |
void |
documentChanged(org.eclipse.jface.text.DocumentEvent event)
The manipulation described by the document event has been performed. |
int |
getTokenLength()
Returns the length of the last token read by this scanner. |
int |
getTokenOffset()
Returns the offset of the last token read by this scanner. |
org.eclipse.jface.text.rules.IToken |
nextToken()
Returns the next token in the document. |
void |
setRange(org.eclipse.jface.text.IDocument document,
int offset,
int length)
Configures the scanner by providing access to the document range that should be scanned. |
protected void |
setUp()
|
protected void |
tearDown()
|
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected org.eclipse.jface.text.IRegion lastRegion
Constructor Detail |
---|
public AbstractDamagerRepairerTest()
Method Detail |
---|
protected void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
protected void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
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)
org.eclipse.jface.text.IDocumentListener
documentChanged
in interface org.eclipse.jface.text.IDocumentListener
event
- the document event describing the document changepublic void documentAboutToBeChanged(org.eclipse.jface.text.DocumentEvent event)
org.eclipse.jface.text.IDocumentListener
documentAboutToBeChanged
in interface org.eclipse.jface.text.IDocumentListener
event
- the document event describing the document changepublic void setRange(org.eclipse.jface.text.IDocument document, int offset, int length)
org.eclipse.jface.text.rules.ITokenScanner
setRange
in interface org.eclipse.jface.text.rules.ITokenScanner
document
- the document to scanoffset
- the offset of the document range to scanlength
- the length of the document range to scanpublic org.eclipse.jface.text.rules.IToken nextToken()
org.eclipse.jface.text.rules.ITokenScanner
nextToken
in interface org.eclipse.jface.text.rules.ITokenScanner
public int getTokenOffset()
org.eclipse.jface.text.rules.ITokenScanner
getTokenOffset
in interface org.eclipse.jface.text.rules.ITokenScanner
public int getTokenLength()
org.eclipse.jface.text.rules.ITokenScanner
getTokenLength
in interface org.eclipse.jface.text.rules.ITokenScanner
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |