Author: jgao
Date: 2010-11-22 13:15:51 -0800 (Mon, 22 Nov 2010)
New Revision: 22975

Modified:
   
csplugins/trunk/soc/jgao/IDMapping/src/csplugins/id/mapping/CyThesaurusPlugin.java
Log:
CyThesaurus: disabling/removing automatic bridgerest connections

Modified: 
csplugins/trunk/soc/jgao/IDMapping/src/csplugins/id/mapping/CyThesaurusPlugin.java
===================================================================
--- 
csplugins/trunk/soc/jgao/IDMapping/src/csplugins/id/mapping/CyThesaurusPlugin.java
  2010-11-22 19:37:43 UTC (rev 22974)
+++ 
csplugins/trunk/soc/jgao/IDMapping/src/csplugins/id/mapping/CyThesaurusPlugin.java
  2010-11-22 21:15:51 UTC (rev 22975)
@@ -133,23 +133,23 @@
             }
         });
 
-        pcs.addPropertyChangeListener(Cytoscape.PREFERENCE_MODIFIED,
-                new PropertyChangeListener() {
-            public void propertyChange(PropertyChangeEvent evt) {
-                if 
((CytoscapeInit.getProperties().getProperty("defaultSpeciesName") == 
evt.getOldValue())
-                    || 
(CytoscapeInit.getProperties().getProperty("defaultSpeciesName") == 
evt.getNewValue())) {
-                    
IDMapperClientManager.registerDefaultClient((String)evt.getNewValue(), 
(String)evt.getOldValue());
-                    IDMapperClientManager.reCache();
-                }
-            }
-        });
+//        pcs.addPropertyChangeListener(Cytoscape.PREFERENCE_MODIFIED,
+//                new PropertyChangeListener() {
+//            public void propertyChange(PropertyChangeEvent evt) {
+//                if 
((CytoscapeInit.getProperties().getProperty("defaultSpeciesName") == 
evt.getOldValue())
+//                    || 
(CytoscapeInit.getProperties().getProperty("defaultSpeciesName") == 
evt.getNewValue())) {
+//                    
IDMapperClientManager.registerDefaultClient((String)evt.getNewValue(), 
(String)evt.getOldValue());
+//                    IDMapperClientManager.reCache();
+//                }
+//            }
+//        });
     }
 
     private void registerDefaultClients() {
         IDMapperClientManager.reloadFromCytoscapeGlobalProperties();
-        if (IDMapperClientManager.countClients()==0) {
-            IDMapperClientManager.registerDefaultClient();
-        }
+//        if (IDMapperClientManager.countClients()==0) {
+//            IDMapperClientManager.registerDefaultClient();
+//        }
     }
 
     class IDMappingAction extends CytoscapeAction {
@@ -244,10 +244,10 @@
         }
     }
 
-    private class CyThesurrusServiceAttributeBasedIDMappingAction extends 
CytoscapeAction {
+    private class CyThesurrusServiceAttributeBasedIDMappingActionTest extends 
CytoscapeAction {
 
         public static final String actionName = "Attribute ID mapping service 
example (See Tutorial)";
-        public CyThesurrusServiceAttributeBasedIDMappingAction() {
+        public CyThesurrusServiceAttributeBasedIDMappingActionTest() {
             super(actionName); //TODO rename
         }
 

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