1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 14:55:41 +02:00

append output updates for refresh even when a refresh is pending

This commit is contained in:
David McKnight 2006-05-09 18:51:05 +00:00
parent 6de300e678
commit 94009ae3e0
2 changed files with 23 additions and 0 deletions

View file

@ -45,6 +45,25 @@ public class OutputRefreshJob extends UIJob
_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()
{
return _isComplete;

View file

@ -93,6 +93,10 @@ public class ServiceCommandShell extends RemoteCommandShell implements IServiceC
_lastRefreshJob = new OutputRefreshJob(this, outputs, false);
_lastRefreshJob.schedule();
}
else
{
_lastRefreshJob.addOutputs(outputs);
}
}