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

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.jface.text
Interface IMarkSelection

All Superinterfaces:
ISelection
All Known Implementing Classes:
MarkSelection

public interface IMarkSelection
extends ISelection

A mark selection can be sent out by text viewers. By checking the type of the selection selection listeners can determine whether a selection event is about a mark or a normal text selection.

This interface is not intended to be implemented by clients other than ITextViewer implementers.

Since:
2.0

Method Summary
  IDocument getDocument ()
          Returns the marked document.
 int getLength ()
          Returns the length of the mark selection.
 int getOffset ()
          Returns the mark position.
 
Methods inherited from interface org.eclipse.jface.viewers. ISelection
isEmpty
 

Method Detail

getDocument

IDocument getDocument()
Returns the marked document.

Returns:
the marked document

getOffset

int getOffset()
Returns the mark position. The offset may be -1 if there's no marked region.

Returns:
the mark position or -1 if there is no marked region

getLength

int getLength()
Returns the length of the mark selection. The length may be negative, if the caret is before the mark position. The length has no meaning if getOffset() returns -1.

Returns:
the length of the mark selection. Result is undefined for getOffset == -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