Package org.eclipse.ui.texteditor
Class MarkRegionTarget
java.lang.Object
org.eclipse.ui.texteditor.MarkRegionTarget
- All Implemented Interfaces:
- IMarkRegionTarget
Default implementation of 
IMarkRegionTarget using ITextViewer
 and IStatusLineManager.- Since:
- 2.0
- 
Constructor SummaryConstructorsConstructorDescriptionMarkRegionTarget(ITextViewer viewer, IStatusLineManager manager) Creates a MarkRegionTaret.
- 
Method SummaryModifier and TypeMethodDescriptionprotected static final booleanisVisible(ITextViewer viewer, int offset) Tells whether the given offset is visible in the given text viewer.voidsetMarkAtCursor(boolean set) Sets or clears a mark at the current cursor position.voidSwaps the mark and cursor position if the mark is in the visible region.
- 
Constructor Details- 
MarkRegionTargetCreates a MarkRegionTaret.- Parameters:
- viewer- the text viewer
- manager- the status line manager
 
 
- 
- 
Method Details- 
setMarkAtCursorpublic void setMarkAtCursor(boolean set) Description copied from interface:IMarkRegionTargetSets or clears a mark at the current cursor position.- Specified by:
- setMarkAtCursorin interface- IMarkRegionTarget
- Parameters:
- set- sets the mark if- true, clears otherwise.
 
- 
swapMarkAndCursorpublic void swapMarkAndCursor()Description copied from interface:IMarkRegionTargetSwaps the mark and cursor position if the mark is in the visible region.- Specified by:
- swapMarkAndCursorin interface- IMarkRegionTarget
 
- 
isVisibleTells whether the given offset is visible in the given text viewer.- Parameters:
- viewer- the text viewer
- offset- the offset to check
- Returns:
- trueif the given offset is visible in the given text viewer
- Since:
- 2.1
 
 
-