svn commit: r16198 - trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerEventAdaptor.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2008-11-28 09:32:47-0800
New Revision: 16198

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

Log:
Listen to new style project events as well as old

Modified: trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerEventAdaptor.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerEventAdaptor.java?view=diff&rev=16198&p1=trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerEventAdaptor.java&p2=trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerEventAdaptor.java&r1=16197&r2=16198
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerEventAdaptor.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerEventAdaptor.java	2008-11-28 09:32:47-0800
@@ -203,8 +203,13 @@
         } else if (pce instanceof DeleteInstanceEvent) {
             treeModel.modelElementRemoved(((DeleteInstanceEvent) pce)
                     .getSource());
-        } else if (pce.getPropertyName()
-                .equals(ProjectManager.CURRENT_PROJECT_PROPERTY_NAME)) {
+        } else if (pce.getPropertyName().equals(
+                // TODO: No one should be sending the deprecated event
+                // from outside ArgoUML, but keep responding to it for now
+                // just in case
+                ProjectManager.CURRENT_PROJECT_PROPERTY_NAME)
+                || pce.getPropertyName().equals(
+                        ProjectManager.OPEN_PROJECTS_PROPERTY)) {
             // project events
             if (pce.getNewValue() != null) {
                 treeModel.structureChanged();
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.