package org.cytoscape.task.internal.help;

/*
 * #%L
 * Cytoscape Core Task Impl (core-task-impl)
 * $Id:$
 * $HeadURL:$
 * %%
 * Copyright (C) 2006 - 2013 The Cytoscape Consortium
 * %%
 * This program 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 (at your option) any later version.
 * 
 * This program 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.  See the
 * GNU General Lesser Public License for more details.
 * 
 * You should have received a copy of the GNU General Lesser Public 
 * License along with this program.  If not, see
 * <http://www.gnu.org/licenses/lgpl-2.1.html>.
 * #L%
 */
 

import org.cytoscape.service.util.CyServiceRegistrar;
import org.cytoscape.work.TaskIterator;
import org.cytoscape.work.AbstractTaskFactory;


public class HelpTaskFactory extends AbstractTaskFactory {
    private final CyServiceRegistrar registrar;

	public HelpTaskFactory(final CyServiceRegistrar serviceRegistrar) {
		super();
		registrar = serviceRegistrar;
	}

	public TaskIterator createTaskIterator() {
		return new TaskIterator(new HelpTask(registrar,"http://www.nytimes.com"));
	} 
}

package org.cytoscape.task.internal.help;

/*
 * #%L
 * Cytoscape Core Task Impl (core-task-impl)
 * $Id:$
 * $HeadURL:$
 * %%
 * Copyright (C) 2006 - 2013 The Cytoscape Consortium
 * %%
 * This program 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 (at your option) any later version.
 * 
 * This program 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.  See the
 * GNU General Lesser Public License for more details.
 * 
 * You should have received a copy of the GNU General Lesser Public 
 * License along with this program.  If not, see
 * <http://www.gnu.org/licenses/lgpl-2.1.html>.
 * #L%
 */
 

import org.cytoscape.service.util.CyServiceRegistrar;
import org.cytoscape.work.TaskIterator;
import org.cytoscape.work.AbstractTaskFactory;


public class HelpTaskFactory extends AbstractTaskFactory {
    private final CyServiceRegistrar registrar;

	public HelpTaskFactory(final CyServiceRegistrar serviceRegistrar) {
		super();
		registrar = serviceRegistrar;
	}

	public TaskIterator createTaskIterator() {
		return new TaskIterator(new HelpTask(registrar,"http://manual.cytoscape.org/en/3.4.0/Quick_Tour_of_Cytoscape.html"));
	} 
}

add HelpTaskFactory to put help button in toolbar