This works [message #284477] |
Tue, 26 April 2005 06:22 |
Eclipse User |
|
|
|
Originally posted by: dan.vaum.net
This is a multi-part message in MIME format.
------=_NextPart_000_0026_01C54A62.FECAA130
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Display dysplay =3D ...obtain display;
display.syncExec(
new Runnable() {
public void run() {
...your code here...
}
}
);
....for UI actions from a non UI thread.
------=_NextPart_000_0026_01C54A62.FECAA130
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2627" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DCourier size=3D2>Display dysplay =3D ...obtain =
display;</FONT></DIV>
<DIV><FONT face=3DCourier size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier size=3D2>display.syncExec(</FONT></DIV>
<DIV><FONT face=3DCourier =
size=3D2><BR> new=20
Runnable() {<BR> public void =
run()=20
{<BR> ...your code=20
here...</FONT></DIV>
<DIV><FONT face=3DCourier=20
size=3D2> } </FONT></DIV><FONT=20
face=3DCourier size=3D2>
<DIV><FONT =
face=3DArial></FONT><BR> } </DIV>
<DIV>);</DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial></FONT> </DIV>
<DIV><FONT face=3DArial>...for UI actions from a non UI=20
thread.</FONT></FONT></DIV></BODY></HTML>
------=_NextPart_000_0026_01C54A62.FECAA130--
|
|
|
Powered by
FUDForum. Page generated in 0.05103 seconds