X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=bundles%2Forg.simantics.debug.browser%2Fsrc%2Forg%2Fsimantics%2Fdebug%2Fbrowser%2Finternal%2FSCL.java;h=a539b42bd0cc038e47b9f9cbf8b73da3f1977959;hb=refs%2Fchanges%2F38%2F238%2F2;hp=8c529b03f6a0f14532a774c28e45401864e5dd20;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.debug.browser/src/org/simantics/debug/browser/internal/SCL.java b/bundles/org.simantics.debug.browser/src/org/simantics/debug/browser/internal/SCL.java index 8c529b03f..a539b42bd 100644 --- a/bundles/org.simantics.debug.browser/src/org/simantics/debug/browser/internal/SCL.java +++ b/bundles/org.simantics.debug.browser/src/org/simantics/debug/browser/internal/SCL.java @@ -1,46 +1,46 @@ -/******************************************************************************* - * Copyright (c) 2016 Association for Decentralized Information Management - * in Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * THTH ry - initial API and implementation - *******************************************************************************/ -package org.simantics.debug.browser.internal; - -import java.net.URL; - -import org.simantics.scl.runtime.reporting.SCLReporting; - -/** - * @author Tuukka Lehtonen / Semantum Oy - */ -public class SCL { - - public static void startDebugServer() throws Exception { - Activator activator = Activator.getDefault(); - DebugBrowserServer server = activator.getDebugServer(); - if (server == null) { - server = activator.startDebugServer(); - SCLReporting.print("Started debug server at " + server.getURL()); - } else { - SCLReporting.print("Debug server is already running at " + server.getURL()); - } - } - - public static void stopDebugServer() throws Exception { - Activator activator = Activator.getDefault(); - DebugBrowserServer server = activator.getDebugServer(); - if (server != null) { - URL url = server.getURL(); - activator.stopDebugServer(); - SCLReporting.print("Stopped debug server that was running at " + url); - } else { - SCLReporting.print("Debug server is not running."); - } - } - -} +/******************************************************************************* + * Copyright (c) 2016 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * THTH ry - initial API and implementation + *******************************************************************************/ +package org.simantics.debug.browser.internal; + +import java.net.URL; + +import org.simantics.scl.runtime.reporting.SCLReporting; + +/** + * @author Tuukka Lehtonen / Semantum Oy + */ +public class SCL { + + public static void startDebugServer() throws Exception { + Activator activator = Activator.getDefault(); + DebugBrowserServer server = activator.getDebugServer(); + if (server == null) { + server = activator.startDebugServer(); + SCLReporting.print("Started debug server at " + server.getURL()); + } else { + SCLReporting.print("Debug server is already running at " + server.getURL()); + } + } + + public static void stopDebugServer() throws Exception { + Activator activator = Activator.getDefault(); + DebugBrowserServer server = activator.getDebugServer(); + if (server != null) { + URL url = server.getURL(); + activator.stopDebugServer(); + SCLReporting.print("Stopped debug server that was running at " + url); + } else { + SCLReporting.print("Debug server is not running."); + } + } + +}