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

All Known Implementing Classes:
ProjectionMapping

public interface IDocumentInformationMappingExtension2

Extension to IDocumentInformationMapping.

Extends the information available in the mapping by providing access to the closest image region of an origin region.

Since:
3.1
See Also:
IDocumentInformationMapping

Method Summary
  IRegion toClosestImageRegion ( IRegion originRegion)
          Returns the minimal region of the image document that completely comprises the given region of the original document.
 

Method Detail

toClosestImageRegion


IRegion toClosestImageRegion(
IRegion originRegion)
                             throws 
BadLocationException
Returns the minimal region of the image document that completely comprises the given region of the original document. The difference to IDocumentInformationMapping.toImageRegion(IRegion) is that this method will always return an image region for a valid origin region. If originRegion has no corresponding image region, the zero-length region at the offset between its surrounding fragments is returned.

Parameters:
originRegion - the region of the original document
Returns:
the minimal region of the image document comprising the given region of the original document
Throws:
BadLocationException - if originRegion is not a valid region of the original document

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