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