Author: mmichaud
Date: 2009-04-02 07:58:27 -0700 (Thu, 02 Apr 2009)
New Revision: 16424

Modified:
   
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/gui/BooleanHandler.java
   
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/gui/FileHandler.java
   
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/gui/URLHandler.java
Log:


Modified: 
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/gui/BooleanHandler.java
===================================================================
--- 
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/gui/BooleanHandler.java
 2009-04-02 14:58:08 UTC (rev 16423)
+++ 
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/gui/BooleanHandler.java
 2009-04-02 14:58:27 UTC (rev 16424)
@@ -31,7 +31,7 @@
                        jcb.setSelected(myBoolean.booleanValue());
                        JLabel label = new JLabel(t.description());
                        label.setFont(new Font(null, Font.PLAIN,12));
-                       //jcb.addActionListener(this);
+                       jcb.addActionListener(this);
                        panel.add(label,BorderLayout.WEST);
                        panel.add( jcb ,BorderLayout.EAST);
                } catch (Exception e) { e.printStackTrace(); }
@@ -39,7 +39,6 @@
 
        public void handle() {
                try {
-                       System.out.println("dddddddddddddddddd");
                f.set(o,jcb.isSelected());
                } catch (Exception e) { e.printStackTrace(); }
        }

Modified: 
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/gui/FileHandler.java
===================================================================
--- 
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/gui/FileHandler.java
    2009-04-02 14:58:08 UTC (rev 16423)
+++ 
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/gui/FileHandler.java
    2009-04-02 14:58:27 UTC (rev 16424)
@@ -9,12 +9,11 @@
 
 import org.cytoscape.work.AbstractGuiHandler;
 import org.cytoscape.work.Tunable;
-import org.cytoscape.work.util.myFile;
 
 public class FileHandler extends AbstractGuiHandler {
 
        JButton button;
-       myFile myfile;
+       File myfile;
        JFileChooser fileChooser;
        JTextField path;
        boolean filechoosen;
@@ -25,16 +24,16 @@
                fileChooser = new JFileChooser();
 
                try{
-                       this.myfile=(myFile)f.get(o);
+                       this.myfile=(File)f.get(o);
                }catch(Exception e){e.printStackTrace();}
                
-               panel = new JPanel(new BorderLayout());
-               path = new JTextField("File: ",10);
-               path.setFont(new Font(null, Font.PLAIN,12));
-               panel.add(path,BorderLayout.WEST);
+               panel.add(new JLabel("Path :"));
+               path = new JTextField("select file",12);
+               path.setFont(new Font(null, Font.ITALIC,10));
+               panel.add(path);
                button = new JButton("Select File...");
                button.addActionListener(this);
-               panel.add(button,BorderLayout.EAST);            
+               panel.add(button);
        }
 
        public void handle() {
@@ -42,15 +41,17 @@
                        int ret = fileChooser.showOpenDialog(null);
                        if (ret == JFileChooser.APPROVE_OPTION) {
                                File file = fileChooser.getSelectedFile();
-                               try{
-                                       if ( file != null ) {
+                               if ( file != null ) {
                                        //myfile = new 
File(file.getAbsolutePath());
 //                                     System.out.println("path3 = 
"+myfile.getAbsolutePath());
-                                       myfile.setFile(file);
-                                       f.set(o,myfile);
-                                       path.setText("File: " + 
myfile.getPath());
-                                       }
-                               }catch (Exception e){}
+                                       //myfile.setFile(file);
+                                       try{
+                                               f.set(o,file);
+                                               System.out.println("File = 
"+file);
+                                       }catch (Exception 
e){e.printStackTrace();}
+                               }
+                               path.setFont(new Font(null, Font.PLAIN,10));
+                               path.setText(file.getAbsolutePath());
                        }
                }
                filechoosen=true;

Modified: 
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/gui/URLHandler.java
===================================================================
--- 
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/gui/URLHandler.java
     2009-04-02 14:58:08 UTC (rev 16423)
+++ 
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/gui/URLHandler.java
     2009-04-02 14:58:27 UTC (rev 16424)
@@ -17,15 +17,14 @@
 //import org.cytoscape.property.internal.BookmarkCyProperty;
 import org.cytoscape.work.AbstractGuiHandler;
 import org.cytoscape.work.Tunable;
+//import org.cytoscape.property.internal.*;
 
-//import cytoscape.Cytoscape;
 
-
-
 public class URLHandler extends AbstractGuiHandler {
 
        URL url;
        
+       //Bookmarks theBookmarks=null;
        //CyProperty theBookmarks = null; // get it from session
        String bookmarkCategory = "network";
        String urlstr;
@@ -40,7 +39,6 @@
                        this.url= (URL) f.get(o);
                }catch(Exception e){e.printStackTrace();}
 
-
                //theBookmarks = Cytoscape.;
                 //if theBookmarks doesnot exist, create an empty one
                //if (theBookmarks == null) {


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