svn commit: r17283 - trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/ModelEventPumpEUMLImpl.java

Bob Tarling <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2009-08-18 13:44:59-0700
New Revision: 17283

Modified:
   trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/ModelEventPumpEUMLImpl.java

Log:
Add debug to try and confirm what is registered to listen to

Modified: trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/ModelEventPumpEUMLImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/ModelEventPumpEUMLImpl.java?view=diff&pathrev=17283&r1=17282&r2=17283
==============================================================================
--- trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/ModelEventPumpEUMLImpl.java	(original)
+++ trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/ModelEventPumpEUMLImpl.java	2009-08-18 13:44:59-0700
@@ -175,14 +175,20 @@
     }
 
     public void addModelEventListener(PropertyChangeListener listener,
-            Object modelelement, String[] propertyNames) {
-        if (!(modelelement instanceof EObject)) {
+            Object modelElement, String[] propertyNames) {
+        if (LOG.isDebugEnabled()) {
+            LOG.debug("Adding a listener to " //$NON-NLS-1$
+                    + modelElement
+                    + " for " //$NON-NLS-1$
+                    + propertyNames);
+        }
+        if (!(modelElement instanceof EObject)) {
             throw new IllegalArgumentException(
                     "The modelelement must be instance " //$NON-NLS-1$
                             + "of EObject."); //$NON-NLS-1$
         }
         registerListener(
-                modelelement, listener, propertyNames, registerForElements);
+                modelElement, listener, propertyNames, registerForElements);
     }
 
     public void addModelEventListener(PropertyChangeListener listener,
@@ -296,6 +302,10 @@
                 + " New: " + newValue //$NON-NLS-1$
                 + " From: " + notification.getNotifier()); //$NON-NLS-1$
         
+        if (featureName.equals("navigableOwnedEnd")) { //$NON-NLS-1$
+            featureName = "navigableOwnedEnd"; //$NON-NLS-1$
+        }
+        
         class EventAndListeners {
             public EventAndListeners(PropertyChangeEvent e,
                     List<PropertyChangeListener> l) {

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

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.