mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 23:05:47 +02:00
append output updates for refresh even when a refresh is pending
This commit is contained in:
parent
6de300e678
commit
94009ae3e0
2 changed files with 23 additions and 0 deletions
|
@ -45,6 +45,25 @@ public class OutputRefreshJob extends UIJob
|
||||||
_outputs = outputs;
|
_outputs = outputs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void addOutputs(IRemoteOutput[] outputs)
|
||||||
|
{
|
||||||
|
IRemoteOutput[] oldOutputs = _outputs;
|
||||||
|
int total = oldOutputs.length + outputs.length;
|
||||||
|
IRemoteOutput[] newOutputs = new IRemoteOutput[total];
|
||||||
|
int k = 0;
|
||||||
|
for (int i = 0; i < oldOutputs.length; i++)
|
||||||
|
{
|
||||||
|
newOutputs[k] = oldOutputs[i];
|
||||||
|
k++;
|
||||||
|
}
|
||||||
|
for (int j = 0; j < outputs.length; j++)
|
||||||
|
{
|
||||||
|
newOutputs[k] = outputs[j];
|
||||||
|
k++;
|
||||||
|
}
|
||||||
|
_outputs = newOutputs;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isComplete()
|
public boolean isComplete()
|
||||||
{
|
{
|
||||||
return _isComplete;
|
return _isComplete;
|
||||||
|
|
|
@ -93,6 +93,10 @@ public class ServiceCommandShell extends RemoteCommandShell implements IServiceC
|
||||||
_lastRefreshJob = new OutputRefreshJob(this, outputs, false);
|
_lastRefreshJob = new OutputRefreshJob(this, outputs, false);
|
||||||
_lastRefreshJob.schedule();
|
_lastRefreshJob.schedule();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_lastRefreshJob.addOutputs(outputs);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue