public interface IDocumentInformationMappingExtension2
IDocumentInformationMapping
.
Extends the information available in the mapping by providing access to the closest image region of an origin region.
IDocumentInformationMapping
Modifier and Type | Method and Description |
---|---|
IRegion |
toClosestImageRegion(IRegion originRegion)
Returns the minimal region of the image document that completely
comprises the given region of the original document.
|
IRegion toClosestImageRegion(IRegion originRegion) throws BadLocationException
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.originRegion
- the region of the original documentBadLocationException
- if originRegion
is not a
valid region of the original document
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.