author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Tue, 06 Aug 2013 11:19:07 +0100 | |
branch | development |
changeset 2645 | b7a540a27521 |
child 2711 | a00302fe5083 |
permissions | -rw-r--r-- |
2645
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1 |
" |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
2 |
Copyright (c) 2010-2011 Jan Vrany, Jan Kurs & Marcel Hlopko, |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
3 |
SWING Research Group, Czech Technical University |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
4 |
in Prague |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
5 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
6 |
Permission is hereby granted, free of charge, to any person |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
7 |
obtaining a copy of this software and associated documentation |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
8 |
files (the 'Software'), to deal in the Software without |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
9 |
restriction, including without limitation the rights to use, |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
10 |
copy, modify, merge, publish, distribute, sublicense, and/or sell |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
11 |
copies of the Software, and to permit persons to whom the |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
12 |
Software is furnished to do so, subject to the following |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
13 |
conditions: |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
14 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
15 |
The above copyright notice and this permission notice shall be |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
16 |
included in all copies or substantial portions of the Software. |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
17 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
18 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
19 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
20 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
21 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
22 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
23 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
24 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
25 |
OTHER DEALINGS IN THE SOFTWARE. |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
26 |
" |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
27 |
"{ Package: 'stx:libjava/experiments' }" |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
28 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
29 |
Object subclass:#JavaCompilerProblemRegistry |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
30 |
instanceVariableNames:'problems' |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
31 |
classVariableNames:'' |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
32 |
poolDictionaries:'' |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
33 |
category:'Languages-Java-Support-Compiling' |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
34 |
! |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
35 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
36 |
JavaCompilerProblemRegistry class instanceVariableNames:'theOneAndOnlyInstance' |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
37 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
38 |
" |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
39 |
No other class instance variables are inherited by this class. |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
40 |
" |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
41 |
! |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
42 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
43 |
!JavaCompilerProblemRegistry class methodsFor:'documentation'! |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
44 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
45 |
copyright |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
46 |
" |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
47 |
Copyright (c) 2010-2011 Jan Vrany, Jan Kurs & Marcel Hlopko, |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
48 |
SWING Research Group, Czech Technical University |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
49 |
in Prague |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
50 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
51 |
Permission is hereby granted, free of charge, to any person |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
52 |
obtaining a copy of this software and associated documentation |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
53 |
files (the 'Software'), to deal in the Software without |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
54 |
restriction, including without limitation the rights to use, |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
55 |
copy, modify, merge, publish, distribute, sublicense, and/or sell |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
56 |
copies of the Software, and to permit persons to whom the |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
57 |
Software is furnished to do so, subject to the following |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
58 |
conditions: |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
59 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
60 |
The above copyright notice and this permission notice shall be |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
61 |
included in all copies or substantial portions of the Software. |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
62 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
63 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
64 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
65 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
66 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
67 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
68 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
69 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
70 |
OTHER DEALINGS IN THE SOFTWARE. |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
71 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
72 |
" |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
73 |
! ! |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
74 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
75 |
!JavaCompilerProblemRegistry class methodsFor:'instance creation'! |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
76 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
77 |
flush |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
78 |
"flushes the cached singleton" |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
79 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
80 |
theOneAndOnlyInstance := nil |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
81 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
82 |
" |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
83 |
self flushSingleton |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
84 |
" |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
85 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
86 |
"Created: / 06-08-2013 / 10:19:36 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
87 |
! |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
88 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
89 |
instance |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
90 |
"returns a singleton" |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
91 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
92 |
theOneAndOnlyInstance isNil ifTrue:[ |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
93 |
theOneAndOnlyInstance := self basicNew initialize. |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
94 |
]. |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
95 |
^ theOneAndOnlyInstance. |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
96 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
97 |
"Created: / 06-08-2013 / 10:19:30 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
98 |
! |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
99 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
100 |
new |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
101 |
"returns a singleton" |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
102 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
103 |
^ self instance. |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
104 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
105 |
"Modified: / 06-08-2013 / 10:20:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
106 |
! ! |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
107 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
108 |
!JavaCompilerProblemRegistry class methodsFor:'accessing'! |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
109 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
110 |
problemsFor: jclass |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
111 |
^ self instance problemsFor: jclass. |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
112 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
113 |
"Created: / 06-08-2013 / 10:29:34 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
114 |
! |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
115 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
116 |
problemsFor: jclass put: problems |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
117 |
^ self instance problemsFor: jclass put: problems |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
118 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
119 |
"Created: / 06-08-2013 / 10:29:47 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
120 |
! ! |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
121 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
122 |
!JavaCompilerProblemRegistry methodsFor:'accessing'! |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
123 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
124 |
problemsFor: jclass |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
125 |
^ problems at: jclass ifAbsent:[nil] |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
126 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
127 |
"Created: / 06-08-2013 / 10:24:12 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
128 |
! |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
129 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
130 |
problemsFor: jclass put: problemsForClass |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
131 |
problemsForClass isNil ifTrue:[ |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
132 |
problems removeKey: jclass ifAbsent:[nil]. |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
133 |
] ifFalse:[ |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
134 |
problems at: jclass put: problemsForClass. |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
135 |
]. |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
136 |
self changed: #problems with: jclass. |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
137 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
138 |
"Created: / 06-08-2013 / 10:25:06 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
139 |
! ! |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
140 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
141 |
!JavaCompilerProblemRegistry methodsFor:'initialization'! |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
142 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
143 |
initialize |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
144 |
"Invoked when a new instance is created." |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
145 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
146 |
problems := WeakIdentityDictionary new. |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
147 |
|
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
148 |
"Modified: / 06-08-2013 / 10:20:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
149 |
! ! |
b7a540a27521
Java compiler problem highlighting improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
150 |