blob: 6be7dae436da12de4f4fbc624cc6c3fff6044ec1 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005, 2016 IBM Corporation and others.
* 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
*
*******************************************************************************/
package org.eclipse.dltk.python.internal.launching;
import org.eclipse.debug.core.ILaunchManager;
import org.eclipse.dltk.launching.AbstractInterpreterInstall;
import org.eclipse.dltk.launching.IInterpreterInstallType;
import org.eclipse.dltk.launching.IInterpreterRunner;
import org.eclipse.dltk.python.core.PythonNature;
public class GenericPythonInstall extends AbstractInterpreterInstall {
public GenericPythonInstall(IInterpreterInstallType type, String id) {
super(type, id);
}
@Override
public IInterpreterRunner getInterpreterRunner(String mode) {
IInterpreterRunner runner = super.getInterpreterRunner(mode);
if (runner != null) {
return runner;
}
if (mode.equals(ILaunchManager.RUN_MODE)) {
return new PythonInterpreterRunner(this);
}
return null;
}
@Override
public String getNatureId() {
return PythonNature.NATURE_ID;
}
}