Author: mmichaud
Date: 2009-04-06 07:22:04 -0700 (Mon, 06 Apr 2009)
New Revision: 16461

Modified:
   
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/AbstractGuiHandler.java
Log:


Modified: 
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/AbstractGuiHandler.java
===================================================================
--- 
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/AbstractGuiHandler.java
      2009-04-03 23:08:14 UTC (rev 16460)
+++ 
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/AbstractGuiHandler.java
      2009-04-06 14:22:04 UTC (rev 16461)
@@ -73,9 +73,11 @@
        public void notifyDependents() {
                String state = getState();
                String name = getName();
-               for ( Guihandler gh : deps )
-                       gh.checkDependency( name, state ); 
-       }
+               if(deps.size() == 0)handle();
+               else{
+                       for ( Guihandler gh : deps )
+                       gh.checkDependency( name, state );
+               }       }
 
        // add a dependency on this object 
        public void addDependent(Guihandler gh) {
@@ -92,7 +94,8 @@
 
                // if we don't depend on anything, then we should be enabled
                if ( depName == null || depState == null ) {
-                       setEnabledContainer(true,panel); 
+                       setEnabledContainer(true,panel);
+                       handle();
                        return;
                }
 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to