Community
Participate
Working Groups
if (currentNode.getLastRegion() != null && currentNode.getLastRegion().getType() == DOMRegionContext.UNDEFINED) {
currentNode.getLastRegion().adjustLength(region.getLength());
currentNode.adjustLength(region.getLength());
//if adding this region to a previous container then need to add this
//region to the container and update its start location
if(currentNode.getLastRegion() instanceof ITextRegionContainer) {
region.adjustStart(-currentNode.getLastRegion().getStart()- currentNode.getStart());
((ITextRegionContainer)currentNode.getLastRegion()).getRegions().add(region);
}
// previous wasn't undefined
else {