1 /******************************************************************************* 2 * Copyright (c) 2000, 2005 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 *******************************************************************************/ 11 package org.eclipse.jface.text.contentassist; 12 13 import org.eclipse.swt.events.VerifyEvent; 14 15 import org.eclipse.jface.text.IEventConsumer; 16 17 18 /** 19 * An interface whereby listeners can not only receive key events, 20 * but can also consume them to prevent subsequent listeners from 21 * processing the event. 22 */ 23 interface IContentAssistListener extends IEventConsumer { 24 25 /** 26 * Verifies the key event. 27 * 28 * @param event the verify event 29 * @return <code>true</code> if processing should be continued by additional listeners 30 * @see org.eclipse.swt.custom.VerifyKeyListener#verifyKey(VerifyEvent) 31 */ 32 public boolean verifyKey(VerifyEvent event); 33 } 34