1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 23:55:26 +02:00

Fix bug 162883 no prompt on Solaris local shell

This commit is contained in:
Martin Oberhuber 2006-11-08 14:45:38 +00:00
parent 537c1b9bb0
commit c6719679dd
2 changed files with 17 additions and 3 deletions

View file

@ -134,11 +134,18 @@ public class LocalServiceCommandShell extends ServiceCommandShell
addOutput(output);
outputs[i] = output;
}
if (_lastRefreshJob == null || _lastRefreshJob.isComplete())
//if (_lastRefreshJob == null || _lastRefreshJob.isComplete())
{
_lastRefreshJob = new OutputRefreshJob(this, outputs, false);
_lastRefreshJob.schedule();
}
/*
else
{
_lastRefreshJob.addOutputs(outputs);
_lastRefreshJob.schedule();
}
*/
}
public void writeToShell(String cmd)

View file

@ -160,12 +160,19 @@ public class SshServiceCommandShell extends ServiceCommandShell implements ISyst
addOutput(output);
outputs.add(output);
}
if (_lastRefreshJob == null || _lastRefreshJob.isComplete())
IRemoteOutput[] remoteOutputs = (IRemoteOutput[])outputs.toArray(new IRemoteOutput[outputs.size()]);
//if (_lastRefreshJob == null || _lastRefreshJob.isComplete())
{
IRemoteOutput[] remoteOutputs = (IRemoteOutput[])outputs.toArray(new IRemoteOutput[outputs.size()]);
_lastRefreshJob = new OutputRefreshJob(this, remoteOutputs, false);
_lastRefreshJob.schedule();
}
/*
else
{
_lastRefreshJob.addOutputs(remoteOutputs);
_lastRefreshJob.schedule();
}
*/
}
/**