Author: joern
Date: Mon Oct  4 19:13:56 2010
New Revision: 1004369

URL: http://svn.apache.org/viewvc?rev=1004369&view=rev
Log:
UIMA-1887 Style file is now also serialized when shown types are changed

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

Modified: 
uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/DefaultCasDocumentProvider.java
URL: 
http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/DefaultCasDocumentProvider.java?rev=1004369&r1=1004368&r2=1004369&view=diff
==============================================================================
--- 
uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/DefaultCasDocumentProvider.java
 (original)
+++ 
uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/DefaultCasDocumentProvider.java
 Mon Oct  4 19:13:56 2010
@@ -447,8 +447,9 @@ public class DefaultCasDocumentProvider 
     }
     else {
       DotCorpus dotCorpus = getStyle(element);
-      
       dotCorpus.setShownType(type.getName());
+      
+      saveStyles(element);
     }
   }
   
@@ -467,8 +468,9 @@ public class DefaultCasDocumentProvider 
     }
     else {
       DotCorpus dotCorpus = getStyle(element);
-      
       dotCorpus.removeShownType(type.getName());
+      
+      saveStyles(element);
     }
   }
   


Reply via email to