[repo view] Clean-up integration with the properties view
commit017a3af1da4166f269e06e5055f716523200cfa4
authorThomas Wolf <thomas.wolf@paranor.ch>
Fri, 8 Jan 2021 20:54:07 +0000 (8 21:54 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 12 Jan 2021 21:03:52 +0000 (12 22:03 +0100)
treec61bbada3f47bcbd39ae14d9495584ad97cc5d59
parent689d0bc704142518ae1f9183e032e708a16c4f4f
[repo view] Clean-up integration with the properties view

* Move constants to RepositoryRemotePropertySource
* Use ConfigConstants for "remote" and "url"
* Enable nested properties in RepositoryPropertySourceProvider
* Use a nested ListPropertySource for multi-valued properties
* Fix updating the view toolbar

The net user-visible result is very minor: when there are, e.g.,
multiple fetch RefSpecs, they are now shown as "[spec1, spec2]"
instead of "[spec1][spec2]", and the property is an expandable
node that shows each RefSpec on its own line when expanded.

Change-Id: Ia12ee31469f4192b5a0a3771118accc8297a4521
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/ListPropertySource.java [new file with mode: 0644]
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositoriesView.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositoriesViewContentProvider.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositoryPropertySource.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositoryPropertySourceProvider.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositoryRemotePropertySource.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/command/RemoveRemoteCommand.java