|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ui.texteditor.MarkRegionTarget
public class MarkRegionTarget
Default implementation of IMarkRegionTarget using ITextViewer
and IStatusLineManager.
| Constructor Summary | |
|---|---|
MarkRegionTarget(ITextViewer viewer,
IStatusLineManager manager)
Creates a MarkRegionTaret. |
|
| Method Summary | |
|---|---|
protected static boolean |
isVisible(ITextViewer viewer,
int offset)
Tells whether the given offset is visible in the given text viewer. |
void |
setMarkAtCursor(boolean set)
Sets or clears a mark at the current cursor position. |
void |
swapMarkAndCursor()
Swaps the mark and cursor position if the mark is in the visible region. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MarkRegionTarget(ITextViewer viewer,
IStatusLineManager manager)
viewer - the text viewermanager - the status line manager| Method Detail |
|---|
public void setMarkAtCursor(boolean set)
IMarkRegionTarget
setMarkAtCursor in interface IMarkRegionTargetset - sets the mark if true, clears otherwise.public void swapMarkAndCursor()
IMarkRegionTarget
swapMarkAndCursor in interface IMarkRegionTarget
protected static final boolean isVisible(ITextViewer viewer,
int offset)
viewer - the text vieweroffset - the offset to check
true if the given offset is visible in the given text viewer
|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.