Tools__CodeViewService.st
author Stefan Vogel <sv@exept.de>
Fri, 17 May 2019 17:11:44 +0200
changeset 18767 0478d93cdb75
parent 17890 4caaf7ff9bc2
child 18963 20e87faf3215
permissions -rw-r--r--
#REFACTORING by stefan Sanitize BlockValues class: Tools::Inspector2 changed: #toolbarBackgroundHolder
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
10070
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
     2
 COPYRIGHT (c) 2010 by Jan Vrany, SWING Research Group. CTU in Prague
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
     3
              All Rights Reserved
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
10070
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
     5
Permission is hereby granted, free of charge, to any person
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
     6
obtaining a copy of this software and associated documentation
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
     7
files (the 'Software'), to deal in the Software without
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
     8
restriction, including without limitation the rights to use,
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
     9
copy, modify, merge, publish, distribute, sublicense, and/or sell
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    10
copies of the Software, and to permit persons to whom the
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    11
Software is furnished to do so, subject to the following
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    12
conditions:
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    13
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    14
The above copyright notice and this permission notice shall be
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    15
included in all copies or substantial portions of the Software.
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    16
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    17
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    18
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    19
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    20
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    21
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    22
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    23
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    24
OTHER DEALINGS IN THE SOFTWARE.
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
"
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
"{ Package: 'stx:libtool' }"
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
"{ NameSpace: Tools }"
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
Object subclass:#CodeViewService
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
	instanceVariableNames:'enabled codeView textView gutterView'
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
	classVariableNames:''
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
	poolDictionaries:''
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
	category:'Interface-CodeView'
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
!
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
!CodeViewService class methodsFor:'documentation'!
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
copyright
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
"
10070
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    41
 COPYRIGHT (c) 2010 by Jan Vrany, SWING Research Group. CTU in Prague
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    42
              All Rights Reserved
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    43
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    44
Permission is hereby granted, free of charge, to any person
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    45
obtaining a copy of this software and associated documentation
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    46
files (the 'Software'), to deal in the Software without
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    47
restriction, including without limitation the rights to use,
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    48
copy, modify, merge, publish, distribute, sublicense, and/or sell
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    49
copies of the Software, and to permit persons to whom the
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    50
Software is furnished to do so, subject to the following
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    51
conditions:
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
10070
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    53
The above copyright notice and this permission notice shall be
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    54
included in all copies or substantial portions of the Software.
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    55
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    56
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    57
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    58
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    59
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    60
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    61
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    62
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
808a953bdb64 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9983
diff changeset
    63
OTHER DEALINGS IN THE SOFTWARE.
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
"
11182
90f2879a3926 CodeView2 service refactoring: CodeHighlightingService's background
vrany
parents: 11172
diff changeset
    65
!
90f2879a3926 CodeView2 service refactoring: CodeHighlightingService's background
vrany
parents: 11172
diff changeset
    66
90f2879a3926 CodeView2 service refactoring: CodeHighlightingService's background
vrany
parents: 11172
diff changeset
    67
documentation
90f2879a3926 CodeView2 service refactoring: CodeHighlightingService's background
vrany
parents: 11172
diff changeset
    68
"
90f2879a3926 CodeView2 service refactoring: CodeHighlightingService's background
vrany
parents: 11172
diff changeset
    69
    A base class for CodeView2 services. A 'service' is an extension
90f2879a3926 CodeView2 service refactoring: CodeHighlightingService's background
vrany
parents: 11172
diff changeset
    70
    mechanism for CodeView2. Once plugged in, service gets informed 
90f2879a3926 CodeView2 service refactoring: CodeHighlightingService's background
vrany
parents: 11172
diff changeset
    71
    about changes in the text and it also may intercept events.
90f2879a3926 CodeView2 service refactoring: CodeHighlightingService's background
vrany
parents: 11172
diff changeset
    72
90f2879a3926 CodeView2 service refactoring: CodeHighlightingService's background
vrany
parents: 11172
diff changeset
    73
    See concrete subclasses how to use and implement code services.
90f2879a3926 CodeView2 service refactoring: CodeHighlightingService's background
vrany
parents: 11172
diff changeset
    74
90f2879a3926 CodeView2 service refactoring: CodeHighlightingService's background
vrany
parents: 11172
diff changeset
    75
    [author:]
90f2879a3926 CodeView2 service refactoring: CodeHighlightingService's background
vrany
parents: 11172
diff changeset
    76
        Jan Vrany <jan.vrany@fit.cvut.cz>
90f2879a3926 CodeView2 service refactoring: CodeHighlightingService's background
vrany
parents: 11172
diff changeset
    77
90f2879a3926 CodeView2 service refactoring: CodeHighlightingService's background
vrany
parents: 11172
diff changeset
    78
    [instance variables:]
90f2879a3926 CodeView2 service refactoring: CodeHighlightingService's background
vrany
parents: 11172
diff changeset
    79
90f2879a3926 CodeView2 service refactoring: CodeHighlightingService's background
vrany
parents: 11172
diff changeset
    80
    [class variables:]
90f2879a3926 CodeView2 service refactoring: CodeHighlightingService's background
vrany
parents: 11172
diff changeset
    81
90f2879a3926 CodeView2 service refactoring: CodeHighlightingService's background
vrany
parents: 11172
diff changeset
    82
    [see also:]
90f2879a3926 CodeView2 service refactoring: CodeHighlightingService's background
vrany
parents: 11172
diff changeset
    83
90f2879a3926 CodeView2 service refactoring: CodeHighlightingService's background
vrany
parents: 11172
diff changeset
    84
"
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
! !
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
!CodeViewService class methodsFor:'instance creation'!
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
new
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
    "return an initialized instance"
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
    ^ self basicNew initialize.
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
! !
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
!CodeViewService class methodsFor:'accessing'!
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
availableServices
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
    ^self allSubclasses select:
10414
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   100
        [:cls|cls isAbstract not and:[cls allRequiredServicesAvailable and:[cls isAvailable]]].
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
    "
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
        Tools::CodeViewService availableServices
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
    "
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
    "Created: / 07-03-2010 / 13:42:40 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10414
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   107
    "Modified: / 27-07-2011 / 11:49:50 / Jan Vrany <jan.vrany@fit.cvut.cz>"
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
!
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
label
13104
97e40a3e9c0c class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 12993
diff changeset
   111
    "Answers a short label - for UI"
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
13104
97e40a3e9c0c class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 12993
diff changeset
   113
    ^self nameWithoutPrefix
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
    "Created: / 07-03-2010 / 13:58:58 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10414
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   116
!
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   117
13825
981dd341f7cb merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13556
diff changeset
   118
priority
981dd341f7cb merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13556
diff changeset
   119
    "Answers a priority of the service. Services with higher priority
981dd341f7cb merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13556
diff changeset
   120
     will get the event notification before ones with lower priority.
981dd341f7cb merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13556
diff changeset
   121
     Therefore, a lower-priority service might not get the event if high
981dd341f7cb merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13556
diff changeset
   122
     priority service processes it"
981dd341f7cb merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13556
diff changeset
   123
981dd341f7cb merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13556
diff changeset
   124
    ^ 5
981dd341f7cb merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13556
diff changeset
   125
981dd341f7cb merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13556
diff changeset
   126
    "Created: / 01-02-2012 / 10:28:47 / Jan Vrany <jan.vrany@fit.cvut.cz>"
981dd341f7cb merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13556
diff changeset
   127
!
981dd341f7cb merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13556
diff changeset
   128
10414
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   129
requiredServices
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   130
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   131
    "Returns a list of services required for myself to work
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   132
     correctly. A list should contain class names of the services
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   133
     (as not all services may be loaded in)"
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   134
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   135
    ^#()
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   136
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   137
    "Created: / 27-07-2011 / 11:39:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   138
! !
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   139
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   140
!CodeViewService class methodsFor:'queries'!
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   141
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   142
allRequiredServicesAvailable
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   143
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   144
    | cls |
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   145
13515
d0cc1ab55768 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 13205
diff changeset
   146
    ^self requiredServices 
d0cc1ab55768 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 13205
diff changeset
   147
        allSatisfy:[:clsName|
d0cc1ab55768 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 13205
diff changeset
   148
            cls := Smalltalk at: clsName.
d0cc1ab55768 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 13205
diff changeset
   149
            cls notNil and:[cls allRequiredServicesAvailable and:[cls isAvailable]]                        
d0cc1ab55768 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 13205
diff changeset
   150
        ].
10414
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   151
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   152
    "Created: / 27-07-2011 / 11:49:26 / Jan Vrany <jan.vrany@fit.cvut.cz>"
13205
328e60fff881 class: Tools::XXXService
Claus Gittinger <cg@exept.de>
parents: 13104
diff changeset
   153
!
328e60fff881 class: Tools::XXXService
Claus Gittinger <cg@exept.de>
parents: 13104
diff changeset
   154
328e60fff881 class: Tools::XXXService
Claus Gittinger <cg@exept.de>
parents: 13104
diff changeset
   155
isUsefulFor:aCodeView
328e60fff881 class: Tools::XXXService
Claus Gittinger <cg@exept.de>
parents: 13104
diff changeset
   156
    "this filters useful services.
328e60fff881 class: Tools::XXXService
Claus Gittinger <cg@exept.de>
parents: 13104
diff changeset
   157
     must be redefined to return true in subclasses (but each class must do it only
328e60fff881 class: Tools::XXXService
Claus Gittinger <cg@exept.de>
parents: 13104
diff changeset
   158
     for itself - not for subclasses"
328e60fff881 class: Tools::XXXService
Claus Gittinger <cg@exept.de>
parents: 13104
diff changeset
   159
328e60fff881 class: Tools::XXXService
Claus Gittinger <cg@exept.de>
parents: 13104
diff changeset
   160
    ^ false
328e60fff881 class: Tools::XXXService
Claus Gittinger <cg@exept.de>
parents: 13104
diff changeset
   161
328e60fff881 class: Tools::XXXService
Claus Gittinger <cg@exept.de>
parents: 13104
diff changeset
   162
    "Created: / 22-07-2013 / 13:58:49 / cg"
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
! !
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   164
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   165
!CodeViewService class methodsFor:'registering'!
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   166
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   167
registerIn: aCodeView
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   168
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   169
    ^self new 
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   170
        registerIn: aCodeView;
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   171
        yourself.
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   172
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   173
    "Created: / 07-03-2010 / 13:50:16 / Jan Vrany <jan.vrany@fit.cvut.cz>"
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   174
! !
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   175
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   176
!CodeViewService class methodsFor:'testing'!
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   178
isAbstract
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   179
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   180
    ^self == Tools::CodeViewService
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   181
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   182
    "Created: / 07-03-2010 / 13:41:43 / Jan Vrany <jan.vrany@fit.cvut.cz>"
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   183
!
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   184
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   185
isAvailable
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   186
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   187
    ^true
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   188
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   189
    "Created: / 03-04-2011 / 23:07:02 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10414
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   190
!
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   191
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   192
isAvailableFor: applicationClass
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   193
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   194
    "Returns true if given service may be used in
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   195
     given application class."
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   196
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   197
    ^true
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   198
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   199
    "Created: / 27-07-2011 / 11:45:39 / Jan Vrany <jan.vrany@fit.cvut.cz>"
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   200
! !
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   201
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   202
!CodeViewService methodsFor:'accessing'!
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   203
14842
cbd8fde601b7 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 13825
diff changeset
   204
annotationAtLine:lineNr
14994
19512695e936 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 14987
diff changeset
   205
    "return the annotation for a given line - if any"
19512695e936 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 14987
diff changeset
   206
14842
cbd8fde601b7 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 13825
diff changeset
   207
    ^ nil
cbd8fde601b7 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 13825
diff changeset
   208
!
cbd8fde601b7 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 13825
diff changeset
   209
14987
7a8543ad91ee class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 14926
diff changeset
   210
annotations
7a8543ad91ee class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 14926
diff changeset
   211
    "return my annotations - if any"
7a8543ad91ee class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 14926
diff changeset
   212
7a8543ad91ee class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 14926
diff changeset
   213
    ^ nil
7a8543ad91ee class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 14926
diff changeset
   214
!
7a8543ad91ee class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 14926
diff changeset
   215
10414
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   216
application
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   217
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   218
    ^codeView application
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   219
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   220
    "Created: / 27-07-2011 / 12:11:19 / Jan Vrany <jan.vrany@fit.cvut.cz>"
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   221
!
8900da9aa39c Fixes for debugger
vrany
parents: 10227
diff changeset
   222
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   223
enabled
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   224
    ^ enabled
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   225
!
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   226
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   227
enabled:aBoolean
14926
240ebc7f8f87 Fixes for enabling / disabling individual CodeView2 services.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14842
diff changeset
   228
    enabled ~~ aBoolean ifTrue:[  
240ebc7f8f87 Fixes for enabling / disabling individual CodeView2 services.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14842
diff changeset
   229
        enabled := aBoolean.
240ebc7f8f87 Fixes for enabling / disabling individual CodeView2 services.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14842
diff changeset
   230
        aBoolean ifTrue:[ 
240ebc7f8f87 Fixes for enabling / disabling individual CodeView2 services.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14842
diff changeset
   231
            codeView notNil ifTrue:[ 
240ebc7f8f87 Fixes for enabling / disabling individual CodeView2 services.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14842
diff changeset
   232
                self registerIn: codeView.  
240ebc7f8f87 Fixes for enabling / disabling individual CodeView2 services.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14842
diff changeset
   233
            ].
240ebc7f8f87 Fixes for enabling / disabling individual CodeView2 services.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14842
diff changeset
   234
        ] ifFalse:[ 
240ebc7f8f87 Fixes for enabling / disabling individual CodeView2 services.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14842
diff changeset
   235
            self unregister.
240ebc7f8f87 Fixes for enabling / disabling individual CodeView2 services.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14842
diff changeset
   236
        ].
240ebc7f8f87 Fixes for enabling / disabling individual CodeView2 services.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14842
diff changeset
   237
    ].
240ebc7f8f87 Fixes for enabling / disabling individual CodeView2 services.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14842
diff changeset
   238
240ebc7f8f87 Fixes for enabling / disabling individual CodeView2 services.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14842
diff changeset
   239
    "Modified: / 27-11-2014 / 15:41:17 / Jan Vrany <jan.vrany@fit.cvut.cz>"
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   240
!
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   241
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   242
label
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   243
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   244
    ^self class label
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   245
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   246
    "Created: / 07-03-2010 / 14:03:31 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10498
1cfa393ff4ba fixes for code highlighting
vrany
parents: 10414
diff changeset
   247
!
1cfa393ff4ba fixes for code highlighting
vrany
parents: 10414
diff changeset
   248
1cfa393ff4ba fixes for code highlighting
vrany
parents: 10414
diff changeset
   249
service: serviceClassName
1cfa393ff4ba fixes for code highlighting
vrany
parents: 10414
diff changeset
   250
1cfa393ff4ba fixes for code highlighting
vrany
parents: 10414
diff changeset
   251
    ^codeView services detect:[:service|service class name == serviceClassName] ifNone:[nil]
1cfa393ff4ba fixes for code highlighting
vrany
parents: 10414
diff changeset
   252
1cfa393ff4ba fixes for code highlighting
vrany
parents: 10414
diff changeset
   253
    "Created: / 05-08-2011 / 11:48:13 / Jan Vrany <jan.vrany@fit.cvut.cz>"
1cfa393ff4ba fixes for code highlighting
vrany
parents: 10414
diff changeset
   254
!
1cfa393ff4ba fixes for code highlighting
vrany
parents: 10414
diff changeset
   255
1cfa393ff4ba fixes for code highlighting
vrany
parents: 10414
diff changeset
   256
syntaxHighlighter
1cfa393ff4ba fixes for code highlighting
vrany
parents: 10414
diff changeset
   257
1cfa393ff4ba fixes for code highlighting
vrany
parents: 10414
diff changeset
   258
    "Returns a syntax highligter class or nil. The highlighting
1cfa393ff4ba fixes for code highlighting
vrany
parents: 10414
diff changeset
   259
     process gather all syntaxHighlighterClasses from all services
1cfa393ff4ba fixes for code highlighting
vrany
parents: 10414
diff changeset
   260
     and then use them one by one to highlight the text. Individual
1cfa393ff4ba fixes for code highlighting
vrany
parents: 10414
diff changeset
   261
     services may override this method to provide additional 
1cfa393ff4ba fixes for code highlighting
vrany
parents: 10414
diff changeset
   262
     highliging of the source code"
1cfa393ff4ba fixes for code highlighting
vrany
parents: 10414
diff changeset
   263
1cfa393ff4ba fixes for code highlighting
vrany
parents: 10414
diff changeset
   264
    ^nil
1cfa393ff4ba fixes for code highlighting
vrany
parents: 10414
diff changeset
   265
1cfa393ff4ba fixes for code highlighting
vrany
parents: 10414
diff changeset
   266
    "Created: / 05-08-2011 / 10:49:05 / Jan Vrany <jan.vrany@fit.cvut.cz>"
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   267
! !
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   268
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   269
!CodeViewService methodsFor:'change & update'!
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   270
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   271
update: aspect with: param from: sender
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   272
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   273
    "Get updated whenever something changes in the code view.
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   274
     Subclasses may override this"
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   275
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   276
    "Intentionally left blank here"
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   277
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   278
    "Created: / 06-03-2010 / 19:23:05 / Jan Vrany <jan.vrany@fit.cvut.cz>"
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   279
! !
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   280
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   281
!CodeViewService methodsFor:'event handling'!
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   282
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   283
buttonMotion: button x:x y:y in: view
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   284
    "Handles an event in given view (a subview of codeView).
10589
eb7aac2b7128 comments
Claus Gittinger <cg@exept.de>
parents: 10498
diff changeset
   285
     If the method returns true, it has eaten the event and it will not be processed
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   286
     by the view."
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   287
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   288
    ^false
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   289
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   290
    "Created: / 06-03-2010 / 20:17:18 / Jan Vrany <jan.vrany@fit.cvut.cz>"
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   291
    "Modified: / 17-06-2011 / 13:05:58 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10589
eb7aac2b7128 comments
Claus Gittinger <cg@exept.de>
parents: 10498
diff changeset
   292
    "Modified (comment): / 18-08-2011 / 15:57:40 / cg"
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   293
!
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   294
14842
cbd8fde601b7 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 13825
diff changeset
   295
buttonMultiPress: button x:x y:y in: view
cbd8fde601b7 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 13825
diff changeset
   296
    "Handles an event in given view (a subview of codeView).
cbd8fde601b7 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 13825
diff changeset
   297
     If the method returns true, it has eaten the event and it will not be processed
cbd8fde601b7 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 13825
diff changeset
   298
     by the view."
cbd8fde601b7 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 13825
diff changeset
   299
cbd8fde601b7 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 13825
diff changeset
   300
    ^false
cbd8fde601b7 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 13825
diff changeset
   301
!
cbd8fde601b7 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 13825
diff changeset
   302
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   303
buttonPress: button x:x y:y in: view
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   304
    "Handles an event in given view (a subview of codeView).
10589
eb7aac2b7128 comments
Claus Gittinger <cg@exept.de>
parents: 10498
diff changeset
   305
     If the method returns true, it has eaten the event and it will not be processed
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   306
     by the view."
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   307
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   308
    ^false
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   309
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   310
    "Created: / 06-03-2010 / 20:36:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   311
    "Modified: / 17-06-2011 / 13:06:09 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10589
eb7aac2b7128 comments
Claus Gittinger <cg@exept.de>
parents: 10498
diff changeset
   312
    "Modified (comment): / 18-08-2011 / 15:57:36 / cg"
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   313
!
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   314
12861
3106975dc3e1 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 11182
diff changeset
   315
buttonRelease: button x:x y:y in: view
3106975dc3e1 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 11182
diff changeset
   316
    "Handles an event in given view (a subview of codeView).
3106975dc3e1 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 11182
diff changeset
   317
     If the method returns true, it has eaten the event and it will not be processed
3106975dc3e1 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 11182
diff changeset
   318
     by the view."
3106975dc3e1 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 11182
diff changeset
   319
3106975dc3e1 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 11182
diff changeset
   320
    ^false
3106975dc3e1 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 11182
diff changeset
   321
!
3106975dc3e1 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 11182
diff changeset
   322
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   323
keyPress:key x:x y:y in: view
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   324
    "Handles an event in given view (a subview of codeView).
10589
eb7aac2b7128 comments
Claus Gittinger <cg@exept.de>
parents: 10498
diff changeset
   325
     If the method returns true, it has eaten the event and it will not be processed
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   326
     by the view."
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   327
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   328
    ^false
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   329
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   330
    "Created: / 06-03-2010 / 20:34:44 / Jan Vrany <jan.vrany@fit.cvut.cz>"
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   331
    "Modified: / 17-06-2011 / 13:06:24 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10589
eb7aac2b7128 comments
Claus Gittinger <cg@exept.de>
parents: 10498
diff changeset
   332
    "Modified (comment): / 18-08-2011 / 15:57:28 / cg"
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   333
!
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   334
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   335
keyRelease: key x: x y: y in: view
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   336
    "Handles an event in given view (a subview of codeView).
10589
eb7aac2b7128 comments
Claus Gittinger <cg@exept.de>
parents: 10498
diff changeset
   337
     If the method returns true, it has eaten the event and it will not be processed
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   338
     by the view."
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   339
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   340
    ^false
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   341
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   342
    "Created: / 06-03-2010 / 20:35:09 / Jan Vrany <jan.vrany@fit.cvut.cz>"
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   343
    "Modified: / 17-06-2011 / 13:06:29 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10589
eb7aac2b7128 comments
Claus Gittinger <cg@exept.de>
parents: 10498
diff changeset
   344
    "Modified (comment): / 18-08-2011 / 15:57:33 / cg"
10227
e10d21aee889 More improvements in BreakpointService
vrany
parents: 10070
diff changeset
   345
!
e10d21aee889 More improvements in BreakpointService
vrany
parents: 10070
diff changeset
   346
e10d21aee889 More improvements in BreakpointService
vrany
parents: 10070
diff changeset
   347
linesDeletedFrom: start to: end
e10d21aee889 More improvements in BreakpointService
vrany
parents: 10070
diff changeset
   348
e10d21aee889 More improvements in BreakpointService
vrany
parents: 10070
diff changeset
   349
    "Created: / 06-07-2011 / 17:14:23 / jv"
e10d21aee889 More improvements in BreakpointService
vrany
parents: 10070
diff changeset
   350
!
e10d21aee889 More improvements in BreakpointService
vrany
parents: 10070
diff changeset
   351
e10d21aee889 More improvements in BreakpointService
vrany
parents: 10070
diff changeset
   352
linesInsertedFrom: start to: end
e10d21aee889 More improvements in BreakpointService
vrany
parents: 10070
diff changeset
   353
e10d21aee889 More improvements in BreakpointService
vrany
parents: 10070
diff changeset
   354
    "Created: / 06-07-2011 / 17:14:31 / jv"
e10d21aee889 More improvements in BreakpointService
vrany
parents: 10070
diff changeset
   355
!
e10d21aee889 More improvements in BreakpointService
vrany
parents: 10070
diff changeset
   356
e10d21aee889 More improvements in BreakpointService
vrany
parents: 10070
diff changeset
   357
linesModifiedFrom: start to: end
e10d21aee889 More improvements in BreakpointService
vrany
parents: 10070
diff changeset
   358
e10d21aee889 More improvements in BreakpointService
vrany
parents: 10070
diff changeset
   359
    "Created: / 06-07-2011 / 17:14:36 / jv"
11182
90f2879a3926 CodeView2 service refactoring: CodeHighlightingService's background
vrany
parents: 11172
diff changeset
   360
!
90f2879a3926 CodeView2 service refactoring: CodeHighlightingService's background
vrany
parents: 11172
diff changeset
   361
90f2879a3926 CodeView2 service refactoring: CodeHighlightingService's background
vrany
parents: 11172
diff changeset
   362
viewRealized
90f2879a3926 CodeView2 service refactoring: CodeHighlightingService's background
vrany
parents: 11172
diff changeset
   363
    "Sent when a code view has been realized. May be overriden
90f2879a3926 CodeView2 service refactoring: CodeHighlightingService's background
vrany
parents: 11172
diff changeset
   364
     by subclasses"
90f2879a3926 CodeView2 service refactoring: CodeHighlightingService's background
vrany
parents: 11172
diff changeset
   365
90f2879a3926 CodeView2 service refactoring: CodeHighlightingService's background
vrany
parents: 11172
diff changeset
   366
    "Created: / 23-01-2012 / 10:38:20 / Jan Vrany <jan.vrany@fit.cvut.cz>"
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   367
! !
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   368
14842
cbd8fde601b7 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 13825
diff changeset
   369
!CodeViewService methodsFor:'help'!
cbd8fde601b7 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 13825
diff changeset
   370
17890
4caaf7ff9bc2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16601
diff changeset
   371
helpTextAtLine:aLineNr
14994
19512695e936 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 14987
diff changeset
   372
    |a|
19512695e936 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 14987
diff changeset
   373
19512695e936 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 14987
diff changeset
   374
    a := self annotationAtLine:aLineNr.
19512695e936 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 14987
diff changeset
   375
    a notNil ifTrue:[
19512695e936 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 14987
diff changeset
   376
        ^ a helpTextFor:codeView.
19512695e936 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 14987
diff changeset
   377
    ].
14842
cbd8fde601b7 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 13825
diff changeset
   378
    ^ nil
cbd8fde601b7 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 13825
diff changeset
   379
! !
cbd8fde601b7 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 13825
diff changeset
   380
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   381
!CodeViewService methodsFor:'initialization'!
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   382
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   383
initialize
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   384
    "Invoked when a new instance is created."
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   385
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   386
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   387
    "/ please change as required (and remove this comment)
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   388
    "/ enabled := nil.
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   389
    "/ codeView := nil.
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   390
    "/ textView := nil.
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   391
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   392
    super initialize.
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   393
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   394
    "Modified: / 03-09-2010 / 22:29:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   395
! !
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   396
11172
7ece06fcbf73 added: #showInfo:
Claus Gittinger <cg@exept.de>
parents: 10589
diff changeset
   397
!CodeViewService methodsFor:'misc'!
7ece06fcbf73 added: #showInfo:
Claus Gittinger <cg@exept.de>
parents: 10589
diff changeset
   398
15169
c3d0f52b7a3b class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 14994
diff changeset
   399
highlightClassVariable:name
c3d0f52b7a3b class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 14994
diff changeset
   400
    "/ intentionally a noop here - redefine in concrete services
c3d0f52b7a3b class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 14994
diff changeset
   401
!
c3d0f52b7a3b class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 14994
diff changeset
   402
12993
2c8d85c82743 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 12900
diff changeset
   403
highlightInstanceVariable:name
15169
c3d0f52b7a3b class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 14994
diff changeset
   404
    "/ intentionally a noop here - redefine in concrete services
12993
2c8d85c82743 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 12900
diff changeset
   405
!
2c8d85c82743 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 12900
diff changeset
   406
11172
7ece06fcbf73 added: #showInfo:
Claus Gittinger <cg@exept.de>
parents: 10589
diff changeset
   407
showInfo: aString
7ece06fcbf73 added: #showInfo:
Claus Gittinger <cg@exept.de>
parents: 10589
diff changeset
   408
7ece06fcbf73 added: #showInfo:
Claus Gittinger <cg@exept.de>
parents: 10589
diff changeset
   409
    codeView showInfo: aString
7ece06fcbf73 added: #showInfo:
Claus Gittinger <cg@exept.de>
parents: 10589
diff changeset
   410
7ece06fcbf73 added: #showInfo:
Claus Gittinger <cg@exept.de>
parents: 10589
diff changeset
   411
    "Created: / 06-03-2010 / 19:34:51 / Jan Vrany <jan.vrany@fit.cvut.cz>"
7ece06fcbf73 added: #showInfo:
Claus Gittinger <cg@exept.de>
parents: 10589
diff changeset
   412
    "Created: / 21-01-2012 / 12:44:22 / cg"
7ece06fcbf73 added: #showInfo:
Claus Gittinger <cg@exept.de>
parents: 10589
diff changeset
   413
! !
7ece06fcbf73 added: #showInfo:
Claus Gittinger <cg@exept.de>
parents: 10589
diff changeset
   414
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   415
!CodeViewService methodsFor:'redrawing'!
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   416
16601
366bd6d50023 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16558
diff changeset
   417
drawAnnotationIcon:icon atX:x y:y width:w height:h ascent:fontAscent
13556
54e1ef230e31 class: Tools::CodeViewService
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13515
diff changeset
   418
    |dy dx|
54e1ef230e31 class: Tools::CodeViewService
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13515
diff changeset
   419
54e1ef230e31 class: Tools::CodeViewService
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13515
diff changeset
   420
    dx := ((w - icon width) / 2) rounded.
54e1ef230e31 class: Tools::CodeViewService
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13515
diff changeset
   421
    dy := ((h - icon height) / 2) rounded.
54e1ef230e31 class: Tools::CodeViewService
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13515
diff changeset
   422
    icon 
54e1ef230e31 class: Tools::CodeViewService
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13515
diff changeset
   423
        displayOn:gutterView
16601
366bd6d50023 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16558
diff changeset
   424
        x:x + dx + 2
13556
54e1ef230e31 class: Tools::CodeViewService
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13515
diff changeset
   425
        y:y - h + dy + 4.
54e1ef230e31 class: Tools::CodeViewService
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13515
diff changeset
   426
54e1ef230e31 class: Tools::CodeViewService
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13515
diff changeset
   427
    "Created: / 17-09-2013 / 15:40:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
54e1ef230e31 class: Tools::CodeViewService
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13515
diff changeset
   428
!
54e1ef230e31 class: Tools::CodeViewService
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13515
diff changeset
   429
16601
366bd6d50023 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16558
diff changeset
   430
drawAnnotationInLine:lineNo in:view atX:x y:yBaseline width:w height:hFont ascent:fontAscent
366bd6d50023 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16558
diff changeset
   431
                from:startCol to:endColOrNil with:fg and:bg
366bd6d50023 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16558
diff changeset
   432
    "common code"
366bd6d50023 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16558
diff changeset
   433
366bd6d50023 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16558
diff changeset
   434
    | lang annotation icon severity |
366bd6d50023 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16558
diff changeset
   435
366bd6d50023 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16558
diff changeset
   436
    annotation :=  self annotationAtLine: lineNo.
366bd6d50023 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16558
diff changeset
   437
    annotation notNil ifTrue:[
366bd6d50023 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16558
diff changeset
   438
        severity := annotation rule severity.
366bd6d50023 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16558
diff changeset
   439
        icon := (severity == #error)
366bd6d50023 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16558
diff changeset
   440
                     ifTrue:[ToolbarIconLibrary smalllintErrorIcon16x16]
366bd6d50023 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16558
diff changeset
   441
                     ifFalse:[
366bd6d50023 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16558
diff changeset
   442
                        (severity == #warning)
366bd6d50023 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16558
diff changeset
   443
                            ifTrue:[ ToolbarIconLibrary smalllintWarningIcon16x16]        
366bd6d50023 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16558
diff changeset
   444
                            ifFalse:[ ToolbarIconLibrary smalllintInformationIcon16x16]].        
366bd6d50023 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16558
diff changeset
   445
        self drawAnnotationIcon:icon atX:x y:yBaseline width:w height:hFont ascent:fontAscent.
366bd6d50023 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16558
diff changeset
   446
    ].
366bd6d50023 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16558
diff changeset
   447
!
366bd6d50023 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16558
diff changeset
   448
366bd6d50023 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16558
diff changeset
   449
drawLine:lineNo in:view atX:x y:y width:w height:hFont ascent:fontAscent 
366bd6d50023 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16558
diff changeset
   450
    from:startCol to:endColOrNil with:fg and:bg
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   451
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   452
    "Called by both gutterView and textView (well, not yet) to
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   453
     allow services to draw custom things on text view.
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   454
     Ask JV what the args means if unsure (I'm lazy to document
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   455
     them, now it is just an experiment...)"
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   456
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   457
    "Intentionally left blank, to be overriden by subclasses"
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   458
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   459
    "Created: / 17-06-2011 / 13:49:44 / Jan Vrany <jan.vrany@fit.cvut.cz>"
15775
efbf490dbb74 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 15169
diff changeset
   460
!
efbf490dbb74 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 15169
diff changeset
   461
efbf490dbb74 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 15169
diff changeset
   462
redrawLine:line
efbf490dbb74 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 15169
diff changeset
   463
    gutterView redrawLine:line
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   464
! !
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   465
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   466
!CodeViewService methodsFor:'registering'!
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   467
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   468
registerIn: aCodeView
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   469
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   470
    "Installs myself in aCodeView"
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   471
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   472
    codeView := aCodeView.
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   473
    codeView addDependent: self.
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   474
    textView := aCodeView textView. 
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   475
    gutterView := aCodeView gutterView.
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   476
    enabled := true.
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   477
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   478
    "Created: / 06-03-2010 / 19:21:18 / Jan Vrany <jan.vrany@fit.cvut.cz>"
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   479
    "Modified: / 17-06-2011 / 13:07:03 / Jan Vrany <jan.vrany@fit.cvut.cz>"
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   480
!
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   481
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   482
unregister
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   483
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   484
    "Uninstall myself from my codeView"
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   485
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   486
    codeView removeDependent: self.
14926
240ebc7f8f87 Fixes for enabling / disabling individual CodeView2 services.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14842
diff changeset
   487
    "/ Do not nil out a codeView, required for enable/disable functionality
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   488
    textView := nil.
14926
240ebc7f8f87 Fixes for enabling / disabling individual CodeView2 services.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14842
diff changeset
   489
    gutterView := nil.
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   490
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   491
    "Created: / 06-03-2010 / 19:21:23 / Jan Vrany <jan.vrany@fit.cvut.cz>"
14926
240ebc7f8f87 Fixes for enabling / disabling individual CodeView2 services.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14842
diff changeset
   492
    "Modified (comment): / 27-11-2014 / 15:42:10 / Jan Vrany <jan.vrany@fit.cvut.cz>"
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   493
! !
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   494
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   495
!CodeViewService methodsFor:'testing'!
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   496
12900
5a645e7b5961 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 12861
diff changeset
   497
isBreakpointService
5a645e7b5961 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 12861
diff changeset
   498
    ^ false
5a645e7b5961 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 12861
diff changeset
   499
!
5a645e7b5961 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 12861
diff changeset
   500
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   501
isEnabled
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   502
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   503
    ^enabled == true
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   504
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   505
    "Created: / 07-03-2010 / 13:47:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
16558
c3ef59e150b8 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 15775
diff changeset
   506
!
c3ef59e150b8 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 15775
diff changeset
   507
c3ef59e150b8 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 15775
diff changeset
   508
isLintService
c3ef59e150b8 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 15775
diff changeset
   509
    ^ false
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   510
! !
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   511
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   512
!CodeViewService class methodsFor:'documentation'!
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   513
14994
19512695e936 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 14987
diff changeset
   514
version
15775
efbf490dbb74 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 15169
diff changeset
   515
    ^ '$Header$'
14994
19512695e936 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 14987
diff changeset
   516
!
19512695e936 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 14987
diff changeset
   517
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   518
version_CVS
15775
efbf490dbb74 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 15169
diff changeset
   519
    ^ '$Header$'
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   520
!
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   521
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   522
version_SVN
15775
efbf490dbb74 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 15169
diff changeset
   523
    ^ '$Id$'
9983
29a127ade5af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   524
! !
12861
3106975dc3e1 class: Tools::CodeViewService
Claus Gittinger <cg@exept.de>
parents: 11182
diff changeset
   525