Author: pwang
Date: 2011-07-14 12:37:42 -0700 (Thu, 14 Jul 2011)
New Revision: 26182

Modified:
   
core3/core-task-impl/trunk/src/main/java/org/cytoscape/task/internal/proxysettings/ProxySettingsTaskFactory.java
Log:
Create task instance only when needed

Modified: 
core3/core-task-impl/trunk/src/main/java/org/cytoscape/task/internal/proxysettings/ProxySettingsTaskFactory.java
===================================================================
--- 
core3/core-task-impl/trunk/src/main/java/org/cytoscape/task/internal/proxysettings/ProxySettingsTaskFactory.java
    2011-07-14 19:15:11 UTC (rev 26181)
+++ 
core3/core-task-impl/trunk/src/main/java/org/cytoscape/task/internal/proxysettings/ProxySettingsTaskFactory.java
    2011-07-14 19:37:42 UTC (rev 26182)
@@ -8,13 +8,15 @@
 
 
 public class ProxySettingsTaskFactory implements TaskFactory {
-       ProxySettingsTask pst;
+       private TaskManager taskManager;
+       private StreamUtil streamUtil;
        
        public ProxySettingsTaskFactory(TaskManager taskManager, StreamUtil 
streamUtil) {
-               this.pst = new ProxySettingsTask(taskManager, streamUtil);
+               this.taskManager = taskManager;
+               this.streamUtil = streamUtil;
        }
 
        public TaskIterator getTaskIterator() {
-               return new TaskIterator(pst);
+               return new TaskIterator(new ProxySettingsTask(taskManager, 
streamUtil));
        }
 }

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