|
|
|
|
|
|
|
|
Re: Focusing windows [message #904651 is a reply to message #904496] |
Tue, 28 August 2012 18:04  |
Eclipse User |
|
|
|
okay.. the workaround above doesn't work for me...
instead of that i send a force Focus on the SWT Shell..
MWindow pluginDialog = (MWindow) service.find(LOGIN_WINDOW_NAME, application);
MWindow windowModel = (MWindow) service.find(MAIN_WINDOW_NAME, application);
// close the plugin dialog
pluginDialog.setVisible(false);
pluginDialog.setToBeRendered(false);
pluginDialog.setOnTop(false);
//open main window
service.bringToTop(windowModel);
windowModel.setOnTop(true);
windowModel.setVisible(true);
//works, but dirty :/
((Shell)windowModel.getWidget()).forceActive();
|
|
|
Powered by
FUDForum. Page generated in 0.14456 seconds