package org.cytoscape.internal.view.help;

import org.cytoscape.application.CyVersion;
import org.cytoscape.service.util.CyServiceRegistrar;
import org.cytoscape.util.swing.OpenBrowser;
import org.cytoscape.work.AbstractTask;
import org.cytoscape.work.TaskMonitor;

/*
 * #%L
 * Cytoscape Swing Application Impl (swing-application-impl)
 * $Id:$
 * $HeadURL:$
 * %%
 * Copyright (C) 2006 - 2016 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%
 */

public class HelpReportABugTask extends AbstractTask {

	private static final String BUG_REPORT_URL = "https://chianti.ucsd.edu/cyto_web/bugreport/bugreport.php";

	private final CyServiceRegistrar serviceRegistrar;

	public HelpReportABugTask(final CyServiceRegistrar serviceRegistrar) {
		this.serviceRegistrar = serviceRegistrar;
	}

	@Override
	public void run(TaskMonitor tm) {
		// get OS string
		String os_str = System.getProperty("os.name") + "_" + System.getProperty("os.version");
		os_str = os_str.replace(" ", "_");
		
		final OpenBrowser openBrowser = serviceRegistrar.getService(OpenBrowser.class);
		final CyVersion cyVersion = serviceRegistrar.getService(CyVersion.class);

		openBrowser.openURL(BUG_REPORT_URL + "?cyversion=" + cyVersion.getVersion() + "&os=" + os_str);
	}
}

@@ -1178,16 +1178,18 @@
 ask %7B%0A%0A%09
+/*
 private 
@@ -1286,16 +1286,115 @@
 t.php%22;%0A
+*/%0A%09private static final String BUG_REPORT_URL = %22https://https://cytoscape.org/bug-report.html%22;%0A%09
 %0A%09privat

Update HelpReportABugTask.java