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.34 date: 2019/08/14 14:45:59
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  computeAndShowCompletions
compute completions, then push an event to show them

o  computeCompletions
compute the completions.
Don't know how to do this here.

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.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Tue, 23 Apr 2024 19:42:29 GMT