author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Wed, 03 Dec 2014 11:25:53 +0100 | |
changeset 14972 | 0e176d3678b1 |
parent 14052 | ebcdddd89b02 |
child 15030 | c8d7085ee271 |
permissions | -rw-r--r-- |
10484 | 1 |
" |
2 |
COPYRIGHT (c) 2010 by Jan Vrany, SWING Research Group. CTU in Prague |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
Permission is hereby granted, free of charge, to any person |
|
6 |
obtaining a copy of this software and associated documentation |
|
7 |
files (the 'Software'), to deal in the Software without |
|
8 |
restriction, including without limitation the rights to use, |
|
9 |
copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
10 |
copies of the Software, and to permit persons to whom the |
|
11 |
Software is furnished to do so, subject to the following |
|
12 |
conditions: |
|
13 |
||
14 |
The above copyright notice and this permission notice shall be |
|
15 |
included in all copies or substantial portions of the Software. |
|
16 |
||
17 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, |
|
18 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
|
19 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|
20 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
|
21 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
|
22 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
23 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
|
24 |
OTHER DEALINGS IN THE SOFTWARE. |
|
25 |
" |
|
26 |
"{ Package: 'stx:libtool' }" |
|
27 |
||
28 |
"{ NameSpace: Tools }" |
|
29 |
||
30 |
CodeViewService subclass:#LintService |
|
11416
941e576b6f71
changed: #fetchLintRuleHolder
Claus Gittinger <cg@exept.de>
parents:
11390
diff
changeset
|
31 |
instanceVariableNames:'ruleHolderFromApp highlighter' |
941e576b6f71
changed: #fetchLintRuleHolder
Claus Gittinger <cg@exept.de>
parents:
11390
diff
changeset
|
32 |
classVariableNames:'' |
941e576b6f71
changed: #fetchLintRuleHolder
Claus Gittinger <cg@exept.de>
parents:
11390
diff
changeset
|
33 |
poolDictionaries:'' |
941e576b6f71
changed: #fetchLintRuleHolder
Claus Gittinger <cg@exept.de>
parents:
11390
diff
changeset
|
34 |
category:'Interface-Lint' |
10484 | 35 |
! |
36 |
||
37 |
!LintService class methodsFor:'documentation'! |
|
38 |
||
39 |
copyright |
|
40 |
" |
|
41 |
COPYRIGHT (c) 2010 by Jan Vrany, SWING Research Group. CTU in Prague |
|
42 |
All Rights Reserved |
|
43 |
||
44 |
Permission is hereby granted, free of charge, to any person |
|
45 |
obtaining a copy of this software and associated documentation |
|
46 |
files (the 'Software'), to deal in the Software without |
|
47 |
restriction, including without limitation the rights to use, |
|
48 |
copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
49 |
copies of the Software, and to permit persons to whom the |
|
50 |
Software is furnished to do so, subject to the following |
|
51 |
conditions: |
|
52 |
||
53 |
The above copyright notice and this permission notice shall be |
|
54 |
included in all copies or substantial portions of the Software. |
|
55 |
||
56 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, |
|
57 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
|
58 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|
59 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
|
60 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
|
61 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
62 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
|
63 |
OTHER DEALINGS IN THE SOFTWARE. |
|
64 |
" |
|
65 |
! ! |
|
66 |
||
67 |
!LintService class methodsFor:'accessing'! |
|
68 |
||
69 |
label |
|
13099 | 70 |
"Answers a short label - for UI" |
10484 | 71 |
|
72 |
^'SmallLint Checker' |
|
73 |
||
74 |
"Created: / 05-08-2011 / 11:01:33 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
75 |
! ! |
|
76 |
||
13202 | 77 |
!LintService class methodsFor:'testing'! |
78 |
||
79 |
isUsefulFor:aCodeView |
|
80 |
"this filters useful services. |
|
81 |
Redefined to return true for myself - not for subclasses" |
|
82 |
||
83 |
^ self == Tools::LintService |
|
84 |
||
85 |
"Created: / 22-07-2013 / 14:01:38 / cg" |
|
86 |
! ! |
|
87 |
||
10484 | 88 |
!LintService methodsFor:'accessing'! |
89 |
||
90 |
syntaxHighlighter |
|
91 |
| app rules | |
|
92 |
||
11382 | 93 |
app := codeView application. |
94 |
app notNil ifTrue:[ |
|
11390
b5af6f49f10f
added: #fetchLintRuleHolder
Claus Gittinger <cg@exept.de>
parents:
11389
diff
changeset
|
95 |
rules := self ruleHolderFromApp value. |
b5af6f49f10f
added: #fetchLintRuleHolder
Claus Gittinger <cg@exept.de>
parents:
11389
diff
changeset
|
96 |
rules notEmptyOrNil ifTrue:[ |
b5af6f49f10f
added: #fetchLintRuleHolder
Claus Gittinger <cg@exept.de>
parents:
11389
diff
changeset
|
97 |
highlighter rules: rules. |
b5af6f49f10f
added: #fetchLintRuleHolder
Claus Gittinger <cg@exept.de>
parents:
11389
diff
changeset
|
98 |
^ highlighter |
11382 | 99 |
]. |
10484 | 100 |
]. |
101 |
^nil |
|
102 |
||
103 |
"Created: / 05-08-2011 / 10:59:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
11390
b5af6f49f10f
added: #fetchLintRuleHolder
Claus Gittinger <cg@exept.de>
parents:
11389
diff
changeset
|
104 |
"Modified: / 08-03-2012 / 01:23:48 / cg" |
10484 | 105 |
! ! |
106 |
||
107 |
!LintService methodsFor:'aspects'! |
|
108 |
||
109 |
ruleHolderFromApp |
|
110 |
"return/create the 'ruleHolderFromApp' value holder (automatically generated)" |
|
111 |
||
11382 | 112 |
|app| |
113 |
||
10484 | 114 |
ruleHolderFromApp isNil ifTrue:[ |
11382 | 115 |
(app := self application) notNil ifTrue:[ |
11390
b5af6f49f10f
added: #fetchLintRuleHolder
Claus Gittinger <cg@exept.de>
parents:
11389
diff
changeset
|
116 |
self fetchLintRuleHolder |
11382 | 117 |
"/ ruleHolderFromApp := ValueHolder new. |
118 |
"/ ruleHolderFromApp addDependent:self. |
|
119 |
]. |
|
10484 | 120 |
]. |
121 |
^ ruleHolderFromApp |
|
11382 | 122 |
|
11390
b5af6f49f10f
added: #fetchLintRuleHolder
Claus Gittinger <cg@exept.de>
parents:
11389
diff
changeset
|
123 |
"Modified: / 08-03-2012 / 01:17:15 / cg" |
10484 | 124 |
! |
125 |
||
126 |
ruleHolderFromApp:something |
|
127 |
"set the 'ruleHolderFromApp' value holder (automatically generated)" |
|
128 |
||
129 |
|oldValue newValue| |
|
130 |
||
131 |
ruleHolderFromApp notNil ifTrue:[ |
|
132 |
oldValue := ruleHolderFromApp value. |
|
133 |
ruleHolderFromApp removeDependent:self. |
|
134 |
]. |
|
135 |
ruleHolderFromApp := something. |
|
136 |
ruleHolderFromApp notNil ifTrue:[ |
|
137 |
ruleHolderFromApp addDependent:self. |
|
138 |
]. |
|
139 |
newValue := ruleHolderFromApp value. |
|
140 |
oldValue ~~ newValue ifTrue:[ |
|
141 |
self update:#value with:newValue from:ruleHolderFromApp. |
|
142 |
]. |
|
143 |
! ! |
|
144 |
||
145 |
!LintService methodsFor:'change & update'! |
|
146 |
||
147 |
update: aspect with: param from: sender |
|
11382 | 148 |
aspect == #sizeOfView ifFalse:[ |
149 |
sender == ruleHolderFromApp ifTrue:[ |
|
150 |
self syntaxHighlight: true. |
|
151 |
^ self. |
|
152 |
] |
|
153 |
]. |
|
154 |
super update: aspect with: param from: sender. |
|
10484 | 155 |
|
156 |
"Created: / 05-08-2011 / 11:49:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
11382 | 157 |
"Modified: / 07-03-2012 / 17:16:59 / cg" |
10484 | 158 |
! ! |
159 |
||
14972
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
160 |
|
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
161 |
!LintService methodsFor:'help'! |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
162 |
|
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
163 |
flyByHelpTextAtLine:aLineNr |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
164 |
|a html rule| |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
165 |
|
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
166 |
a := self annotationAtLine:aLineNr. |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
167 |
a notNil ifTrue:[ |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
168 |
(rule := a rule) notNil ifTrue:[ |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
169 |
^ 'Lint says: ',rule name. |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
170 |
"/ html := String streamContents:[:s| |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
171 |
"/ s |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
172 |
"/ nextPutAll: '<html>'; |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
173 |
"/ nextPutAll: rule name; |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
174 |
"/ nextPutAll:'<P>'; |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
175 |
"/ nextPutLine: rule rationale; |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
176 |
"/ nextPutAll: '</html>'. |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
177 |
"/ ]. |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
178 |
"/ ^ html |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
179 |
] |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
180 |
]. |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
181 |
^ nil |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
182 |
! ! |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
183 |
|
10484 | 184 |
!LintService methodsFor:'initialization'! |
185 |
||
186 |
initialize |
|
187 |
||
188 |
super initialize. |
|
189 |
||
190 |
highlighter := LintHighlighter new |
|
191 |
||
192 |
"Modified: / 03-09-2010 / 22:29:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
193 |
"Created: / 05-08-2011 / 11:53:05 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
194 |
! ! |
|
195 |
||
196 |
!LintService methodsFor:'private'! |
|
197 |
||
14972
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
198 |
annotationAtLine: lineNo |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
199 |
| annotations | |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
200 |
|
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
201 |
(annotations := highlighter annotations) isEmptyOrNil ifTrue:[ ^ nil ]. |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
202 |
annotations do:[:annotation| |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
203 |
| line | |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
204 |
|
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
205 |
(line := annotation line) isNil ifTrue:[ |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
206 |
line := codeView lineOfCharacterPosition: annotation startPosition. |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
207 |
annotation line: line. |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
208 |
]. |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
209 |
line > lineNo ifTrue:[ ^ nil ]. |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
210 |
line == lineNo ifTrue:[ ^ annotation ]. |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
211 |
]. |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
212 |
^nil |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
213 |
|
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
214 |
"Created: / 30-01-2012 / 21:06:25 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
215 |
! |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
216 |
|
10484 | 217 |
syntaxHighlight: delayed |
218 |
||
219 |
| service | |
|
220 |
service := self service: #'Tools::CodeHighlightingService'. |
|
221 |
service notNil ifTrue:[ |
|
14052
ebcdddd89b02
Fix in BackrgoundSourceProcessingService:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13498
diff
changeset
|
222 |
service processSafely: delayed |
10484 | 223 |
] |
224 |
||
225 |
"Created: / 05-08-2011 / 11:49:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
14052
ebcdddd89b02
Fix in BackrgoundSourceProcessingService:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13498
diff
changeset
|
226 |
"Modified: / 25-02-2014 / 19:57:41 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10484 | 227 |
! ! |
228 |
||
14972
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
229 |
!LintService methodsFor:'redrawing'! |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
230 |
|
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
231 |
drawLine:lineNo in:view atX:x y:y width:w height:h from:startCol to:endColOrNil with:fg and:bg |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
232 |
"Called by both gutterView and textView (well, not yet) to |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
233 |
allow services to draw custom things on text view. |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
234 |
Ask JV what the args means if unsure (I'm lazy to document |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
235 |
them, now it is just an experiment...)" |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
236 |
|
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
237 |
| lang annotation | |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
238 |
|
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
239 |
((lang := codeView language) isNil or:[lang isSmalltalk not]) ifTrue:[ ^ self ]. |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
240 |
|
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
241 |
annotation := self annotationAtLine: lineNo. |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
242 |
annotation notNil ifTrue:[ |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
243 |
self drawAnnotationIcon: (ToolbarIconLibrary smalllintWarning16x16) |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
244 |
atX: x y: y width: w height: h. |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
245 |
]. |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
246 |
|
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
247 |
"Created: / 30-01-2012 / 15:11:16 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
248 |
"Modified: / 07-08-2013 / 00:19:09 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
249 |
! ! |
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
250 |
|
10484 | 251 |
!LintService methodsFor:'registering'! |
252 |
||
11390
b5af6f49f10f
added: #fetchLintRuleHolder
Claus Gittinger <cg@exept.de>
parents:
11389
diff
changeset
|
253 |
fetchLintRuleHolder |
11382 | 254 |
|app| |
10484 | 255 |
|
11382 | 256 |
app := self application. |
257 |
app notNil ifTrue:[ |
|
258 |
"/ bad design; better idea would be to pass the lintRuleHolder back from the |
|
259 |
"/ application to me explicitely (in a postBuild method for some ruleCanvas of the app) |
|
11390
b5af6f49f10f
added: #fetchLintRuleHolder
Claus Gittinger <cg@exept.de>
parents:
11389
diff
changeset
|
260 |
(app respondsTo: #selectedLintRules) ifTrue:[ |
11382 | 261 |
self ruleHolderFromApp: app selectedLintRules |
11390
b5af6f49f10f
added: #fetchLintRuleHolder
Claus Gittinger <cg@exept.de>
parents:
11389
diff
changeset
|
262 |
] ifFalse:[ |
13498
b8d845e42988
Added `environment` instance variable to Tools__NewSystemBrowser and
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13202
diff
changeset
|
263 |
"/ self breakPoint:#jv. |
11416
941e576b6f71
changed: #fetchLintRuleHolder
Claus Gittinger <cg@exept.de>
parents:
11390
diff
changeset
|
264 |
"/ Transcript showCR:'LintService [info]: app does not provide a lintRuleHolder' |
11382 | 265 |
] |
10484 | 266 |
]. |
267 |
||
11390
b5af6f49f10f
added: #fetchLintRuleHolder
Claus Gittinger <cg@exept.de>
parents:
11389
diff
changeset
|
268 |
"Created: / 08-03-2012 / 01:16:38 / cg" |
b5af6f49f10f
added: #fetchLintRuleHolder
Claus Gittinger <cg@exept.de>
parents:
11389
diff
changeset
|
269 |
! |
b5af6f49f10f
added: #fetchLintRuleHolder
Claus Gittinger <cg@exept.de>
parents:
11389
diff
changeset
|
270 |
|
b5af6f49f10f
added: #fetchLintRuleHolder
Claus Gittinger <cg@exept.de>
parents:
11389
diff
changeset
|
271 |
registerIn: aCodeView |
b5af6f49f10f
added: #fetchLintRuleHolder
Claus Gittinger <cg@exept.de>
parents:
11389
diff
changeset
|
272 |
super registerIn: aCodeView. |
b5af6f49f10f
added: #fetchLintRuleHolder
Claus Gittinger <cg@exept.de>
parents:
11389
diff
changeset
|
273 |
self fetchLintRuleHolder. |
b5af6f49f10f
added: #fetchLintRuleHolder
Claus Gittinger <cg@exept.de>
parents:
11389
diff
changeset
|
274 |
|
10484 | 275 |
"Modified: / 17-06-2011 / 13:07:03 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
276 |
"Created: / 05-08-2011 / 11:47:06 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
11390
b5af6f49f10f
added: #fetchLintRuleHolder
Claus Gittinger <cg@exept.de>
parents:
11389
diff
changeset
|
277 |
"Modified: / 08-03-2012 / 01:16:51 / cg" |
10484 | 278 |
! ! |
279 |
||
280 |
!LintService class methodsFor:'documentation'! |
|
281 |
||
282 |
version |
|
14972
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
283 |
^ '$Header: /cvs/stx/stx/libtool/Tools__LintService.st,v 1.11 2014-12-03 10:25:53 vrany Exp $' |
10484 | 284 |
! |
285 |
||
286 |
version_CVS |
|
14972
0e176d3678b1
Support for line annotations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14052
diff
changeset
|
287 |
^ '$Header: /cvs/stx/stx/libtool/Tools__LintService.st,v 1.11 2014-12-03 10:25:53 vrany Exp $' |
10484 | 288 |
! ! |
13099 | 289 |