svn commit: r14745 - trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerTreeNode.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: mvw
Date: 2008-05-15 11:25:45-0700
New Revision: 14745

Modified:
   trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerTreeNode.java

Log:
First step towards a solution for issue 5079.

Modified: trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerTreeNode.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerTreeNode.java?view=diff&rev=14745&p1=trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerTreeNode.java&p2=trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerTreeNode.java&r1=14744&r2=14745
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerTreeNode.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerTreeNode.java	2008-05-15 11:25:45-0700
@@ -127,10 +127,21 @@
      * @see java.beans.PropertyChangeListener#propertyChange(java.beans.PropertyChangeEvent)
      */
     public void propertyChange(PropertyChangeEvent evt) {
-        // Name of the UMLDiagram represented by this node has changed.
-        if (evt.getSource() instanceof Diagram
-                && "name".equals(evt.getPropertyName())) {
-            model.nodeChanged(this);
+        if (evt.getSource() instanceof Diagram) {
+            if ("name".equals(evt.getPropertyName())) {
+                /* The name of the UMLDiagram 
+                 * represented by this node has changed. */
+                model.nodeChanged(this);
+            }
+            if ( "namespace".equals(evt.getPropertyName())) {
+                /* TODO: Update the old and new node above this!
+                 * This is issue 5079.
+                 * The old and new UML namespaces are in the event, but
+                 * how do we know which nodes to refresh?
+                 * And how to refresh? 
+                 * Not necessarily the namespaces, 
+                 * depending on the perspective. */
+            }
         }
     }
 }
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.