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.22 date: 2018/08/29 07:59:20
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)
just to ignore initialize to objects which do not need it

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.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Thu, 28 Mar 2024 23:06:20 GMT