blob: 0ad66168ea1f5c784d83f1c0423e4c7f722508a7 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009 Remy Chi Jian Suen and others.
* 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:
* Remy Chi Jian Suen <remy.suen@gmail.com> - initial API and implementation
* IBM - ongoing development
******************************************************************************/
package org.eclipse.jface.tests.fieldassist;
import org.eclipse.jface.fieldassist.ComboContentAdapter;
import org.eclipse.jface.fieldassist.IControlContentAdapter;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
public class ComboFieldAssistWindow extends AbstractFieldAssistWindow {
protected IControlContentAdapter getControlContentAdapter() {
return new ComboContentAdapter();
}
/*
* (non-Javadoc)
*
* @seeorg.eclipse.jface.tests.fieldassist.AbstractFieldAssistWindow#
* createFieldAssistControl(org.eclipse.swt.widgets.Composite)
*/
protected Control createFieldAssistControl(Composite parent) {
return new Combo(parent, SWT.DROP_DOWN);
}
}