| How can I check if a part is active and has the focus? [message #984182] |
Wed, 14 November 2012 08:28  |
Renso Lohuis Messages: 34 Registered: July 2012 |
Member |
|
|
I would like to check if the part is active and has the focus or that a dialog above it has the focus.
This is what I have so far:
@Inject
protected MPart part;
@Inject
protected EPartService partService;
public boolean isActiveAndHasFocus() {
return part == partService.getActivePart();
}
But I don't see any difference if there is a dialog above it (the part will still be active when a dialog shown above it.)
Is there a way to check if the part is active without any dialog above it?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01874 seconds