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
Issue 86 help link #348
Issue 86 help link #348
Conversation
The impact on API for this unique request is relatively high. |
But FiltersConfigurationDialog is internal so overriding createHelpControl is not an option. |
FiltersConfigurationDialog is flagged as internal, but it's still exported and public. |
I was trying to do it in a way that would not require warning suppression for internal API usage. I want to be sure we don't have to change our implementation again if the API is removed or changed. Also, If FiltersConfigurationDialog is being specialized then MarkerContentGenerator needs to be made available through the MarkerSupportView as its required as an argument in the constructor. This will lead to another internal API usage warning. The pattern I have seen for configuring this dialog has been to do it through extension points, so I was following that. Changing the pattern may lead to more issues that I haven't thought of. |
@mickaelistria This is what I came up with.
No changes to any extension points. What do you think of the suggestion ? I can supply a patch or pr. |
I've looked into more details at the code and there is another possible thing that might work and that would remove some of the changes you mention:
As to ExtendedMarkersView, I think instead of opening several methods as API, you may better instead create a new |
I've found something that works just by adding the new method createFilterConfigurationDialog you suggested.
So just a single API change and a little extra code in the overridden ExtendedMarkersView to create its own button + toolbar |
Great then, let's just add this method as new API, it's both simple and powerful enough. |
Will I create a new pr or just update this one ? |
85ef612
to
5c63d16
Compare
5c63d16
to
d3e8043
Compare
@mickaelistria I updated the pr with the change we discussed. Also added a couple of tests that demonstrate how to use the new method to add a help link. |
d3e8043
to
0c0da7e
Compare
Thank you! |
This is a fix for #86