author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 08 Aug 2013 11:08:29 +0100 | |
branch | jv |
changeset 13330 | 02d6c2d848a0 |
parent 12432 | f60cf9a3482b |
parent 13282 | 2e628ff0e590 |
child 15566 | 184cea584be5 |
permissions | -rw-r--r-- |
10002 | 1 |
" |
10095 | 2 |
Copyright (c) 2007-2010 Jan Vrany, SWING Research Group, Czech Technical University in Prague |
3 |
Copyright (c) 2009-2010 eXept Software AG |
|
10002 | 4 |
|
10095 | 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. |
|
10002 | 25 |
" |
26 |
"{ Package: 'stx:libtool' }" |
|
27 |
||
28 |
"{ NameSpace: Tools }" |
|
29 |
||
30 |
SimpleDialog subclass:#LintRuleSelectionDialog |
|
12431
9f0c59c742d5
Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12401
diff
changeset
|
31 |
instanceVariableNames:'selectionHolder variablePanel relativeCorners detailsShown |
12432
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
32 |
listSelection rulesetList rulesetHolder rulesetNameList |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
33 |
rulesetNameHolder' |
10002 | 34 |
classVariableNames:'' |
35 |
poolDictionaries:'' |
|
36 |
category:'Interface-Lint' |
|
37 |
! |
|
38 |
||
39 |
!LintRuleSelectionDialog class methodsFor:'documentation'! |
|
40 |
||
41 |
copyright |
|
42 |
" |
|
10095 | 43 |
Copyright (c) 2007-2010 Jan Vrany, SWING Research Group, Czech Technical University in Prague |
44 |
Copyright (c) 2009-2010 eXept Software AG |
|
45 |
||
46 |
Permission is hereby granted, free of charge, to any person |
|
47 |
obtaining a copy of this software and associated documentation |
|
48 |
files (the 'Software'), to deal in the Software without |
|
49 |
restriction, including without limitation the rights to use, |
|
50 |
copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
51 |
copies of the Software, and to permit persons to whom the |
|
52 |
Software is furnished to do so, subject to the following |
|
53 |
conditions: |
|
10002 | 54 |
|
10095 | 55 |
The above copyright notice and this permission notice shall be |
56 |
included in all copies or substantial portions of the Software. |
|
57 |
||
58 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, |
|
59 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
|
60 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|
61 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
|
62 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
|
63 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
64 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
|
65 |
OTHER DEALINGS IN THE SOFTWARE. |
|
10002 | 66 |
" |
67 |
! |
|
68 |
||
69 |
documentation |
|
70 |
" |
|
71 |
documentation to be added. |
|
72 |
||
73 |
[author:] |
|
74 |
Jan Vrany (jv@neso) |
|
75 |
||
76 |
[instance variables:] |
|
77 |
||
78 |
[class variables:] |
|
79 |
||
80 |
[see also:] |
|
81 |
||
82 |
" |
|
83 |
! |
|
84 |
||
85 |
examples |
|
86 |
" |
|
87 |
Starting the application: |
|
88 |
[exBegin] |
|
89 |
Tools::LintRuleSelectionDialog open |
|
90 |
||
91 |
[exEnd] |
|
92 |
||
93 |
more examples to be added: |
|
94 |
[exBegin] |
|
95 |
... add code fragment for |
|
96 |
... executable example here ... |
|
97 |
[exEnd] |
|
98 |
" |
|
99 |
! ! |
|
100 |
||
101 |
!LintRuleSelectionDialog class methodsFor:'interface specs'! |
|
102 |
||
103 |
windowSpec |
|
104 |
"This resource specification was automatically generated |
|
105 |
by the UIPainter of ST/X." |
|
106 |
||
107 |
"Do not manually edit this!! If it is corrupted, |
|
108 |
the UIPainter may not be able to read the specification." |
|
109 |
||
110 |
" |
|
111 |
UIPainter new openOnClass:Tools::LintRuleSelectionDialog andSelector:#windowSpec |
|
112 |
Tools::LintRuleSelectionDialog new openInterface:#windowSpec |
|
113 |
Tools::LintRuleSelectionDialog open |
|
114 |
" |
|
115 |
||
116 |
<resource: #canvas> |
|
117 |
||
118 |
^ |
|
119 |
#(FullSpec |
|
120 |
name: windowSpec |
|
121 |
window: |
|
122 |
(WindowSpec |
|
123 |
label: 'Select Lint Rules' |
|
124 |
name: 'Select Lint Rules' |
|
125 |
min: (Point 10 10) |
|
126 |
bounds: (Rectangle 0 0 600 400) |
|
127 |
) |
|
128 |
component: |
|
129 |
(SpecCollection |
|
130 |
collection: ( |
|
12432
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
131 |
(ComboListSpec |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
132 |
name: 'ComboBox1' |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
133 |
layout: (LayoutFrame 0 0 0 0 0 1 25 0) |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
134 |
model: rulesetNameHolder |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
135 |
acceptOnPointerLeave: false |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
136 |
comboList: rulesetNameList |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
137 |
) |
11298
1724964c25a4
fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents:
10095
diff
changeset
|
138 |
(VariableVerticalPanelSpec |
1724964c25a4
fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents:
10095
diff
changeset
|
139 |
name: 'VariableVerticalPanel1' |
12432
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
140 |
layout: (LayoutFrame 0 0 30 0 0 1 -30 1) |
10002 | 141 |
component: |
142 |
(SpecCollection |
|
143 |
collection: ( |
|
144 |
(SubCanvasSpec |
|
145 |
name: 'RuleList' |
|
146 |
hasHorizontalScrollBar: false |
|
147 |
hasVerticalScrollBar: false |
|
148 |
majorKey: #'Tools::HierarchicalLintRuleList' |
|
149 |
subAspectHolders: |
|
150 |
(Array |
|
151 |
||
152 |
(SubChannelInfoSpec |
|
153 |
subAspect: inGeneratorHolder |
|
154 |
aspect: allRulesHolder |
|
155 |
) |
|
156 |
(SubChannelInfoSpec |
|
157 |
subAspect: listSelection |
|
158 |
aspect: listSelection |
|
159 |
) |
|
160 |
||
161 |
(SubChannelInfoSpec |
|
162 |
subAspect: modeHolder |
|
163 |
aspect: modeHolder |
|
164 |
) |
|
165 |
(SubChannelInfoSpec |
|
166 |
subAspect: outGeneratorHolder |
|
167 |
aspect: selectedRulesHolder |
|
168 |
) |
|
169 |
||
170 |
(SubChannelInfoSpec |
|
171 |
subAspect: selectionHolder |
|
172 |
aspect: selectionHolder |
|
173 |
) |
|
174 |
) |
|
175 |
createNewApplication: true |
|
176 |
createNewBuilder: true |
|
177 |
) |
|
178 |
(SubCanvasSpec |
|
179 |
name: 'RuleDesc' |
|
180 |
hasHorizontalScrollBar: false |
|
181 |
hasVerticalScrollBar: false |
|
182 |
majorKey: #'Tools::LintRuleDetail' |
|
183 |
subAspectHolders: |
|
184 |
(Array |
|
185 |
||
186 |
(SubChannelInfoSpec |
|
187 |
subAspect: ruleHolder |
|
11298
1724964c25a4
fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents:
10095
diff
changeset
|
188 |
aspect: listSelection |
10002 | 189 |
) |
190 |
) |
|
191 |
createNewApplication: true |
|
192 |
createNewBuilder: true |
|
193 |
) |
|
194 |
) |
|
195 |
||
196 |
) |
|
11298
1724964c25a4
fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents:
10095
diff
changeset
|
197 |
handles: (Any 0.808108108108108 1.0) |
10002 | 198 |
) |
199 |
(HorizontalPanelViewSpec |
|
200 |
name: 'BottonPanel' |
|
201 |
layout: (LayoutFrame 0 0 -30 1 0 1 0 1) |
|
202 |
horizontalLayout: fitSpace |
|
203 |
verticalLayout: center |
|
204 |
horizontalSpace: 3 |
|
205 |
verticalSpace: 3 |
|
206 |
reverseOrderIfOKAtLeft: true |
|
207 |
component: |
|
208 |
(SpecCollection |
|
209 |
collection: ( |
|
210 |
(ActionButtonSpec |
|
211 |
label: 'Cancel' |
|
212 |
name: 'CancelButton' |
|
213 |
translateLabel: true |
|
214 |
model: doCancel |
|
215 |
extent: (Point 295 22) |
|
216 |
) |
|
217 |
(ActionButtonSpec |
|
218 |
label: 'OK' |
|
219 |
name: 'OKButton' |
|
220 |
translateLabel: true |
|
221 |
model: doAccept |
|
11298
1724964c25a4
fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents:
10095
diff
changeset
|
222 |
isDefault: true |
1724964c25a4
fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents:
10095
diff
changeset
|
223 |
defaultable: true |
10002 | 224 |
extent: (Point 296 22) |
225 |
) |
|
226 |
) |
|
227 |
||
228 |
) |
|
229 |
) |
|
230 |
) |
|
231 |
||
232 |
) |
|
233 |
) |
|
11298
1724964c25a4
fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents:
10095
diff
changeset
|
234 |
|
12432
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
235 |
"Modified: / 27-02-2013 / 23:23:58 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10002 | 236 |
! ! |
237 |
||
238 |
!LintRuleSelectionDialog methodsFor:'accessing'! |
|
239 |
||
12432
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
240 |
ruleset: ruleset |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
241 |
self rulesetHolder value: ruleset |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
242 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
243 |
"Created: / 27-02-2013 / 23:36:18 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
244 |
! |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
245 |
|
10002 | 246 |
selection |
247 |
||
248 |
^self selectionHolder value |
|
249 |
||
250 |
"Created: / 25-08-2010 / 14:10:03 / Jan Vrany <enter your email here>" |
|
251 |
! |
|
252 |
||
253 |
selection: anObject |
|
254 |
||
255 |
self selectionHolder value: anObject |
|
256 |
||
257 |
"Created: / 25-08-2010 / 14:09:40 / Jan Vrany <enter your email here>" |
|
258 |
! |
|
259 |
||
260 |
selectionAsRule |
|
261 |
||
12432
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
262 |
self rulesetHolder value rules: self selection. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
263 |
^self rulesetHolder value. |
10002 | 264 |
|
265 |
"Created: / 25-08-2010 / 14:10:58 / Jan Vrany <enter your email here>" |
|
12432
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
266 |
"Modified: / 27-02-2013 / 23:40:39 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10002 | 267 |
! ! |
268 |
||
269 |
!LintRuleSelectionDialog methodsFor:'actions'! |
|
270 |
||
271 |
hideResultView |
|
272 |
||
273 |
detailsShown == true ifFalse:[^self]. |
|
274 |
||
275 |
variablePanel shown ifFalse:[^self]. |
|
276 |
||
277 |
relativeCorners := variablePanel relativeCorners. |
|
278 |
||
279 |
variablePanel |
|
280 |
relativeCorners:#( 0.99 1.0 ); |
|
281 |
resizeSubviews. |
|
282 |
detailsShown := false. |
|
283 |
||
284 |
"Created: / 10-02-2007 / 11:39:10 / janfrog" |
|
285 |
"Modified: / 24-07-2010 / 15:30:38 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
286 |
! |
|
287 |
||
288 |
showResultView |
|
289 |
detailsShown == true ifTrue:[^self]. |
|
290 |
variablePanel |
|
291 |
relativeCorners:relativeCorners ? #(0.5 1.0); |
|
292 |
resizeSubviews. |
|
293 |
detailsShown := true. |
|
294 |
||
295 |
"Created: / 10-02-2007 / 11:38:26 / janfrog" |
|
296 |
"Modified: / 24-07-2010 / 15:30:10 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
297 |
! ! |
|
298 |
||
299 |
!LintRuleSelectionDialog methodsFor:'aspects'! |
|
300 |
||
301 |
allRulesHolder |
|
302 |
||
303 |
^[(RBCompositeLintRule allRules) rules] |
|
304 |
||
305 |
"Created: / 15-04-2010 / 20:09:09 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
306 |
! |
|
307 |
||
308 |
listSelection |
|
309 |
"return/create the 'listSelection' value holder (automatically generated)" |
|
310 |
||
311 |
listSelection isNil ifTrue:[ |
|
312 |
listSelection := ValueHolder new. |
|
313 |
]. |
|
314 |
^ listSelection |
|
315 |
! |
|
316 |
||
317 |
listSelection:something |
|
318 |
"set the 'listSelection' value holder (automatically generated)" |
|
319 |
||
320 |
listSelection := something. |
|
321 |
! |
|
322 |
||
323 |
modeHolder |
|
324 |
||
325 |
^[#select] |
|
326 |
||
327 |
"Created: / 15-04-2010 / 20:13:51 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
328 |
! |
|
329 |
||
12432
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
330 |
rulesetHolder |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
331 |
"return/create the 'rulesetHolder' value holder (automatically generated)" |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
332 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
333 |
rulesetHolder isNil ifTrue:[ |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
334 |
rulesetHolder := ValueHolder new. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
335 |
rulesetHolder addDependent:self. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
336 |
]. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
337 |
^ rulesetHolder |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
338 |
! |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
339 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
340 |
rulesetHolder:something |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
341 |
"set the 'rulesetHolder' value holder (automatically generated)" |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
342 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
343 |
|oldValue newValue| |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
344 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
345 |
rulesetHolder notNil ifTrue:[ |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
346 |
oldValue := rulesetHolder value. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
347 |
rulesetHolder removeDependent:self. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
348 |
]. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
349 |
rulesetHolder := something. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
350 |
rulesetHolder notNil ifTrue:[ |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
351 |
rulesetHolder addDependent:self. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
352 |
]. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
353 |
newValue := rulesetHolder value. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
354 |
oldValue ~~ newValue ifTrue:[ |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
355 |
self update:#value with:newValue from:rulesetHolder. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
356 |
]. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
357 |
! |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
358 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
359 |
rulesetList |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
360 |
"return/create the 'rulesetList' value holder (automatically generated)" |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
361 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
362 |
rulesetList isNil ifTrue:[ |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
363 |
rulesetList := RBCompositeLintRule rulesets asList. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
364 |
rulesetList addDependent:self. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
365 |
]. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
366 |
^ rulesetList |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
367 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
368 |
"Modified: / 27-02-2013 / 23:07:28 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
369 |
! |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
370 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
371 |
rulesetList:something |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
372 |
"set the 'rulesetList' value holder (automatically generated)" |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
373 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
374 |
|oldValue newValue| |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
375 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
376 |
rulesetList notNil ifTrue:[ |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
377 |
oldValue := rulesetList value. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
378 |
rulesetList removeDependent:self. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
379 |
]. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
380 |
rulesetList := something. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
381 |
rulesetList notNil ifTrue:[ |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
382 |
rulesetList addDependent:self. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
383 |
]. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
384 |
newValue := rulesetList value. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
385 |
oldValue ~~ newValue ifTrue:[ |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
386 |
self update:#value with:newValue from:rulesetList. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
387 |
]. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
388 |
! |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
389 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
390 |
rulesetNameHolder |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
391 |
"return/create the 'rulesetNameHolder' value holder (automatically generated)" |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
392 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
393 |
rulesetNameHolder isNil ifTrue:[ |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
394 |
rulesetNameHolder := self rulesetHolder value name asValue. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
395 |
rulesetNameHolder addDependent:self. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
396 |
]. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
397 |
^ rulesetNameHolder |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
398 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
399 |
"Modified: / 27-02-2013 / 23:42:31 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
400 |
! |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
401 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
402 |
rulesetNameHolder:something |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
403 |
"set the 'rulesetNameHolder' value holder (automatically generated)" |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
404 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
405 |
|oldValue newValue| |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
406 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
407 |
rulesetNameHolder notNil ifTrue:[ |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
408 |
oldValue := rulesetNameHolder value. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
409 |
rulesetNameHolder removeDependent:self. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
410 |
]. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
411 |
rulesetNameHolder := something. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
412 |
rulesetNameHolder notNil ifTrue:[ |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
413 |
rulesetNameHolder addDependent:self. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
414 |
]. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
415 |
newValue := rulesetNameHolder value. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
416 |
oldValue ~~ newValue ifTrue:[ |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
417 |
self update:#value with:newValue from:rulesetNameHolder. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
418 |
]. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
419 |
! |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
420 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
421 |
rulesetNameList |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
422 |
"return/create the 'rulesetNameList' value holder (automatically generated)" |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
423 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
424 |
rulesetNameList isNil ifTrue:[ |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
425 |
rulesetNameList := ValueHolder new. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
426 |
]. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
427 |
^ rulesetNameList |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
428 |
! |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
429 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
430 |
rulesetNameList:something |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
431 |
"set the 'rulesetNameList' value holder (automatically generated)" |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
432 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
433 |
rulesetNameList := something. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
434 |
! |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
435 |
|
10002 | 436 |
selectionHolder |
437 |
"return/create the 'selectionHolder' value holder (automatically generated)" |
|
438 |
||
439 |
selectionHolder isNil ifTrue:[ |
|
440 |
selectionHolder := ValueHolder new. |
|
441 |
]. |
|
442 |
^ selectionHolder |
|
443 |
! ! |
|
444 |
||
445 |
!LintRuleSelectionDialog methodsFor:'callbacks - post build'! |
|
446 |
||
447 |
postBuildVariablePanel: aPanel |
|
448 |
||
449 |
variablePanel := aPanel. |
|
450 |
||
451 |
"Created: / 24-07-2010 / 15:05:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
452 |
! ! |
|
453 |
||
12432
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
454 |
!LintRuleSelectionDialog methodsFor:'change & update'! |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
455 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
456 |
update:something with:aParameter from:changedObject |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
457 |
"Invoked when an object that I depend upon sends a change notification." |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
458 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
459 |
"stub code automatically generated - please change as required" |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
460 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
461 |
changedObject == rulesetList ifTrue:[ |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
462 |
self updateRulesetNameList. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
463 |
^ self. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
464 |
]. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
465 |
changedObject == rulesetHolder ifTrue:[ |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
466 |
self rulesetNameHolder value: self rulesetHolder value name. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
467 |
self selection: self rulesetHolder value flattened. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
468 |
^ self. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
469 |
]. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
470 |
changedObject == rulesetNameHolder ifTrue:[ |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
471 |
self updateRulesetHolder. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
472 |
^ self. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
473 |
]. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
474 |
super update:something with:aParameter from:changedObject |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
475 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
476 |
"Modified: / 27-02-2013 / 23:27:44 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
477 |
! |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
478 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
479 |
updateRulesetHolder |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
480 |
| ruleset | |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
481 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
482 |
self rulesetHolder value name == self rulesetNameHolder value ifTrue:[ |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
483 |
^self. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
484 |
]. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
485 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
486 |
(self rulesetNameList value notNil and:[self rulesetNameHolder value asString = self rulesetNameList value last asString]) ifTrue:[ |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
487 |
ruleset := RBCompositeLintRule new. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
488 |
ruleset name: ('New Rule Set ' , (self rulesetList size + 1) printString). |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
489 |
self rulesetList add: ruleset. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
490 |
RBCompositeLintRule rulesets add: ruleset. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
491 |
self rulesetNameHolder value: ruleset name. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
492 |
] ifFalse:[ |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
493 |
| idx | |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
494 |
idx := self rulesetNameList value indexOf: self rulesetNameHolder value. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
495 |
ruleset := self rulesetList at: idx. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
496 |
]. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
497 |
self rulesetHolder value: ruleset. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
498 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
499 |
"Created: / 27-02-2013 / 23:15:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
500 |
! |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
501 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
502 |
updateRulesetNameList |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
503 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
504 |
self rulesetNameList value: |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
505 |
((self rulesetList collect:[:e|e name]) |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
506 |
add: 'New Ruleset...' asText allItalic; |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
507 |
yourself) |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
508 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
509 |
"Created: / 27-02-2013 / 23:08:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
510 |
! ! |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
511 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
512 |
!LintRuleSelectionDialog methodsFor:'hooks'! |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
513 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
514 |
commonPostBuild |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
515 |
self updateRulesetNameList. |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
516 |
|
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
517 |
"Created: / 27-02-2013 / 23:10:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
518 |
! ! |
f60cf9a3482b
Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
519 |
|
10002 | 520 |
!LintRuleSelectionDialog class methodsFor:'documentation'! |
521 |
||
13282
2e628ff0e590
class: Tools::LintRuleSelectionDialog
Claus Gittinger <cg@exept.de>
parents:
13280
diff
changeset
|
522 |
version |
2e628ff0e590
class: Tools::LintRuleSelectionDialog
Claus Gittinger <cg@exept.de>
parents:
13280
diff
changeset
|
523 |
^ '$Header: /cvs/stx/stx/libtool/Tools__LintRuleSelectionDialog.st,v 1.5 2013-07-31 16:08:52 cg Exp $' |
2e628ff0e590
class: Tools::LintRuleSelectionDialog
Claus Gittinger <cg@exept.de>
parents:
13280
diff
changeset
|
524 |
! |
2e628ff0e590
class: Tools::LintRuleSelectionDialog
Claus Gittinger <cg@exept.de>
parents:
13280
diff
changeset
|
525 |
|
10002 | 526 |
version_CVS |
13282
2e628ff0e590
class: Tools::LintRuleSelectionDialog
Claus Gittinger <cg@exept.de>
parents:
13280
diff
changeset
|
527 |
^ '$Header: /cvs/stx/stx/libtool/Tools__LintRuleSelectionDialog.st,v 1.5 2013-07-31 16:08:52 cg Exp $' |
10002 | 528 |
! |
529 |
||
12431
9f0c59c742d5
Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12401
diff
changeset
|
530 |
version_HG |
9f0c59c742d5
Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12401
diff
changeset
|
531 |
|
9f0c59c742d5
Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12401
diff
changeset
|
532 |
^ '$Changeset: <not expanded> $' |
9f0c59c742d5
Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12401
diff
changeset
|
533 |
! |
9f0c59c742d5
Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12401
diff
changeset
|
534 |
|
10002 | 535 |
version_SVN |
13282
2e628ff0e590
class: Tools::LintRuleSelectionDialog
Claus Gittinger <cg@exept.de>
parents:
13280
diff
changeset
|
536 |
^ '$Id: Tools__LintRuleSelectionDialog.st,v 1.5 2013-07-31 16:08:52 cg Exp $' |
10002 | 537 |
! ! |
13280
90dde9790cfc
class: Tools::LintRuleSelectionDialog
Claus Gittinger <cg@exept.de>
parents:
11298
diff
changeset
|
538 |