KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > internal > text > link > contentassist > IContentAssistListener2


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.internal.text.link.contentassist;
12
13
14
15 import org.eclipse.swt.events.VerifyEvent;
16
17 import org.eclipse.jface.text.IEventConsumer;
18
19
20
21 /**
22  * An interface whereby listeners can not only receive key events,
23  * but can also consume them to prevent subsequent listeners from
24  * processing the event.
25  */

26 interface IContentAssistListener2 extends IEventConsumer {
27
28     /**
29      * Verifies the key event.
30      *
31      * @param event the key event
32      * @return <code>true</code> if processing should be continued by additional listeners
33      * @see org.eclipse.swt.custom.VerifyKeyListener#verifyKey(VerifyEvent)
34      */

35     public boolean verifyKey(VerifyEvent event);
36 }
37
Popular Tags