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/10/11 11:36:11 UTC

svn commit: r1181670 - /uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/CasDocumentProvider.java

Author: joern
Date: Tue Oct 11 09:36:10 2011
New Revision: 1181670

URL: http://svn.apache.org/viewvc?rev=1181670&view=rev
Log:
UIMA-2245 Moved methods below instance variables. Removed an unused instance variable.

Modified:
    uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/CasDocumentProvider.java

Modified: uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/CasDocumentProvider.java
URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/CasDocumentProvider.java?rev=1181670&r1=1181669&r2=1181670&view=diff
==============================================================================
--- uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/CasDocumentProvider.java (original)
+++ uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/CasDocumentProvider.java Tue Oct 11 09:36:10 2011
@@ -53,21 +53,14 @@ public abstract class CasDocumentProvide
     }
   }
   
+  /**
+   * Error status code to indicate that a type system is not available.
+   */
   public static final int TYPE_SYSTEM_NOT_AVAILABLE_STATUS_CODE = 12;
   
   private Set<IElementStateListener> elementStateListeners =
           new HashSet<IElementStateListener>();
   
-  private Set<IAnnotationStyleListener> annotationStyleListeners =
-      new HashSet<IAnnotationStyleListener>();
-  
-  protected ElementInfo createElementInfo(Object element) {
-    return new ElementInfo(element);
-  }
-  
-  protected void disposeElementInfo(Object element, ElementInfo info) {
-  }
-  
   /**
    * The method {@link #createDocument(Object)} put error status objects for the given element in
    * this map, if something with document creation goes wrong.
@@ -76,6 +69,13 @@ public abstract class CasDocumentProvide
    */
   protected Map<Object, IStatus> elementErrorStatus = new HashMap<Object, IStatus>();
 
+  protected ElementInfo createElementInfo(Object element) {
+    return new ElementInfo(element);
+  }
+  
+  protected void disposeElementInfo(Object element, ElementInfo info) {
+  }
+  
   /**
    * Creates the a new {@link AnnotationDocument} from the given {@link IEditorInput} element.
    * For all other elements null is returned.