Révision 1465

tmp/org.txm.annotation.kr.core/src/org/txm/annotation/kr/core/AnnotationManager.java (revision 1465)
264 264
					if (match.getTarget() >= 0) { // the @ operator has been used, annotate only the @position
265 265
						tempAnnotations = tempManager.createAnnotationNoCommit(annotSelectedType, annotSelectedTypedValue, match.getTarget(), match.getTarget());
266 266
					} else {
267
						tempAnnotations = tempManager.createAnnotationNoCommit(annotSelectedType, annotSelectedTypedValue, match.getStart(), match.getEnd());
267
						if (annotSelectedType.getEffect() == AnnotationEffect.TOKEN) { // only annotate the first word
268
							tempAnnotations = tempManager.createAnnotationNoCommit(annotSelectedType, annotSelectedTypedValue, match.getStart(), match.getStart());
269
						} else {
270
							tempAnnotations = tempManager.createAnnotationNoCommit(annotSelectedType, annotSelectedTypedValue, match.getStart(), match.getEnd());
271
						}
268 272
					}
269 273
					if (tempAnnotations.size() > 0)
270 274
						allAnnotationsThatCollides.get(match).addAll(tempAnnotations);

Formats disponibles : Unified diff