/******************************************************************************* * Copyright (c) 2011 Softberries Krzysztof Grajek. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Softberries Krzysztof Grajek - initial API and implementation ******************************************************************************/ package net.sf.swtaddons.autocomplete.text; import net.sf.swtaddons.autocomplete.AutocompleteContentProposalProvider; import net.sf.swtaddons.autocomplete.AutocompleteInputContentProposalProvider; import org.eclipse.swt.widgets.Text; public class AutocompleteTextInput extends AutocompleteText { public AutocompleteTextInput(Text text, String[] selectionItems) { super(text, selectionItems); } @Override protected AutocompleteContentProposalProvider getContentProposalProvider(String[] proposals) { return new AutocompleteInputContentProposalProvider(proposals); } }