// can this happen ?
return null;
TextRulerRulePattern currentPattern = getPattern(slotIndex, patternIndex);
while (currentPattern != null) {
int startIndex = currentPattern.indexOf(item); // this is only >= 0
// for the first
// pattern...
if (!goToLeft) // walk forward...
{
int startSearchFromIndex = startIndex + 1;