Author: mmichaud
Date: 2009-03-20 09:50:47 -0700 (Fri, 20 Mar 2009)
New Revision: 16317

Removed:
   
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/utils/ChooseFilePanel.java
Log:


Deleted: 
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/utils/ChooseFilePanel.java
===================================================================
--- 
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/utils/ChooseFilePanel.java
   2009-03-20 16:50:27 UTC (rev 16316)
+++ 
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/utils/ChooseFilePanel.java
   2009-03-20 16:50:47 UTC (rev 16317)
@@ -1,73 +0,0 @@
-package org.cytoscape.work.internal.tunables.utils;
-
-import java.awt.BorderLayout;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.io.File;
-import java.util.ArrayList;
-import javax.swing.JButton;
-import javax.swing.JPanel;
-import javax.swing.JTextField;
-
-import org.cytoscape.io.CyFileFilter;
-
-
-
-public class ChooseFilePanel extends JPanel implements ActionListener{
-
-       /**
-        * 
-        */
-       private static final long serialVersionUID = 1L;
-       JTextField jtf;
-       File[] myNetworkFile;
-       myFile file;
-       java.util.List<String> paths;
-       private CyFileFilter[] tempCFF;
-
-       
-       public ChooseFilePanel(myFile infile){
-       
-               this.file = infile;
-               setLayout(new BorderLayout());
-               tempCFF = file.getCyFileFilter();
-               jtf = new JTextField("Please select a network file...",10);     
-               add(jtf,BorderLayout.WEST);
-               JButton selectbutton = new JButton("select");
-               selectbutton.addActionListener(this);
-               selectbutton.setActionCommand("select");
-               add(selectbutton,BorderLayout.EAST);
-               paths = new ArrayList<String>();
-       }
-       
-       public myFile getFile(){
-               return file;
-       }
-       
-       public void actionPerformed(ActionEvent e) {
-               if(e.getActionCommand().equals("select")){
-//                     myNetworkFile = FileUtil.getFiles(this,"Import Network 
Files", FileUtil.LOAD, tempCFF);
-                       if (myNetworkFile != null) {
-                               /*
-                                * Accept multiple files
-                                */
-                               StringBuffer fileNameSB = new StringBuffer();
-                               StringBuffer tooltip = new StringBuffer();
-                               tooltip.append("<html><body><strong><font 
color=RED>The following files will be loaded:</font></strong><br>");
-
-                               for (int i = 0; i < myNetworkFile.length; i++) {
-                                       
fileNameSB.append(myNetworkFile[i].getAbsolutePath() + ", ");
-                                       tooltip.append("<p>" + 
myNetworkFile[i].getAbsolutePath() + "</p>");
-                                       
paths.add(myNetworkFile[i].getAbsolutePath());
-                               }
-
-                               tooltip.append("</body></html>");
-                               jtf.setText(fileNameSB.toString());
-                               jtf.setToolTipText(tooltip.toString());
-                               file.setFiles(myNetworkFile);
-                               file.setPaths(paths);
-                       }
-               }
-       }
-
-}
\ No newline at end of file


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