Community
Participate
Working Groups
Hi, I deactivated some views using activity patterns. Although I can't open them the ShowViewsDialog lists the disabled views. I found the problem in the ContentProvider of the TreeViewer. ViewContentProvider#isFilteredByActivity checks whether the given view id is filtered. However, it uses viewRegistry.getViews() to find the view for the given id. getViews() is already filtering out disabled views, therefore the content provider can't find the view with the id to check and defaults to "unfiltered". I see two solutions: Either extend isFilteredByActivity so it also returns true if the view wasn't found or use the viewRegistry in the methods determineTopLevelElements and determineViewsInCategory instead of application.getDescriptors().
Can you push a Gerrit for your suggestion? See https://www.vogella.com/tutorials/EclipsePlatformDevelopment/article.html#clone-the-selected-eclipse-git-repository
I'd like to, but it seems I am not allowed to push to the repository.
Created attachment 284869 [details] Fix in the ViewContentProvider.
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/172795
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/172795 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=f19560993000ed0c3249872b73d6b566aeeca231
Thanks Hannes!
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/183775
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/183775 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=b015d463a1c8717f33a7ab8ac5e92bd62a930404
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=575329#c9