You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by jo...@apache.org on 2011/11/18 12:42:41 UTC
svn commit: r1203610 -
/incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/namefinder/EntityContentProvider.java
Author: joern
Date: Fri Nov 18 11:42:40 2011
New Revision: 1203610
URL: http://svn.apache.org/viewvc?rev=1203610&view=rev
Log:
OPENNLP-392 Now maintains the selection after confirmation.
Modified:
incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/namefinder/EntityContentProvider.java
Modified: incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/namefinder/EntityContentProvider.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/namefinder/EntityContentProvider.java?rev=1203610&r1=1203609&r2=1203610&view=diff
==============================================================================
--- incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/namefinder/EntityContentProvider.java (original)
+++ incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/namefinder/EntityContentProvider.java Fri Nov 18 11:42:40 2011
@@ -139,7 +139,11 @@ public class EntityContentProvider imple
}
}
}
-
+ else {
+ if (entityListViewer.getTable().getItemCount() > 0) {
+ entityListViewer.setSelection(new StructuredSelection(entityListViewer.getElementAt(0)));
+ }
+ }
}
else {
Entity newEntity = new Entity(annotation.getBegin(), annotation.getEnd(),