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/04/04 14:05:19 UTC
svn commit: r1088575 -
/uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/AnnotationEditor.java
Author: joern
Date: Mon Apr 4 12:05:19 2011
New Revision: 1088575
URL: http://svn.apache.org/viewvc?rev=1088575&view=rev
Log:
UIMA-572 Menu now marks selected view
Modified:
uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/AnnotationEditor.java
Modified: uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/AnnotationEditor.java
URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/AnnotationEditor.java?rev=1088575&r1=1088574&r2=1088575&view=diff
==============================================================================
--- uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/AnnotationEditor.java (original)
+++ uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/AnnotationEditor.java Mon Apr 4 12:05:19 2011
@@ -557,6 +557,9 @@ public final class AnnotationEditor exte
// TODO: Add support for non text views, editor has
// to display some error message
+ if (cas.getViewName().equals(viewName))
+ actionItem.setSelection(true);
+
// TODO: move this to an action
actionItem.addListener(SWT.Selection, new Listener() {
public void handleEvent(Event e) {
@@ -565,8 +568,6 @@ public final class AnnotationEditor exte
if(!casEditor.getDocument().getCAS().getViewName().equals(viewName)) {
casEditor.showView(viewName);
}
- // TODO: update selection accordingly,
- // why does setSelection does not work here?
}
});
}