Author: mvw
Date: 2008-11-09 01:34:15-0800
New Revision: 15999

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

Log:
There are exceptions when saving a project, doing "New", then loading it again.

For now, this solution (Yes, this is a hack).

Modified: 
trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigSingleLineText.java
Url: 
http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigSingleLineText.java?view=diff&rev=15999&p1=trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigSingleLineText.java&p2=trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigSingleLineText.java&r1=15998&r2=15999
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigSingleLineText.java 
(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigSingleLineText.java 
2008-11-09 01:34:15-0800
@@ -314,6 +314,13 @@
         if (getOwner() == null) {
             return;
         }
+        /* TODO: There are exceptions when saving a project, 
+         * doing "New", then loading it again. Fix these!
+         * For now, this solution (Yes, this is a hack): */
+        if (Model.getUmlFactory().isRemoved(getOwner())) {
+            ArgoEventPump.removeListener(ArgoEventTypes.ANY_NOTATION_EVENT, 
this);
+            return;
+        }
         /* This is needed for e.g. 
          * guillemet notation change on a class name, 
          * see issue 5419. */

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to