Author: pkluegl
Date: Thu Nov 10 12:39:48 2011
New Revision: 1200299

URL: http://svn.apache.org/viewvc?rev=1200299&view=rev
Log:
UIMA-2273
adapted "TextMarker" views to changed casDocumentChanged interface

Modified:
    
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-addons/src/main/java/org/apache/uima/textmarker/explain/apply/ApplyViewPage.java
    
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-addons/src/main/java/org/apache/uima/textmarker/testing/ui/views/EvaluationViewPage.java
    
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-caseditor/src/main/java/org/apache/uima/textmarker/caseditor/view/tree/AnnotationTreeContentProvider.java

Modified: 
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-addons/src/main/java/org/apache/uima/textmarker/explain/apply/ApplyViewPage.java
URL: 
http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-addons/src/main/java/org/apache/uima/textmarker/explain/apply/ApplyViewPage.java?rev=1200299&r1=1200298&r2=1200299&view=diff
==============================================================================
--- 
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-addons/src/main/java/org/apache/uima/textmarker/explain/apply/ApplyViewPage.java
 (original)
+++ 
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-addons/src/main/java/org/apache/uima/textmarker/explain/apply/ApplyViewPage.java
 Thu Nov 10 12:39:48 2011
@@ -38,6 +38,7 @@ import org.eclipse.swt.events.MouseEvent
 import org.eclipse.swt.graphics.Image;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Control;
+import org.eclipse.ui.IEditorInput;
 import org.eclipse.ui.ISelectionListener;
 import org.eclipse.ui.IWorkbenchPart;
 import org.eclipse.ui.part.IPageSite;
@@ -158,13 +159,16 @@ public class ApplyViewPage extends Page 
 
   }
 
+
   @Override
-  public void casDocumentChanged(ICasDocument oldDocument, ICasDocument 
newDocument) {
+  public void casDocumentChanged(IEditorInput oldInput, ICasDocument 
oldDocument,
+          IEditorInput newInput, ICasDocument newDocument) {
     editor.removeCasEditorInputListener(this);
     document = newDocument;
     editor.addCasEditorInputListener(this);
     ExplainTree tree = new ExplainTree(document.getCAS());
     viewer.setInput(tree.getRoot());
     viewer.refresh();
+    
   }
 }

Modified: 
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-addons/src/main/java/org/apache/uima/textmarker/testing/ui/views/EvaluationViewPage.java
URL: 
http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-addons/src/main/java/org/apache/uima/textmarker/testing/ui/views/EvaluationViewPage.java?rev=1200299&r1=1200298&r2=1200299&view=diff
==============================================================================
--- 
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-addons/src/main/java/org/apache/uima/textmarker/testing/ui/views/EvaluationViewPage.java
 (original)
+++ 
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-addons/src/main/java/org/apache/uima/textmarker/testing/ui/views/EvaluationViewPage.java
 Thu Nov 10 12:39:48 2011
@@ -39,6 +39,7 @@ import org.eclipse.swt.dnd.Transfer;
 import org.eclipse.swt.graphics.Image;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Control;
+import org.eclipse.ui.IEditorInput;
 import org.eclipse.ui.ISelectionListener;
 import org.eclipse.ui.IWorkbenchPart;
 import org.eclipse.ui.part.IPageSite;
@@ -170,7 +171,8 @@ public class EvaluationViewPage extends 
   }
 
   @Override
-  public void casDocumentChanged(ICasDocument oldDocument, ICasDocument 
newDocument) {
+  public void casDocumentChanged(IEditorInput oldInput, ICasDocument 
oldDocument,
+          IEditorInput newInput, ICasDocument newDocument) {
     document.removeChangeListener(this);
     document = newDocument;
     document.addChangeListener(this);

Modified: 
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-caseditor/src/main/java/org/apache/uima/textmarker/caseditor/view/tree/AnnotationTreeContentProvider.java
URL: 
http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-caseditor/src/main/java/org/apache/uima/textmarker/caseditor/view/tree/AnnotationTreeContentProvider.java?rev=1200299&r1=1200298&r2=1200299&view=diff
==============================================================================
--- 
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-caseditor/src/main/java/org/apache/uima/textmarker/caseditor/view/tree/AnnotationTreeContentProvider.java
 (original)
+++ 
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-caseditor/src/main/java/org/apache/uima/textmarker/caseditor/view/tree/AnnotationTreeContentProvider.java
 Thu Nov 10 12:39:48 2011
@@ -29,6 +29,7 @@ import org.apache.uima.caseditor.editor.
 import org.eclipse.jface.viewers.ITreeContentProvider;
 import org.eclipse.jface.viewers.Viewer;
 import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.IEditorInput;
 
 public class AnnotationTreeContentProvider extends 
AbstractAnnotationDocumentListener implements
         ITreeContentProvider, ICasEditorInputListener {
@@ -131,8 +132,10 @@ public class AnnotationTreeContentProvid
     changed();
   }
 
+
   @Override
-  public void casDocumentChanged(ICasDocument oldDocument, ICasDocument 
newDocument) {
+  public void casDocumentChanged(IEditorInput oldInput, ICasDocument 
oldDocument,
+          IEditorInput newInput, ICasDocument newDocument) {
     document.removeChangeListener(this);
     document = newDocument;
     document.addChangeListener(this);


Reply via email to