1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-25 18:05:33 +02:00

[214378] don't mark as finished until we have the results

This commit is contained in:
David McKnight 2008-01-10 19:11:10 +00:00
parent 5ba8f2dcc4
commit a16c3deacc

View file

@ -89,7 +89,19 @@ public class DStoreSearchService extends AbstractDStoreService implements ISearc
String statusStr = status.getName();
if (statusStr.equals("done")) //$NON-NLS-1$
{
config.setStatus(IHostSearchConstants.FINISHED);
if (status.getNestedSize() > 0){
config.setStatus(IHostSearchConstants.FINISHED);
}
else { // need to wait until we have all results on client
try
{
wait(2000);
}
catch (Exception e)
{
}
config.setStatus(IHostSearchConstants.FINISHED);
}
}
else if (statusStr.equals("cancelled")) //$NON-NLS-1$
{