Author: mmichaud
Date: 2009-04-16 10:15:07 -0700 (Thu, 16 Apr 2009)
New Revision: 16601

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


Modified: 
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/GuiTunableInterceptor.java
===================================================================
--- 
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/GuiTunableInterceptor.java
   2009-04-16 16:02:17 UTC (rev 16600)
+++ 
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/GuiTunableInterceptor.java
   2009-04-16 17:15:07 UTC (rev 16601)
@@ -29,7 +29,7 @@
        private Component parent=null;
        private Map<java.util.List<Guihandler>,JPanel> panelMap;
        private java.util.List<Guihandler> lh;
-       private boolean out;
+       private boolean newValuesSet;
        private JFrame frame = new JFrame("Set Parameters");
        private JPanel panel = new JPanel();
        private Object[] objs;
@@ -122,7 +122,7 @@
                if(parent==null){
                        displayOptionPanel();
 //                     preparePanel();displayPanel();
-                       return out;
+                       return newValuesSet;
                }
                else{
                        int nbPanel = ((Container) 
parent).getComponentCount()-1;
@@ -230,7 +230,7 @@
                                 }
                        }
                        if(valid==null){
-                               out = true;
+                               newValuesSet = true;
                        }
                        else{
                                JOptionPane.showMessageDialog(new 
JFrame(),valid,"TunableValidator problem",JOptionPane.ERROR_MESSAGE);
@@ -238,7 +238,7 @@
                                displayOptionPanel();
                        }
                }
-               else out = false;
+               else newValuesSet = false;
        }
        
        
@@ -254,11 +254,11 @@
                                                
if(interfaces[i].equals(TunableValidator.class)) 
valid=((TunableValidator)o).validate();
                                         }
                                }
-                               if(valid==null){out = true;frame.dispose();}
+                               if(valid==null){newValuesSet = 
true;frame.dispose();}
                                else{JOptionPane.showMessageDialog(new 
JFrame(),valid,"TunableValidator 
problem",JOptionPane.ERROR_MESSAGE);displayPanel();}
                        }
                        else if(ae.getActionCommand().equals("cancel")){
-                               out = false;
+                               newValuesSet = false;
                                frame.dispose();
                        }
                }


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