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