mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Save documents in EDT in console.
This commit is contained in:
@@ -190,8 +190,13 @@ public class PydevConsoleRunner extends AbstractConsoleRunnerWithHistory<PythonC
|
||||
}
|
||||
|
||||
public void run() {
|
||||
FileDocumentManager.getInstance().saveAllDocuments();
|
||||
|
||||
UIUtil.invokeAndWaitIfNeeded(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
FileDocumentManager.getInstance().saveAllDocuments();
|
||||
}
|
||||
});
|
||||
|
||||
myPorts = findAvailablePorts(getProject(), myConsoleType);
|
||||
|
||||
assert myPorts != null;
|
||||
@@ -336,10 +341,10 @@ public class PydevConsoleRunner extends AbstractConsoleRunnerWithHistory<PythonC
|
||||
commandLine.getParametersList().set(3, "0");
|
||||
|
||||
myCommandLine = commandLine.getCommandLineString();
|
||||
|
||||
|
||||
try {
|
||||
RemoteSdkCredentials remoteCredentials = data.getRemoteSdkCredentials();
|
||||
|
||||
|
||||
RemoteSshProcess remoteProcess =
|
||||
manager.createRemoteProcess(getProject(), remoteCredentials, commandLine, true);
|
||||
|
||||
@@ -349,7 +354,7 @@ public class PydevConsoleRunner extends AbstractConsoleRunnerWithHistory<PythonC
|
||||
remoteProcess.addLocalTunnel(myPorts[0], remoteCredentials.getHost(), remotePorts.first);
|
||||
remoteProcess.addRemoteTunnel(remotePorts.second, "localhost", myPorts[1]);
|
||||
|
||||
|
||||
|
||||
myPydevConsoleCommunication = new PydevConsoleCommunication(getProject(), myPorts[0], remoteProcess, myPorts[1]);
|
||||
return remoteProcess;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user