Skip to content
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

Merged

Conversation

ruadrian
Copy link
Contributor

  • Allow listening to focus-within events
  • Supply a selection provider for integration with the Eclipse selection service
  • Allow identifying microfrontend views, externally

Review: gilles.iachelini@sbb.ch

* 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);
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

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?
Copy link
Contributor

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.

iachelini
iachelini previously approved these changes Apr 19, 2024
@ruadrian ruadrian force-pushed the feature/aruc/mark-microfrontend-view-editor-parts-2 branch from fcc585a to 46c38a0 Compare April 19, 2024 16:25
 * Allow listening to focus-within events
 * Supply a selection provider for integration with the Eclipse
   selection service
 * Allow identifying microfrontend views, externally
@ruadrian ruadrian force-pushed the feature/aruc/mark-microfrontend-view-editor-parts-2 branch from 46c38a0 to 010f1a2 Compare April 19, 2024 16:57
@ruadrian ruadrian requested a review from iachelini April 19, 2024 16:57
@iachelini iachelini merged commit e493d37 into master Apr 20, 2024
3 checks passed
@iachelini iachelini deleted the feature/aruc/mark-microfrontend-view-editor-parts-2 branch April 20, 2024 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants