jythonshell.java

来自「Python Development Environment (Python I」· Java 代码 · 共 35 行

JAVA
35
字号
/*
 * Created on 13/08/2005
 */
package org.python.pydev.editor.codecompletion.shell;

import java.io.IOException;

import org.eclipse.core.runtime.CoreException;
import org.python.copiedfromeclipsesrc.JDTNotAvailableException;
import org.python.pydev.core.REF;
import org.python.pydev.plugin.PydevPlugin;
import org.python.pydev.runners.SimpleJythonRunner;
import org.python.pydev.runners.SimplePythonRunner;

public class JythonShell extends AbstractShell{

    public JythonShell() throws IOException, CoreException {
        super(PydevPlugin.getScriptWithinPySrc("pycompletionserver.py"));
    }
    

    @Override
    protected synchronized String createServerProcess(int pWrite, int pRead) throws IOException, JDTNotAvailableException {
        String args = pWrite+" "+pRead;
        String script = REF.getFileAbsolutePath(serverFile);
        String executableStr = SimpleJythonRunner.makeExecutableCommandStr(script);
        executableStr += " "+args;
        process = new SimplePythonRunner().createProcess(executableStr, serverFile.getParentFile());
        
        return executableStr;
    }


}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?