// TODO: make some of these instance variables to prevent creation on
// stack
LineStyleProvider currentLineStyleProvider = null;
boolean handled = false;
for (int i = 0; i < partitions.length; i++) {
ITypedRegion currentPartition = partitions[i];
currentLineStyleProvider = getProviderFor(currentPartition);
currentLineStyleProvider.init(getDocument(), this);
handled = currentLineStyleProvider.prepareRegions(currentPartition, currentPartition.getOffset(), currentPartition.getLength(), fHoldStyleResults);
if (Debug.syntaxHighlighting && !handled) {
System.out.println("Did not handle highlighting in Highlighter inner while"); //$NON-NLS-1$
}
}