-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(scion-rcp): introduce microfrontend view API #78
feat(scion-rcp): introduce microfrontend view API #78
Conversation
* the listener that will receive the focus-within events, not null | ||
* @return a disposable that can be used to dispose the listener registration | ||
*/ | ||
IDisposable onFocusWithin(FocusWithinListener listener); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I<Disposable, but FocusWithinListener
Do we stick to the I-prefix only for internal interfaces? Or not at all. I am not sure really... we haven't created the coding guidelines yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, yeah, we do not seem to apply this I...
interface naming pattern, consistently. I just looked at the names of the other classes 'close to' the implementation, e.g., there is a LoadListener
where I defined the FocusWithinListener
. I can change it, if you wish.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Naah, lets rather force the creation of the guidelines, then clean up all in one commit.
@Override | ||
public void setSelection(final ISelection selection) { | ||
this.currentSelection = selection; | ||
// TODO: Should we only fire a selection changed event if the selection has actually changed? How to compare selections? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should "fire" always, but consumers are responsible to decide to process the event or not.
I think in RCP there is also this ".doit" attribute. With that I think you are able to decide as event-source whether the event should be fired or not.
fcc585a
to
46c38a0
Compare
* Allow listening to focus-within events * Supply a selection provider for integration with the Eclipse selection service * Allow identifying microfrontend views, externally
46c38a0
to
010f1a2
Compare
Review: gilles.iachelini@sbb.ch