protected class ContentAssistant.AutoAssistListener extends KeyAdapter implements Runnable, VerifyKeyListener
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.Modifier | Constructor and Description |
---|---|
protected |
ContentAssistant.AutoAssistListener() |
Modifier and Type | Method and Description |
---|---|
void |
keyPressed(KeyEvent e)
Sent when a key is pressed on the system keyboard.
|
protected void |
reset(int showStyle) |
void |
run() |
protected void |
showAssist(int showStyle) |
protected void |
start(int showStyle) |
protected void |
stop() |
void |
verifyKey(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)
|
keyReleased
protected ContentAssistant.AutoAssistListener()
protected void start(int showStyle)
protected void reset(int showStyle)
protected void stop()
public void keyPressed(KeyEvent e)
KeyAdapter
keyPressed
in interface KeyListener
keyPressed
in class KeyAdapter
e
- an event containing information about the key presspublic void verifyKey(VerifyEvent event)
VerifyKeyListener
verifyKey
in interface VerifyKeyListener
event
- the verify eventVerifyEvent
protected void showAssist(int showStyle)
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.