|
Class: BackgroundSourceProcessingService (in Tools)
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>
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:]
queries
-
isAbstract
-
accessing-defaults
-
defaultJobName
-
Returns a human-readable job name, to ease identification in process browser
change & update
-
modelChanged
-
Model has changed (i.e. value holder keeping displayed text
-
sourceChanged: force
-
Called when codeview's text changes
-
update: aspect with: param from: sender
-
sender == textView modifiedChannel ifTrue:[^self codeChanged: false].
event handling
-
linesDeletedFrom: start to: end
-
-
linesInsertedFrom: start to: end
-
-
linesModifiedFrom: start to: end
-
initialization
-
initialize
-
(comment from inherited method)
just to ignore initialize to objects which do not need it
processing
-
process
-
(Re)starts the processing job. Should be called whenever a source
must be (re)processed.
-
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 **
-
processSafely: delayed
-
Process source code. If `delayed` is true, view should be updated
asynchronously using #pushUserEvent:
registering
-
registerIn: aCodeView
-
(comment from inherited method)
Installs myself in aCodeView
-
unregister
-
(comment from inherited method)
Uninstall myself from my codeView
|