mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-06 07:45:50 +02:00
no display on worker job
This commit is contained in:
parent
e8ab4fbef6
commit
f1fadfdab5
1 changed files with 9 additions and 6 deletions
|
@ -1501,13 +1501,16 @@ public class SystemViewRemoteFileAdapter
|
||||||
return totalByteSize;
|
return totalByteSize;
|
||||||
}
|
}
|
||||||
Display display = Display.getCurrent();
|
Display display = Display.getCurrent();
|
||||||
while (display.readAndDispatch());
|
if (display != null)
|
||||||
try
|
|
||||||
{
|
|
||||||
Thread.sleep(100);
|
|
||||||
}
|
|
||||||
catch (Exception e)
|
|
||||||
{
|
{
|
||||||
|
while (display.readAndDispatch());
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(100);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue