eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Tools::BackgroundSourceProcessingService':

Home

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

Class: BackgroundSourceProcessingService (in Tools)


Inheritance:

   Object
   |
   +--Tools::CodeViewService
      |
      +--Tools::BackgroundSourceProcessingService
         |
         +--Tools::CodeHighlightingService

Package:
stx:libtool
Category:
Interface-CodeView
Version:
rev: 1.20 date: 2017/10/21 11:32:26
user: cg
file: Tools__BackgroundSourceProcessingService.st directory: libtool
module: stx stc-classLibrary: libtool
Author:
Jan Vrany <jan.vrany@fit.cvut.cz>

Description:


An abstract base class for all services that process current
(displayed) source code. All processing is done in background
job, that is restarted whenever a text in the editor is changed.


[instance variables:]
    job         <BackgroundJob> A background job.

[class variables:]


Related information:



Class protocol:

queries
o  isAbstract


Instance protocol:

accessing-defaults
o  defaultJobName
Returns a human-readable job name, to ease identification in process browser

change & update
o  modelChanged
Model has changed (i.e. value holder keeping displayed text

o  sourceChanged: force
Called when codeview's text changes

o  update: aspect with: param from: sender
sender == textView modifiedChannel ifTrue:[^self codeChanged: false].

event handling
o  linesDeletedFrom: start to: end

o  linesInsertedFrom: start to: end

o  linesModifiedFrom: start to: end

initialization
o  initialize
(comment from inherited method)
Invoked when a new instance is created.

processing
o  process
(Re)starts the processing job. Should be called whenever a source
must be (re)processed.

o  process: delayed
Actually process source code. If `delayed` is true, view should be updated
asynchronously using #pushUserEvent:. Individual services should override
this method.

NOTE: Do not call this method from custom code directly, always call
#processSafely: which handles possible errors and protects against 'debugger bomb'

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

o  processSafely: delayed
Process source code. If `delayed` is true, view should be updated
asynchronously using #pushUserEvent:

registering
o  registerIn: aCodeView
(comment from inherited method)
Installs myself in aCodeView

o  unregister
(comment from inherited method)
Uninstall myself from my codeView



ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Wed, 20 Mar 2019 23:27:14 GMT