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:
parent
537c1b9bb0
commit
c6719679dd
2 changed files with 17 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue