Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » Focus Notification
Focus Notification [message #576587] Sun, 23 May 2010 13:00 Go to next message
Eclipse UserFriend
Hi,

please pardon me about this question, but how is a e4 view is to be notified about having focus?

I've seen the IFocusable interface in org.eclipse.e4.workbench.ui.behaviors, but how is the setFocus() method getting called ?
Do I need to implement my own IPartListener?

Sebastian
Re: Focus Notification [message #576601 is a reply to message #576587] Mon, 24 May 2010 05:34 Go to previous message
Eclipse UserFriend
Hi,

I think the IFocusable interface (Could you file a bug that we remove it
from the sources please) is a left over from 0.9. I think that there are
2 possibilities:

a) By registering an IPartListener on the EPartService
b) By getting the IServiceConstants.ACTIVE_PART injected into your
component and checking if the MPart passed is you.

I would have expected that one could also get this information by
subscribing to the EventBus but when looking at the implementation it
looks like this not supported there yet.

Tom

Am 23.05.10 19:00, schrieb Sebastian:
> Hi,
>
> please pardon me about this question, but how is a e4 view is to be
> notified about having focus?
>
> I've seen the IFocusable interface in
> org.eclipse.e4.workbench.ui.behaviors, but how is the setFocus() method
> getting called ?
> Do I need to implement my own IPartListener?
>
> Sebastian
Previous Topic:E4 versus E3 for Eclipse applications
Next Topic:Focus Notification
Goto Forum:
  


Current Time: Tue Jul 22 19:18:54 EDT 2025

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

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

Back to the top