SystemStatusMonitor.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Thu, 14 Jun 2018 22:19:39 +0100
branchjv
changeset 18227 d25a407ba86d
parent 17277 11e4a5ca80a5
permissions -rw-r--r--
Mini testrunner: show "green" if there's at least one pass and rest is pass or skip This is more meaningfull result then showing "gray" if there's at least one skip.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2744
0ebeada0fee0 copyright added
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
     1
"
0ebeada0fee0 copyright added
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
     2
 COPYRIGHT (c) 1997 by eXept Software AG
0ebeada0fee0 copyright added
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
     3
              All Rights Reserved
0ebeada0fee0 copyright added
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
     4
0ebeada0fee0 copyright added
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
     5
 This software is furnished under a license and may be used
0ebeada0fee0 copyright added
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
     6
 only in accordance with the terms of that license and with the
0ebeada0fee0 copyright added
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
0ebeada0fee0 copyright added
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
     8
 be provided or otherwise made available to, or used by, any
0ebeada0fee0 copyright added
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
     9
 other person.  No title to or ownership of the software is
0ebeada0fee0 copyright added
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
    10
 hereby transferred.
0ebeada0fee0 copyright added
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
    11
"
17168
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
    12
"{ Package: 'stx:libtool' }"
2744
0ebeada0fee0 copyright added
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
    13
17168
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
    14
"{ NameSpace: Smalltalk }"
2699
dcb83b594b14 default extent
Claus Gittinger <cg@exept.de>
parents: 2488
diff changeset
    15
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
SimpleView subclass:#SystemStatusMonitor
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	instanceVariableNames:'listView listUpdateDelay updateDelay updateBlock listUpdateBlock
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
		updateProcess'
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	classVariableNames:''
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	poolDictionaries:''
1053
9b1b15ef1e34 category change
Claus Gittinger <cg@exept.de>
parents: 1052
diff changeset
    21
	category:'Monitors-ST/X'
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
!
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
2744
0ebeada0fee0 copyright added
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
    24
!SystemStatusMonitor class methodsFor:'documentation'!
0ebeada0fee0 copyright added
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
    25
0ebeada0fee0 copyright added
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
    26
copyright
0ebeada0fee0 copyright added
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
    27
"
0ebeada0fee0 copyright added
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
    28
 COPYRIGHT (c) 1997 by eXept Software AG
0ebeada0fee0 copyright added
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
    29
              All Rights Reserved
0ebeada0fee0 copyright added
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
    30
0ebeada0fee0 copyright added
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
    31
 This software is furnished under a license and may be used
0ebeada0fee0 copyright added
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
    32
 only in accordance with the terms of that license and with the
0ebeada0fee0 copyright added
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
    33
 inclusion of the above copyright notice.   This software may not
0ebeada0fee0 copyright added
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
    34
 be provided or otherwise made available to, or used by, any
0ebeada0fee0 copyright added
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
    35
 other person.  No title to or ownership of the software is
0ebeada0fee0 copyright added
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
    36
 hereby transferred.
0ebeada0fee0 copyright added
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
    37
"
17168
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
    38
!
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
    39
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
    40
documentation
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
    41
"
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
    42
    Abstract class providing common code for list-based status monitors.
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
    43
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
    44
    [disclaimer:]
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
    45
        these are some of the oldest tools in the system, written in the early 90's.
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
    46
        They do in no way reflect the way GUIs are designed/written these days.
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
    47
"
2744
0ebeada0fee0 copyright added
Claus Gittinger <cg@exept.de>
parents: 2699
diff changeset
    48
! !
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
!SystemStatusMonitor class methodsFor:'defaults'!
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
defaultIcon
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
    ^ StandardSystemView defaultIcon
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
    "Created: 23.1.1997 / 02:52:25 / cg"
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
!
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
defaultLabel
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
    ^ 'Status Monitor'
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
    "Created: 23.1.1997 / 02:52:43 / cg"
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
! !
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
17225
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    64
!SystemStatusMonitor class methodsFor:'menu specs'!
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    65
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    66
mainMenu
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    67
    "This resource specification was automatically generated
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    68
     by the MenuEditor of ST/X."
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    69
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    70
    "Do not manually edit this!! If it is corrupted,
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    71
     the MenuEditor may not be able to read the specification."
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    72
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    73
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    74
    "
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    75
     MenuEditor new openOnClass:SystemStatusMonitor andSelector:#mainMenu
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    76
     (Menu new fromLiteralArrayEncoding:(SystemStatusMonitor mainMenu)) startUp
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    77
    "
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    78
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    79
    <resource: #menu>
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    80
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    81
    ^ 
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    82
     #(Menu
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    83
        (
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    84
         (MenuItem
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    85
            label: 'File'
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    86
            submenu: 
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    87
           (Menu
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    88
              (
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    89
               (MenuItem
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    90
                  label: 'Exit'
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    91
                  itemValue: closeRequestToTopView
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    92
                )
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    93
               )
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    94
              nil
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    95
              nil
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    96
            )
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    97
          )
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    98
         )
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
    99
        nil
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   100
        nil
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   101
      )
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   102
! !
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   103
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
!SystemStatusMonitor class methodsFor:'startup'!
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
17168
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
   106
isAbstract
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
   107
    "return true, if this is an abstract class."
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
   108
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
   109
    ^ self == SystemStatusMonitor
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
   110
!
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
   111
1823
6ebeee55f0c4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1806
diff changeset
   112
isVisualStartable
2844
9b5742ab47d6 comment only
Claus Gittinger <cg@exept.de>
parents: 2744
diff changeset
   113
    "return true, if this application can be started via #open.
17168
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
   114
     (to allow start of a subclass instance via double-click in the browser)"
2844
9b5742ab47d6 comment only
Claus Gittinger <cg@exept.de>
parents: 2744
diff changeset
   115
1823
6ebeee55f0c4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1806
diff changeset
   116
    ^ self ~~ SystemStatusMonitor
6ebeee55f0c4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1806
diff changeset
   117
6ebeee55f0c4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1806
diff changeset
   118
    "Created: / 10.8.1998 / 16:02:23 / cg"
6ebeee55f0c4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1806
diff changeset
   119
    "Modified: / 10.8.1998 / 16:02:41 / cg"
6ebeee55f0c4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1806
diff changeset
   120
!
6ebeee55f0c4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1806
diff changeset
   121
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
open
17225
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   123
    |top menuPanel menu monitor|
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
    top := StandardSystemView new.
17225
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   126
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   127
    monitor := self in:top.
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   128
    monitor layout:(LayoutFrame
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   129
        leftFraction:0 offset:0
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   130
        rightFraction:1 offset:0
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   131
        topFraction:0 offset:30
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   132
        bottomFraction:1 offset:0).
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   133
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   134
    menuPanel := MenuPanel in:top.
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   135
    menuPanel layout:(LayoutFrame
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   136
        leftFraction:0 offset:0
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   137
        rightFraction:1 offset:0
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   138
        topFraction:0 offset:0
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   139
        bottomFraction:0 offset:30).
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   140
    menuPanel verticalLayout:false.
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   141
    menu := self mainMenu decodeAsLiteralArray.
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   142
    menu findGuiResourcesIn:monitor.
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   143
    menu receiver:monitor.
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   144
    menuPanel menu:menu.
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   145
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   146
    top extent:monitor preferredExtent.
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   147
    top label:self defaultLabel.
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   148
    top icon:self defaultIcon.
2410
292d61292ac8 Reurn the monitor in #open.
Stefan Vogel <sv@exept.de>
parents: 1897
diff changeset
   149
    top open.
292d61292ac8 Reurn the monitor in #open.
Stefan Vogel <sv@exept.de>
parents: 1897
diff changeset
   150
292d61292ac8 Reurn the monitor in #open.
Stefan Vogel <sv@exept.de>
parents: 1897
diff changeset
   151
    ^ monitor
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   152
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   153
    "
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   154
     ProcessMonitor open
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   155
    "
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   156
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   157
    "Created: 23.1.1997 / 02:53:42 / cg"
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   158
! !
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   159
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   160
!SystemStatusMonitor methodsFor:'destroying'!
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   161
3825
291fef465a5b destroy - release
Claus Gittinger <cg@exept.de>
parents: 3024
diff changeset
   162
release
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
    updateBlock notNil ifTrue:[
3825
291fef465a5b destroy - release
Claus Gittinger <cg@exept.de>
parents: 3024
diff changeset
   164
        Processor removeTimedBlock:updateBlock.
291fef465a5b destroy - release
Claus Gittinger <cg@exept.de>
parents: 3024
diff changeset
   165
        updateBlock := nil.
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   166
    ].
3825
291fef465a5b destroy - release
Claus Gittinger <cg@exept.de>
parents: 3024
diff changeset
   167
    listUpdateBlock notNil ifTrue:[
291fef465a5b destroy - release
Claus Gittinger <cg@exept.de>
parents: 3024
diff changeset
   168
        Processor removeTimedBlock:listUpdateBlock.
291fef465a5b destroy - release
Claus Gittinger <cg@exept.de>
parents: 3024
diff changeset
   169
        listUpdateBlock := nil.
291fef465a5b destroy - release
Claus Gittinger <cg@exept.de>
parents: 3024
diff changeset
   170
    ].
291fef465a5b destroy - release
Claus Gittinger <cg@exept.de>
parents: 3024
diff changeset
   171
    updateProcess notNil ifTrue:[
291fef465a5b destroy - release
Claus Gittinger <cg@exept.de>
parents: 3024
diff changeset
   172
        updateProcess terminate.
291fef465a5b destroy - release
Claus Gittinger <cg@exept.de>
parents: 3024
diff changeset
   173
        updateProcess := nil.
291fef465a5b destroy - release
Claus Gittinger <cg@exept.de>
parents: 3024
diff changeset
   174
    ].
291fef465a5b destroy - release
Claus Gittinger <cg@exept.de>
parents: 3024
diff changeset
   175
    super release
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   176
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
    "Created: 23.1.1997 / 02:26:50 / cg"
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   178
! !
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   179
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   180
!SystemStatusMonitor methodsFor:'drawing'!
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   181
17168
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
   182
titleLine
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
   183
    self subclassResponsibility
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
   184
!
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
   185
6157
333cde2a5ec7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6156
diff changeset
   186
updateList
333cde2a5ec7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6156
diff changeset
   187
    self subclassResponsibility
333cde2a5ec7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6156
diff changeset
   188
!
333cde2a5ec7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6156
diff changeset
   189
333cde2a5ec7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6156
diff changeset
   190
updateStatus:arg
333cde2a5ec7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6156
diff changeset
   191
    self subclassResponsibility
333cde2a5ec7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6156
diff changeset
   192
!
333cde2a5ec7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6156
diff changeset
   193
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   194
updateView
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   195
    self updateList.
2488
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   196
    self updateStatus:nil
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   197
2488
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   198
    "Created: / 23.1.1997 / 02:27:05 / cg"
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   199
    "Modified: / 14.12.1999 / 20:47:37 / cg"
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   200
! !
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   201
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   202
!SystemStatusMonitor methodsFor:'events'!
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   203
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   204
canHandle:key
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   205
    ^ key == #InspectIt
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   206
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   207
    "Created: 23.1.1997 / 02:27:15 / cg"
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   208
!
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   209
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   210
keyPress:key x:x y:y
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   211
    <resource: #keyboard ( #InspectIt ) >
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   212
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   213
    key == #InspectIt ifTrue:[
1897
76292e485360 disabled toggleSelect
Claus Gittinger <cg@exept.de>
parents: 1823
diff changeset
   214
	^ self inspectSelection.
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   215
    ].
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   216
    ^ super keyPress:key x:x y:y
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   217
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   218
    "Modified: 23.1.1997 / 02:27:27 / cg"
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   219
    "Created: 23.1.1997 / 02:27:45 / cg"
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   220
! !
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   221
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   222
!SystemStatusMonitor methodsFor:'initialization'!
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   223
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   224
initialize
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   225
    |v|
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   226
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   227
    super initialize.
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   228
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   229
    v := HVScrollableView for:SelectionInListView miniScrollerH:true in:self.
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   230
    v origin:0.0@0.0 corner:1.0@1.0.
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   231
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   232
    listView := v scrolledView.
1273
3a8a91e6c5fa give my listView a fixed font.
Claus Gittinger <cg@exept.de>
parents: 1053
diff changeset
   233
    listView font:(EditTextView defaultFont).
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   234
    listView menuHolder:self; menuPerformer:self; menuMessage:#statusMenu. 
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   235
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   236
    listView multipleSelectOk:true.
1897
76292e485360 disabled toggleSelect
Claus Gittinger <cg@exept.de>
parents: 1823
diff changeset
   237
    "/ listView toggleSelect:true.
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   238
    listView delegate:(KeyboardForwarder toView:self).
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   239
    listView doubleClickAction:[:line | self doubleClicked].
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   240
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   241
    updateDelay := 0.5.
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   242
    listUpdateDelay := 5.
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   243
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   244
    "/ event mode is no longer used;
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   245
    "/ this event support may vanish
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   246
    Processor isPureEventDriven ifTrue:[
2488
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   247
        updateBlock := [self updateStatus:nil].
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   248
        listUpdateBlock := [self updateList].
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   249
    ].
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   250
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   251
    "
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   252
     ProcessMonitor open
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   253
    "
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   254
2488
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   255
    "Modified: / 14.12.1999 / 20:47:57 / cg"
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   256
!
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   257
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   258
mapped
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   259
    super mapped.
2488
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   260
    self updateStatus:nil.
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   261
    self updateList.
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   262
2488
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   263
    "Created: / 23.1.1997 / 02:30:05 / cg"
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   264
    "Modified: / 14.12.1999 / 20:47:54 / cg"
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   265
!
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   266
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   267
realize
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   268
    super realize.
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   269
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   270
    self startUpdateProcess.
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   271
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   272
    "Created: 23.1.1997 / 02:30:28 / cg"
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   273
!
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   274
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   275
reinitialize
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   276
    updateProcess := nil.
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   277
    super reinitialize.
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   278
    self startUpdateProcess.
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   279
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   280
    "Modified: 22.12.1995 / 22:51:14 / cg"
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   281
    "Created: 23.1.1997 / 02:30:43 / cg"
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   282
!
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   283
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   284
startUpdateProcess
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   285
    updateBlock notNil ifTrue:[
2488
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   286
        Processor addTimedBlock:updateBlock afterSeconds:updateDelay.
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   287
        Processor addTimedBlock:listUpdateBlock afterSeconds:listUpdateDelay.
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   288
    ] ifFalse:[
2488
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   289
        updateProcess := [
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   290
            [
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   291
                |id cnt myDelay|
992
311227ea4edb reuse delays
Claus Gittinger <cg@exept.de>
parents: 981
diff changeset
   292
3024
51e109cb8ae0 dynamic updateDelay
Claus Gittinger <cg@exept.de>
parents: 2844
diff changeset
   293
                myDelay := Delay forSeconds:updateDelay.
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   294
2488
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   295
                "
3024
51e109cb8ae0 dynamic updateDelay
Claus Gittinger <cg@exept.de>
parents: 2844
diff changeset
   296
                 every updateDelay (0.5), we look which process runs;
2488
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   297
                 every half second, the status is updated.
3024
51e109cb8ae0 dynamic updateDelay
Claus Gittinger <cg@exept.de>
parents: 2844
diff changeset
   298
                 every listUpdateDelay (5s), the list of processes is
2488
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   299
                 built up again
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   300
                "
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   301
                [true] whileTrue:[
3024
51e109cb8ae0 dynamic updateDelay
Claus Gittinger <cg@exept.de>
parents: 2844
diff changeset
   302
                    ((listUpdateDelay // updateDelay) max:2) - 1 timesRepeat:[
2488
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   303
                        myDelay wait.
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   304
                        self updateStatus:nil.
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   305
                    ].
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   306
                    myDelay wait.
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   307
                    self updateList.
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   308
                ]
6156
2b0398bd0ed6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3825
diff changeset
   309
            ] ifCurtailed:[
2488
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   310
                updateProcess := nil
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   311
            ]
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   312
        ]  forkAt:(Processor userSchedulingPriority + 1).
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   313
        updateProcess name:'monitor [' , 
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   314
                           Processor activeProcess id printString ,
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   315
                           '] update'.
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   316
        "
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   317
         raise my own priority
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   318
        "
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   319
        Processor activeProcess priority:(Processor userSchedulingPriority + 2)
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   320
    ].
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   321
2488
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   322
    "Created: / 23.1.1997 / 02:30:58 / cg"
65689c6d5bd6 changes to avoid loosing the selection when the list is updated
Claus Gittinger <cg@exept.de>
parents: 2410
diff changeset
   323
    "Modified: / 14.12.1999 / 20:47:50 / cg"
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   324
! !
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   325
17225
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   326
!SystemStatusMonitor methodsFor:'menu'!
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   327
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   328
closeRequestToTopView
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   329
    self topView closeRequest
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   330
!
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   331
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   332
selectionIndicesDo:aBlock
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   333
    "evaluate aBlock on all selected indices"
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   334
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   335
    |sel|
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   336
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   337
    sel := listView selection.
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   338
    sel isNil ifTrue:[^ self].
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   339
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   340
    (sel isKindOf:Collection) ifTrue:[
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   341
        sel do:aBlock
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   342
    ] ifFalse:[
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   343
        aBlock value:sel.
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   344
    ].
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   345
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   346
    "Created: 23.1.1997 / 03:11:24 / cg"
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   347
! !
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   348
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   349
!SystemStatusMonitor methodsFor:'private'!
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   350
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   351
installDelayedUpdate
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   352
    updateBlock notNil ifTrue:[
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   353
        Processor removeTimedBlock:listUpdateBlock.
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   354
        Processor addTimedBlock:listUpdateBlock afterSeconds:listUpdateDelay
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   355
    ].
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   356
! !
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   357
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   358
!SystemStatusMonitor methodsFor:'queries'!
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   359
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   360
preferredExtent
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   361
    "return my preferred extent"
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   362
17225
2313780b08fb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17168
diff changeset
   363
    ^ ((self font widthOf:self titleLine) + 400) @ 250
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   364
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   365
    "Modified: 23.1.1997 / 02:35:01 / cg"
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   366
    "Created: 23.1.1997 / 02:51:24 / cg"
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   367
! !
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   368
17168
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
   369
!SystemStatusMonitor methodsFor:'user actions'!
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
   370
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
   371
doubleClicked
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
   372
    "intentionally blank here - to be redefined in subclasses"
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
   373
    
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
   374
    ^ self 
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
   375
!
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
   376
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
   377
inspectSelection
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
   378
    "intentionally blank here - to be redefined in subclasses"
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
   379
    
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
   380
    ^ self 
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
   381
! !
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
   382
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   383
!SystemStatusMonitor class methodsFor:'documentation'!
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   384
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   385
version
17168
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
   386
    ^ '$Header$'
12128
a7ff7d66ee85 Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
   387
!
a7ff7d66ee85 Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
   388
12431
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   389
version_HG
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   390
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   391
    ^ '$Changeset: <not expanded> $'
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   392
!
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   393
12128
a7ff7d66ee85 Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
   394
version_SVN
a7ff7d66ee85 Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
   395
    ^ '$Id: SystemStatusMonitor.st 7854 2012-01-30 17:49:41Z vranyj1 $'
981
82fa38667915 renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   396
! !
17168
26ea2eb499bf #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 6157
diff changeset
   397