svn commit: r17659 - trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui

Bob Tarling <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2009-12-17 11:34:46-0800
New Revision: 17659

Modified:
   trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/UMLPlainTextDocument.java
   trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/UMLTextField.java

Log:
Remove listener to model when the component is removed from the panel

Modified: trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/UMLPlainTextDocument.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/UMLPlainTextDocument.java?view=diff&pathrev=17659&r1=17658&r2=17659
==============================================================================
--- trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/UMLPlainTextDocument.java	(original)
+++ trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/UMLPlainTextDocument.java	2009-12-17 11:34:46-0800
@@ -183,7 +183,7 @@
      * 
      * @param f new firing state.  Pass false to disable updates.
      */
-    private final synchronized void setFiring(boolean f) {
+    final synchronized void setFiring(boolean f) {
         ModelEventPump eventPump = Model.getPump();
         if (f && target != null) {
             eventPump.addModelEventListener(this, target, eventName);

Modified: trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/UMLTextField.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/UMLTextField.java?view=diff&pathrev=17659&r1=17658&r2=17659
==============================================================================
--- trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/UMLTextField.java	(original)
+++ trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/UMLTextField.java	2009-12-17 11:34:46-0800
@@ -65,6 +65,8 @@
     public void propertyChange(PropertyChangeEvent evt) {
         ((UMLDocument) getDocument()).propertyChange(evt);
     }
+    
+    public void removeNotify() {
+        ((UMLPlainTextDocument) getDocument()).setFiring(false);
+    }
 }
-
-

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2431284

To unsubscribe from this discussion, e-mail: [[email protected]].
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.