| Summary: | "user filters" tabs shouldn't leak to CNF views if ResourceNameRegexpFilter is not active | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Michael Keppler <michael.keppler> |
| Component: | UI | Assignee: | Mickael Istria <mistria> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | loskutov, mistria, twolf |
| Version: | 4.11 | ||
| Target Milestone: | 4.12 M1 | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: |
https://bugs.eclipse.org/bugs/show_bug.cgi?id=226046 https://git.eclipse.org/r/139824 https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=f9e923aa1450388a020f88d1070effeefea24bd7 |
||
| Whiteboard: | |||
|
Description
Michael Keppler
Platforms < 4.11 won't have these user filters at all, so no need to support them. On >= 4.11: 1. The explanatory text seems to be hardcoded? Even in the repositories view it says "create custom resource filters...", which simply makes no sense. 2. Yes, there needs to be a way in plugin.xml to suppress this tab, and we should suppress it in the repositories view. And the way to suppress this tab should be backwards-compatible, i.e., not cause trouble on older Eclipses if the new suppression is in the plugin.xml. (In reply to Michael Keppler from comment #0) > Since 2019-03, common navigator views have an additional tab in the filter > configuration dialog, so called user filters based on regular expressions. > You can see them in the repo views filter menu, when using egit nightly on > recent eclipse. Also check > https://www.eclipse.org/eclipse/news/4.11/platform.php > > Those are somewhat problematic: > * The tab is always there. Other filter dialog tabs can be suppressed via > plugin.xml properties, this one cannot. Bug > * It expects/returns the list of filters as bean class, which has only been > added to the navigator plugin for 2019-03. Possibly a bug, especially because there can be "old" plugins not yet ported to the new API (if there is any). > As a consequence, users can start configuring this in the repo view, and it > has no effect. Bug > We cannot hide it Bug In overall, for me this is just a regression introduced with fix for bug 226046 => moving to platform UI for a fix. Mickael, can you please look at this? Must have is: existing CNF clients should be able to disable the new tab, and if the proper functionality requires some modern API, it should be optional or explicitly requested by a client. It should not appear for existing code and be non-functional. Indeed, the user filter features was initially designed in the scope of resources. The text is hardcoded.
The feature at the moment cannot work on non-IResources. Maybe it could be a possible improvement to implement if there is a use-case for it.
> You can see them in the repo views filter menu, when using egit nightly on recent eclipse
Is this "filter" menu new? I don't see one locally.
About hiding it, it should probably be hidden in case the ResourceContentProvider isn't active on this CNF. I'm not sure how hard to would be to implement, I guess it's mostly a matter of mimicking what's already done in the dialog for "hideExtensionsTab" and have the ResourceContentProvider enablement changing the propertly accordingly.
While I'm available to discuss it and review patches, it's definitely not something I'll be able to work on before weeks.
(In reply to Mickael Istria from comment #4) > Is this "filter" menu new? I don't see one locally. Yes. Install EGit nightly. It defines normal CNF filters for the Git Repositories view, so that "filter" menu is just the standard CNF "Filters and Customization..." CNF menu. New Gerrit change created: https://git.eclipse.org/r/139824 (In reply to Eclipse Genie from comment #6) > New Gerrit change created: https://git.eclipse.org/r/139824 Please give a try to that patch with your local EGit code to verify whether it helps or not. Tested. Works well. See gerrit. Gerrit change https://git.eclipse.org/r/139824 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=f9e923aa1450388a020f88d1070effeefea24bd7 |