svn commit: r13395 - branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/XmiWriterEUMLImpl.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: b00__1
Date: 2007-08-18 07:14:52-0700
New Revision: 13395

Modified:
   branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/XmiWriterEUMLImpl.java

Log:
deactivate the pump when saving

Modified: branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/XmiWriterEUMLImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/XmiWriterEUMLImpl.java?view=diff&rev=13395&p1=branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/XmiWriterEUMLImpl.java&p2=branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/XmiWriterEUMLImpl.java&r1=13394&r2=13395
==============================================================================
--- branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/XmiWriterEUMLImpl.java	(original)
+++ branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/XmiWriterEUMLImpl.java	2007-08-18 07:14:52-0700
@@ -115,9 +115,12 @@
         // TODO: Is there an option we can use to save our ArgoUML version?
 
         try {
+            modelImpl.getModelEventPump().stopPumpingEvents();
             model.eResource().save(oStream, options);
         } catch (IOException ioe) {
             throw new UmlException(ioe);
+        } finally {
+            modelImpl.getModelEventPump().startPumpingEvents();
         }
 
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.