Author: Srinivasarao
Date: 2009-08-06 00:50:51 -0700 (Thu, 06 Aug 2009)
New Revision: 17713

Added:
   
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/ui/
   
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/ui/IndexAndSearchTaskImpl.java
   
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/ui/SearchPluginImpl.java
Removed:
   
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/internal/
   
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/ui/IndexAndSearchTaskImpl.java
   
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/ui/SearchPlugin.java
Modified:
   
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/SearchPlugin.java
   
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/ui/ReindexTaskImpl.java
   
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/ui/SearchPanelImpl.java
   
csplugins/trunk/soc/srinivasarao/search-ui/src/main/resources/META-INF/spring/bundle-context-osgi.xml
   
csplugins/trunk/soc/srinivasarao/search-ui/src/main/resources/META-INF/spring/bundle-context.xml
   
csplugins/trunk/soc/srinivasarao/search-ui/src/main/test/org/cytoscape/search/internal/TestBooleanAttributePanel.java
   
csplugins/trunk/soc/srinivasarao/search-ui/src/main/test/org/cytoscape/search/internal/TestNumericAttributePanel.java
   
csplugins/trunk/soc/srinivasarao/search-ui/src/main/test/org/cytoscape/search/internal/TestSearchPanel.java
   
csplugins/trunk/soc/srinivasarao/search-ui/src/main/test/org/cytoscape/search/internal/TestSearchPanel1.java
   
csplugins/trunk/soc/srinivasarao/search-ui/src/main/test/org/cytoscape/search/internal/TestStringAttributePanel.java
Log:


Modified: 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/SearchPlugin.java
===================================================================
--- 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/SearchPlugin.java
     2009-08-06 07:14:04 UTC (rev 17712)
+++ 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/SearchPlugin.java
     2009-08-06 07:50:51 UTC (rev 17713)
@@ -1,14 +1,11 @@
 package org.cytoscape.search;
 
-import org.cytoscape.session.CyNetworkManager;
 
-import cytoscape.view.CySwingApplication;
+public interface SearchPlugin {
 
-public abstract class SearchPlugin {
+       //protected CySwingApplication desktop;
+       //protected CyNetworkManager netmgr;
 
-       protected CySwingApplication desktop;
-       protected CyNetworkManager netmgr;
-
 /*     public SearchPlugin(CySwingApplication desk, CyNetworkManager nm) {
                this.desktop = desk;
                this.netmgr = nm;
@@ -16,5 +13,5 @@
                System.out.println("I am in SearchPlugin of search-ui");
        }
 */
-       abstract public void initPanel() ;
+       public void initPanel() ;
 }

Copied: 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/ui
 (from rev 17710, 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/internal)


Property changes on: 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/ui
___________________________________________________________________
Name: svn:mergeinfo
   + 

Deleted: 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/ui/IndexAndSearchTaskImpl.java
===================================================================
--- 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/internal/IndexAndSearchTaskImpl.java
  2009-08-06 06:25:16 UTC (rev 17710)
+++ 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/ui/IndexAndSearchTaskImpl.java
        2009-08-06 07:50:51 UTC (rev 17713)
@@ -1,202 +0,0 @@
-/*
- Copyright (c) 2006, 2007, The Cytoscape Consortium (www.cytoscape.org)
-
- The Cytoscape Consortium is:
- - Institute for Systems Biology
- - University of California San Diego
- - Memorial Sloan-Kettering Cancer Center
- - Institut Pasteur
- - Agilent Technologies
-
- This library is free software; you can redistribute it and/or modify it
- under the terms of the GNU Lesser General Public License as published
- by the Free Software Foundation; either version 2.1 of the License, or
- any later version.
-
- This library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF
- MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  The software and
- documentation provided hereunder is on an "as is" basis, and the
- Institute for Systems Biology and the Whitehead Institute
- have no obligations to provide maintenance, support,
- updates, enhancements or modifications.  In no event shall the
- Institute for Systems Biology and the Whitehead Institute
- be liable to any party for direct, indirect, special,
- incidental or consequential damages, including lost profits, arising
- out of the use of this software and its documentation, even if the
- Institute for Systems Biology and the Whitehead Institute
- have been advised of the possibility of such damage.  See
- the GNU Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with this library; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
- */
-
-package org.cytoscape.search.internal;
-
-import java.util.ArrayList;
-import org.apache.lucene.store.RAMDirectory;
-
-import org.cytoscape.search.*;
-import org.cytoscape.model.CyEdge;
-import org.cytoscape.model.CyNetwork;
-import org.cytoscape.model.CyNode;
-import org.cytoscape.work.TaskMonitor;
-
-public class IndexAndSearchTaskImpl extends IndexAndSearchTask {
-
-       /**
-        * Constructor.
-        * 
-        * @param network
-        *            Network to execute query on.
-        * @param query
-        *            Query string.
-        */
-       public IndexAndSearchTaskImpl(CyNetwork network, String query) {
-               super(network, query);
-       }
-
-       /**
-        * Executes Task: IndexAndSearch
-        */
-       public void run(TaskMonitor tm) {
-               this.taskMonitor = tm;
-
-               EnhancedSearchFactoryImpl esf = new EnhancedSearchFactoryImpl();
-               final EnhancedSearch enhancedSearch = esf
-                               .getGlobalEnhancedSearchInstance();
-
-               // Index the given network or use existing index
-               RAMDirectory idx = null;
-
-               String status = enhancedSearch.getNetworkIndexStatus(network);
-               if (status == EnhancedSearch.INDEX_SET) {
-                       idx = enhancedSearch.getNetworkIndex(network);
-               } else {
-                       taskMonitor.setStatusMessage("Indexing network");
-                       EnhancedSearchIndex indexHandler = new 
EnhancedSearchIndexImpl(
-                                       network);
-                       idx = indexHandler.getIndex();
-                       enhancedSearch.setNetworkIndex(network, idx);
-
-                       if (interrupted) {
-                               return;
-                       }
-               }
-
-               // Execute query
-               taskMonitor.setStatusMessage("Executing query");
-               EnhancedSearchQuery queryHandler = new 
EnhancedSearchQueryImpl(idx,
-                               network);
-               queryHandler.executeQuery(query);
-
-               if (interrupted) {
-                       return;
-               }
-
-               int hitCount = queryHandler.getHitCount();
-               if (hitCount == 0) {
-                       System.out.println("No hits. ");
-                       return;
-               }
-               System.out.println("There are " + hitCount + " hits.");
-               taskMonitor.setStatusMessage("Displaying " + hitCount + " 
hits");
-
-               int numCompleted = 0;
-               ArrayList<CyNode> nodeList = queryHandler.getNodeHits();
-               numCompleted = 50;
-               ArrayList<CyEdge> edgeList = queryHandler.getEdgeHits();
-
-               int percentCompleted = (numCompleted * 100 / hitCount);
-               taskMonitor.setProgress(percentCompleted);
-
-       }
-
-       /**
-        * DOCUMENT ME!
-        */
-       public void halt() {
-               this.interrupted = true;
-       }
-
-       public void cancel() {
-               this.interrupted = true;
-       }
-
-       /**
-        * Sets the TaskMonitor.
-        * 
-        * @param taskMonitor
-        *            TaskMonitor Object.
-        * @throws IllegalThreadStateException
-        *             Illegal Thread State.
-        */
-       public void setTaskMonitor(TaskMonitor taskMonitor)
-                       throws IllegalThreadStateException {
-               this.taskMonitor = taskMonitor;
-       }
-
-       /**
-        * Gets Title of Task.
-        * 
-        * @return Title of Task.
-        */
-       public String getTitle() {
-               return "Searching the network";
-       }
-
-       public void run() {
-               System.out.println("I am in IndexandSearchTask");
-               EnhancedSearchFactoryImpl esf = new EnhancedSearchFactoryImpl();
-               final EnhancedSearch enhancedSearch = esf
-                               .getGlobalEnhancedSearchInstance();
-
-               // Index the given network or use existing index
-               RAMDirectory idx = null;
-
-               String status = enhancedSearch.getNetworkIndexStatus(network);
-               if (status == EnhancedSearch.INDEX_SET) {
-                       idx = enhancedSearch.getNetworkIndex(network);
-               } else {
-                       // taskMonitor.setStatusMessage("Indexing network");
-                       EnhancedSearchIndex indexHandler = new 
EnhancedSearchIndexImpl(
-                                       network);
-                       idx = indexHandler.getIndex();
-                       enhancedSearch.setNetworkIndex(network, idx);
-
-                       if (interrupted) {
-                               return;
-                       }
-               }
-
-               // Execute query
-               // taskMonitor.setStatusMessage("Executing query");
-               EnhancedSearchQuery queryHandler = new 
EnhancedSearchQueryImpl(idx,
-                               network);
-               queryHandler.executeQuery(query);
-
-               if (interrupted) {
-                       return;
-               }
-
-               int hitCount = queryHandler.getHitCount();
-               if (hitCount == 0) {
-                       System.out.println("No hits. ");
-                       return;
-               }
-               System.out.println("There are " + hitCount + " hits.");
-               // taskMonitor.setStatusMessage("Displaying " + hitCount + " 
hits");
-
-               int numCompleted = 0;
-               ArrayList<CyNode> nodeList = queryHandler.getNodeHits();
-               numCompleted = 50;
-               ArrayList<CyEdge> edgeList = queryHandler.getEdgeHits();
-
-               int percentCompleted = (numCompleted * 100 / hitCount);
-               // taskMonitor.setProgress(percentCompleted);
-
-       }
-
-}
\ No newline at end of file

Copied: 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/ui/IndexAndSearchTaskImpl.java
 (from rev 17712, 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/internal/IndexAndSearchTaskImpl.java)
===================================================================
--- 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/ui/IndexAndSearchTaskImpl.java
                                (rev 0)
+++ 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/ui/IndexAndSearchTaskImpl.java
        2009-08-06 07:50:51 UTC (rev 17713)
@@ -0,0 +1,211 @@
+/*
+ Copyright (c) 2006, 2007, The Cytoscape Consortium (www.cytoscape.org)
+
+ The Cytoscape Consortium is:
+ - Institute for Systems Biology
+ - University of California San Diego
+ - Memorial Sloan-Kettering Cancer Center
+ - Institut Pasteur
+ - Agilent Technologies
+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as published
+ by the Free Software Foundation; either version 2.1 of the License, or
+ any later version.
+
+ This library is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF
+ MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  The software and
+ documentation provided hereunder is on an "as is" basis, and the
+ Institute for Systems Biology and the Whitehead Institute
+ have no obligations to provide maintenance, support,
+ updates, enhancements or modifications.  In no event shall the
+ Institute for Systems Biology and the Whitehead Institute
+ be liable to any party for direct, indirect, special,
+ incidental or consequential damages, including lost profits, arising
+ out of the use of this software and its documentation, even if the
+ Institute for Systems Biology and the Whitehead Institute
+ have been advised of the possibility of such damage.  See
+ the GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with this library; if not, write to the Free Software Foundation,
+ Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+ */
+
+package org.cytoscape.search.internal;
+
+import java.util.ArrayList;
+import org.apache.lucene.store.RAMDirectory;
+
+import org.cytoscape.search.*;
+import org.cytoscape.search.internal.EnhancedSearchFactoryImpl;
+import org.cytoscape.search.internal.EnhancedSearchIndexImpl;
+import org.cytoscape.search.internal.EnhancedSearchQueryImpl;
+import org.cytoscape.model.CyEdge;
+import org.cytoscape.model.CyNetwork;
+import org.cytoscape.model.CyNode;
+import org.cytoscape.work.TaskMonitor;
+
+public class IndexAndSearchTaskImpl implements IndexAndSearchTask {
+
+       private CyNetwork network;
+       private String query;
+       private TaskMonitor taskMonitor;
+       private boolean interrupted = false;
+       
+       /**
+        * Constructor.
+        * 
+        * @param network
+        *            Network to execute query on.
+        * @param query
+        *            Query string.
+        */
+       public IndexAndSearchTaskImpl(CyNetwork network, String query) {
+               this.network = network;
+               this.query = query;
+       }
+
+       /**
+        * Executes Task: IndexAndSearch
+        */
+       public void run(TaskMonitor tm) {
+               this.taskMonitor = tm;
+
+               EnhancedSearchFactoryImpl esf = new EnhancedSearchFactoryImpl();
+               final EnhancedSearch enhancedSearch = esf
+                               .getGlobalEnhancedSearchInstance();
+
+               // Index the given network or use existing index
+               RAMDirectory idx = null;
+
+               String status = enhancedSearch.getNetworkIndexStatus(network);
+               if (status == EnhancedSearch.INDEX_SET) {
+                       idx = enhancedSearch.getNetworkIndex(network);
+               } else {
+                       taskMonitor.setStatusMessage("Indexing network");
+                       EnhancedSearchIndex indexHandler = new 
EnhancedSearchIndexImpl(
+                                       network);
+                       idx = indexHandler.getIndex();
+                       enhancedSearch.setNetworkIndex(network, idx);
+
+                       if (interrupted) {
+                               return;
+                       }
+               }
+
+               // Execute query
+               taskMonitor.setStatusMessage("Executing query");
+               EnhancedSearchQuery queryHandler = new 
EnhancedSearchQueryImpl(idx,
+                               network);
+               queryHandler.executeQuery(query);
+
+               if (interrupted) {
+                       return;
+               }
+
+               int hitCount = queryHandler.getHitCount();
+               if (hitCount == 0) {
+                       System.out.println("No hits. ");
+                       return;
+               }
+               System.out.println("There are " + hitCount + " hits.");
+               taskMonitor.setStatusMessage("Displaying " + hitCount + " 
hits");
+
+               int numCompleted = 0;
+               ArrayList<CyNode> nodeList = queryHandler.getNodeHits();
+               numCompleted = 50;
+               ArrayList<CyEdge> edgeList = queryHandler.getEdgeHits();
+
+               int percentCompleted = (numCompleted * 100 / hitCount);
+               taskMonitor.setProgress(percentCompleted);
+
+       }
+
+       /**
+        * DOCUMENT ME!
+        */
+       public void halt() {
+               this.interrupted = true;
+       }
+
+       public void cancel() {
+               this.interrupted = true;
+       }
+
+       /**
+        * Sets the TaskMonitor.
+        * 
+        * @param taskMonitor
+        *            TaskMonitor Object.
+        * @throws IllegalThreadStateException
+        *             Illegal Thread State.
+        */
+       public void setTaskMonitor(TaskMonitor taskMonitor)
+                       throws IllegalThreadStateException {
+               this.taskMonitor = taskMonitor;
+       }
+
+       /**
+        * Gets Title of Task.
+        * 
+        * @return Title of Task.
+        */
+       public String getTitle() {
+               return "Searching the network";
+       }
+
+       public void run() {
+               System.out.println("I am in IndexandSearchTask");
+               EnhancedSearchFactoryImpl esf = new EnhancedSearchFactoryImpl();
+               final EnhancedSearch enhancedSearch = esf
+                               .getGlobalEnhancedSearchInstance();
+
+               // Index the given network or use existing index
+               RAMDirectory idx = null;
+
+               String status = enhancedSearch.getNetworkIndexStatus(network);
+               if (status == EnhancedSearch.INDEX_SET) {
+                       idx = enhancedSearch.getNetworkIndex(network);
+               } else {
+                       // taskMonitor.setStatusMessage("Indexing network");
+                       EnhancedSearchIndex indexHandler = new 
EnhancedSearchIndexImpl(
+                                       network);
+                       idx = indexHandler.getIndex();
+                       enhancedSearch.setNetworkIndex(network, idx);
+
+                       if (interrupted) {
+                               return;
+                       }
+               }
+
+               // Execute query
+               // taskMonitor.setStatusMessage("Executing query");
+               EnhancedSearchQuery queryHandler = new 
EnhancedSearchQueryImpl(idx,
+                               network);
+               queryHandler.executeQuery(query);
+
+               if (interrupted) {
+                       return;
+               }
+
+               int hitCount = queryHandler.getHitCount();
+               if (hitCount == 0) {
+                       System.out.println("No hits. ");
+                       return;
+               }
+               System.out.println("There are " + hitCount + " hits.");
+               // taskMonitor.setStatusMessage("Displaying " + hitCount + " 
hits");
+
+               int numCompleted = 0;
+               ArrayList<CyNode> nodeList = queryHandler.getNodeHits();
+               numCompleted = 50;
+               ArrayList<CyEdge> edgeList = queryHandler.getEdgeHits();
+
+               int percentCompleted = (numCompleted * 100 / hitCount);
+               // taskMonitor.setProgress(percentCompleted);
+
+       }
+
+}
\ No newline at end of file

Modified: 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/ui/ReindexTaskImpl.java
===================================================================
--- 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/internal/ReindexTaskImpl.java
 2009-08-06 06:25:16 UTC (rev 17710)
+++ 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/ui/ReindexTaskImpl.java
       2009-08-06 07:50:51 UTC (rev 17713)
@@ -41,6 +41,8 @@
 import org.cytoscape.work.Task;
 import org.cytoscape.work.TaskMonitor;
 import org.cytoscape.search.ReindexTask;
+import org.cytoscape.search.internal.EnhancedSearchFactoryImpl;
+import org.cytoscape.search.internal.EnhancedSearchIndexImpl;
 
 public class ReindexTaskImpl extends ReindexTask implements Task {
 

Modified: 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/ui/SearchPanelImpl.java
===================================================================
--- 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/internal/SearchPanelImpl.java
 2009-08-06 06:25:16 UTC (rev 17710)
+++ 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/ui/SearchPanelImpl.java
       2009-08-06 07:50:51 UTC (rev 17713)
@@ -14,6 +14,7 @@
 import org.cytoscape.model.CyDataTable;
 import org.cytoscape.model.CyNetwork;
 import org.cytoscape.search.EnhancedSearch;
+import org.cytoscape.search.internal.EnhancedSearchFactoryImpl;
 import org.cytoscape.search.util.AttributeTypes;
 import org.cytoscape.session.CyNetworkManager;
 

Deleted: 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/ui/SearchPlugin.java
===================================================================
--- 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/internal/SearchPlugin.java
    2009-08-06 06:25:16 UTC (rev 17710)
+++ 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/ui/SearchPlugin.java
  2009-08-06 07:50:51 UTC (rev 17713)
@@ -1,28 +0,0 @@
-package org.cytoscape.search.internal;
-
-import javax.swing.SwingConstants;
-
-import org.cytoscape.session.CyNetworkManager;
-
-import cytoscape.view.CySwingApplication;
-import cytoscape.view.CytoPanel;
-
-public class SearchPlugin {
-
-       private CySwingApplication desktop;
-       private CyNetworkManager netmgr;
-       CytoPanel cp;
-
-       public SearchPlugin(CySwingApplication desk, CyNetworkManager nm) {
-               this.desktop = desk;
-               this.netmgr = nm;
-               initPanel();
-               System.out.println("I am in SearchPlugin of search-ui");
-       }
-
-       public void initPanel() {
-               SearchPanel esp = SearchPanelFactory.getGlobalInstance(netmgr);
-               desktop.getCytoPanel(SwingConstants.EAST).add(esp);
-               
-       }
-}

Copied: 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/ui/SearchPluginImpl.java
 (from rev 17712, 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/internal/SearchPluginImpl.java)
===================================================================
--- 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/ui/SearchPluginImpl.java
                              (rev 0)
+++ 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/java/org/cytoscape/search/ui/SearchPluginImpl.java
      2009-08-06 07:50:51 UTC (rev 17713)
@@ -0,0 +1,26 @@
+package org.cytoscape.search.internal;
+
+import javax.swing.SwingConstants;
+
+import org.cytoscape.search.SearchPlugin;
+import org.cytoscape.session.CyNetworkManager;
+
+import cytoscape.view.CySwingApplication;
+
+public class SearchPluginImpl implements SearchPlugin{
+
+       private CySwingApplication desktop;
+       private CyNetworkManager netmgr;
+       
+       public SearchPluginImpl(CySwingApplication desk, CyNetworkManager nm) {
+               this.desktop = desk;
+               this.netmgr = nm;
+               initPanel();
+               System.out.println("I am in SearchPlugin of search-ui");
+       }
+
+       public void initPanel() {
+               SearchPanel esp = SearchPanelFactory.getGlobalInstance(netmgr);
+               desktop.getCytoPanel(SwingConstants.EAST).add(esp);
+       }
+}

Modified: 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/resources/META-INF/spring/bundle-context-osgi.xml
===================================================================
--- 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/resources/META-INF/spring/bundle-context-osgi.xml
       2009-08-06 07:14:04 UTC (rev 17712)
+++ 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/resources/META-INF/spring/bundle-context-osgi.xml
       2009-08-06 07:50:51 UTC (rev 17713)
@@ -1,31 +1,35 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <beans xmlns="http://www.springframework.org/schema/beans";
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-  xmlns:osgi="http://www.springframework.org/schema/osgi";
-  xsi:schemaLocation="http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:osgi="http://www.springframework.org/schema/osgi";
+       xsi:schemaLocation="http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
                       http://www.springframework.org/schema/osgi 
http://www.springframework.org/schema/osgi/spring-osgi-1.0.xsd";
-  default-lazy-init="false">
+       default-lazy-init="false">
 
-  <!-- definitions using elements of the osgi namespace can be included
-       in this file. There is no requirement to keep these definitions
-       in a separate file if you do not want to. The rationale for 
-       keeping these definitions separate is to facilitate integration
-       testing of the bundle outside of an OSGi container -->
+       <!--
+               definitions using elements of the osgi namespace can be 
included in
+               this file. There is no requirement to keep these definitions in 
a
+               separate file if you do not want to. The rationale for keeping 
these
+               definitions separate is to facilitate integration testing of the
+               bundle outside of an OSGi container
+       -->
 
        <!-- Export Services-->
-               <osgi:service id="SearchPluginService" ref="SearchPlugin" 
-                                         
interface="org.cytoscape.search.SearchPlugin">
-               </osgi:service>
-               <osgi:service id="IndexAndSearchTaskService" 
ref="IndexAndSearchTask"
-                                         
interface="org.cytoscape.search.IndexAndSearchTask">
-               </osgi:service>
+       <!--
+               <osgi:service id="SearchPluginService" ref="SearchPlugin"
+               interface="org.cytoscape.search.SearchPlugin"> </osgi:service>
+       -->
+       <osgi:service id="IndexAndSearchTaskService" ref="IndexAndSearchTask"
+               interface="org.cytoscape.search.IndexAndSearchTask">
+       </osgi:service>
 
        <!-- Import Services -->
-               <osgi:reference id="cyNetworkManagerService" 
-                                               
interface="org.cytoscape.session.CyNetworkManager"/>
-
-   <!-- Import Desktop Service -->
-               <osgi:reference id="cytoscapeDesktopServiceRef" 
-                                               
interface="cytoscape.view.CySwingApplication" />
-               
+       <!--
+               <osgi:reference id="cyNetworkManagerService"
+               interface="org.cytoscape.session.CyNetworkManager"/>
+       -->
+       <!-- Import Desktop Service -->
+       <!--
+               <osgi:reference id="cytoscapeDesktopServiceRef"
+               interface="cytoscape.view.CySwingApplication" />
+       -->
 </beans>

Modified: 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/resources/META-INF/spring/bundle-context.xml
===================================================================
--- 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/resources/META-INF/spring/bundle-context.xml
    2009-08-06 07:14:04 UTC (rev 17712)
+++ 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/resources/META-INF/spring/bundle-context.xml
    2009-08-06 07:50:51 UTC (rev 17713)
@@ -9,11 +9,11 @@
        configuration file so that this file can easily be used
        for integration testing outside of an OSGi environment -->
 
-  <bean name="SearchPlugin" 
class="org.cytoscape.search.internal.SearchPluginImpl" >
+  <!-- <bean name="SearchPlugin" 
class="org.cytoscape.search.internal.SearchPluginImpl" >
                <constructor-arg ref="cytoscapeDesktopServiceRef" />
                <constructor-arg ref="cyNetworkManagerServiceRef" />
   </bean>
-
+       -->
   <bean name="IndexAndSearchTask" 
class="org.cytoscape.search.internal.IndexAndSearchTaskImpl">
   </bean>
 </beans>

Modified: 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/test/org/cytoscape/search/internal/TestBooleanAttributePanel.java
===================================================================
--- 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/test/org/cytoscape/search/internal/TestBooleanAttributePanel.java
       2009-08-06 07:14:04 UTC (rev 17712)
+++ 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/test/org/cytoscape/search/internal/TestBooleanAttributePanel.java
       2009-08-06 07:50:51 UTC (rev 17713)
@@ -5,6 +5,8 @@
 
 import javax.swing.JFrame;
 
+import org.cytoscape.search.ui.BooleanAttributePanel;
+
 public class TestBooleanAttributePanel {
 
        private JFrame jf = new JFrame();

Modified: 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/test/org/cytoscape/search/internal/TestNumericAttributePanel.java
===================================================================
--- 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/test/org/cytoscape/search/internal/TestNumericAttributePanel.java
       2009-08-06 07:14:04 UTC (rev 17712)
+++ 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/test/org/cytoscape/search/internal/TestNumericAttributePanel.java
       2009-08-06 07:50:51 UTC (rev 17713)
@@ -12,6 +12,7 @@
 import org.cytoscape.model.CyNode;
 import org.cytoscape.model.CyRow;
 import org.cytoscape.model.internal.ArrayGraph;
+import org.cytoscape.search.ui.NumericAttributePanel;
 import org.cytoscape.session.CyNetworkManager;
 import org.cytoscape.session.internal.NetworkManager;
 

Modified: 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/test/org/cytoscape/search/internal/TestSearchPanel.java
===================================================================
--- 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/test/org/cytoscape/search/internal/TestSearchPanel.java
 2009-08-06 07:14:04 UTC (rev 17712)
+++ 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/test/org/cytoscape/search/internal/TestSearchPanel.java
 2009-08-06 07:50:51 UTC (rev 17713)
@@ -10,6 +10,8 @@
 import org.cytoscape.model.CyNode;
 import org.cytoscape.model.CyRow;
 import org.cytoscape.model.internal.ArrayGraph;
+import org.cytoscape.search.ui.SearchPanel;
+import org.cytoscape.search.ui.SearchPanelFactory;
 import org.cytoscape.session.CyNetworkManager;
 import org.cytoscape.session.internal.NetworkManager;
 

Modified: 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/test/org/cytoscape/search/internal/TestSearchPanel1.java
===================================================================
--- 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/test/org/cytoscape/search/internal/TestSearchPanel1.java
        2009-08-06 07:14:04 UTC (rev 17712)
+++ 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/test/org/cytoscape/search/internal/TestSearchPanel1.java
        2009-08-06 07:50:51 UTC (rev 17713)
@@ -9,6 +9,8 @@
 import org.cytoscape.model.CyNode;
 import org.cytoscape.model.CyRow;
 import org.cytoscape.model.internal.ArrayGraph;
+import org.cytoscape.search.ui.SearchPanel;
+import org.cytoscape.search.ui.SearchPanelFactory;
 import org.cytoscape.session.CyNetworkManager;
 import org.cytoscape.session.internal.NetworkManager;
 

Modified: 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/test/org/cytoscape/search/internal/TestStringAttributePanel.java
===================================================================
--- 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/test/org/cytoscape/search/internal/TestStringAttributePanel.java
        2009-08-06 07:14:04 UTC (rev 17712)
+++ 
csplugins/trunk/soc/srinivasarao/search-ui/src/main/test/org/cytoscape/search/internal/TestStringAttributePanel.java
        2009-08-06 07:50:51 UTC (rev 17713)
@@ -12,6 +12,7 @@
 import org.cytoscape.model.CyNode;
 import org.cytoscape.model.CyRow;
 import org.cytoscape.model.internal.ArrayGraph;
+import org.cytoscape.search.ui.StringAttributePanel;
 import org.cytoscape.session.CyNetworkManager;
 import org.cytoscape.session.internal.NetworkManager;
 


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