ExternalStreamMonitor.st
author Claus Gittinger <cg@exept.de>
Mon, 20 Jan 2020 21:02:47 +0100
changeset 19422 c6ca1c3e0fd7
parent 19344 2d2c733c4665
child 19544 bbbf9596c29f
permissions -rw-r--r--
#REFACTORING by exept class: MultiViewToolApplication added: #askForFile:default:forSave:thenDo: changed: #askForFile:default:thenDo: #askForFile:thenDo: #menuSaveAllAs #menuSaveAs
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
 COPYRIGHT (c) 1997 by Claus Gittinger
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
	      All Rights Reserved
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 hereby transferred.
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
"
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libtool' }"
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
"{ NameSpace: Smalltalk }"
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
SystemStatusMonitor subclass:#ExternalStreamMonitor
19113
7980e37ee2f8 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 19109
diff changeset
    17
	instanceVariableNames:'showTime streams filterOpenStreamsOnlyHolder
7980e37ee2f8 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 19109
diff changeset
    18
		filterPipesOnlyHolder filterSocketsOnlyHolder
7980e37ee2f8 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 19109
diff changeset
    19
		filterConnectedSocketsOnlyHolder'
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	classVariableNames:''
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
	poolDictionaries:''
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
	category:'Monitors-ST/X'
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
!
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
!ExternalStreamMonitor class methodsFor:'documentation'!
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
copyright
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
"
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
 COPYRIGHT (c) 1997 by Claus Gittinger
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
	      All Rights Reserved
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 This software is furnished under a license and may be used
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 only in accordance with the terms of that license and with the
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
 inclusion of the above copyright notice.   This software may not
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
 be provided or otherwise made available to, or used by, any
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
 other person.  No title to or ownership of the software is
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
 hereby transferred.
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
"
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
!
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
documentation
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
"
17228
359e1996b557 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17227
diff changeset
    45
    This view shows smalltalk's external stream instances - a debugging tool.
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
    [disclaimer:]
17228
359e1996b557 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17227
diff changeset
    48
        this is based on one of the oldest tools in the system, written in the early 90's.
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
        It does in no way reflect the way GUIs are designed/written these days.
19113
7980e37ee2f8 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 19109
diff changeset
    50
        However, after all those years, they are still very very useful (and not found in many other systems)  
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
        
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
    [see also:]
17228
359e1996b557 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17227
diff changeset
    53
        Stream ExternalStream
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
        WindowGroup
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
        ProcessMonitor
19045
1a9c95a8f7ce #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19044
diff changeset
    56
        SemaphoreMonitor OSProcessMonitor
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
    [author:]
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
        Claus Gittinger
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
    [start with:]
17228
359e1996b557 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17227
diff changeset
    62
        ExternalStreamMonitor open
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
"
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
! !
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
!ExternalStreamMonitor class methodsFor:'defaults'!
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
defaultLabel
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
    ^ 'External Streams Monitor'
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
    "Created: 23.1.1997 / 02:52:53 / cg"
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
! !
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
!ExternalStreamMonitor class methodsFor:'menu specs'!
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
filterMenu
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
    "This resource specification was automatically generated
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
     by the MenuEditor of ST/X."
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
    "Do not manually edit this!! If it is corrupted,
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
     the MenuEditor may not be able to read the specification."
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
    "
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
     MenuEditor new openOnClass:ExternalStreamMonitor andSelector:#filterMenu
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
     (Menu new fromLiteralArrayEncoding:(ExternalStreamMonitor filterMenu)) startUp
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
    "
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
    <resource: #menu>
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
    ^ 
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
     #(Menu
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
        (
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
         (MenuItem
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
            label: 'Open Streams Only'
18505
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
    96
            indication: filterOpenStreamsOnlyHolder
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
            hideMenuOnActivated: false
18505
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
    98
          )
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
    99
         (MenuItem
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   100
            label: '-'
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   101
          )
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   102
         (MenuItem
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   103
            label: 'Pipes Only'
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   104
            indication: filterPipesOnlyHolder
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   105
            hideMenuOnActivated: false
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
          )
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
         (MenuItem
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
            label: '-'
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
          )
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
         (MenuItem
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
            label: 'Sockets Only'
18505
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   112
            indication: filterSocketsOnlyHolder
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
            hideMenuOnActivated: false
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
          )
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
         (MenuItem
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
            label: 'Connected Sockets Only'
18505
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   117
            indication: filterConnectedSocketsOnlyHolder
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
            hideMenuOnActivated: false
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
          )
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
         )
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
        nil
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
        nil
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
      )
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
!
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   126
mainMenu
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   127
    "This resource specification was automatically generated
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   128
     by the MenuEditor of ST/X."
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   129
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
    "Do not manually edit this!! If it is corrupted,
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
     the MenuEditor may not be able to read the specification."
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
    "
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   135
     MenuEditor new openOnClass:ExternalStreamMonitor andSelector:#mainMenu
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   136
     (Menu new fromLiteralArrayEncoding:(ExternalStreamMonitor mainMenu)) startUp
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   137
    "
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   138
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   139
    <resource: #menu>
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   140
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   141
    ^ 
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   142
     #(Menu
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   143
        (
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   144
         (MenuItem
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
            label: 'File'
18502
6ad0c10ecd65 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18447
diff changeset
   146
            submenuChannel: fileMenu
6ad0c10ecd65 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18447
diff changeset
   147
          )
6ad0c10ecd65 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18447
diff changeset
   148
         (MenuItem
6ad0c10ecd65 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18447
diff changeset
   149
            label: 'View'
6ad0c10ecd65 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18447
diff changeset
   150
            submenuChannel: viewMenu
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   151
          )
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   152
         (MenuItem
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   153
            label: 'Filter'
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   154
            submenuChannel: filterMenu
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   155
          )
17487
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   156
         (MenuItem
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   157
            label: 'Operations'
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   158
            submenuChannel: operationsMenu
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   159
          )
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   160
         )
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   161
        nil
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   162
        nil
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
      )
17487
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   164
!
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   165
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   166
operationsMenu
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   167
    "This resource specification was automatically generated
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   168
     by the MenuEditor of ST/X."
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   169
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   170
    "Do not manually edit this!! If it is corrupted,
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   171
     the MenuEditor may not be able to read the specification."
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   172
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   173
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   174
    "
18506
b07e5f5e1c15 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18505
diff changeset
   175
     MenuEditor new openOnClass:ExternalStreamMonitor andSelector:#operationsMenu
b07e5f5e1c15 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18505
diff changeset
   176
     (Menu new fromLiteralArrayEncoding:(ExternalStreamMonitor operationsMenu)) startUp
17487
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   177
    "
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   178
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   179
    <resource: #menu>
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   180
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   181
    ^ 
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   182
     #(Menu
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   183
        (
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   184
         (MenuItem
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   185
            label: 'Close'
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   186
            itemValue: menuCloseSelected
19344
2d2c733c4665 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 19113
diff changeset
   187
            enabled: hasSelection
17487
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   188
          )
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   189
         (MenuItem
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   190
            label: '-'
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   191
          )
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   192
         (MenuItem
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   193
            label: 'Inspect'
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   194
            itemValue: inspectStream
19344
2d2c733c4665 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 19113
diff changeset
   195
            enabled: hasSelection
17487
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   196
          )
18506
b07e5f5e1c15 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18505
diff changeset
   197
         (MenuItem
19109
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   198
            label: 'Debug Processes Blocked on It'
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   199
            itemValue: menuDebugProcessesBlockedOnIt
19344
2d2c733c4665 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 19113
diff changeset
   200
            enabled: hasSelection
19109
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   201
          )
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   202
         (MenuItem
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   203
            label: 'References'
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   204
            itemValue: menuReferences
19344
2d2c733c4665 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 19113
diff changeset
   205
            enabled: hasSelection
18506
b07e5f5e1c15 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18505
diff changeset
   206
          )
17487
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   207
         )
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   208
        nil
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   209
        nil
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   210
      )
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   211
! !
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   212
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   213
!ExternalStreamMonitor methodsFor:'aspects'!
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   214
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   215
filterConnectedSocketsOnlyHolder
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   216
    filterConnectedSocketsOnlyHolder isNil ifTrue:[
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   217
        filterConnectedSocketsOnlyHolder := false asValue.
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   218
        filterConnectedSocketsOnlyHolder onChangeSend:#filterConnectedSocketsOnlyHolderChanged to:self.
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   219
    ].    
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   220
    ^ filterConnectedSocketsOnlyHolder
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   221
!
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   222
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   223
filterOpenStreamsOnlyHolder 
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   224
    filterOpenStreamsOnlyHolder isNil ifTrue:[
18447
7fd51d712f8a #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18138
diff changeset
   225
        filterOpenStreamsOnlyHolder := true asValue.
18505
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   226
        filterOpenStreamsOnlyHolder onChangeSend:#filterOpenStreamsOnlyHolderChanged to:self.
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   227
    ].    
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   228
    ^ filterOpenStreamsOnlyHolder
18447
7fd51d712f8a #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18138
diff changeset
   229
18505
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   230
    "Modified: / 29-10-2018 / 15:44:11 / Claus Gittinger"
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   231
!
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   232
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   233
filterPipesOnlyHolder
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   234
    filterPipesOnlyHolder isNil ifTrue:[
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   235
        filterPipesOnlyHolder := false asValue.
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   236
        filterPipesOnlyHolder onChangeSend:#filterPipesOnlyHolderChanged to:self.
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   237
    ].    
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   238
    ^ filterPipesOnlyHolder
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   239
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   240
    "Created: / 29-10-2018 / 15:36:07 / Claus Gittinger"
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   241
!
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   242
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   243
filterSocketsOnlyHolder
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   244
    filterSocketsOnlyHolder isNil ifTrue:[
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   245
        filterSocketsOnlyHolder := false asValue.
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   246
        filterSocketsOnlyHolder onChangeSend:#filterSocketsOnlyHolderChanged to:self.
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   247
    ].    
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   248
    ^ filterSocketsOnlyHolder
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   249
! !
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   250
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   251
!ExternalStreamMonitor methodsFor:'drawing'!
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   252
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   253
titleLine
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   254
    OperatingSystem isMSWINDOWSlike ifTrue:[
18504
33708933d184 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18502
diff changeset
   255
        ^ 'Type                           Global                          Handle Detail'.
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   256
    ] ifFalse:[    
18504
33708933d184 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18502
diff changeset
   257
        ^ 'Type                           Global                          FD Detail'.
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   258
    ].
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   259
    
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   260
    "
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   261
     ExternalStreamMonitor open
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   262
    "
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   263
18504
33708933d184 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18502
diff changeset
   264
    "Modified: / 17-06-1998 / 14:52:48 / cg"
33708933d184 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18502
diff changeset
   265
    "Modified: / 29-10-2018 / 15:28:22 / Claus Gittinger"
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   266
!
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   267
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   268
updateList
19045
1a9c95a8f7ce #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19044
diff changeset
   269
    "update list of streams"
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   270
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   271
    |newList|
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   272
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   273
    shown ifTrue:[
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   274
        newList := ExternalStream allSubInstances.
18138
e374fbbe6c55 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17707
diff changeset
   275
        newList := newList reject:#isExecutor.
e374fbbe6c55 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17707
diff changeset
   276
        
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   277
        self filterOpenStreamsOnlyHolder value ifTrue:[
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   278
            newList := newList select:[:eachStream | eachStream isOpen].
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   279
        ].
18505
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   280
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   281
        self filterPipesOnlyHolder value ifTrue:[
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   282
            newList := newList select:[:eachStream | eachStream isPipeStream].
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   283
        ] ifFalse:[
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   284
            self filterSocketsOnlyHolder value ifTrue:[
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   285
                newList := newList select:[:eachStream | eachStream isSocket].
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   286
            ].
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   287
            self filterConnectedSocketsOnlyHolder value ifTrue:[
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   288
                newList := newList select:[:eachStream | eachStream isSocket and:[eachStream isConnected]].
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   289
            ].
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   290
        ].
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   291
        
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   292
        newList sort:[:s1 :s2 | 
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   293
                    s1 className < s2 className
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   294
                    or:[ s1 className = s2 className
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   295
                         and:[false]]
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   296
                ].
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   297
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   298
        newList ~= streams ifTrue:[
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   299
            self updateStatus:newList
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   300
        ].
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   301
    ].
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   302
    self installDelayedUpdate.
18504
33708933d184 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18502
diff changeset
   303
18505
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   304
    "Modified: / 29-10-2018 / 15:39:43 / Claus Gittinger"
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   305
!
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   306
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   307
updateStatus:newStreamsList
19045
1a9c95a8f7ce #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19044
diff changeset
   308
    "update status display of streams"
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   309
19054
6b328ef4b81c #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19045
diff changeset
   310
    |numberOfHeadlines oldList list oldSelection newSelection|
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   311
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   312
    shown ifTrue:[
19054
6b328ef4b81c #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19045
diff changeset
   313
        numberOfHeadlines := self numberOfHeadlines.
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   314
        oldList := listView list.
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   315
        oldSelection := listView selection.
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   316
        oldSelection notNil ifTrue:[
18591
5ebe254f5515 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18506
diff changeset
   317
            oldSelection := oldSelection 
19054
6b328ef4b81c #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19045
diff changeset
   318
                                select:[:lNr | lNr > numberOfHeadlines]
6b328ef4b81c #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19045
diff changeset
   319
                                thenCollect:[:lineNr | 
6b328ef4b81c #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19045
diff changeset
   320
                                    streams at:(lineNr - numberOfHeadlines) ifAbsent:nil 
18591
5ebe254f5515 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18506
diff changeset
   321
                                ].
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   322
            newSelection := OrderedCollection new.
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   323
        ].
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   324
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   325
        newStreamsList notNil ifTrue:[
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   326
            streams := WeakArray withAll:newStreamsList.
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   327
        ].
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   328
        streams notNil ifTrue:[
19054
6b328ef4b81c #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19045
diff changeset
   329
            list := OrderedCollection new:(streams size + numberOfHeadlines).
19113
7980e37ee2f8 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 19109
diff changeset
   330
            (showTime == true) ifTrue:[
7980e37ee2f8 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 19109
diff changeset
   331
                list add:'Time: ',(Time now printString).
7980e37ee2f8 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 19109
diff changeset
   332
            ].
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   333
            list add:self titleLine.
18504
33708933d184 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18502
diff changeset
   334
            list add:(String new:(self titleLine size+20) withAll:$-).
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   335
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   336
            streams validElementsDo:[:aStream |
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   337
                |waiters waitersNames type globalNameOrNil handleString
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   338
                 isOpen handle detail color line|
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   339
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   340
                type := aStream className.
18504
33708933d184 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18502
diff changeset
   341
                "/ beware of aliases...
33708933d184 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18502
diff changeset
   342
                aStream = Stdin ifTrue:[
33708933d184 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18502
diff changeset
   343
                    globalNameOrNil := 'Stdin'.
33708933d184 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18502
diff changeset
   344
                ] ifFalse:[
33708933d184 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18502
diff changeset
   345
                    aStream = Stdout ifTrue:[
33708933d184 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18502
diff changeset
   346
                        globalNameOrNil := 'Stdout'.
33708933d184 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18502
diff changeset
   347
                    ] ifFalse:[
33708933d184 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18502
diff changeset
   348
                        aStream = Stderr ifTrue:[
33708933d184 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18502
diff changeset
   349
                            globalNameOrNil := 'Stderr'.
33708933d184 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18502
diff changeset
   350
                        ] ifFalse:[
33708933d184 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18502
diff changeset
   351
                            globalNameOrNil := Smalltalk keyAtValue:aStream.
33708933d184 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18502
diff changeset
   352
                        ]
33708933d184 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18502
diff changeset
   353
                    ]
33708933d184 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18502
diff changeset
   354
                ].
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   355
                aStream isFileStream ifTrue:[
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   356
                    detail := aStream pathName.
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   357
                ] ifFalse:[
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   358
                    aStream isSocket ifTrue:[
17707
25241bc3394b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17622
diff changeset
   359
                        detail := ''.
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   360
                        aStream getPeer notNil ifTrue:[
18504
33708933d184 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18502
diff changeset
   361
                            detail := detail,(aStream getPeerName printString),'[',(aStream getPeer printString),']'.
17707
25241bc3394b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17622
diff changeset
   362
                        ].
25241bc3394b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17622
diff changeset
   363
                        aStream port notNil ifTrue:[
25241bc3394b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17622
diff changeset
   364
                            detail := detail,':',aStream port printString
25241bc3394b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17622
diff changeset
   365
                        ].
19108
c2c7f99be5f5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19054
diff changeset
   366
                        aStream isListening notNil ifTrue:[
c2c7f99be5f5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19054
diff changeset
   367
                            detail := detail,' (listening)'
c2c7f99be5f5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19054
diff changeset
   368
                        ].
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   369
                    ] ifFalse:[
18138
e374fbbe6c55 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17707
diff changeset
   370
                        aStream isPipeStream ifTrue:[
e374fbbe6c55 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17707
diff changeset
   371
                            detail := aStream commandString.
e374fbbe6c55 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17707
diff changeset
   372
                        ].    
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   373
                    ].
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   374
                ].
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   375
                
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   376
                OperatingSystem isMSWINDOWSlike ifTrue:[
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   377
                    aStream isOpen ifTrue:[
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   378
                        handle := aStream fileHandle.
17616
7fae9311f5f3 #BUGFIX by mawalch
mawalch
parents: 17487
diff changeset
   379
                        handle isInteger ifTrue:[
7fae9311f5f3 #BUGFIX by mawalch
mawalch
parents: 17487
diff changeset
   380
                            handleString := handle printString
7fae9311f5f3 #BUGFIX by mawalch
mawalch
parents: 17487
diff changeset
   381
                        ] ifFalse:[
7fae9311f5f3 #BUGFIX by mawalch
mawalch
parents: 17487
diff changeset
   382
                            handleString := (handle address ? 0) hexPrintString
7fae9311f5f3 #BUGFIX by mawalch
mawalch
parents: 17487
diff changeset
   383
                        ].
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   384
                    ].
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   385
                    handleString := (handleString ? '') leftPaddedTo:7
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   386
                ] ifFalse:[
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   387
                    aStream isOpen ifTrue:[
17622
35c4fcfb1fc9 #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 17616
diff changeset
   388
                        [
18504
33708933d184 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18502
diff changeset
   389
                            handleString := aStream fileDescriptor printString
17622
35c4fcfb1fc9 #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 17616
diff changeset
   390
                        ] on:StreamError do:[
35c4fcfb1fc9 #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 17616
diff changeset
   391
                        ].    
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   392
                    ].
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   393
                    handleString := (handleString ? '') leftPaddedTo:3
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   394
                ].
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   395
18504
33708933d184 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18502
diff changeset
   396
                line := (type contractTo:30) paddedTo:30.
33708933d184 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18502
diff changeset
   397
                line := line , ' ' , (((globalNameOrNil ? '') contractTo:30) paddedTo:30).
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   398
                line := line , ' ' , handleString.
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   399
                line := line , ' ' , (detail ? '').
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   400
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   401
                isOpen := aStream isOpen.
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   402
                
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   403
"/                line := line
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   404
"/                          , ' '
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   405
"/                          , ((nm contractTo:25) paddedTo:25)
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   406
"/                          , ' '
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   407
"/                          , (count printStringLeftPaddedTo:3)
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   408
"/                          , ' '
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   409
"/                          , owner printString
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   410
"/                          , ' '
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   411
"/                          , (waiters size printStringLeftPaddedTo:3)
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   412
"/                          , ' '
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   413
"/                          , waitersNames.
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   414
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   415
                isOpen ifFalse:[
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   416
                    color := Color red.
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   417
                ] ifTrue:[
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   418
                    color := Color blue.
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   419
                ].
18818
bd34e718f254 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18591
diff changeset
   420
                line := line withColor:color.
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   421
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   422
                list add:line.
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   423
                oldSelection notNil ifTrue:[
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   424
                    (oldSelection includesIdentical:aStream) ifTrue:[
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   425
                        newSelection add:list size.
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   426
                    ]
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   427
                ]
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   428
            ].
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   429
        ].
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   430
        "avoid flicker"
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   431
        (oldList notNil and:[oldList size == list size]) ifTrue:[
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   432
            list keysAndValuesDo:[:idx :entry |
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   433
                (oldList at:idx) ~= entry ifTrue:[
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   434
                    listView at:idx put:entry
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   435
                ]
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   436
            ]
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   437
        ] ifFalse:[
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   438
            listView setList:list.
19054
6b328ef4b81c #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19045
diff changeset
   439
            "the first few entries cannot be selected"
6b328ef4b81c #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19045
diff changeset
   440
            1 to:numberOfHeadlines do:[:lNr | listView attributeAt:lNr put:#disabled].
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   441
        ].
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   442
        newSelection notNil ifTrue:[
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   443
            listView selectWithoutScroll:newSelection
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   444
        ].
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   445
        listView flush
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   446
    ].
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   447
    self installDelayedUpdate.
17622
35c4fcfb1fc9 #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 17616
diff changeset
   448
17707
25241bc3394b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17622
diff changeset
   449
    "Modified: / 11-10-2017 / 13:56:14 / cg"
18818
bd34e718f254 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18591
diff changeset
   450
    "Modified: / 07-06-2019 / 22:10:36 / Claus Gittinger"
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   451
! !
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   452
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   453
!ExternalStreamMonitor methodsFor:'menu'!
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   454
18506
b07e5f5e1c15 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18505
diff changeset
   455
selectedStreams
b07e5f5e1c15 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18505
diff changeset
   456
    "return all selected streams"
b07e5f5e1c15 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18505
diff changeset
   457
b07e5f5e1c15 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18505
diff changeset
   458
    ^ Array streamContents:[:s |
b07e5f5e1c15 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18505
diff changeset
   459
        self selectedStreamsDo:[:each | s nextPut:each]
b07e5f5e1c15 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18505
diff changeset
   460
    ].
b07e5f5e1c15 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18505
diff changeset
   461
b07e5f5e1c15 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18505
diff changeset
   462
    "Created: / 29-10-2018 / 17:00:35 / Claus Gittinger"
b07e5f5e1c15 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18505
diff changeset
   463
!
b07e5f5e1c15 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18505
diff changeset
   464
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   465
selectedStreamsDo:aBlock
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   466
    "evaluate aBlock on all selected streams"
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   467
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   468
    self selectionIndicesDo:[:n |
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   469
        |nr stream|
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   470
        
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   471
        nr := n - self numberOfHeadlines.
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   472
        nr notNil ifTrue:[
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   473
            nr > 0 ifTrue:[
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   474
                stream := streams at:nr.
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   475
                (stream notNil and:[stream ~~ 0]) ifTrue:[
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   476
                   aBlock value:stream
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   477
                ]
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   478
            ]
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   479
        ]
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   480
    ].
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   481
!
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   482
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   483
statusMenu
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   484
    "return a popUpMenu"
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   485
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   486
    <resource: #programMenu>
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   487
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   488
    |labels selectors m|
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   489
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   490
    labels := resources array:#(
17487
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   491
                         'Close'
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   492
                         '-'
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   493
                         'Inspect'
19109
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   494
                         'Debug waiting Process(es)'
18138
e374fbbe6c55 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17707
diff changeset
   495
                         'References'
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   496
                        ).
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   497
    selectors := #(
17487
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   498
                         menuCloseSelected
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   499
                         nil
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   500
                         inspectStream
19109
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   501
                         menuDebugProcessesBlockedOnIt
18138
e374fbbe6c55 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17707
diff changeset
   502
                         menuReferences
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   503
                        ).
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   504
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   505
    updateProcess isNil ifTrue:[
17622
35c4fcfb1fc9 #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 17616
diff changeset
   506
        labels := labels,(resources array:#('-' 'Update' )).
35c4fcfb1fc9 #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 17616
diff changeset
   507
        selectors := selectors , #(nil updateView). 
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   508
    ].
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   509
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   510
    m := PopUpMenu labels:labels
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   511
                   selectors:selectors.
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   512
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   513
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   514
    listView hasSelection ifFalse:[
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   515
        m disableAll:#(
17487
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   516
                         menuCloseSelected
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   517
                         inspectStream
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   518
                      )
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   519
    ].
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   520
    ^ m
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   521
17622
35c4fcfb1fc9 #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 17616
diff changeset
   522
    "Modified: / 18-08-2017 / 14:34:12 / cg"
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   523
! !
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   524
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   525
!ExternalStreamMonitor methodsFor:'queries'!
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   526
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   527
numberOfHeadlines
19113
7980e37ee2f8 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 19109
diff changeset
   528
    ^ 2 + (showTime == true ifTrue:1 ifFalse:0)
18504
33708933d184 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18502
diff changeset
   529
33708933d184 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18502
diff changeset
   530
    "Modified: / 29-10-2018 / 15:24:14 / Claus Gittinger"
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   531
! !
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   532
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   533
!ExternalStreamMonitor methodsFor:'user actions'!
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   534
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   535
doubleClicked
17487
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   536
    "open an inspector on the selected stream"
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   537
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   538
    self inspectStream
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   539
17487
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   540
    "Created: / 23-01-1997 / 03:22:04 / cg"
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   541
    "Modified: / 31-01-1997 / 22:33:27 / cg"
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   542
    "Modified (comment): / 07-04-2017 / 14:28:01 / cg"
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   543
!
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   544
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   545
filterConnectedSocketsOnlyHolderChanged
18505
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   546
    self filterConnectedSocketsOnlyHolder value ifTrue:[
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   547
        self filterPipesOnlyHolder value:false.
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   548
    ].        
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   549
    self sensor pushUserEvent:#updateList for:self
18505
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   550
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   551
    "Modified: / 29-10-2018 / 15:48:44 / Claus Gittinger"
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   552
!
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   553
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   554
filterOpenStreamsOnlyHolderChanged
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   555
    self sensor pushUserEvent:#updateList for:self
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   556
!
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   557
18505
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   558
filterPipesOnlyHolderChanged
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   559
    self filterPipesOnlyHolder value ifTrue:[
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   560
        self filterSocketsOnlyHolder value:false.
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   561
        self filterConnectedSocketsOnlyHolder value:false.
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   562
    ].        
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   563
    self sensor pushUserEvent:#updateList for:self
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   564
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   565
    "Created: / 29-10-2018 / 15:36:45 / Claus Gittinger"
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   566
!
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   567
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   568
filterSocketsOnlyHolderChanged
18505
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   569
    self filterSocketsOnlyHolder value ifTrue:[
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   570
        self filterPipesOnlyHolder value:false.
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   571
    ].
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   572
    self sensor pushUserEvent:#updateList for:self
18505
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   573
4972f3ec73de #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18504
diff changeset
   574
    "Modified: / 29-10-2018 / 15:48:40 / Claus Gittinger"
17487
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   575
!
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   576
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   577
inspectStream
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   578
    "open an inspector on the selected stream(s)"
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   579
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   580
    self selectedStreamsDo:[:eachStream | eachStream inspect]
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   581
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   582
    "Modified (format): / 07-04-2017 / 14:27:45 / cg"
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   583
!
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   584
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   585
menuCloseSelected
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   586
    "close the selected stream(s)"
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   587
18138
e374fbbe6c55 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17707
diff changeset
   588
    self selectedStreamsDo:[:eachStream | eachStream close].
e374fbbe6c55 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17707
diff changeset
   589
    self updateList.
17487
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   590
23f1dd7e6afb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17228
diff changeset
   591
    "Created: / 07-04-2017 / 14:26:04 / cg"
18138
e374fbbe6c55 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17707
diff changeset
   592
!
e374fbbe6c55 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17707
diff changeset
   593
19109
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   594
menuDebugProcessesBlockedOnIt
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   595
    "open a debugger on processes which are blocked reding, writing or listening"
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   596
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   597
    self processesBlockedOnItDo:[:each | Debugger openOn:each].
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   598
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   599
    "Modified (format): / 07-04-2017 / 14:27:45 / cg"
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   600
    "Modified: / 29-10-2018 / 17:01:00 / Claus Gittinger"
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   601
!
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   602
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   603
menuInspectProcessesUsingIt
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   604
    "inspect processes which are blocked reding, writing or listening"
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   605
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   606
    self processesBlockedOnItDo:[:each | each inspect].
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   607
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   608
!
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   609
18138
e374fbbe6c55 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17707
diff changeset
   610
menuReferences
e374fbbe6c55 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17707
diff changeset
   611
    "show references to the selected stream"
e374fbbe6c55 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17707
diff changeset
   612
18506
b07e5f5e1c15 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18505
diff changeset
   613
    ObjectMemory displayRefChainToAny:(self selectedStreams) limitNumberOfSearchedReferences:100.
18138
e374fbbe6c55 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17707
diff changeset
   614
e374fbbe6c55 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17707
diff changeset
   615
    "Modified (format): / 07-04-2017 / 14:27:45 / cg"
18506
b07e5f5e1c15 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18505
diff changeset
   616
    "Modified: / 29-10-2018 / 17:01:00 / Claus Gittinger"
19109
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   617
!
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   618
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   619
processesBlockedOnIt
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   620
    "return processes which are blocked reding, writing or listening"
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   621
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   622
    |selected processes|
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   623
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   624
    processes := OrderedCollection new.
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   625
    selected := self selectedStreams.
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   626
    Process allInstancesDo:[:p |
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   627
        |con|
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   628
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   629
        p isDead ifFalse:[
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   630
            (con := p suspendedContext) notNil ifTrue:[
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   631
                 [con notNil and:[(selected includesIdentical:con receiver) not]] whileTrue:[
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   632
                    con := con sender.
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   633
                 ].
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   634
                 con notNil ifTrue:[
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   635
                    processes add:p.
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   636
                 ]
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   637
            ]
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   638
        ]
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   639
    ].
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   640
    ^  processes
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   641
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   642
    "Modified (format): / 07-04-2017 / 14:27:45 / cg"
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   643
    "Modified: / 29-10-2018 / 17:01:00 / Claus Gittinger"
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   644
!
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   645
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   646
processesBlockedOnItDo:aBlock
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   647
    "open a debugger on processes which are blocked reding, writing or listening"
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   648
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   649
    |processes|
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   650
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   651
    processes := self processesBlockedOnIt.
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   652
    processes notEmpty ifTrue:[
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   653
        processes do:[:each |
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   654
            aBlock value:each.
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   655
        ].
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   656
        ^ self
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   657
    ].
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   658
    Dialog information:'No process is blocked on '
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   659
                        ,(self selectedStreams size == 1 ifTrue:['this'] ifFalse:['any selected'])
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   660
                        ,' process'.
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   661
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   662
    "Modified (format): / 07-04-2017 / 14:27:45 / cg"
96c0b780b275 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19108
diff changeset
   663
    "Modified: / 29-10-2018 / 17:01:00 / Claus Gittinger"
17227
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   664
! !
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   665
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   666
!ExternalStreamMonitor class methodsFor:'documentation'!
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   667
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   668
version
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   669
    ^ '$Header$'
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   670
!
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   671
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   672
version_CVS
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   673
    ^ '$Header$'
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   674
! !
1cdacb64232c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   675