author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Mon, 15 Dec 2014 21:27:13 +0100 | |
changeset 15028 | 5b22d7abf3e0 |
parent 14995 | 9dc92bd11831 |
child 15101 | 05cf28ac84ef |
permissions | -rw-r--r-- |
13857 | 1 |
" |
2 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
"{ Package: 'stx:libtool' }" |
|
13 |
||
14 |
"{ NameSpace: Tools }" |
|
15 |
||
16 |
Object subclass:#LintAnnotation |
|
15028
5b22d7abf3e0
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14995
diff
changeset
|
17 |
instanceVariableNames:'line rule' |
13857 | 18 |
classVariableNames:'' |
19 |
poolDictionaries:'' |
|
20 |
category:'Interface-Lint' |
|
21 |
! |
|
22 |
||
23 |
!LintAnnotation class methodsFor:'documentation'! |
|
24 |
||
25 |
copyright |
|
26 |
" |
|
27 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
28 |
All Rights Reserved |
|
29 |
||
30 |
This software is furnished under a license and may be used |
|
31 |
only in accordance with the terms of that license and with the |
|
32 |
inclusion of the above copyright notice. This software may not |
|
33 |
be provided or otherwise made available to, or used by, any |
|
34 |
other person. No title to or ownership of the software is |
|
35 |
hereby transferred. |
|
36 |
" |
|
37 |
! ! |
|
38 |
||
39 |
!LintAnnotation class methodsFor:'instance creation'! |
|
40 |
||
41 |
from: start to: end rule: rule |
|
42 |
||
43 |
^self new |
|
44 |
startPosition: start; |
|
45 |
endPosition: end; |
|
46 |
rule: rule; |
|
47 |
yourself. |
|
48 |
||
49 |
"Created: / 30-01-2012 / 15:23:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
50 |
! ! |
|
51 |
||
52 |
!LintAnnotation methodsFor:'accessing'! |
|
53 |
||
54 |
line |
|
55 |
^ line |
|
56 |
! |
|
57 |
||
58 |
line:anInteger |
|
59 |
line := anInteger. |
|
60 |
! |
|
61 |
||
62 |
rule |
|
63 |
^ rule |
|
64 |
! |
|
65 |
||
66 |
rule:anRBLintRule |
|
67 |
rule := anRBLintRule. |
|
68 |
||
15028
5b22d7abf3e0
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14995
diff
changeset
|
69 |
"Modified: / 15-12-2014 / 13:10:05 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
13857 | 70 |
! ! |
71 |
||
14995
9dc92bd11831
class: Tools::LintAnnotation
Claus Gittinger <cg@exept.de>
parents:
13857
diff
changeset
|
72 |
!LintAnnotation methodsFor:'help'! |
9dc92bd11831
class: Tools::LintAnnotation
Claus Gittinger <cg@exept.de>
parents:
13857
diff
changeset
|
73 |
|
9dc92bd11831
class: Tools::LintAnnotation
Claus Gittinger <cg@exept.de>
parents:
13857
diff
changeset
|
74 |
helpTextFor:aView |
9dc92bd11831
class: Tools::LintAnnotation
Claus Gittinger <cg@exept.de>
parents:
13857
diff
changeset
|
75 |
rule notNil ifTrue:[ |
9dc92bd11831
class: Tools::LintAnnotation
Claus Gittinger <cg@exept.de>
parents:
13857
diff
changeset
|
76 |
^ aView resources |
9dc92bd11831
class: Tools::LintAnnotation
Claus Gittinger <cg@exept.de>
parents:
13857
diff
changeset
|
77 |
stringWithCRs:'Lint says: %1' "/ 'Lint says: %1\Click for more info.' |
9dc92bd11831
class: Tools::LintAnnotation
Claus Gittinger <cg@exept.de>
parents:
13857
diff
changeset
|
78 |
with:(aView resources string:rule name). |
9dc92bd11831
class: Tools::LintAnnotation
Claus Gittinger <cg@exept.de>
parents:
13857
diff
changeset
|
79 |
]. |
9dc92bd11831
class: Tools::LintAnnotation
Claus Gittinger <cg@exept.de>
parents:
13857
diff
changeset
|
80 |
^ nil |
9dc92bd11831
class: Tools::LintAnnotation
Claus Gittinger <cg@exept.de>
parents:
13857
diff
changeset
|
81 |
! ! |
9dc92bd11831
class: Tools::LintAnnotation
Claus Gittinger <cg@exept.de>
parents:
13857
diff
changeset
|
82 |
|
15028
5b22d7abf3e0
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14995
diff
changeset
|
83 |
!LintAnnotation methodsFor:'printing & storing'! |
5b22d7abf3e0
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14995
diff
changeset
|
84 |
|
5b22d7abf3e0
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14995
diff
changeset
|
85 |
printOn:aStream |
5b22d7abf3e0
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14995
diff
changeset
|
86 |
"append a user printed representation of the receiver to aStream. |
5b22d7abf3e0
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14995
diff
changeset
|
87 |
The format is suitable for a human - not meant to be read back." |
5b22d7abf3e0
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14995
diff
changeset
|
88 |
|
5b22d7abf3e0
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14995
diff
changeset
|
89 |
self basicPrintOn: aStream. |
5b22d7abf3e0
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14995
diff
changeset
|
90 |
aStream nextPut: $(. |
5b22d7abf3e0
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14995
diff
changeset
|
91 |
line printOn: aStream. |
5b22d7abf3e0
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14995
diff
changeset
|
92 |
aStream nextPut: $). |
5b22d7abf3e0
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14995
diff
changeset
|
93 |
|
5b22d7abf3e0
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14995
diff
changeset
|
94 |
"Modified: / 15-12-2014 / 13:41:28 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
5b22d7abf3e0
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14995
diff
changeset
|
95 |
! ! |
5b22d7abf3e0
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14995
diff
changeset
|
96 |
|
13857 | 97 |
!LintAnnotation class methodsFor:'documentation'! |
98 |
||
99 |
version |
|
15028
5b22d7abf3e0
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14995
diff
changeset
|
100 |
^ '$Header: /cvs/stx/stx/libtool/Tools__LintAnnotation.st,v 1.3 2014-12-15 20:27:13 vrany Exp $' |
13857 | 101 |
! |
102 |
||
103 |
version_CVS |
|
15028
5b22d7abf3e0
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14995
diff
changeset
|
104 |
^ '$Header: /cvs/stx/stx/libtool/Tools__LintAnnotation.st,v 1.3 2014-12-15 20:27:13 vrany Exp $' |
13857 | 105 |
! ! |
106 |