|
Eclipse Platform 2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.eclipse.jface.text.ParentChildMapping
Implementation of IDocumentInformationMapping matching ChildDocument and
ChildDocumentManager. The parent document is considered the original document, the child
document is considered the image document.
| Constructor Summary | |
ParentChildMapping(ChildDocument childDocument)
Creates a new document mapping between the parent document of the given child document and the child document. |
|
| Method Summary | |
IRegion |
getCoverage()
Returns the minimal region of the original document that completely comprises all of the image document or null if there is no such region. |
int |
toClosestImageLine(int originLine)
Returns the line of the image document whose corresponding line in the original document is closest to the given line in the original document. |
int |
toImageLine(int originLine)
Returns the line of the image document that corresponds to the given line of the original document or -1 if there is no such line. |
int |
toImageOffset(int originOffset)
Returns the offset in the image document that corresponds to the given offset in the original document or -1 if there is no such offset |
IRegion |
toImageRegion(IRegion originRegion)
Returns the minimal region of the image document that completely comprises the given region of the original document or null if there is no such region. |
int |
toOriginLine(int imageLine)
Returns the line of the original document that corresponds to the given line of the image document or -1 if there is no such line. |
IRegion |
toOriginLines(int imageLine)
Returns the range of lines of the original document that corresponds to the given line of the image document or null if there are no such lines. |
int |
toOriginOffset(int imageOffset)
Returns the offset in the original document that corresponds to the given offset in the image document or -1 if there is no such offset |
IRegion |
toOriginRegion(IRegion imageRegion)
Returns the minimal region of the original document that completely comprises the given region of the image document or null if there is no such region. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ParentChildMapping(ChildDocument childDocument)
childDocument - | Method Detail |
public IRegion getCoverage()
IDocumentInformationMappingnull if there is no such region.getCoverage in interface IDocumentInformationMappingorg.eclipse.jface.text.IDocumentInformationMappingnull
public int toOriginOffset(int imageOffset)
throws BadLocationException
IDocumentInformationMapping-1 if there is no such offsettoOriginOffset in interface IDocumentInformationMappingorg.eclipse.jface.text.IDocumentInformationMappingimageOffset - the offset in the image document-1BadLocationException - if imageOffset is not a valid offset in the image document
public IRegion toOriginRegion(IRegion imageRegion)
throws BadLocationException
IDocumentInformationMappingnull if there is no such region.toOriginRegion in interface IDocumentInformationMappingorg.eclipse.jface.text.IDocumentInformationMappingimageRegion - the region of the image documentBadLocationException - if imageRegion is not a valid region of the image document
public IRegion toOriginLines(int imageLine)
throws BadLocationException
IDocumentInformationMappingnull if there are no such lines.toOriginLines in interface IDocumentInformationMappingorg.eclipse.jface.text.IDocumentInformationMappingimageLine - the line of the image documentnullBadLocationException - if imageLine is not a valid line number in the image document
public int toOriginLine(int imageLine)
throws BadLocationException
IDocumentInformationMapping-1 if there is no such line.toOriginLine in interface IDocumentInformationMappingorg.eclipse.jface.text.IDocumentInformationMappingimageLine - the line of the image document-1BadLocationException - if imageLine is not a valid line number in the image document
public int toImageOffset(int originOffset)
throws BadLocationException
IDocumentInformationMapping-1 if there is no such offsettoImageOffset in interface IDocumentInformationMappingorg.eclipse.jface.text.IDocumentInformationMappingoriginOffset - the offset in the original document-1BadLocationException - if originOffset is not a valid offset in the original document
public IRegion toImageRegion(IRegion originRegion)
throws BadLocationException
IDocumentInformationMappingnull if there is no such region.toImageRegion in interface IDocumentInformationMappingorg.eclipse.jface.text.IDocumentInformationMappingoriginRegion - the region of the original documentnullBadLocationException - if originRegion is not a valid region of the original document
public int toImageLine(int originLine)
throws BadLocationException
IDocumentInformationMapping-1 if there is no such line.toImageLine in interface IDocumentInformationMappingorg.eclipse.jface.text.IDocumentInformationMappingoriginLine - the line of the original document-1BadLocationException - if originLine is not a valid line number in the original document
public int toClosestImageLine(int originLine)
throws BadLocationException
IDocumentInformationMappingtoClosestImageLine in interface IDocumentInformationMappingorg.eclipse.jface.text.IDocumentInformationMappingoriginLine - the line in the original documentBadLocationException - if originLineis not a valid line in the original document
|
Eclipse Platform 2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||