You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by al...@apache.org on 2007/02/09 20:56:10 UTC

svn commit: r505465 - /incubator/uima/uimaj/trunk/uimaj-examples/src/main/java/org/apache/uima/examples/SofaExampleAnnotator.java

Author: alally
Date: Fri Feb  9 11:56:10 2007
New Revision: 505465

URL: http://svn.apache.org/viewvc?view=rev&rev=505465
Log:
Change example to use addFsToIndexes instead of IndexRepository.addFS(),
to be consistent with documentation.

Modified:
    incubator/uima/uimaj/trunk/uimaj-examples/src/main/java/org/apache/uima/examples/SofaExampleAnnotator.java

Modified: incubator/uima/uimaj/trunk/uimaj-examples/src/main/java/org/apache/uima/examples/SofaExampleAnnotator.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-examples/src/main/java/org/apache/uima/examples/SofaExampleAnnotator.java?view=diff&rev=505465&r1=505464&r2=505465
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-examples/src/main/java/org/apache/uima/examples/SofaExampleAnnotator.java (original)
+++ incubator/uima/uimaj/trunk/uimaj-examples/src/main/java/org/apache/uima/examples/SofaExampleAnnotator.java Fri Feb  9 11:56:10 2007
@@ -69,7 +69,7 @@
 
       // Create token annotations on English text
       AnnotationFS engAnnot = englishView.createAnnotation(annot, engBegin, engEnd);
-      englishView.getIndexRepository().addFS(engAnnot);
+      englishView.addFsToIndexes(engAnnot);
 
       // Simple word-by-word translation
       String germWord = translate(thisTok);
@@ -84,7 +84,7 @@
       // Create token annotations on German text
       germEnd = germBegin + germWord.length();
       AnnotationFS germAnnot = germanView.createAnnotation(cross, germBegin, germEnd);
-      germanView.getIndexRepository().addFS(germAnnot);
+      germanView.addFsToIndexes(germAnnot);
 
       // add link to English text
       germAnnot.setFeatureValue(other, engAnnot);