Author: pwang
Date: 2011-11-08 16:05:59 -0800 (Tue, 08 Nov 2011)
New Revision: 27435

Modified:
   
csplugins/trunk/ucsd/pwang/jActiveModules-impl/src/main/java/csplugins/jActiveModules/ActivePaths.java
Log:
change the scope of a variable

Modified: 
csplugins/trunk/ucsd/pwang/jActiveModules-impl/src/main/java/csplugins/jActiveModules/ActivePaths.java
===================================================================
--- 
csplugins/trunk/ucsd/pwang/jActiveModules-impl/src/main/java/csplugins/jActiveModules/ActivePaths.java
      2011-11-09 00:02:50 UTC (rev 27434)
+++ 
csplugins/trunk/ucsd/pwang/jActiveModules-impl/src/main/java/csplugins/jActiveModules/ActivePaths.java
      2011-11-09 00:05:59 UTC (rev 27435)
@@ -80,7 +80,6 @@
        protected JMenu expressionConditionsMenu;
        protected String currentCondition = "none";
        protected Component[] activePaths;
-       private Vector<Component> activePathsVect= new Vector<Component>();
        
        protected String[] attrNames;
        protected static boolean activePathsFindingIsAvailable;
@@ -191,20 +190,17 @@
        }
 
        public void run(TaskMonitor taskMonitor) {
-
-//             System.out.println("\nEntering ActivePaths.run()....");
-//
-//             
System.out.println("\napfParams.toString()=\n"+apfParams.toString()+"\n");
-
                
            System.gc();
                //long start = System.currentTimeMillis();
                HashMap expressionMap = generateExpressionMap();
 
+               Vector<Component> activePathsVect= new Vector<Component>();
+
                // run the path finding algorithm
                final ActivePathsFinder apf =
                        new ActivePathsFinder(expressionMap, attrNames, 
cyNetwork, apfParams,
-                                             randomize ? null : mainFrame, 
parentUI, this.activePathsVect);
+                                             randomize ? null : mainFrame, 
parentUI, activePathsVect);
                
                //activePaths = apf.findActivePaths();
                   
@@ -214,7 +210,7 @@
                activePaths = new Component[activePathsVect.size()];
                for (int i=0; i< activePathsVect.size(); i++){
                        activePaths[i] = activePathsVect.get(i);
-               }               
+               }                               
                
                // create nested networks
                //1 . create subnetwork for each path

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