svn commit: r14778 - trunk/src/argouml-app/src/org/argouml/uml/ui/ActionSaveGraphics.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2008-05-20 07:57:54-0700
New Revision: 14778

Modified:
   trunk/src/argouml-app/src/org/argouml/uml/ui/ActionSaveGraphics.java

Log:
Make sure errors actually get shown to user

Modified: trunk/src/argouml-app/src/org/argouml/uml/ui/ActionSaveGraphics.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/ui/ActionSaveGraphics.java?view=diff&rev=14778&p1=trunk/src/argouml-app/src/org/argouml/uml/ui/ActionSaveGraphics.java&p2=trunk/src/argouml-app/src/org/argouml/uml/ui/ActionSaveGraphics.java&r1=14777&r2=14778
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/ui/ActionSaveGraphics.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/ui/ActionSaveGraphics.java	2008-05-20 07:57:54-0700
@@ -1,5 +1,5 @@
 // $Id$
-// Copyright (c) 1996-2007 The Regents of the University of California. All
+// Copyright (c) 1996-2008 The Regents of the University of California. All
 // Rights Reserved. Permission to use, copy, modify, and distribute this
 // software and its documentation without fee, and without a written
 // agreement is hereby granted, provided that the above copyright notice
@@ -138,11 +138,15 @@
                 }
             }
         } catch (OutOfMemoryError e) {
-            new ExceptionDialog(ArgoFrame.getInstance(),
+            ExceptionDialog ed = new ExceptionDialog(ArgoFrame.getInstance(),
                 "You have run out of memory. "
                 + "Close down ArgoUML and restart with a larger heap size.", e);
+            ed.setModal(true);
+            ed.setVisible(true);
         } catch (Exception e) {
-            new ExceptionDialog(ArgoFrame.getInstance(), e);
+            ExceptionDialog ed = new ExceptionDialog(ArgoFrame.getInstance(), e);
+            ed.setModal(true);
+            ed.setVisible(true);
             LOG.error("Got some exception", e);
         }
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.