blob: a38acc41f648b8730b26abf97d60f2559286190d [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2016 IBM Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.wst.jsdt.js.node.runtime;
import org.eclipse.wst.jsdt.core.runtime.AbstractJSRuntimeInstall;
import org.eclipse.wst.jsdt.core.runtime.IJSRunner;
import org.eclipse.wst.jsdt.core.runtime.IJSRuntimeType;
/**
* @author "Adalberto Lopez Venegas (adalbert)"
*/
public class NodeJsInstall extends AbstractJSRuntimeInstall{
public NodeJsInstall(IJSRuntimeType runtimeType, String id) {
super(runtimeType, id);
}
private IJSRunner runner;
@Override
public IJSRunner getJSRunner(String mode) {
if (runner == null) {
runner = new NodeJsRunner(this);
}
return runner;
}
}