eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'EditTextViewCompletionSupport':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: EditTextViewCompletionSupport


Inheritance:

   Object
   |
   +--EditTextViewCompletionSupport
      |
      +--WorkspaceCompletionSupport

Package:
stx:libwidg
Category:
Views-Text
Version:
rev: 1.23 date: 2018/05/09 11:11:29
user: cg
file: EditTextViewCompletionSupport.st directory: libwidg
module: stx stc-classLibrary: libwidg
Author:
Claus Gittinger

Description:


An abstract supperclass to support completion in text views.
Individual completion engines may create a subclass of 
EditTextCompletionSupport and customize it.

Basically, they have to implement #computeCompletions


[instance variables:]

[class variables:]


Related information:



Class protocol:

instance creation
o  for: anEditView

queries
o  isAbstract
(comment from inherited method)
Return if this class is an abstract class.
True is returned for Object here; false for subclasses.
Abstract subclasses must redefine this again.


Instance protocol:

accessing
o  editView: anEditTextView

events
o  buttonPress: button x: x y: y

o  editViewLostFocus
this is a hack for Windows:
on windows, an activate:false event is first sent to my textView,
then an activate is sent to the completion popup.
this is done BEFORE the buttonPress event is delivered.
therefore, allow for the activate of the completionMenu and its button event to be processed.
before forcing it to be closed...

o  handleKeyPress: key x: x y: y
return true, if I have eaten this keypress

o  postKeyPress: key
only update, if already open

o  startTimeoutForEditViewLostFocus
see comment in #editViewLostFocus

private
o  computeCompletions
Actually compute the completions and update the completion view.

** This method raises an error - it must be redefined in concrete classes **

o  release

o  startCompletionProcess
start the code completion process in the background

o  stopCompletionProcess
kill any background completion process

o  updateCompletionList
called for keypress events

private-API
o  closeCompletionView
let it close itself - avoids synchronization problems

o  openCompletionView
Opens the completion view with an initial list. Called as soon as
completion is initiated but completion options are not yet computed.

o  openCompletionView: list
Makes sure the completion view is opened and with given `list`.



ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Sun, 18 Nov 2018 07:50:56 GMT