Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » This works
This works [message #284477] Tue, 26 April 2005 06:22
Eclipse UserFriend
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>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2>display.syncExec(</FONT></DIV>
<DIV><FONT face=3DCourier =
size=3D2><BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; new=20
Runnable() {<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;public void =
run()=20
{<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;...your code=20
here...</FONT></DIV>
<DIV><FONT face=3DCourier=20
size=3D2> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;} </FONT></DIV><FONT=20
face=3DCourier size=3D2>
<DIV><FONT =
face=3DArial></FONT><BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } </DIV>
<DIV>);</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial>...for UI actions from a non UI=20
thread.</FONT></FONT></DIV></BODY></HTML>

------=_NextPart_000_0026_01C54A62.FECAA130--
Previous Topic:Internationalization (Externalization)
Next Topic:Linking one cheatsheet to another
Goto Forum:
  


Current Time: Sun Jul 13 00:32:02 EDT 2025

Powered by FUDForum. Page generated in 0.05103 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top