author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Mon, 01 Jul 2013 22:15:23 +0100 | |
branch | jv |
changeset 13178 | c9bf900fe729 |
parent 12431 | 9f0c59c742d5 |
parent 13014 | 64e77f92badd |
child 15566 | 184cea584be5 |
permissions | -rw-r--r-- |
9999 | 1 |
" |
10094 | 2 |
Copyright (c) 2007-2010 Jan Vrany, SWING Research Group, Czech Technical University in Prague |
3 |
Copyright (c) 2009-2010 eXept Software AG |
|
9999 | 4 |
|
10094 | 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. |
|
9999 | 25 |
" |
26 |
"{ Package: 'stx:libtool' }" |
|
27 |
||
28 |
"{ NameSpace: Tools }" |
|
29 |
||
30 |
ApplicationModel subclass:#LintRuleDetail |
|
10671 | 31 |
instanceVariableNames:'ruleHolder rationaleVisibleHolder rationalView' |
10480 | 32 |
classVariableNames:'' |
33 |
poolDictionaries:'' |
|
34 |
category:'Interface-Lint' |
|
9999 | 35 |
! |
36 |
||
37 |
!LintRuleDetail class methodsFor:'documentation'! |
|
38 |
||
39 |
copyright |
|
40 |
" |
|
10094 | 41 |
Copyright (c) 2007-2010 Jan Vrany, SWING Research Group, Czech Technical University in Prague |
42 |
Copyright (c) 2009-2010 eXept Software AG |
|
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: |
|
9999 | 52 |
|
10094 | 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. |
|
9999 | 64 |
" |
65 |
! ! |
|
66 |
||
10672 | 67 |
!LintRuleDetail class methodsFor:'help specs'! |
68 |
||
69 |
flyByHelpSpec |
|
70 |
"This resource specification was automatically generated |
|
71 |
by the UIHelpTool of ST/X." |
|
72 |
||
73 |
"Do not manually edit this!! If it is corrupted, |
|
74 |
the UIHelpTool may not be able to read the specification." |
|
75 |
||
76 |
" |
|
77 |
UIHelpTool openOnClass:Tools::LintRuleDetail |
|
78 |
" |
|
79 |
||
80 |
<resource: #help> |
|
81 |
||
82 |
^ super flyByHelpSpec addPairsFrom:#( |
|
83 |
||
84 |
#ruleName |
|
85 |
'Click to browse the lint rule' |
|
86 |
||
87 |
) |
|
88 |
||
89 |
"Created: / 07-09-2011 / 04:08:11 / cg" |
|
90 |
! ! |
|
91 |
||
9999 | 92 |
!LintRuleDetail class methodsFor:'interface specs'! |
93 |
||
94 |
windowSpec |
|
95 |
"This resource specification was automatically generated |
|
96 |
by the UIPainter of ST/X." |
|
97 |
||
98 |
"Do not manually edit this!! If it is corrupted, |
|
99 |
the UIPainter may not be able to read the specification." |
|
100 |
||
101 |
" |
|
102 |
UIPainter new openOnClass:Tools::LintRuleDetail andSelector:#windowSpec |
|
103 |
Tools::LintRuleDetail new openInterface:#windowSpec |
|
104 |
Tools::LintRuleDetail open |
|
105 |
" |
|
106 |
||
107 |
<resource: #canvas> |
|
108 |
||
10500 | 109 |
^ |
9999 | 110 |
#(FullSpec |
10500 | 111 |
name: windowSpec |
112 |
window: |
|
9999 | 113 |
(WindowSpec |
10500 | 114 |
label: 'SmalllintRuleDetail' |
115 |
name: 'SmalllintRuleDetail' |
|
116 |
min: (Point 10 10) |
|
117 |
bounds: (Rectangle 0 0 560 300) |
|
118 |
) |
|
119 |
component: |
|
9999 | 120 |
(SpecCollection |
10500 | 121 |
collection: ( |
122 |
(VerticalPanelViewSpec |
|
123 |
name: 'Panel' |
|
124 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
|
125 |
horizontalLayout: fit |
|
126 |
verticalLayout: topSpaceFit |
|
127 |
horizontalSpace: 0 |
|
128 |
verticalSpace: 0 |
|
11299
3e8397061396
fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents:
10673
diff
changeset
|
129 |
ignoreInvisibleComponents: true |
10500 | 130 |
component: |
131 |
(SpecCollection |
|
132 |
collection: ( |
|
133 |
(ViewSpec |
|
134 |
name: 'Label' |
|
11299
3e8397061396
fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents:
10673
diff
changeset
|
135 |
visibilityChannel: false |
10500 | 136 |
component: |
137 |
(SpecCollection |
|
138 |
collection: ( |
|
10672 | 139 |
(LinkButtonSpec |
140 |
name: 'Button1' |
|
141 |
layout: (LayoutFrame 0 0 0 0 -150 1 30 0) |
|
142 |
activeHelpKey: ruleName |
|
10500 | 143 |
translateLabel: true |
144 |
labelChannel: ruleNameAspect |
|
145 |
adjust: left |
|
10672 | 146 |
model: browseLintRule |
10500 | 147 |
) |
148 |
(CheckBoxSpec |
|
149 |
label: 'Show Rationale' |
|
150 |
name: 'CheckBox1' |
|
151 |
layout: (LayoutFrame -150 1 0 0 0 1 30 0) |
|
152 |
model: rationaleVisibleHolder |
|
153 |
translateLabel: true |
|
154 |
) |
|
155 |
) |
|
156 |
||
157 |
) |
|
158 |
extent: (Point 560 30) |
|
159 |
) |
|
160 |
(HTMLViewSpec |
|
161 |
name: 'Rationale' |
|
162 |
level: 0 |
|
163 |
visibilityChannel: rationaleVisibleHolder |
|
164 |
hasHorizontalScrollBar: true |
|
165 |
hasVerticalScrollBar: true |
|
11299
3e8397061396
fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents:
10673
diff
changeset
|
166 |
backgroundColor: (Color 86.9993133440147 86.9993133440147 86.9993133440147) |
10500 | 167 |
htmlText: ruleRationaleAspect |
168 |
extent: (Point 560 270) |
|
169 |
postBuildCallback: setupHTMLView: |
|
170 |
) |
|
171 |
) |
|
172 |
||
173 |
) |
|
174 |
) |
|
175 |
) |
|
176 |
||
177 |
) |
|
9999 | 178 |
) |
179 |
! ! |
|
180 |
||
181 |
!LintRuleDetail class methodsFor:'plugIn spec'! |
|
182 |
||
183 |
aspectSelectors |
|
184 |
"This resource specification was automatically generated |
|
185 |
by the UIPainter of ST/X." |
|
186 |
||
187 |
"Do not manually edit this. If it is corrupted, |
|
188 |
the UIPainter may not be able to read the specification." |
|
189 |
||
190 |
"Return a description of exported aspects; |
|
191 |
these can be connected to aspects of an embedding application |
|
192 |
(if this app is embedded in a subCanvas)." |
|
193 |
||
194 |
^ #( |
|
10663
32e84728c885
comment/format in: #updateVisibility
Claus Gittinger <cg@exept.de>
parents:
10500
diff
changeset
|
195 |
#ruleHolder |
11306 | 196 |
#ruleRationaleAspect |
9999 | 197 |
). |
198 |
||
11306 | 199 |
"Modified: / 01-03-2012 / 16:31:04 / cg" |
9999 | 200 |
! ! |
201 |
||
10672 | 202 |
!LintRuleDetail methodsFor:'actions'! |
203 |
||
204 |
browseLintRule |
|
205 |
|rule ruleClass sel| |
|
206 |
||
207 |
rule := self ruleHolder value. |
|
208 |
rule isNil ifTrue:[^ self]. |
|
209 |
ruleClass := rule class. |
|
210 |
(ruleClass implements:#rationale) ifTrue:[ |
|
211 |
sel := #rationale. |
|
212 |
]. |
|
13014
64e77f92badd
class: Tools::LintRuleDetail
Claus Gittinger <cg@exept.de>
parents:
11314
diff
changeset
|
213 |
UserPreferences systemBrowserClass |
10672 | 214 |
openInClass:ruleClass selector:sel |
215 |
||
216 |
"Created: / 07-09-2011 / 04:09:38 / cg" |
|
217 |
! ! |
|
218 |
||
9999 | 219 |
!LintRuleDetail methodsFor:'aspects'! |
220 |
||
10473 | 221 |
rationaleVisibleHolder |
222 |
"return/create the 'rationaleVisibleHolder' value holder (automatically generated)" |
|
223 |
||
224 |
rationaleVisibleHolder isNil ifTrue:[ |
|
11299
3e8397061396
fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents:
10673
diff
changeset
|
225 |
rationaleVisibleHolder := ValueHolder with: true "false". |
10500 | 226 |
rationaleVisibleHolder addDependent:self. |
10473 | 227 |
]. |
228 |
^ rationaleVisibleHolder |
|
229 |
||
230 |
"Modified: / 04-08-2011 / 21:39:51 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
11299
3e8397061396
fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents:
10673
diff
changeset
|
231 |
"Modified: / 01-03-2012 / 08:50:20 / cg" |
10473 | 232 |
! |
233 |
||
234 |
rationaleVisibleHolder:something |
|
235 |
"set the 'rationaleVisibleHolder' value holder (automatically generated)" |
|
236 |
||
237 |
|oldValue newValue| |
|
238 |
||
239 |
rationaleVisibleHolder notNil ifTrue:[ |
|
10500 | 240 |
oldValue := rationaleVisibleHolder value. |
241 |
rationaleVisibleHolder removeDependent:self. |
|
10473 | 242 |
]. |
243 |
rationaleVisibleHolder := something. |
|
244 |
rationaleVisibleHolder notNil ifTrue:[ |
|
10500 | 245 |
rationaleVisibleHolder addDependent:self. |
10473 | 246 |
]. |
247 |
newValue := rationaleVisibleHolder value. |
|
248 |
oldValue ~~ newValue ifTrue:[ |
|
10500 | 249 |
self update:#value with:newValue from:rationaleVisibleHolder. |
10473 | 250 |
]. |
251 |
! |
|
252 |
||
9999 | 253 |
ruleHolder |
254 |
"return/create the 'ruleHolder' value holder (automatically generated)" |
|
255 |
||
256 |
ruleHolder isNil ifTrue:[ |
|
11299
3e8397061396
fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents:
10673
diff
changeset
|
257 |
ruleHolder := ValueHolder new. |
9999 | 258 |
]. |
259 |
^ ruleHolder |
|
11299
3e8397061396
fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents:
10673
diff
changeset
|
260 |
|
3e8397061396
fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents:
10673
diff
changeset
|
261 |
"Modified: / 01-03-2012 / 08:51:03 / cg" |
9999 | 262 |
! |
263 |
||
10473 | 264 |
ruleHolder:something |
9999 | 265 |
"set the 'ruleHolder' value holder (automatically generated)" |
266 |
||
10473 | 267 |
|oldValue newValue| |
268 |
||
269 |
ruleHolder notNil ifTrue:[ |
|
11306 | 270 |
oldValue := ruleHolder value. |
271 |
ruleHolder removeDependent:self. |
|
10473 | 272 |
]. |
273 |
ruleHolder := something. |
|
274 |
ruleHolder notNil ifTrue:[ |
|
11306 | 275 |
ruleHolder addDependent:self. |
10473 | 276 |
]. |
277 |
newValue := ruleHolder value. |
|
278 |
oldValue ~~ newValue ifTrue:[ |
|
11306 | 279 |
self update:#value with:newValue from:ruleHolder. |
10473 | 280 |
]. |
11306 | 281 |
|
282 |
"Modified: / 01-03-2012 / 15:29:30 / cg" |
|
9999 | 283 |
! |
284 |
||
285 |
ruleNameAspect |
|
286 |
<resource: #uiAspect> |
|
287 |
||
288 |
|holder| |
|
289 |
||
290 |
(holder := builder bindingAt:#ruleNameAspect) isNil ifTrue:[ |
|
10672 | 291 |
holder := BlockValue |
10673 | 292 |
with:[:h | |
293 |
"/ h displayString , ' ' , (('[browse]' actionForAll:[ self browseLintRule]) colorizeAllWith:Color blue) |
|
11299
3e8397061396
fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents:
10673
diff
changeset
|
294 |
(h ? '') displayString actionForAll:[ self browseLintRule ] |
10673 | 295 |
] |
10672 | 296 |
argument: self ruleHolder. |
297 |
builder aspectAt:#ruleNameAspect put:holder. |
|
9999 | 298 |
]. |
299 |
^ holder. |
|
300 |
||
301 |
"Modified: / 05-02-2010 / 12:51:30 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
11299
3e8397061396
fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents:
10673
diff
changeset
|
302 |
"Modified: / 01-03-2012 / 08:44:23 / cg" |
9999 | 303 |
! |
304 |
||
305 |
ruleRationaleAspect |
|
306 |
<resource: #uiAspect> |
|
307 |
||
308 |
|holder| |
|
309 |
||
310 |
(holder := builder bindingAt:#ruleRationaleAspect) isNil ifTrue:[ |
|
11306 | 311 |
"cannot use a BlockValue linked on the ruleHolder for the |
312 |
ruleRationaleAspect, because the ruleHolder maight be changed dynamically |
|
313 |
via the aspect-linking mechanism" |
|
314 |
"/ holder := (AspectAdaptor forAspect: #rationale) subjectChannel: self ruleHolder. |
|
315 |
holder := '' asValue. |
|
10672 | 316 |
builder aspectAt:#ruleRationaleAspect put:holder. |
9999 | 317 |
]. |
318 |
^ holder. |
|
319 |
||
320 |
"Modified: / 05-02-2010 / 12:51:42 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
11306 | 321 |
"Modified: / 01-03-2012 / 15:29:16 / cg" |
9999 | 322 |
! ! |
323 |
||
10473 | 324 |
!LintRuleDetail methodsFor:'change & update'! |
325 |
||
326 |
update:something with:aParameter from:changedObject |
|
327 |
"Invoked when an object that I depend upon sends a change notification." |
|
328 |
||
329 |
changedObject == ruleHolder ifTrue:[ |
|
10500 | 330 |
self updateVisibility. |
11306 | 331 |
self updateRule. |
10500 | 332 |
^ self. |
10473 | 333 |
]. |
334 |
changedObject == rationaleVisibleHolder ifTrue:[ |
|
10500 | 335 |
self updateVisibility. |
336 |
^ self. |
|
10473 | 337 |
]. |
338 |
super update:something with:aParameter from:changedObject |
|
339 |
||
340 |
"Modified: / 04-08-2011 / 21:31:13 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
11306 | 341 |
"Modified: / 01-03-2012 / 15:27:38 / cg" |
342 |
! |
|
343 |
||
344 |
updateRule |
|
345 |
"cannot use a BlockValue linked on the ruleHolder for the |
|
346 |
ruleRationaleAspect, because the ruleHolder maight be changed dynamically |
|
347 |
via the aspect-linking mechanism" |
|
348 |
||
349 |
|rule| |
|
350 |
||
351 |
rule := self ruleHolder value. |
|
11314 | 352 |
self ruleRationaleAspect value: (rule isNil ifTrue:[''] ifFalse:[rule rationaleWithAnchor]). |
11306 | 353 |
|
354 |
"Created: / 01-03-2012 / 15:28:18 / cg" |
|
10473 | 355 |
! |
356 |
||
357 |
updateVisibility |
|
358 |
||
10480 | 359 |
self ruleHolder value notNil |
10663
32e84728c885
comment/format in: #updateVisibility
Claus Gittinger <cg@exept.de>
parents:
10500
diff
changeset
|
360 |
ifTrue:[self show] |
32e84728c885
comment/format in: #updateVisibility
Claus Gittinger <cg@exept.de>
parents:
10500
diff
changeset
|
361 |
ifFalse:[self hide]. |
10473 | 362 |
|
363 |
"Created: / 04-08-2011 / 16:39:09 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10663
32e84728c885
comment/format in: #updateVisibility
Claus Gittinger <cg@exept.de>
parents:
10500
diff
changeset
|
364 |
"Modified: / 04-09-2011 / 20:18:48 / cg" |
10473 | 365 |
! ! |
366 |
||
10500 | 367 |
!LintRuleDetail methodsFor:'initialization'! |
368 |
||
369 |
setupHTMLView:aView |
|
10671 | 370 |
rationalView := aView. |
10500 | 371 |
aView painter |
10671 | 372 |
leftMargin:20; |
373 |
topMargin:5. |
|
10500 | 374 |
|
375 |
"Created: / 04-08-2011 / 18:00:36 / cg" |
|
376 |
! ! |
|
377 |
||
10473 | 378 |
!LintRuleDetail methodsFor:'private'! |
379 |
||
10671 | 380 |
heightWhenNotShowingRationale |
381 |
^ 30 |
|
382 |
||
383 |
"Created: / 07-09-2011 / 04:02:34 / cg" |
|
384 |
! |
|
385 |
||
386 |
heightWhenShowingRationale |
|
387 |
^ 100 |
|
388 |
||
389 |
"Created: / 07-09-2011 / 04:02:24 / cg" |
|
390 |
! |
|
391 |
||
10473 | 392 |
hide |
393 |
||
394 |
self visibility: false height: 0 |
|
395 |
||
396 |
"Created: / 11-03-2010 / 09:07:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
397 |
! |
|
398 |
||
399 |
show |
|
10671 | 400 |
self |
401 |
visibility: true |
|
402 |
height: (self rationaleVisibleHolder value |
|
403 |
ifTrue:[ self heightWhenShowingRationale ] |
|
404 |
ifFalse:[ self heightWhenNotShowingRationale ]) |
|
10473 | 405 |
|
406 |
"Created: / 11-03-2010 / 09:07:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10671 | 407 |
"Modified: / 07-09-2011 / 04:03:07 / cg" |
10473 | 408 |
! |
409 |
||
410 |
visibility: visibility height: height |
|
411 |
| container list detail h | |
|
10663
32e84728c885
comment/format in: #updateVisibility
Claus Gittinger <cg@exept.de>
parents:
10500
diff
changeset
|
412 |
|
11299
3e8397061396
fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents:
10673
diff
changeset
|
413 |
"/ cg: the whole conatiner-container access chains below is ugly - use a name to access components. |
3e8397061396
fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents:
10673
diff
changeset
|
414 |
"/ and also: there is no layout in list, so the code does crash. |
3e8397061396
fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents:
10673
diff
changeset
|
415 |
"/ I disabled the whole visibility stuff. |
3e8397061396
fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents:
10673
diff
changeset
|
416 |
^ self. |
3e8397061396
fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents:
10673
diff
changeset
|
417 |
|
10663
32e84728c885
comment/format in: #updateVisibility
Claus Gittinger <cg@exept.de>
parents:
10500
diff
changeset
|
418 |
(container := self window container) isNil ifTrue:[^self]. |
10473 | 419 |
h := visibility ifFalse:[0] ifTrue:[height]. |
420 |
||
10663
32e84728c885
comment/format in: #updateVisibility
Claus Gittinger <cg@exept.de>
parents:
10500
diff
changeset
|
421 |
container isVisible == visibility ifFalse: [ |
32e84728c885
comment/format in: #updateVisibility
Claus Gittinger <cg@exept.de>
parents:
10500
diff
changeset
|
422 |
container isVisible: visibility |
32e84728c885
comment/format in: #updateVisibility
Claus Gittinger <cg@exept.de>
parents:
10500
diff
changeset
|
423 |
]. |
10473 | 424 |
|
425 |
list := container container subViews first. |
|
426 |
detail := container container subViews second. |
|
427 |
||
10663
32e84728c885
comment/format in: #updateVisibility
Claus Gittinger <cg@exept.de>
parents:
10500
diff
changeset
|
428 |
(list layout bottomOffset ~= height negated) ifTrue:[ |
32e84728c885
comment/format in: #updateVisibility
Claus Gittinger <cg@exept.de>
parents:
10500
diff
changeset
|
429 |
list layout: (list layout bottomOffset: height negated; yourself) |
32e84728c885
comment/format in: #updateVisibility
Claus Gittinger <cg@exept.de>
parents:
10500
diff
changeset
|
430 |
]. |
32e84728c885
comment/format in: #updateVisibility
Claus Gittinger <cg@exept.de>
parents:
10500
diff
changeset
|
431 |
(detail layout topOffset ~= height negated) ifTrue:[ |
32e84728c885
comment/format in: #updateVisibility
Claus Gittinger <cg@exept.de>
parents:
10500
diff
changeset
|
432 |
detail layout: (detail layout topOffset: height negated; yourself) |
32e84728c885
comment/format in: #updateVisibility
Claus Gittinger <cg@exept.de>
parents:
10500
diff
changeset
|
433 |
]. |
10473 | 434 |
|
435 |
"Created: / 11-03-2010 / 09:51:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
11299
3e8397061396
fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents:
10673
diff
changeset
|
436 |
"Modified: / 01-03-2012 / 10:35:51 / cg" |
10480 | 437 |
! ! |
10473 | 438 |
|
9999 | 439 |
!LintRuleDetail class methodsFor:'documentation'! |
440 |
||
10672 | 441 |
version |
13014
64e77f92badd
class: Tools::LintRuleDetail
Claus Gittinger <cg@exept.de>
parents:
11314
diff
changeset
|
442 |
^ '$Header: /cvs/stx/stx/libtool/Tools__LintRuleDetail.st,v 1.14 2013-06-25 17:12:11 cg Exp $' |
10672 | 443 |
! |
444 |
||
9999 | 445 |
version_CVS |
13014
64e77f92badd
class: Tools::LintRuleDetail
Claus Gittinger <cg@exept.de>
parents:
11314
diff
changeset
|
446 |
^ '$Header: /cvs/stx/stx/libtool/Tools__LintRuleDetail.st,v 1.14 2013-06-25 17:12:11 cg Exp $' |
9999 | 447 |
! |
448 |
||
12431
9f0c59c742d5
Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12401
diff
changeset
|
449 |
version_HG |
9f0c59c742d5
Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12401
diff
changeset
|
450 |
|
9f0c59c742d5
Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12401
diff
changeset
|
451 |
^ '$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
|
452 |
! |
9f0c59c742d5
Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12401
diff
changeset
|
453 |
|
9999 | 454 |
version_SVN |
13014
64e77f92badd
class: Tools::LintRuleDetail
Claus Gittinger <cg@exept.de>
parents:
11314
diff
changeset
|
455 |
^ '$Id: Tools__LintRuleDetail.st,v 1.14 2013-06-25 17:12:11 cg Exp $' |
9999 | 456 |
! ! |
13014
64e77f92badd
class: Tools::LintRuleDetail
Claus Gittinger <cg@exept.de>
parents:
11314
diff
changeset
|
457 |