More async calls in SWT tray implementation

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@111 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2007-12-29 19:23:47 +00:00
parent 4867c74956
commit e82280ef02
1 changed files with 11 additions and 1 deletions

View File

@ -139,7 +139,12 @@ public class SwtGatewayTray implements DavGatewayTrayInterface {
final Menu popup = new Menu(shell, SWT.POP_UP);
trayItem.addListener(SWT.MenuDetect, new Listener() {
public void handleEvent(Event event) {
popup.setVisible(true);
display.asyncExec(
new Runnable() {
public void run() {
popup.setVisible(true);
}
});
}
});
@ -163,7 +168,12 @@ public class SwtGatewayTray implements DavGatewayTrayInterface {
defaultItem.setText("Settings...");
defaultItem.addListener(SWT.Selection, new Listener() {
public void handleEvent(Event event) {
display.asyncExec(
new Runnable() {
public void run() {
settingsFrame.setVisible(true);
}
});
}
});