private SemanticToken fToken = new SemanticToken();
private void addPosition(int offset, int length, HighlightingStyle style) {
boolean isExisting = false;
for (int i = 0; i < fRemovedPositions.size(); i++) {
HighlightedPosition position = fRemovedPositions.get(i);
if (position == null) {
continue;
}
if (position.isEqual(offset, length, style)) {
isExisting = true;
fRemovedPositions.set(i, null);
fNOfRemovedPositions--;
break;
}
}
if (!isExisting) {
HighlightedPosition position = fJobPresenter
.createHighlightedPosition(offset, length, style);
fAddedPositions.add(position);
}
}