Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338861 - EModelService#bringToTop(MWindow) doesn't bring the window to the top
Summary: EModelService#bringToTop(MWindow) doesn't bring the window to the top
Status: CLOSED DUPLICATE of bug 391780
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 0.9   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-03 16:43 EST by Brian de Alwis CLA
Modified: 2012-10-25 15:35 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian de Alwis CLA 2011-03-03 16:43:31 EST
BuildId: post 4.1M5, but not quite HEAD.

I'm trying to cause a window to be raised to the top and given focus.  Unfortunately either it doesn't work, or I can't find the right combination of calls to ensure it does.

I've tried calling EModelService.bringToTop(), and MApplication#setSelectedElement(window), but to no avail.

The only way I've found to ensure the window is brought to the top is to call:

		window.setVisible(false);
		window.setVisible(true);

But this does not set focus to window.
Comment 1 Brian de Alwis CLA 2012-10-25 15:35:18 EDT
Most of the discussion is happening on bug 391780

*** This bug has been marked as a duplicate of bug 391780 ***