public class MockableTextViewer
extends java.lang.Object
implements org.eclipse.jface.text.ITextViewer
Constructor and Description |
---|
MockableTextViewer() |
Modifier and Type | Method and Description |
---|---|
void |
activatePlugins() |
void |
addTextInputListener(org.eclipse.jface.text.ITextInputListener listener) |
void |
addTextListener(org.eclipse.jface.text.ITextListener listener) |
void |
addViewportListener(org.eclipse.jface.text.IViewportListener listener) |
void |
changeTextPresentation(org.eclipse.jface.text.TextPresentation presentation,
boolean controlRedraw) |
int |
getBottomIndex() |
int |
getBottomIndexEndOffset() |
org.eclipse.jface.text.IDocument |
getDocument() |
org.eclipse.jface.text.IFindReplaceTarget |
getFindReplaceTarget() |
org.eclipse.swt.graphics.Point |
getSelectedRange() |
org.eclipse.jface.viewers.ISelectionProvider |
getSelectionProvider() |
org.eclipse.jface.text.ITextOperationTarget |
getTextOperationTarget() |
org.eclipse.swt.custom.StyledText |
getTextWidget() |
int |
getTopIndex() |
int |
getTopIndexStartOffset() |
int |
getTopInset() |
org.eclipse.jface.text.IRegion |
getVisibleRegion() |
void |
invalidateTextPresentation() |
boolean |
isEditable() |
boolean |
overlapsWithVisibleRegion(int offset,
int length) |
void |
removeTextInputListener(org.eclipse.jface.text.ITextInputListener listener) |
void |
removeTextListener(org.eclipse.jface.text.ITextListener listener) |
void |
removeViewportListener(org.eclipse.jface.text.IViewportListener listener) |
void |
resetPlugins() |
void |
resetVisibleRegion() |
void |
revealRange(int offset,
int length) |
void |
setAutoIndentStrategy(org.eclipse.jface.text.IAutoIndentStrategy strategy,
java.lang.String contentType) |
void |
setDefaultPrefixes(java.lang.String[] defaultPrefixes,
java.lang.String contentType) |
void |
setDocument(org.eclipse.jface.text.IDocument document) |
void |
setDocument(org.eclipse.jface.text.IDocument document,
int modelRangeOffset,
int modelRangeLength) |
void |
setEditable(boolean editable) |
void |
setEventConsumer(org.eclipse.jface.text.IEventConsumer consumer) |
void |
setIndentPrefixes(java.lang.String[] indentPrefixes,
java.lang.String contentType) |
void |
setSelectedRange(int offset,
int length) |
void |
setTextColor(org.eclipse.swt.graphics.Color color) |
void |
setTextColor(org.eclipse.swt.graphics.Color color,
int offset,
int length,
boolean controlRedraw) |
void |
setTextDoubleClickStrategy(org.eclipse.jface.text.ITextDoubleClickStrategy strategy,
java.lang.String contentType) |
void |
setTextHover(org.eclipse.jface.text.ITextHover textViewerHover,
java.lang.String contentType) |
void |
setTopIndex(int index) |
void |
setUndoManager(org.eclipse.jface.text.IUndoManager undoManager) |
void |
setVisibleRegion(int offset,
int length) |
public void activatePlugins()
activatePlugins
in interface org.eclipse.jface.text.ITextViewer
public void addTextInputListener(org.eclipse.jface.text.ITextInputListener listener)
addTextInputListener
in interface org.eclipse.jface.text.ITextViewer
public void addTextListener(org.eclipse.jface.text.ITextListener listener)
addTextListener
in interface org.eclipse.jface.text.ITextViewer
public void addViewportListener(org.eclipse.jface.text.IViewportListener listener)
addViewportListener
in interface org.eclipse.jface.text.ITextViewer
public void changeTextPresentation(org.eclipse.jface.text.TextPresentation presentation, boolean controlRedraw)
changeTextPresentation
in interface org.eclipse.jface.text.ITextViewer
public int getBottomIndex()
getBottomIndex
in interface org.eclipse.jface.text.ITextViewer
public int getBottomIndexEndOffset()
getBottomIndexEndOffset
in interface org.eclipse.jface.text.ITextViewer
public org.eclipse.jface.text.IDocument getDocument()
getDocument
in interface org.eclipse.jface.text.ITextViewer
public org.eclipse.jface.text.IFindReplaceTarget getFindReplaceTarget()
getFindReplaceTarget
in interface org.eclipse.jface.text.ITextViewer
public org.eclipse.swt.graphics.Point getSelectedRange()
getSelectedRange
in interface org.eclipse.jface.text.ITextViewer
public org.eclipse.jface.viewers.ISelectionProvider getSelectionProvider()
getSelectionProvider
in interface org.eclipse.jface.text.ITextViewer
public org.eclipse.jface.text.ITextOperationTarget getTextOperationTarget()
getTextOperationTarget
in interface org.eclipse.jface.text.ITextViewer
public org.eclipse.swt.custom.StyledText getTextWidget()
getTextWidget
in interface org.eclipse.jface.text.ITextViewer
public int getTopIndex()
getTopIndex
in interface org.eclipse.jface.text.ITextViewer
public int getTopIndexStartOffset()
getTopIndexStartOffset
in interface org.eclipse.jface.text.ITextViewer
public int getTopInset()
getTopInset
in interface org.eclipse.jface.text.ITextViewer
public org.eclipse.jface.text.IRegion getVisibleRegion()
getVisibleRegion
in interface org.eclipse.jface.text.ITextViewer
public void invalidateTextPresentation()
invalidateTextPresentation
in interface org.eclipse.jface.text.ITextViewer
public boolean isEditable()
isEditable
in interface org.eclipse.jface.text.ITextViewer
public boolean overlapsWithVisibleRegion(int offset, int length)
overlapsWithVisibleRegion
in interface org.eclipse.jface.text.ITextViewer
public void removeTextInputListener(org.eclipse.jface.text.ITextInputListener listener)
removeTextInputListener
in interface org.eclipse.jface.text.ITextViewer
public void removeTextListener(org.eclipse.jface.text.ITextListener listener)
removeTextListener
in interface org.eclipse.jface.text.ITextViewer
public void removeViewportListener(org.eclipse.jface.text.IViewportListener listener)
removeViewportListener
in interface org.eclipse.jface.text.ITextViewer
public void resetPlugins()
resetPlugins
in interface org.eclipse.jface.text.ITextViewer
public void resetVisibleRegion()
resetVisibleRegion
in interface org.eclipse.jface.text.ITextViewer
public void revealRange(int offset, int length)
revealRange
in interface org.eclipse.jface.text.ITextViewer
public void setAutoIndentStrategy(org.eclipse.jface.text.IAutoIndentStrategy strategy, java.lang.String contentType)
setAutoIndentStrategy
in interface org.eclipse.jface.text.ITextViewer
public void setDefaultPrefixes(java.lang.String[] defaultPrefixes, java.lang.String contentType)
setDefaultPrefixes
in interface org.eclipse.jface.text.ITextViewer
public void setDocument(org.eclipse.jface.text.IDocument document)
setDocument
in interface org.eclipse.jface.text.ITextViewer
public void setDocument(org.eclipse.jface.text.IDocument document, int modelRangeOffset, int modelRangeLength)
setDocument
in interface org.eclipse.jface.text.ITextViewer
public void setEditable(boolean editable)
setEditable
in interface org.eclipse.jface.text.ITextViewer
public void setEventConsumer(org.eclipse.jface.text.IEventConsumer consumer)
setEventConsumer
in interface org.eclipse.jface.text.ITextViewer
public void setIndentPrefixes(java.lang.String[] indentPrefixes, java.lang.String contentType)
setIndentPrefixes
in interface org.eclipse.jface.text.ITextViewer
public void setSelectedRange(int offset, int length)
setSelectedRange
in interface org.eclipse.jface.text.ITextViewer
public void setTextColor(org.eclipse.swt.graphics.Color color)
setTextColor
in interface org.eclipse.jface.text.ITextViewer
public void setTextColor(org.eclipse.swt.graphics.Color color, int offset, int length, boolean controlRedraw)
setTextColor
in interface org.eclipse.jface.text.ITextViewer
public void setTextDoubleClickStrategy(org.eclipse.jface.text.ITextDoubleClickStrategy strategy, java.lang.String contentType)
setTextDoubleClickStrategy
in interface org.eclipse.jface.text.ITextViewer
public void setTextHover(org.eclipse.jface.text.ITextHover textViewerHover, java.lang.String contentType)
setTextHover
in interface org.eclipse.jface.text.ITextViewer
public void setTopIndex(int index)
setTopIndex
in interface org.eclipse.jface.text.ITextViewer
public void setUndoManager(org.eclipse.jface.text.IUndoManager undoManager)
setUndoManager
in interface org.eclipse.jface.text.ITextViewer
public void setVisibleRegion(int offset, int length)
setVisibleRegion
in interface org.eclipse.jface.text.ITextViewer