if (fPositions.size() > 0) {
LinkedPosition groupPosition= (LinkedPosition) fPositions.get(0);
String groupContent= groupPosition.getContent();
String positionContent= position.getContent();
if (!groupContent.equals(positionContent))
throw new BadLocationException(
"First position: '" + groupContent + "' at " + groupPosition.getOffset() + //$NON-NLS-1$ //$NON-NLS-2$
", this position: '" + positionContent + "' at " + position.getOffset()); //$NON-NLS-1$ //$NON-NLS-2$
}
}