You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by jo...@apache.org on 2011/05/05 20:46:43 UTC
svn commit: r1099916 -
/uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/QuickTypeSelectionDialog.java
Author: joern
Date: Thu May 5 18:46:42 2011
New Revision: 1099916
URL: http://svn.apache.org/viewvc?rev=1099916&view=rev
Log:
UIMA-2137 Now only displays types which are shown in the editor
Modified:
uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/QuickTypeSelectionDialog.java
Modified: uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/QuickTypeSelectionDialog.java
URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/QuickTypeSelectionDialog.java?rev=1099916&r1=1099915&r2=1099916&view=diff
==============================================================================
--- uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/QuickTypeSelectionDialog.java (original)
+++ uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/QuickTypeSelectionDialog.java Thu May 5 18:46:42 2011
@@ -20,6 +20,7 @@
package org.apache.uima.caseditor.editor;
import java.util.ArrayList;
+import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
@@ -336,8 +337,12 @@ class QuickTypeSelectionDialog extends P
annotateAndClose((Type) selection.getFirstElement());
}
});
-
- typeTree.setInput(getTypes());
+
+ Collection<Type> shownAnnotationTypes = editor.getShownAnnotationTypes();
+
+ Type[] types = shownAnnotationTypes.toArray(new Type[shownAnnotationTypes.size()]);
+
+ typeTree.setInput(types);
ISelection modeSelection = new StructuredSelection(new Object[] { editor.getAnnotationMode() });