Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui.texteditor
Class MarkRegionTarget


java.lang.Object
  extended by 
org.eclipse.ui.texteditor.MarkRegionTarget
All Implemented Interfaces:
IMarkRegionTarget

public class MarkRegionTarget
extends Object
implements IMarkRegionTarget

Default implementation of IMarkRegionTarget using ITextViewer and IStatusLineManager.

Since:
2.0

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

MarkRegionTarget

public MarkRegionTarget(
ITextViewer viewer,
                        
IStatusLineManager manager)
Creates a MarkRegionTaret.

Parameters:
viewer - the text viewer
manager - the status line manager
Method Detail

setMarkAtCursor

public void setMarkAtCursor(boolean set)
Description copied from interface: IMarkRegionTarget
Sets or clears a mark at the current cursor position.

Specified by:
setMarkAtCursor in interface IMarkRegionTarget
Parameters:
set - sets the mark if true, clears otherwise.

swapMarkAndCursor

public void swapMarkAndCursor()
Description copied from interface: IMarkRegionTarget
Swaps the mark and cursor position if the mark is in the visible region.

Specified by:
swapMarkAndCursor in interface IMarkRegionTarget

isVisible

protected static final boolean isVisible(
ITextViewer viewer,
                                         int offset)
Tells whether the given offset is visible in the given text viewer.

Parameters:
viewer - the text viewer
offset - the offset to check
Returns:
true if the given offset is visible in the given text viewer
Since:
2.1

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire