Community
Participate
Working Groups
Use counter styler in RepositoriesViewLabelProvider to style Tags and Reomtes nodes in Git Repositories view with number of items underneath.
Created attachment 191880 [details] Example counter styling
Fix pushed to: http://egit.eclipse.org/r/2921
(In reply to comment #0) > Use counter styler in RepositoriesViewLabelProvider to style Tags and Reomtes > nodes in Git Repositories view with number of items underneath. I'd like to challenge the use case: what is the added value for the user of the view to see the number of tags and remotes? They already have the "hasChildren" indicator next to the respective node, so they can already see whether there are tags or remotes and we should be careful not to clutter the tree with pointless information. (same remarks were added to the Gerrit change).
The counter styler can be used as a form of progressive disclosure to allow users to understand the amount of information that will be displayed upon expansion. The hasChildren indicator isn't always displayed on all platforms all the time, it is sometimes done only on hover. It can also be helpful for operations done outside of Eclipse. For example, a user dropping to the command line to delete a tag will now get feedback on the deletion whether or not they have the Tags node expanded because the counter will decrement.