FlyByWindowInformation.st
author Claus Gittinger <cg@exept.de>
Mon, 11 Mar 2013 21:31:15 +0100
changeset 2974 8cf2b51872fd
parent 2943 e7d181ac8f06
child 3058 d7792b7a50b7
permissions -rw-r--r--
class: Tools::ProjectBuilder changed: #suiteNameOfCompiler:
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2587
81f38cd168a7 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
     1
"
81f38cd168a7 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
     2
 COPYRIGHT (c) 2008 by eXept Software AG
81f38cd168a7 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
     3
              All Rights Reserved
81f38cd168a7 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
     4
81f38cd168a7 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
     5
 This software is furnished under a license and may be used
81f38cd168a7 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
     6
 only in accordance with the terms of that license and with the
81f38cd168a7 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
81f38cd168a7 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
     8
 be provided or otherwise made available to, or used by, any
81f38cd168a7 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
     9
 other person.  No title to or ownership of the software is
81f38cd168a7 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
    10
 hereby transferred.
81f38cd168a7 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
    11
"
2300
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libtool2' }"
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
FlyByHelp subclass:#FlyByWindowInformation
2699
22dd96b4e37f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
    15
	instanceVariableNames:'lastApplication lastView cleanupAction finishSemaphore finished'
2300
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
	classVariableNames:''
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	poolDictionaries:''
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	category:'Interface-Help'
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
!
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!FlyByWindowInformation class methodsFor:'documentation'!
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
2587
81f38cd168a7 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
    23
copyright
81f38cd168a7 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
    24
"
81f38cd168a7 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
    25
 COPYRIGHT (c) 2008 by eXept Software AG
81f38cd168a7 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
    26
              All Rights Reserved
81f38cd168a7 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
    27
81f38cd168a7 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
    28
 This software is furnished under a license and may be used
81f38cd168a7 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
    29
 only in accordance with the terms of that license and with the
81f38cd168a7 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
81f38cd168a7 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
    31
 be provided or otherwise made available to, or used by, any
81f38cd168a7 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
    32
 other person.  No title to or ownership of the software is
81f38cd168a7 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
    33
 hereby transferred.
81f38cd168a7 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
    34
"
81f38cd168a7 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
    35
!
81f38cd168a7 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
    36
2300
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
examples
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
"
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
    self shownInformationOfViewUnderMouseUntilButtonIsPressed
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
"
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
!
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
shownInformationOfViewUnderMouseUntilButtonIsPressed
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
    self start waitUntilFinished
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
    "
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
     self shownInformationOfViewUnderMouseUntilButtonIsPressed
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
    "
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
! !
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
!FlyByWindowInformation methodsFor:'accessing'!
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
2699
22dd96b4e37f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
    53
cleanupAction:something 
2300
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
    cleanupAction := something.
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
!
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
lastApplication
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
    ^ lastApplication
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
!
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
lastView
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
    ^ lastView
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
! !
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
2543
7ad308542625 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2493
diff changeset
    65
!FlyByWindowInformation methodsFor:'defaults'!
7ad308542625 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2493
diff changeset
    66
7ad308542625 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2493
diff changeset
    67
flyByHelpTimeoutMillis
7ad308542625 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2493
diff changeset
    68
    ^ 1000
7ad308542625 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2493
diff changeset
    69
! !
7ad308542625 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2493
diff changeset
    70
2300
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
!FlyByWindowInformation methodsFor:'event handling'!
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
2340
e51e52c8e849 code cleanup (arg-names)
Claus Gittinger <cg@exept.de>
parents: 2314
diff changeset
    73
buttonMotion:buttonAndModifierState x:x y:y view:aView
2702
96f1dbce3d00 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 2700
diff changeset
    74
    finished == true ifTrue:[^ self].
96f1dbce3d00 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 2700
diff changeset
    75
2340
e51e52c8e849 code cleanup (arg-names)
Claus Gittinger <cg@exept.de>
parents: 2314
diff changeset
    76
    super buttonMotion:buttonAndModifierState x:x y:y view:aView.
2300
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
    ^ true
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
!
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
buttonPress:button x:x y:y view:aView
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
    self stop.
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
    ^ true
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
!
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
keyPress:key x:x y:y view:aView
2943
e7d181ac8f06 class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents: 2939
diff changeset
    86
    <resource: #keyboard (#Escape #Return)>
e7d181ac8f06 class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents: 2939
diff changeset
    87
2823
cd54d69eec13 changed:
Claus Gittinger <cg@exept.de>
parents: 2710
diff changeset
    88
    |obj objToInspect objToBrowse lcKey|
2300
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
    key == #Escape ifTrue:[
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
        self stop.
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
        ^ true
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
    ].
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
2435
f803a14907b4 ? - command added
Claus Gittinger <cg@exept.de>
parents: 2352
diff changeset
    95
    key == $? ifTrue:[
f803a14907b4 ? - command added
Claus Gittinger <cg@exept.de>
parents: 2352
diff changeset
    96
        [
2836
a2e82ebd3bc3 changed: #keyPress:x:y:view: check if WindowTreeView class is present
Stefan Vogel <sv@exept.de>
parents: 2824
diff changeset
    97
            WindowTreeView notNil ifTrue:[
a2e82ebd3bc3 changed: #keyPress:x:y:view: check if WindowTreeView class is present
Stefan Vogel <sv@exept.de>
parents: 2824
diff changeset
    98
                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
    99
            ] ifFalse:[
a2e82ebd3bc3 changed: #keyPress:x:y:view: check if WindowTreeView class is present
Stefan Vogel <sv@exept.de>
parents: 2824
diff changeset
   100
                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
   101
            ].
2435
f803a14907b4 ? - command added
Claus Gittinger <cg@exept.de>
parents: 2352
diff changeset
   102
        ] fork.
f803a14907b4 ? - command added
Claus Gittinger <cg@exept.de>
parents: 2352
diff changeset
   103
        self stop.
f803a14907b4 ? - command added
Claus Gittinger <cg@exept.de>
parents: 2352
diff changeset
   104
        ^ true.
2300
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
    ].
2435
f803a14907b4 ? - command added
Claus Gittinger <cg@exept.de>
parents: 2352
diff changeset
   106
2823
cd54d69eec13 changed:
Claus Gittinger <cg@exept.de>
parents: 2710
diff changeset
   107
    key == #Return ifTrue:[
cd54d69eec13 changed:
Claus Gittinger <cg@exept.de>
parents: 2710
diff changeset
   108
        objToBrowse := lastApplication ? lastView
cd54d69eec13 changed:
Claus Gittinger <cg@exept.de>
parents: 2710
diff changeset
   109
    ].
cd54d69eec13 changed:
Claus Gittinger <cg@exept.de>
parents: 2710
diff changeset
   110
2435
f803a14907b4 ? - command added
Claus Gittinger <cg@exept.de>
parents: 2352
diff changeset
   111
    key isCharacter ifTrue:[
f803a14907b4 ? - command added
Claus Gittinger <cg@exept.de>
parents: 2352
diff changeset
   112
        lcKey := key asLowercase.
f803a14907b4 ? - command added
Claus Gittinger <cg@exept.de>
parents: 2352
diff changeset
   113
f803a14907b4 ? - command added
Claus Gittinger <cg@exept.de>
parents: 2352
diff changeset
   114
        lcKey == $a ifTrue:[
f803a14907b4 ? - command added
Claus Gittinger <cg@exept.de>
parents: 2352
diff changeset
   115
            obj := lastApplication
f803a14907b4 ? - command added
Claus Gittinger <cg@exept.de>
parents: 2352
diff changeset
   116
        ].
f803a14907b4 ? - command added
Claus Gittinger <cg@exept.de>
parents: 2352
diff changeset
   117
        lcKey == $o ifTrue:[
2824
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   118
            lastView notNil ifTrue:[
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   119
                obj := lastView model
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   120
            ].
2435
f803a14907b4 ? - command added
Claus Gittinger <cg@exept.de>
parents: 2352
diff changeset
   121
        ].
f803a14907b4 ? - command added
Claus Gittinger <cg@exept.de>
parents: 2352
diff changeset
   122
        lcKey == $m ifTrue:[
2824
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   123
            lastApplication notNil ifTrue:[
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   124
                obj := lastApplication masterApplication
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   125
            ]
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   126
        ].
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   127
        lcKey == $t ifTrue:[
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   128
            lastApplication notNil ifTrue:[
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   129
                obj := lastApplication topApplication
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   130
            ].
2300
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
        ].
2435
f803a14907b4 ? - command added
Claus Gittinger <cg@exept.de>
parents: 2352
diff changeset
   132
        lcKey == $v ifTrue:[
f803a14907b4 ? - command added
Claus Gittinger <cg@exept.de>
parents: 2352
diff changeset
   133
            obj := lastView
f803a14907b4 ? - command added
Claus Gittinger <cg@exept.de>
parents: 2352
diff changeset
   134
        ].
2939
5e2872ba0b95 changed:
Claus Gittinger <cg@exept.de>
parents: 2847
diff changeset
   135
        lcKey == $g ifTrue:[
5e2872ba0b95 changed:
Claus Gittinger <cg@exept.de>
parents: 2847
diff changeset
   136
            obj := lastView windowGroup
5e2872ba0b95 changed:
Claus Gittinger <cg@exept.de>
parents: 2847
diff changeset
   137
        ].
2824
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   138
        lcKey == $w ifTrue:[
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   139
            lastView notNil ifTrue:[
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   140
                obj := lastView topView
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   141
            ]
2435
f803a14907b4 ? - command added
Claus Gittinger <cg@exept.de>
parents: 2352
diff changeset
   142
        ].
f803a14907b4 ? - command added
Claus Gittinger <cg@exept.de>
parents: 2352
diff changeset
   143
        obj notNil ifTrue:[
f803a14907b4 ? - command added
Claus Gittinger <cg@exept.de>
parents: 2352
diff changeset
   144
            key isLowercase ifTrue:[
2823
cd54d69eec13 changed:
Claus Gittinger <cg@exept.de>
parents: 2710
diff changeset
   145
                objToInspect := obj
2435
f803a14907b4 ? - command added
Claus Gittinger <cg@exept.de>
parents: 2352
diff changeset
   146
            ] ifFalse:[
2823
cd54d69eec13 changed:
Claus Gittinger <cg@exept.de>
parents: 2710
diff changeset
   147
                objToBrowse := obj
2435
f803a14907b4 ? - command added
Claus Gittinger <cg@exept.de>
parents: 2352
diff changeset
   148
            ].
f803a14907b4 ? - command added
Claus Gittinger <cg@exept.de>
parents: 2352
diff changeset
   149
        ].
2300
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   150
    ].
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   151
2823
cd54d69eec13 changed:
Claus Gittinger <cg@exept.de>
parents: 2710
diff changeset
   152
    objToInspect notNil ifTrue:[
cd54d69eec13 changed:
Claus Gittinger <cg@exept.de>
parents: 2710
diff changeset
   153
        [ objToInspect inspect ] forkAt:(Processor userSchedulingPriority).
cd54d69eec13 changed:
Claus Gittinger <cg@exept.de>
parents: 2710
diff changeset
   154
    ].
cd54d69eec13 changed:
Claus Gittinger <cg@exept.de>
parents: 2710
diff changeset
   155
    objToBrowse notNil ifTrue:[
cd54d69eec13 changed:
Claus Gittinger <cg@exept.de>
parents: 2710
diff changeset
   156
        [ objToBrowse browse ] forkAt:(Processor userSchedulingPriority).
cd54d69eec13 changed:
Claus Gittinger <cg@exept.de>
parents: 2710
diff changeset
   157
    ].
cd54d69eec13 changed:
Claus Gittinger <cg@exept.de>
parents: 2710
diff changeset
   158
2300
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   159
    ^ true
2823
cd54d69eec13 changed:
Claus Gittinger <cg@exept.de>
parents: 2710
diff changeset
   160
2824
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   161
    "Modified: / 12-11-2010 / 11:51:04 / cg"
2300
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   162
! !
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   164
!FlyByWindowInformation methodsFor:'help texts'!
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   165
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   166
helpTextFor:aView at:aPointOrNil
2699
22dd96b4e37f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   167
    "generate the text to be shown as popup-flyby info"
22dd96b4e37f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   168
2824
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   169
    |resources|
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   170
2300
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   171
    lastView := aView.
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   172
    lastApplication := aView application.
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   173
2824
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   174
    resources := self class classResources.
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   175
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   176
    ^ Text streamContents:[:s |
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   177
        |topViewToInspect applicationToInspect 
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   178
         masterApplicationToInspect topApplicationToInspect modelToInspect
2939
5e2872ba0b95 changed:
Claus Gittinger <cg@exept.de>
parents: 2847
diff changeset
   179
         genComponentNameForApplication windowGroupToInspect|
2700
bad11f9b735f #helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
   180
2824
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   181
        genComponentNameForApplication := 
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   182
            [:app :s |
2700
bad11f9b735f #helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
   183
                (app notNil 
bad11f9b735f #helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
   184
                and:[ app builder notNil ]) ifTrue:[
bad11f9b735f #helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
   185
                    |components v|
bad11f9b735f #helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
   186
bad11f9b735f #helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
   187
                    components := app builder namedComponents.
bad11f9b735f #helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
   188
bad11f9b735f #helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
   189
                    v := aView.
bad11f9b735f #helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
   190
                    [   (components includes:v) not
bad11f9b735f #helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
   191
                        and:[v container notNil]
bad11f9b735f #helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
   192
                    ] whileTrue:[
bad11f9b735f #helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
   193
                        v := v container.
bad11f9b735f #helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
   194
                    ].
bad11f9b735f #helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
   195
                    (components includes:v) ifTrue:[
bad11f9b735f #helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
   196
                        |k|
bad11f9b735f #helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
   197
bad11f9b735f #helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
   198
                        k := components keyAtValue:v.
bad11f9b735f #helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
   199
                        v == aView ifTrue:[
2824
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   200
                            s nextPutLine:('       component: ' , k).
2700
bad11f9b735f #helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
   201
                        ] ifFalse:[
2824
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   202
                            s nextPutLine:('       subview of component: ' , k).
2700
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
                    ].
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
            ].
2314
e65082256c46 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2300
diff changeset
   207
2300
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   208
        aView topView ~~ aView ifTrue:[
2314
e65082256c46 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2300
diff changeset
   209
            topViewToInspect := aView topView.
2300
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   210
        ].
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   211
        lastApplication notNil ifTrue:[
2314
e65082256c46 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2300
diff changeset
   212
            applicationToInspect := lastApplication.
e65082256c46 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2300
diff changeset
   213
            masterApplicationToInspect := lastApplication masterApplication.
2824
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   214
            masterApplicationToInspect notNil ifTrue:[
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   215
                masterApplicationToInspect == applicationToInspect ifTrue:[
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   216
                    masterApplicationToInspect := nil
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   217
                ] ifFalse:[
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   218
                    topApplicationToInspect := masterApplicationToInspect topApplication.
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   219
                    topApplicationToInspect == masterApplicationToInspect ifTrue:[
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   220
                        topApplicationToInspect := nil
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   221
                    ]
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   222
                ].
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   223
            ]
2314
e65082256c46 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2300
diff changeset
   224
        ].
e65082256c46 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2300
diff changeset
   225
        aView model notNil ifTrue:[
e65082256c46 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2300
diff changeset
   226
            modelToInspect := aView model.
e65082256c46 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2300
diff changeset
   227
            ((modelToInspect == applicationToInspect)
e65082256c46 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2300
diff changeset
   228
            or:[ modelToInspect == masterApplicationToInspect ]) ifTrue:[
e65082256c46 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2300
diff changeset
   229
                modelToInspect := nil.
2300
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   230
            ].
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   231
        ].
2314
e65082256c46 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2300
diff changeset
   232
2824
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   233
        applicationToInspect notNil ifTrue:[
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   234
            s nextPutLine:(resources string:'Application: %1' with:applicationToInspect class name allBold).
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   235
            genComponentNameForApplication value:applicationToInspect value:s.
2314
e65082256c46 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2300
diff changeset
   236
        ].
2700
bad11f9b735f #helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
   237
        masterApplicationToInspect notNil ifTrue:[
2824
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   238
            s nextPutLine:(resources string:'Master-Application: %1' with:masterApplicationToInspect class name allBold).
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   239
            "/ genComponentNameForApplication value:masterApplicationToInspect value:s.
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   240
        ].
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   241
        topApplicationToInspect notNil ifTrue:[
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   242
            s nextPutLine:(resources string:'Top-Application: %1' with:topApplicationToInspect class name allBold).
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   243
            "/ genComponentNameForApplication value:topApplicationToInspect value:s.
2700
bad11f9b735f #helpTextFor:at: - also show component's name
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
   244
        ].
2824
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   245
        s nextPutLine:(resources string:'View: %1 "%2"' with:aView class name allBold with:aView name).
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   246
        topViewToInspect notNil ifTrue:[
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   247
            s nextPutLine:(resources string:'Topview: %1' with:topViewToInspect class name allBold).
2314
e65082256c46 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2300
diff changeset
   248
        ].
2824
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   249
        modelToInspect notNil ifTrue:[
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   250
            s nextPutLine:(resources string:'Model: %1' with:modelToInspect class name allBold).
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   251
        ].
2699
22dd96b4e37f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   252
2300
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   253
        s cr.
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   254
        s nextPutLine:'Press:'.
2435
f803a14907b4 ? - command added
Claus Gittinger <cg@exept.de>
parents: 2352
diff changeset
   255
        s nextPutLine:'    ? to show the viewtree'.
2314
e65082256c46 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2300
diff changeset
   256
        applicationToInspect notNil ifTrue:[
2300
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   257
            s nextPutLine:'    a to inspect application (A to browse)'.
2314
e65082256c46 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2300
diff changeset
   258
            masterApplicationToInspect notNil ifTrue:[
2300
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   259
                s nextPutLine:'    m to inspect masterApplication (M to browse)'.
2824
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   260
                topApplicationToInspect notNil ifTrue:[
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   261
                    s nextPutLine:'    t to inspect masterApplication (T to browse)'.
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   262
                ]
2300
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   263
            ].
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   264
        ].
2823
cd54d69eec13 changed:
Claus Gittinger <cg@exept.de>
parents: 2710
diff changeset
   265
        s nextPutLine:'    v to inspect view (V to browse)'.
cd54d69eec13 changed:
Claus Gittinger <cg@exept.de>
parents: 2710
diff changeset
   266
        topViewToInspect notNil ifTrue:[
2824
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   267
            s nextPutLine:'    w to inspect topWindow (W to browse)'.
2823
cd54d69eec13 changed:
Claus Gittinger <cg@exept.de>
parents: 2710
diff changeset
   268
        ].
2939
5e2872ba0b95 changed:
Claus Gittinger <cg@exept.de>
parents: 2847
diff changeset
   269
        aView windowGroup notNil ifTrue:[
5e2872ba0b95 changed:
Claus Gittinger <cg@exept.de>
parents: 2847
diff changeset
   270
            s nextPutLine:'    g to inspect windowGroup'.
5e2872ba0b95 changed:
Claus Gittinger <cg@exept.de>
parents: 2847
diff changeset
   271
        ].
2823
cd54d69eec13 changed:
Claus Gittinger <cg@exept.de>
parents: 2710
diff changeset
   272
        modelToInspect notNil ifTrue:[
cd54d69eec13 changed:
Claus Gittinger <cg@exept.de>
parents: 2710
diff changeset
   273
            s nextPutLine:'    o to inspect model (O to browse)'.
cd54d69eec13 changed:
Claus Gittinger <cg@exept.de>
parents: 2710
diff changeset
   274
        ].
cd54d69eec13 changed:
Claus Gittinger <cg@exept.de>
parents: 2710
diff changeset
   275
        s cr.
cd54d69eec13 changed:
Claus Gittinger <cg@exept.de>
parents: 2710
diff changeset
   276
        s nextPutLine:'RETURN to browse application.'.
cd54d69eec13 changed:
Claus Gittinger <cg@exept.de>
parents: 2710
diff changeset
   277
        s nextPutAll:'ESC or click to leave flyBy-info mode.'.
2300
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   278
    ]
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   279
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   280
    "
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   281
     self shownInformationOfViewUnderMouseUntilButtonIsPressed
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   282
    "
2823
cd54d69eec13 changed:
Claus Gittinger <cg@exept.de>
parents: 2710
diff changeset
   283
2824
34ec9ea82209 changed:
Claus Gittinger <cg@exept.de>
parents: 2823
diff changeset
   284
    "Modified: / 12-11-2010 / 11:54:59 / cg"
2300
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   285
! !
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   286
2710
0ce76feb3f91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2702
diff changeset
   287
!FlyByWindowInformation methodsFor:'private'!
0ce76feb3f91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2702
diff changeset
   288
2847
65280fe44707 category of: #handleMouseIn:x:y:
Claus Gittinger <cg@exept.de>
parents: 2836
diff changeset
   289
handleMouseIn:aView x:x y:y
65280fe44707 category of: #handleMouseIn:x:y:
Claus Gittinger <cg@exept.de>
parents: 2836
diff changeset
   290
    finished == true ifTrue:[^ self].
65280fe44707 category of: #handleMouseIn:x:y:
Claus Gittinger <cg@exept.de>
parents: 2836
diff changeset
   291
    super handleMouseIn:aView x:x y:y
65280fe44707 category of: #handleMouseIn:x:y:
Claus Gittinger <cg@exept.de>
parents: 2836
diff changeset
   292
!
65280fe44707 category of: #handleMouseIn:x:y:
Claus Gittinger <cg@exept.de>
parents: 2836
diff changeset
   293
2710
0ce76feb3f91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2702
diff changeset
   294
targetViewInitiatesHelpViaSensor
0ce76feb3f91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2702
diff changeset
   295
    ^ false
0ce76feb3f91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2702
diff changeset
   296
! !
0ce76feb3f91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2702
diff changeset
   297
2300
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   298
!FlyByWindowInformation methodsFor:'queries'!
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   299
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   300
toolTipFollowsMouse
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   301
    ^ true
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   302
! !
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   303
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   304
!FlyByWindowInformation methodsFor:'start & stop'!
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   305
2699
22dd96b4e37f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   306
initiateHelpFor:aView at:aPointOrNil
2710
0ce76feb3f91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2702
diff changeset
   307
    self initiateHelpFor:aView at:aPointOrNil now:true
2699
22dd96b4e37f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   308
!
22dd96b4e37f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   309
22dd96b4e37f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   310
initiateHelpFor:aView at:aPointOrNil now:showItNow
2702
96f1dbce3d00 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 2700
diff changeset
   311
    finished == true ifTrue:[^ self].
2699
22dd96b4e37f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   312
    super initiateHelpFor:aView at:aPointOrNil now:showItNow
22dd96b4e37f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   313
!
22dd96b4e37f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   314
2300
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   315
start
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   316
    |l|
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   317
2702
96f1dbce3d00 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 2700
diff changeset
   318
    finished == true ifTrue:[^ self].
96f1dbce3d00 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 2700
diff changeset
   319
2300
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   320
    l := FlyByHelp currentHelpListener.
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   321
    l notNil ifTrue:[
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   322
        FlyByHelp stop.
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   323
        cleanupAction := [ FlyByHelp start ].
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   324
    ].
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   325
    finishSemaphore := Semaphore new.
2699
22dd96b4e37f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   326
    finished := false.
2300
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   327
    super start.
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   328
!
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   329
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   330
stop
2699
22dd96b4e37f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   331
    finished := true.
2300
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   332
    super stop.
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   333
    cleanupAction value.
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   334
    finishSemaphore notNil ifTrue:[
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   335
        finishSemaphore signalIf.
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   336
    ].
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   337
!
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   338
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   339
waitUntilFinished
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   340
    finishSemaphore wait.
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   341
! !
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   342
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   343
!FlyByWindowInformation class methodsFor:'documentation'!
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   344
2587
81f38cd168a7 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
   345
version_CVS
81f38cd168a7 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
   346
    ^ '$Header$'
2300
afddc24415dc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   347
! !
2943
e7d181ac8f06 class: FlyByWindowInformation
Claus Gittinger <cg@exept.de>
parents: 2939
diff changeset
   348