svn commit: r14184 - trunk/src/app/src/org/argouml/uml/ui/PropPanel.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: mvw
Date: 2008-03-09 10:36:07-0800
New Revision: 14184

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

Log:
Fix for issue 4894: make the Go to Next/Previous buttons for attributes and operations work again.

Modified: trunk/src/app/src/org/argouml/uml/ui/PropPanel.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/app/src/org/argouml/uml/ui/PropPanel.java?view=diff&rev=14184&p1=trunk/src/app/src/org/argouml/uml/ui/PropPanel.java&p2=trunk/src/app/src/org/argouml/uml/ui/PropPanel.java&r1=14183&r2=14184
==============================================================================
--- trunk/src/app/src/org/argouml/uml/ui/PropPanel.java	(original)
+++ trunk/src/app/src/org/argouml/uml/ui/PropPanel.java	2008-03-09 10:36:07-0800
@@ -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
@@ -438,9 +438,19 @@
                 }
             }
         }
+        if (container instanceof PropPanel) {
+            ((PropPanel) container).collectTargetListenerActions();
+        }
         return list;
     }
 
+    private void collectTargetListenerActions() {
+        for (Object obj : actions) {
+            if (obj instanceof TargetListener) {
+                listenerList.add(TargetListener.class, (TargetListener) obj);
+            }
+        }
+    }
     /*
      * @see org.argouml.ui.TabTarget#getTarget()
      */
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.