Author: mes
Date: 2010-09-10 12:53:41 -0700 (Fri, 10 Sep 2010)
New Revision: 21795

Modified:
   
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/ListMultipleHandler.java
   
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/ListSingleHandler.java
Log:
properly handling setValue for ListSelection objects

Modified: 
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/ListMultipleHandler.java
===================================================================
--- 
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/ListMultipleHandler.java
     2010-09-10 19:32:42 UTC (rev 21794)
+++ 
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/ListMultipleHandler.java
     2010-09-10 19:53:41 UTC (rev 21795)
@@ -89,11 +89,6 @@
                if (!selectedItems.isEmpty()) {
                        final ListMultipleSelection<T> listMultipleSelection = 
getList();
                        listMultipleSelection.setSelectedValues(selectedItems);
-                       try {
-                               setValue(listMultipleSelection);
-                       } catch(Exception e) {
-                               e.printStackTrace();
-                       }
                }
        }
 

Modified: 
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/ListSingleHandler.java
===================================================================
--- 
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/ListSingleHandler.java
       2010-09-10 19:32:42 UTC (rev 21794)
+++ 
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/ListSingleHandler.java
       2010-09-10 19:53:41 UTC (rev 21795)
@@ -76,7 +76,6 @@
                        try {
                                final ListSingleSelection<T> 
listSingleSelection = (ListSingleSelection<T>)getValue();
                                
listSingleSelection.setSelectedValue(selectedItem);
-                               setValue(listSingleSelection);
                        } catch(final Exception e) {
                                e.printStackTrace();
                        }

-- 
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