Class ContentAssistant.AutoAssistListener
java.lang.Object
org.eclipse.swt.events.KeyAdapter
org.eclipse.jface.text.contentassist.ContentAssistant.AutoAssistListener
- All Implemented Interfaces:
Runnable,EventListener,VerifyKeyListener,KeyListener
- Enclosing class:
ContentAssistant
protected class ContentAssistant.AutoAssistListener
extends KeyAdapter
implements Runnable, VerifyKeyListener
An implementation of
IContentAssistListener, this class is used to monitor
key events in support of automatic activation of the content assistant. If enabled, the
implementation utilizes a thread to watch for input characters matching the activation
characters specified by the content assist processor, and if detected, will wait the
indicated delay interval before activating the content assistant.- Since:
- 3.4 protected, was added in 2.1 as private class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSent when a key is pressed on the system keyboard.protected voidreset(int showStyle) voidrun()protected voidshowAssist(int showStyle) protected voidstart(int showStyle) protected voidstop()voidverifyKey(VerifyEvent event) The following event fields are used: event.character is the character that was typed (input) event.keyCode is the key code that was typed (input) event.stateMask is the state of the keyboard (input) event.doit is processed or not (output)Methods inherited from class org.eclipse.swt.events.KeyAdapter
keyReleased
-
Constructor Details
-
AutoAssistListener
protected AutoAssistListener()
-
-
Method Details
-
start
protected void start(int showStyle) -
run
public void run() -
reset
protected void reset(int showStyle) -
stop
protected void stop() -
keyPressed
Description copied from class:KeyAdapterSent when a key is pressed on the system keyboard. The default behavior is to do nothing.- Specified by:
keyPressedin interfaceKeyListener- Overrides:
keyPressedin classKeyAdapter- Parameters:
e- an event containing information about the key press
-
verifyKey
Description copied from interface:VerifyKeyListenerThe following event fields are used:- event.character is the character that was typed (input)
- event.keyCode is the key code that was typed (input)
- event.stateMask is the state of the keyboard (input)
- event.doit is processed or not (output)
- Specified by:
verifyKeyin interfaceVerifyKeyListener- Parameters:
event- the verify event- See Also:
-
showAssist
protected void showAssist(int showStyle)
-