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