|
Class: CodeNavigationService (in Tools)
Object
|
+--Tools::CodeViewService
|
+--Tools::CodeNavigationService
- Package:
- stx:libtool
- Category:
- Interface-CodeView
- Version:
- rev:
1.57
date: 2018/09/21 13:11:24
- user: sr
- file: Tools__CodeNavigationService.st directory: libtool
- module: stx stc-classLibrary: libtool
accessing
-
label
-
Answers a short label - for UI
-
requiredServices
-
(comment from inherited method)
Returns a list of services required for myself to work
correctly. A list should contain class names of the services
(as not all services may be loaded in)
accessing - defaults
-
defaultAssignmentEmphasis
-
must only define a background - otherwise, syntax highlight fg is lost
-
defaultSelectorEmphasis
-
must only define a background - otherwise, syntax highlight fg is lost
-
defaultVariableEmphasis
-
must only define a background - otherwise, syntax highlight fg is lost
testing
-
isUsefulFor: aCodeView
-
this filters useful services.
Redefined to return true for myself - not for subclasses
change & update
-
update: aspect with: param from: sender
-
no longer highlight - the info is wrong anyway !
code services
-
browseClass: class
-
-
browser
-
event handling
-
button1Press
-
-
button1PressForMessageNode: node
-
-
button1PressForSelector: selector
-
impls size = 1 ifTrue:[^codeView browseMethod: impls anyOne].
-
button1PressForVariableNode: node
-
-
button2Press
-
-
button2PressForSelector: selector
-
senders size = 1 ifTrue:[ codeView browseMethod: senders anyOne. ^ self].
-
buttonMotion: button x: x y: y in: view
-
Handles an event in given view (a subview of codeView).
If the method returns true, the event will not be processed
by the view.
-
buttonPress: button x: x y: y in: view
-
Handles an event in given view (a subview of codeView).
If the method returns true, the event will not be processed
by the view.
-
buttonRelease: button x: x y: y in: view
-
Handles an event in given view (a subview of codeView).
If the method returns true, the event will not be processed
by the view.
-
findNextVariableFromCursor
-
-
findPreviousVariableFromCursor
-
-
isQuickMenuModifierPressed
-
-
isQuickMenuModifierReleased
-
-
keyPress: key x: x y: y in: view
-
Handles an event in given view (a subview of codeView).
If the method returns true, it has eaten the event and it will not be processed
by the view.
-
linesDeletedFrom: start to: end
-
-
linesInsertedFrom: start to: end
-
-
linesModifiedFrom: start to: end
-
initialization
-
initialize
-
the following must only define a background - otherwise, syntax highlight fg is lost
misc
-
highlightClassVariable: name
-
interface from browser (when a class var is selected)
-
highlightInstanceVariable: name
-
interface from browser (when an inst var is selected)
-
highlightVariable: name isClassVariable: isClassVariable
-
interface from browser (when an inst or class var is selected)
private
-
elementAtCharacterPosition: pos
-
-
elementAtCursor
-
- 1
-
elementAtLine: line col: colArg
-
if beyond end of line, do not advance into next line
-
elementAtX: x y: y
-
-
highlighEmphasisFor: element
-
-
highlightClear
-
-
highlightClear: redraw
-
-
highlightElement: element
-
walk through the chain of elements and highlight each
Notice, that the chain links elements for the same-variable
(and lists for same-named-but-in-different-scope variables have
already been separated)
-
highlightElementAtCursor
-
-
highlightElementAtLine: line col: col
-
-
highlightElementAtX: x y: y
-
-
highlightElementOrNil: e
-
cg: only if selected !
-
highlightLine: lineNo fromLine: startLine col: endLine toLine: startCol col: endCol
-
JV: CG commented following and added the commtent code below.
-
highlightVariable: element
-
-
highlightVariableAtCursor
-
-
highlightVariableAtX: x y: y
-
-
highlightWithoutClearFrom: start to: end
-
Remove underlined emphasis
-
highlightWithoutClearFromLine: startLine col: startCol toLine: endLine col: endCol
-
redrawing
-
redrawLines
-
|