Generalize UIUtils.addContentProposalToText a bit more
commitcd3a37d142dd2d991306794bef1360b2859c25a1
authorThomas Wolf <thomas.wolf@paranor.ch>
Sat, 3 Feb 2018 19:33:22 +0000 (3 20:33 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 13 Feb 2018 00:00:58 +0000 (13 01:00 +0100)
treee2d00c5e94c3fb5b705b97f53c3c203a2b5f7fb7
parentb5a31518cdcc36d9b2d4a707d17fd4779419e59f
Generalize UIUtils.addContentProposalToText a bit more

Move the ExplicitContentProposalAdapter from FetchGerritChangePage to
UIUtils, use it, and make addContentProposalToText() return it. Also
add a function parameter to convert the input string into a filtering
pattern.

Use this generalized addContentProposalToText method in
FetchGerritChangePage.

Change-Id: I5da95666f0c08de68426c51b18c1e74e6e04f4d0
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/UIUtils.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/fetch/FetchGerritChangePage.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/gerrit/GerritConfigurationPage.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/push/PushToGerritPage.java