Author: kono
Date: 2011-06-28 15:30:36 -0700 (Tue, 28 Jun 2011)
New Revision: 25970

Modified:
   
core3/search-impl/trunk/src/main/java/org/cytoscape/search/internal/ui/EnhancedSearchPanel.java
Log:
Fixed broken source code format.  NO FUNCTIONAL CHANGES.

Modified: 
core3/search-impl/trunk/src/main/java/org/cytoscape/search/internal/ui/EnhancedSearchPanel.java
===================================================================
--- 
core3/search-impl/trunk/src/main/java/org/cytoscape/search/internal/ui/EnhancedSearchPanel.java
     2011-06-28 21:49:15 UTC (rev 25969)
+++ 
core3/search-impl/trunk/src/main/java/org/cytoscape/search/internal/ui/EnhancedSearchPanel.java
     2011-06-28 22:30:36 UTC (rev 25970)
@@ -5,93 +5,92 @@
 import org.cytoscape.search.internal.*;
 import org.cytoscape.work.swing.GUITaskManager;
 
-public class EnhancedSearchPanel extends javax.swing.JPanel{
-       
+public class EnhancedSearchPanel extends javax.swing.JPanel {
+
        private CyApplicationManager netmgr;
        private CyTableManager tableMgr;
        private EnhancedSearch searchMgr;
        private GUITaskManager taskMgr;
-       
-   /** Creates new form NewJPanel */
-   public EnhancedSearchPanel(CyApplicationManager netmgr, CyTableManager 
tableMgr, 
-                  EnhancedSearch searchMgr, GUITaskManager taskMgr) {
-       initComponents();
-       
-       // Turn off this for now, we may need this later
-       this.btnSearch.setVisible(false);
-       this.lbSearch.setVisible(true);
-       
-       this.netmgr = netmgr;
-       this.tableMgr = tableMgr;
-       this.searchMgr = searchMgr;
-       this.taskMgr= taskMgr;
-       // The following is for debug only
-       //this.tfSearchText.setText("TestNodeAttribute1:[0 to 5]");
-   }
 
-   private void btnSearchActionPerformed(java.awt.event.ActionEvent evt) {
-          doSearching();
-   }
+       /** Creates new form NewJPanel */
+       public EnhancedSearchPanel(CyApplicationManager netmgr, CyTableManager 
tableMgr, EnhancedSearch searchMgr,
+                       GUITaskManager taskMgr) {
+               initComponents();
 
-   private void tfSearchTextActionPerformed(java.awt.event.ActionEvent evt) {
-          doSearching();
-   }
+               // Turn off this for now, we may need this later
+               this.btnSearch.setVisible(false);
+               this.lbSearch.setVisible(true);
 
-   // Do searching based on the query string from user on text-field
-   private void doSearching(){
-          if (this.netmgr.getCurrentNetworkView() != null){
-                  String queryStr = this.tfSearchText.getText().trim();
-                  
-                  SearchTaskFactory factory = new 
SearchTaskFactory(this.netmgr.getCurrentNetworkView(), 
-                                  searchMgr,tableMgr, queryStr);
-                  this.taskMgr.execute(factory);                  
-          }
-   }
-   
-   
-   /** This method is called from within the constructor to
-    * initialize the form.
-    * WARNING: Do NOT modify this code. The content of this method is
-    * always regenerated by the Form Editor.
-    */
-   //@SuppressWarnings("unchecked")
-   // <editor-fold defaultstate="collapsed" desc="Generated Code">
-   private void initComponents() {
+               this.netmgr = netmgr;
+               this.tableMgr = tableMgr;
+               this.searchMgr = searchMgr;
+               this.taskMgr = taskMgr;
+               // The following is for debug only
+               // this.tfSearchText.setText("TestNodeAttribute1:[0 to 5]");
+       }
 
-       lbSearch = new javax.swing.JLabel();
-       tfSearchText = new javax.swing.JTextField();
-       btnSearch = new javax.swing.JButton();
+       private void btnSearchActionPerformed(java.awt.event.ActionEvent evt) {
+               doSearching();
+       }
 
-       lbSearch.setText("Search:");
-       lbSearch.setName("lbSearch"); // NOI18N
-       add(lbSearch);
+       private void tfSearchTextActionPerformed(java.awt.event.ActionEvent 
evt) {
+               doSearching();
+       }
 
-       tfSearchText.setToolTipText("Enter search text");
-       tfSearchText.setName("tfSearchText"); // NOI18N
-       tfSearchText.setPreferredSize(new java.awt.Dimension(150, 25));
-       tfSearchText.addActionListener(new java.awt.event.ActionListener() {
-           public void actionPerformed(java.awt.event.ActionEvent evt) {
-               tfSearchTextActionPerformed(evt);
-           }
-       });
-       add(tfSearchText);
+       // Do searching based on the query string from user on text-field
+       private void doSearching() {
+               if (this.netmgr.getCurrentNetworkView() != null) {
+                       String queryStr = this.tfSearchText.getText().trim();
 
-       btnSearch.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
-       btnSearch.setText("Search");
-       btnSearch.setName("btnSearch"); // NOI18N
-       btnSearch.setPreferredSize(new java.awt.Dimension(70, 23));
-       btnSearch.addActionListener(new java.awt.event.ActionListener() {
-           public void actionPerformed(java.awt.event.ActionEvent evt) {
-               btnSearchActionPerformed(evt);
-           }
-       });
-       add(btnSearch);
-   }// </editor-fold>
+                       SearchTaskFactory factory = new 
SearchTaskFactory(this.netmgr.getCurrentNetworkView(), searchMgr, tableMgr,
+                                       queryStr);
+                       this.taskMgr.execute(factory);
+               }
+       }
 
-   // Variables declaration - do not modify
-   private javax.swing.JButton btnSearch;
-   private javax.swing.JLabel lbSearch;
-   private javax.swing.JTextField tfSearchText;
-   // End of variables declaration
+       /**
+        * This method is called from within the constructor to initialize the 
form.
+        * WARNING: Do NOT modify this code. The content of this method is 
always
+        * regenerated by the Form Editor.
+        */
+       // @SuppressWarnings("unchecked")
+       // <editor-fold defaultstate="collapsed" desc="Generated Code">
+       private void initComponents() {
 
+               lbSearch = new javax.swing.JLabel();
+               tfSearchText = new javax.swing.JTextField();
+               btnSearch = new javax.swing.JButton();
+
+               lbSearch.setText("Search:");
+               lbSearch.setName("lbSearch"); // NOI18N
+               add(lbSearch);
+
+               tfSearchText.setToolTipText("Enter search text");
+               tfSearchText.setName("tfSearchText"); // NOI18N
+               tfSearchText.setPreferredSize(new java.awt.Dimension(150, 25));
+               tfSearchText.addActionListener(new 
java.awt.event.ActionListener() {
+                       public void actionPerformed(java.awt.event.ActionEvent 
evt) {
+                               tfSearchTextActionPerformed(evt);
+                       }
+               });
+               add(tfSearchText);
+
+               btnSearch.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
+               btnSearch.setText("Search");
+               btnSearch.setName("btnSearch"); // NOI18N
+               btnSearch.setPreferredSize(new java.awt.Dimension(70, 23));
+               btnSearch.addActionListener(new java.awt.event.ActionListener() 
{
+                       public void actionPerformed(java.awt.event.ActionEvent 
evt) {
+                               btnSearchActionPerformed(evt);
+                       }
+               });
+               add(btnSearch);
+       }// </editor-fold>
+
+       // Variables declaration - do not modify
+       private javax.swing.JButton btnSearch;
+       private javax.swing.JLabel lbSearch;
+       private javax.swing.JTextField tfSearchText;
+       // End of variables declaration
+
 }

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