author | Claus Gittinger <cg@exept.de> |
Fri, 01 Sep 2017 14:14:23 +0200 | |
changeset 3481 | f7cdc2137f58 |
parent 3452 | 33988b5b625e |
child 3576 | e62c95ddd17b |
permissions | -rw-r--r-- |
2587 | 1 |
" |
2 |
COPYRIGHT (c) 2008 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 |
" |
|
2300 | 12 |
"{ Package: 'stx:libtool2' }" |
13 |
||
3212
c973eab410cb
class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents:
3065
diff
changeset
|
14 |
"{ NameSpace: Smalltalk }" |
c973eab410cb
class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents:
3065
diff
changeset
|
15 |
|
2300 | 16 |
FlyByHelp subclass:#FlyByWindowInformation |
2699 | 17 |
instanceVariableNames:'lastApplication lastView cleanupAction finishSemaphore finished' |
2300 | 18 |
classVariableNames:'' |
19 |
poolDictionaries:'' |
|
20 |
category:'Interface-Help' |
|
21 |
! |
|
22 |
||
23 |
!FlyByWindowInformation class methodsFor:'documentation'! |
|
24 |
||
2587 | 25 |
copyright |
26 |
" |
|
27 |
COPYRIGHT (c) 2008 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 |
||
3065
311d632319d9
class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents:
3058
diff
changeset
|
39 |
documentation |
311d632319d9
class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents:
3058
diff
changeset
|
40 |
" |
311d632319d9
class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents:
3058
diff
changeset
|
41 |
I implement a tooltip, which presents a number of interesting facts |
311d632319d9
class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents:
3058
diff
changeset
|
42 |
about the window under the mouse pointer, and also offer keyboard |
311d632319d9
class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents:
3058
diff
changeset
|
43 |
shortcuts to quickly open browsers and/or inspectors on the view under the |
311d632319d9
class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents:
3058
diff
changeset
|
44 |
pointer. |
311d632319d9
class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents:
3058
diff
changeset
|
45 |
Enabled via the Launcher's 'FlyBy Window Information' menu item. |
311d632319d9
class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents:
3058
diff
changeset
|
46 |
" |
311d632319d9
class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents:
3058
diff
changeset
|
47 |
! |
311d632319d9
class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents:
3058
diff
changeset
|
48 |
|
2300 | 49 |
examples |
50 |
" |
|
51 |
self shownInformationOfViewUnderMouseUntilButtonIsPressed |
|
52 |
" |
|
53 |
! |
|
54 |
||
55 |
shownInformationOfViewUnderMouseUntilButtonIsPressed |
|
56 |
self start waitUntilFinished |
|
57 |
||
58 |
" |
|
59 |
self shownInformationOfViewUnderMouseUntilButtonIsPressed |
|
60 |
" |
|
61 |
! ! |
|
62 |
||
63 |
!FlyByWindowInformation methodsFor:'accessing'! |
|
64 |
||
2699 | 65 |
cleanupAction:something |
2300 | 66 |
cleanupAction := something. |
67 |
! |
|
68 |
||
69 |
lastApplication |
|
70 |
^ lastApplication |
|
71 |
! |
|
72 |
||
73 |
lastView |
|
74 |
^ lastView |
|
75 |
! ! |
|
76 |
||
2543 | 77 |
!FlyByWindowInformation methodsFor:'defaults'! |
78 |
||
79 |
flyByHelpTimeoutMillis |
|
80 |
^ 1000 |
|
81 |
! ! |
|
82 |
||
2300 | 83 |
!FlyByWindowInformation methodsFor:'event handling'! |
84 |
||
2340 | 85 |
buttonMotion:buttonAndModifierState x:x y:y view:aView |
3452 | 86 |
finished == true ifTrue:[^ true]. |
2702 | 87 |
|
2340 | 88 |
super buttonMotion:buttonAndModifierState x:x y:y view:aView. |
2300 | 89 |
^ true |
3452 | 90 |
|
91 |
"Modified: / 16-07-2017 / 13:49:57 / cg" |
|
2300 | 92 |
! |
93 |
||
94 |
buttonPress:button x:x y:y view:aView |
|
95 |
self stop. |
|
96 |
^ true |
|
97 |
! |
|
98 |
||
99 |
keyPress:key x:x y:y view:aView |
|
2943
e7d181ac8f06
class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents:
2939
diff
changeset
|
100 |
<resource: #keyboard (#Escape #Return)> |
e7d181ac8f06
class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents:
2939
diff
changeset
|
101 |
|
2823 | 102 |
|obj objToInspect objToBrowse lcKey| |
2300 | 103 |
|
104 |
key == #Escape ifTrue:[ |
|
105 |
self stop. |
|
106 |
^ true |
|
107 |
]. |
|
108 |
||
2435 | 109 |
key == $? ifTrue:[ |
110 |
[ |
|
2836
a2e82ebd3bc3
changed: #keyPress:x:y:view: check if WindowTreeView class is present
Stefan Vogel <sv@exept.de>
parents:
2824
diff
changeset
|
111 |
WindowTreeView notNil ifTrue:[ |
a2e82ebd3bc3
changed: #keyPress:x:y:view: check if WindowTreeView class is present
Stefan Vogel <sv@exept.de>
parents:
2824
diff
changeset
|
112 |
WindowTreeView openOn:(lastView topView) initialSelection:lastView. |
a2e82ebd3bc3
changed: #keyPress:x:y:view: check if WindowTreeView class is present
Stefan Vogel <sv@exept.de>
parents:
2824
diff
changeset
|
113 |
] ifFalse:[ |
a2e82ebd3bc3
changed: #keyPress:x:y:view: check if WindowTreeView class is present
Stefan Vogel <sv@exept.de>
parents:
2824
diff
changeset
|
114 |
self warn:'WindowTreeView class is not present!!'. |
a2e82ebd3bc3
changed: #keyPress:x:y:view: check if WindowTreeView class is present
Stefan Vogel <sv@exept.de>
parents:
2824
diff
changeset
|
115 |
]. |
2435 | 116 |
] fork. |
117 |
self stop. |
|
118 |
^ true. |
|
2300 | 119 |
]. |
2435 | 120 |
|
2823 | 121 |
key == #Return ifTrue:[ |
122 |
objToBrowse := lastApplication ? lastView |
|
123 |
]. |
|
124 |
||
2435 | 125 |
key isCharacter ifTrue:[ |
126 |
lcKey := key asLowercase. |
|
127 |
||
3212
c973eab410cb
class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents:
3065
diff
changeset
|
128 |
lcKey == $h ifTrue:[ |
c973eab410cb
class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents:
3065
diff
changeset
|
129 |
"/ use smalltalk at, to avoid dependency on libTool |
c973eab410cb
class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents:
3065
diff
changeset
|
130 |
[ (Smalltalk at:#'Tools::ViewTreeInspectorApplication') openOn:lastView ] fork. |
c973eab410cb
class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents:
3065
diff
changeset
|
131 |
^ true. |
c973eab410cb
class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents:
3065
diff
changeset
|
132 |
]. |
2435 | 133 |
lcKey == $a ifTrue:[ |
134 |
obj := lastApplication |
|
135 |
]. |
|
136 |
lcKey == $o ifTrue:[ |
|
2824 | 137 |
lastView notNil ifTrue:[ |
138 |
obj := lastView model |
|
139 |
]. |
|
2435 | 140 |
]. |
141 |
lcKey == $m ifTrue:[ |
|
2824 | 142 |
lastApplication notNil ifTrue:[ |
143 |
obj := lastApplication masterApplication |
|
144 |
] |
|
145 |
]. |
|
146 |
lcKey == $t ifTrue:[ |
|
147 |
lastApplication notNil ifTrue:[ |
|
148 |
obj := lastApplication topApplication |
|
149 |
]. |
|
2300 | 150 |
]. |
2435 | 151 |
lcKey == $v ifTrue:[ |
152 |
obj := lastView |
|
153 |
]. |
|
2939 | 154 |
lcKey == $g ifTrue:[ |
155 |
obj := lastView windowGroup |
|
156 |
]. |
|
2824 | 157 |
lcKey == $w ifTrue:[ |
158 |
lastView notNil ifTrue:[ |
|
159 |
obj := lastView topView |
|
160 |
] |
|
2435 | 161 |
]. |
162 |
obj notNil ifTrue:[ |
|
163 |
key isLowercase ifTrue:[ |
|
2823 | 164 |
objToInspect := obj |
2435 | 165 |
] ifFalse:[ |
2823 | 166 |
objToBrowse := obj |
2435 | 167 |
]. |
168 |
]. |
|
2300 | 169 |
]. |
170 |
||
2823 | 171 |
objToInspect notNil ifTrue:[ |
172 |
[ objToInspect inspect ] forkAt:(Processor userSchedulingPriority). |
|
173 |
]. |
|
174 |
objToBrowse notNil ifTrue:[ |
|
175 |
[ objToBrowse browse ] forkAt:(Processor userSchedulingPriority). |
|
176 |
]. |
|
177 |
||
2300 | 178 |
^ true |
2823 | 179 |
|
2824 | 180 |
"Modified: / 12-11-2010 / 11:51:04 / cg" |
2300 | 181 |
! ! |
182 |
||
183 |
!FlyByWindowInformation methodsFor:'help texts'! |
|
184 |
||
185 |
helpTextFor:aView at:aPointOrNil |
|
2699 | 186 |
"generate the text to be shown as popup-flyby info" |
187 |
||
2824 | 188 |
|resources| |
189 |
||
2300 | 190 |
lastView := aView. |
191 |
lastApplication := aView application. |
|
192 |
||
2824 | 193 |
resources := self class classResources. |
194 |
||
195 |
^ Text streamContents:[:s | |
|
196 |
|topViewToInspect applicationToInspect |
|
197 |
masterApplicationToInspect topApplicationToInspect modelToInspect |
|
2939 | 198 |
genComponentNameForApplication windowGroupToInspect| |
2700
bad11f9b735f
#helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents:
2699
diff
changeset
|
199 |
|
2824 | 200 |
genComponentNameForApplication := |
201 |
[:app :s | |
|
2700
bad11f9b735f
#helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents:
2699
diff
changeset
|
202 |
(app notNil |
bad11f9b735f
#helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents:
2699
diff
changeset
|
203 |
and:[ app builder notNil ]) ifTrue:[ |
bad11f9b735f
#helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents:
2699
diff
changeset
|
204 |
|components v| |
bad11f9b735f
#helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents:
2699
diff
changeset
|
205 |
|
bad11f9b735f
#helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents:
2699
diff
changeset
|
206 |
components := app builder namedComponents. |
bad11f9b735f
#helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents:
2699
diff
changeset
|
207 |
|
bad11f9b735f
#helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents:
2699
diff
changeset
|
208 |
v := aView. |
bad11f9b735f
#helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents:
2699
diff
changeset
|
209 |
[ (components includes:v) not |
bad11f9b735f
#helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents:
2699
diff
changeset
|
210 |
and:[v container notNil] |
bad11f9b735f
#helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents:
2699
diff
changeset
|
211 |
] whileTrue:[ |
bad11f9b735f
#helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents:
2699
diff
changeset
|
212 |
v := v container. |
bad11f9b735f
#helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents:
2699
diff
changeset
|
213 |
]. |
bad11f9b735f
#helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents:
2699
diff
changeset
|
214 |
(components includes:v) ifTrue:[ |
bad11f9b735f
#helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents:
2699
diff
changeset
|
215 |
|k| |
bad11f9b735f
#helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents:
2699
diff
changeset
|
216 |
|
bad11f9b735f
#helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents:
2699
diff
changeset
|
217 |
k := components keyAtValue:v. |
bad11f9b735f
#helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents:
2699
diff
changeset
|
218 |
v == aView ifTrue:[ |
2824 | 219 |
s nextPutLine:(' component: ' , k). |
2700
bad11f9b735f
#helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents:
2699
diff
changeset
|
220 |
] ifFalse:[ |
2824 | 221 |
s nextPutLine:(' subview of component: ' , k). |
2700
bad11f9b735f
#helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents:
2699
diff
changeset
|
222 |
]. |
bad11f9b735f
#helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents:
2699
diff
changeset
|
223 |
]. |
bad11f9b735f
#helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents:
2699
diff
changeset
|
224 |
]. |
bad11f9b735f
#helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents:
2699
diff
changeset
|
225 |
]. |
2314 | 226 |
|
2300 | 227 |
aView topView ~~ aView ifTrue:[ |
2314 | 228 |
topViewToInspect := aView topView. |
2300 | 229 |
]. |
230 |
lastApplication notNil ifTrue:[ |
|
2314 | 231 |
applicationToInspect := lastApplication. |
232 |
masterApplicationToInspect := lastApplication masterApplication. |
|
2824 | 233 |
masterApplicationToInspect notNil ifTrue:[ |
234 |
masterApplicationToInspect == applicationToInspect ifTrue:[ |
|
235 |
masterApplicationToInspect := nil |
|
236 |
] ifFalse:[ |
|
237 |
topApplicationToInspect := masterApplicationToInspect topApplication. |
|
238 |
topApplicationToInspect == masterApplicationToInspect ifTrue:[ |
|
239 |
topApplicationToInspect := nil |
|
240 |
] |
|
241 |
]. |
|
242 |
] |
|
2314 | 243 |
]. |
244 |
aView model notNil ifTrue:[ |
|
245 |
modelToInspect := aView model. |
|
246 |
((modelToInspect == applicationToInspect) |
|
247 |
or:[ modelToInspect == masterApplicationToInspect ]) ifTrue:[ |
|
248 |
modelToInspect := nil. |
|
2300 | 249 |
]. |
250 |
]. |
|
2314 | 251 |
|
2824 | 252 |
applicationToInspect notNil ifTrue:[ |
253 |
s nextPutLine:(resources string:'Application: %1' with:applicationToInspect class name allBold). |
|
254 |
genComponentNameForApplication value:applicationToInspect value:s. |
|
2314 | 255 |
]. |
2700
bad11f9b735f
#helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents:
2699
diff
changeset
|
256 |
masterApplicationToInspect notNil ifTrue:[ |
2824 | 257 |
s nextPutLine:(resources string:'Master-Application: %1' with:masterApplicationToInspect class name allBold). |
258 |
"/ genComponentNameForApplication value:masterApplicationToInspect value:s. |
|
259 |
]. |
|
260 |
topApplicationToInspect notNil ifTrue:[ |
|
261 |
s nextPutLine:(resources string:'Top-Application: %1' with:topApplicationToInspect class name allBold). |
|
262 |
"/ genComponentNameForApplication value:topApplicationToInspect value:s. |
|
2700
bad11f9b735f
#helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents:
2699
diff
changeset
|
263 |
]. |
2824 | 264 |
s nextPutLine:(resources string:'View: %1 "%2"' with:aView class name allBold with:aView name). |
265 |
topViewToInspect notNil ifTrue:[ |
|
266 |
s nextPutLine:(resources string:'Topview: %1' with:topViewToInspect class name allBold). |
|
2314 | 267 |
]. |
2824 | 268 |
modelToInspect notNil ifTrue:[ |
269 |
s nextPutLine:(resources string:'Model: %1' with:modelToInspect class name allBold). |
|
270 |
]. |
|
2699 | 271 |
|
2300 | 272 |
s cr. |
273 |
s nextPutLine:'Press:'. |
|
3212
c973eab410cb
class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents:
3065
diff
changeset
|
274 |
|
c973eab410cb
class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents:
3065
diff
changeset
|
275 |
"/ use smalltalk at, to avoid dependency on libTool |
c973eab410cb
class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents:
3065
diff
changeset
|
276 |
(Smalltalk at:#'Tools::ViewTreeInspectorApplication') notNil ifTrue:[ |
c973eab410cb
class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents:
3065
diff
changeset
|
277 |
s nextPutLine:' ? to show the view''s tree'. |
c973eab410cb
class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents:
3065
diff
changeset
|
278 |
]. |
2314 | 279 |
applicationToInspect notNil ifTrue:[ |
2300 | 280 |
s nextPutLine:' a to inspect application (A to browse)'. |
2314 | 281 |
masterApplicationToInspect notNil ifTrue:[ |
2300 | 282 |
s nextPutLine:' m to inspect masterApplication (M to browse)'. |
2824 | 283 |
topApplicationToInspect notNil ifTrue:[ |
3358 | 284 |
s nextPutLine:' t to inspect topApplication (T to browse)'. |
2824 | 285 |
] |
2300 | 286 |
]. |
287 |
]. |
|
3212
c973eab410cb
class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents:
3065
diff
changeset
|
288 |
s nextPutLine:' h to inspect view''s hierarchy'. |
2823 | 289 |
s nextPutLine:' v to inspect view (V to browse)'. |
290 |
topViewToInspect notNil ifTrue:[ |
|
2824 | 291 |
s nextPutLine:' w to inspect topWindow (W to browse)'. |
2823 | 292 |
]. |
2939 | 293 |
aView windowGroup notNil ifTrue:[ |
294 |
s nextPutLine:' g to inspect windowGroup'. |
|
295 |
]. |
|
2823 | 296 |
modelToInspect notNil ifTrue:[ |
297 |
s nextPutLine:' o to inspect model (O to browse)'. |
|
298 |
]. |
|
299 |
s cr. |
|
300 |
s nextPutLine:'RETURN to browse application.'. |
|
301 |
s nextPutAll:'ESC or click to leave flyBy-info mode.'. |
|
2300 | 302 |
] |
303 |
||
304 |
" |
|
305 |
self shownInformationOfViewUnderMouseUntilButtonIsPressed |
|
306 |
" |
|
2823 | 307 |
|
2824 | 308 |
"Modified: / 12-11-2010 / 11:54:59 / cg" |
2300 | 309 |
! ! |
310 |
||
2710 | 311 |
!FlyByWindowInformation methodsFor:'private'! |
312 |
||
3058
d7792b7a50b7
more control over the shape style
Claus Gittinger <cg@exept.de>
parents:
2943
diff
changeset
|
313 |
activeHelpViewForApplication:applicationOrNil text:helpText onDevice:aDevice |
d7792b7a50b7
more control over the shape style
Claus Gittinger <cg@exept.de>
parents:
2943
diff
changeset
|
314 |
^ (ActiveHelpView for:helpText onDevice:aDevice) shapeStyle:nil. |
d7792b7a50b7
more control over the shape style
Claus Gittinger <cg@exept.de>
parents:
2943
diff
changeset
|
315 |
! |
d7792b7a50b7
more control over the shape style
Claus Gittinger <cg@exept.de>
parents:
2943
diff
changeset
|
316 |
|
2847
65280fe44707
category of: #handleMouseIn:x:y:
Claus Gittinger <cg@exept.de>
parents:
2836
diff
changeset
|
317 |
handleMouseIn:aView x:x y:y |
65280fe44707
category of: #handleMouseIn:x:y:
Claus Gittinger <cg@exept.de>
parents:
2836
diff
changeset
|
318 |
finished == true ifTrue:[^ self]. |
65280fe44707
category of: #handleMouseIn:x:y:
Claus Gittinger <cg@exept.de>
parents:
2836
diff
changeset
|
319 |
super handleMouseIn:aView x:x y:y |
65280fe44707
category of: #handleMouseIn:x:y:
Claus Gittinger <cg@exept.de>
parents:
2836
diff
changeset
|
320 |
! |
65280fe44707
category of: #handleMouseIn:x:y:
Claus Gittinger <cg@exept.de>
parents:
2836
diff
changeset
|
321 |
|
2710 | 322 |
targetViewInitiatesHelpViaSensor |
323 |
^ false |
|
324 |
! ! |
|
325 |
||
2300 | 326 |
!FlyByWindowInformation methodsFor:'queries'! |
327 |
||
328 |
toolTipFollowsMouse |
|
3297 | 329 |
"if true, the tooltip-window moves with the pointer |
330 |
so that it stays away from (does not cover) the mouse pointer" |
|
331 |
||
2300 | 332 |
^ true |
333 |
! ! |
|
334 |
||
335 |
!FlyByWindowInformation methodsFor:'start & stop'! |
|
336 |
||
2699 | 337 |
initiateHelpFor:aView at:aPointOrNil |
2710 | 338 |
self initiateHelpFor:aView at:aPointOrNil now:true |
2699 | 339 |
! |
340 |
||
341 |
initiateHelpFor:aView at:aPointOrNil now:showItNow |
|
2702 | 342 |
finished == true ifTrue:[^ self]. |
2699 | 343 |
super initiateHelpFor:aView at:aPointOrNil now:showItNow |
344 |
! |
|
345 |
||
2300 | 346 |
start |
347 |
|l| |
|
348 |
||
2702 | 349 |
finished == true ifTrue:[^ self]. |
350 |
||
2300 | 351 |
l := FlyByHelp currentHelpListener. |
352 |
l notNil ifTrue:[ |
|
353 |
FlyByHelp stop. |
|
354 |
cleanupAction := [ FlyByHelp start ]. |
|
355 |
]. |
|
356 |
finishSemaphore := Semaphore new. |
|
2699 | 357 |
finished := false. |
2300 | 358 |
super start. |
359 |
! |
|
360 |
||
361 |
stop |
|
2699 | 362 |
finished := true. |
2300 | 363 |
super stop. |
364 |
cleanupAction value. |
|
365 |
finishSemaphore notNil ifTrue:[ |
|
366 |
finishSemaphore signalIf. |
|
367 |
]. |
|
368 |
! |
|
369 |
||
370 |
waitUntilFinished |
|
371 |
finishSemaphore wait. |
|
372 |
! ! |
|
373 |
||
374 |
!FlyByWindowInformation class methodsFor:'documentation'! |
|
375 |
||
2587 | 376 |
version_CVS |
377 |
^ '$Header$' |
|
2300 | 378 |
! ! |
2943
e7d181ac8f06
class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents:
2939
diff
changeset
|
379 |