Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2017-01-27 09:11:04 +0000
committerLars Vogel2017-01-27 09:11:04 +0000
commit973b9118b0ff35e5df00c2bcfa18e83d6bab4816 (patch)
treefa141e17783601e8032eb358b70a91d44f326b73 /bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/ComboAutoCompleteField.java
parent905545c36ff4d74b24ae0f4d98b2582e327814f3 (diff)
downloadrt.equinox.p2-973b9118b0ff35e5df00c2bcfa18e83d6bab4816.tar.gz
rt.equinox.p2-973b9118b0ff35e5df00c2bcfa18e83d6bab4816.tar.xz
rt.equinox.p2-973b9118b0ff35e5df00c2bcfa18e83d6bab4816.zip
Bug 511160 - Run Cleanup action on org.eclipse.equinox.p2.ui to addI20170130-0600I20170129-2000I20170128-2000I20170127-2200I20170127-2000
missing annotations Change-Id: I53aab78feb00212c8162f992f52b67e4d4dec365 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/ComboAutoCompleteField.java')
-rw-r--r--bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/ComboAutoCompleteField.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/ComboAutoCompleteField.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/ComboAutoCompleteField.java
index cb0d07c84..e60141e56 100644
--- a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/ComboAutoCompleteField.java
+++ b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/ComboAutoCompleteField.java
@@ -49,6 +49,7 @@ public class ComboAutoCompleteField {
IContentProposalProvider getProposalProvider() {
return new IContentProposalProvider() {
+ @Override
public IContentProposal[] getProposals(String contents, int position) {
String[] items = getStringItems();
if (contents.length() == 0 || items.length == 0)
@@ -75,18 +76,22 @@ public class ComboAutoCompleteField {
final String proposal = matches.get(i);
proposals[i] = new IContentProposal() {
+ @Override
public String getContent() {
return proposal;
}
+ @Override
public int getCursorPosition() {
return proposal.length();
}
+ @Override
public String getDescription() {
return null;
}
+ @Override
public String getLabel() {
return null;
}

Back to the top