package org.cytoscape.plugin.internal;


import java.net.URL;
import java.util.HashSet;
import java.util.Set;

import org.cytoscape.plugin.CyPluginAdapter;
import org.cytoscape.work.TaskFactory;
import org.cytoscape.work.TaskIterator;


public class PluginLoaderTaskFactory implements TaskFactory {
	
	private final CyPluginAdapter adapter;
	
	// Plugin Jar file URLs
	private final Set<URL> urls;

	PluginLoaderTaskFactory(final CyPluginAdapter adapter) {
		this.adapter = adapter;
		urls = new HashSet<URL>();
	}

	public TaskIterator getTaskIterator() {
		return new TaskIterator(new PluginLoaderTask(adapter, urls));
	}
}

@@ -335,16 +335,17 @@
 apter;%0A%09
+ 
 %0A%09// Plu
@@ -364,22 +364,28 @@
  URLs%0A%09p
-rivate
+ublic static
  final S
@@ -396,16 +396,37 @@
 RL%3E urls
+ = new HashSet%3CURL%3E()
 ;%0A%0A%09Plug
@@ -508,37 +508,8 @@
 er;%0A
-%09%09urls = new HashSet%3CURL%3E();%0A
 %09%7D%0A%0A

make URLs static