DictionaryInspectorView.st
author Claus Gittinger <cg@exept.de>
Wed, 05 Jun 2019 14:16:59 +0200
changeset 18805 f6df57c6dbfb
parent 18732 aad2a3b13dda
child 18971 c7ee62abee42
permissions -rw-r--r--
#BUGFIX by cg class: AbstractFileBrowser changed: #currentFileNameHolder endless loop if file not present.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
18311
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
     1
"{ Encoding: utf8 }"
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
     2
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
     3
"
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
     4
 COPYRIGHT (c) 1993 by Claus Gittinger
18732
aad2a3b13dda #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18731
diff changeset
     5
              All Rights Reserved
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
     6
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
     7
 This software is furnished under a license and may be used
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
     8
 only in accordance with the terms of that license and with the
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
     9
 inclusion of the above copyright notice.   This software may not
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    10
 be provided or otherwise made available to, or used by, any
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    11
 other person.  No title to or ownership of the software is
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    12
 hereby transferred.
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    13
"
2697
b4f4e431b71e browserClass from preferences
Claus Gittinger <cg@exept.de>
parents: 2647
diff changeset
    14
"{ Package: 'stx:libtool' }"
b4f4e431b71e browserClass from preferences
Claus Gittinger <cg@exept.de>
parents: 2647
diff changeset
    15
15681
45a2a17c583e class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 14951
diff changeset
    16
"{ NameSpace: Smalltalk }"
45a2a17c583e class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 14951
diff changeset
    17
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    18
InspectorView subclass:#DictionaryInspectorView
18732
aad2a3b13dda #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18731
diff changeset
    19
        instanceVariableNames:'keys hideClassVars hideClasses hideUnloadedClasses hideAliases
aad2a3b13dda #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18731
diff changeset
    20
                hideNilValues hideLiteralValues hideColorsAndImages
aad2a3b13dda #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18731
diff changeset
    21
                hideSignalInstances hideEmptyCollections hideFreeSemaphores
aad2a3b13dda #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18731
diff changeset
    22
                hideCollectionsHoldingOnlyLiterals hideNonRefObjectReferences
aad2a3b13dda #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18731
diff changeset
    23
                hideStreams hideFilenames hideSimpleObjects'
aad2a3b13dda #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18731
diff changeset
    24
        classVariableNames:''
aad2a3b13dda #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18731
diff changeset
    25
        poolDictionaries:''
aad2a3b13dda #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18731
diff changeset
    26
        category:'Interface-Inspector'
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    27
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    28
957
ecbcb2c15ae8 show a waitCursor, while collecitng keys
Claus Gittinger <cg@exept.de>
parents: 689
diff changeset
    29
!DictionaryInspectorView class methodsFor:'documentation'!
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    30
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    31
copyright
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    32
"
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    33
 COPYRIGHT (c) 1993 by Claus Gittinger
18732
aad2a3b13dda #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18731
diff changeset
    34
              All Rights Reserved
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    35
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    36
 This software is furnished under a license and may be used
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    37
 only in accordance with the terms of that license and with the
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    38
 inclusion of the above copyright notice.   This software may not
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    39
 be provided or otherwise made available to, or used by, any
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    40
 other person.  No title to or ownership of the software is
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    41
 hereby transferred.
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    42
"
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    43
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    44
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    45
documentation
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    46
"
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    47
    a modified Inspector for Dictionaries
510
6543e55fb227 documentation
Claus Gittinger <cg@exept.de>
parents: 470
diff changeset
    48
17960
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
    49
    Notice the filters: these are to inspect Smalltalk,
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
    50
    to get to interesting references more quickly 
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
    51
    (typically to find class variables which still refer to object,
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
    52
     keeping them from being collected)
17961
d67974637c74 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17960
diff changeset
    53
d67974637c74 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17960
diff changeset
    54
    Try:
d67974637c74 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17960
diff changeset
    55
        Smalltalk inspect
d67974637c74 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17960
diff changeset
    56
    then enable some filter(s)
17960
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
    57
    
510
6543e55fb227 documentation
Claus Gittinger <cg@exept.de>
parents: 470
diff changeset
    58
    [author:]
6543e55fb227 documentation
Claus Gittinger <cg@exept.de>
parents: 470
diff changeset
    59
        Claus Gittinger
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    60
"
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    61
! !
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    62
8024
2eec1213d292 Handle keys: Delete, Backspace, Insert
Stefan Vogel <sv@exept.de>
parents: 7946
diff changeset
    63
!DictionaryInspectorView methodsFor:'event handling'!
2eec1213d292 Handle keys: Delete, Backspace, Insert
Stefan Vogel <sv@exept.de>
parents: 7946
diff changeset
    64
2eec1213d292 Handle keys: Delete, Backspace, Insert
Stefan Vogel <sv@exept.de>
parents: 7946
diff changeset
    65
keyPress:key x:x y:y
2eec1213d292 Handle keys: Delete, Backspace, Insert
Stefan Vogel <sv@exept.de>
parents: 7946
diff changeset
    66
    "handle special keys"
2eec1213d292 Handle keys: Delete, Backspace, Insert
Stefan Vogel <sv@exept.de>
parents: 7946
diff changeset
    67
12111
0da8cd378b6f class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 11815
diff changeset
    68
    <resource: #keyboard (#Delete #BackSpace #Insert)>
8024
2eec1213d292 Handle keys: Delete, Backspace, Insert
Stefan Vogel <sv@exept.de>
parents: 7946
diff changeset
    69
2eec1213d292 Handle keys: Delete, Backspace, Insert
Stefan Vogel <sv@exept.de>
parents: 7946
diff changeset
    70
    (key == #Delete or:[key == #BackSpace]) ifTrue:[
2eec1213d292 Handle keys: Delete, Backspace, Insert
Stefan Vogel <sv@exept.de>
parents: 7946
diff changeset
    71
        self doRemoveKey.
2eec1213d292 Handle keys: Delete, Backspace, Insert
Stefan Vogel <sv@exept.de>
parents: 7946
diff changeset
    72
        ^ self.
2eec1213d292 Handle keys: Delete, Backspace, Insert
Stefan Vogel <sv@exept.de>
parents: 7946
diff changeset
    73
    ].
2eec1213d292 Handle keys: Delete, Backspace, Insert
Stefan Vogel <sv@exept.de>
parents: 7946
diff changeset
    74
    (key == #Insert) ifTrue:[
2eec1213d292 Handle keys: Delete, Backspace, Insert
Stefan Vogel <sv@exept.de>
parents: 7946
diff changeset
    75
        self doAddKey.
2eec1213d292 Handle keys: Delete, Backspace, Insert
Stefan Vogel <sv@exept.de>
parents: 7946
diff changeset
    76
        ^ self.
2eec1213d292 Handle keys: Delete, Backspace, Insert
Stefan Vogel <sv@exept.de>
parents: 7946
diff changeset
    77
    ].
2eec1213d292 Handle keys: Delete, Backspace, Insert
Stefan Vogel <sv@exept.de>
parents: 7946
diff changeset
    78
2eec1213d292 Handle keys: Delete, Backspace, Insert
Stefan Vogel <sv@exept.de>
parents: 7946
diff changeset
    79
    super keyPress:key x:x y:y
2eec1213d292 Handle keys: Delete, Backspace, Insert
Stefan Vogel <sv@exept.de>
parents: 7946
diff changeset
    80
! !
2eec1213d292 Handle keys: Delete, Backspace, Insert
Stefan Vogel <sv@exept.de>
parents: 7946
diff changeset
    81
8403
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
    82
!DictionaryInspectorView methodsFor:'initialization & release'!
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
    83
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
    84
initialize
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
    85
    super initialize.
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
    86
9376
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
    87
    listView multipleSelectOk:true.
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
    88
8403
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
    89
    hideClassVars := false.
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
    90
    hideClasses := false.
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
    91
    hideUnloadedClasses := false.
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
    92
    hideAliases := false.
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
    93
    hideLiteralValues := false.
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
    94
    hideNilValues := false.
12624
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
    95
    hideColorsAndImages := false.
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
    96
    hideSignalInstances := false.
17959
dd48c30087b2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17659
diff changeset
    97
    hideEmptyCollections := false.
17960
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
    98
    hideFreeSemaphores := false.
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
    99
    hideCollectionsHoldingOnlyLiterals := false.
17962
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   100
    hideNonRefObjectReferences := false.
8403
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   101
! !
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   102
470
5bb60cb688c8 category rename / added monitor stuff
Claus Gittinger <cg@exept.de>
parents: 385
diff changeset
   103
!DictionaryInspectorView methodsFor:'menu'!
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
   104
73
e332d9c71624 *** empty log message ***
claus
parents: 57
diff changeset
   105
fieldMenu
1361
20c353524524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 957
diff changeset
   106
    <resource: #programMenu >
20c353524524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 957
diff changeset
   107
9379
4fec8657865c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9376
diff changeset
   108
    |items m selIdx|
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
   109
2645
d01d467c5199 #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 2298
diff changeset
   110
    inspectedObject isNameSpace ifTrue:[
1665
7e3fc40e26ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1361
diff changeset
   111
        items := #(
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   112
                       ('Copy Key'             doCopyKey      )
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   113
                       ('-')
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   114
                       ('Inspect'              doInspect      )
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   115
                       ('Inspect Key'          doInspectKey   )
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   116
                       ('BasicInspect'         doBasicInspect )
9350
c94c232ef91e do not show new-inspector in menu, if there is none loaded
Claus Gittinger <cg@exept.de>
parents: 8973
diff changeset
   117
             ).
c94c232ef91e do not show new-inspector in menu, if there is none loaded
Claus Gittinger <cg@exept.de>
parents: 8973
diff changeset
   118
    NewInspector::NewInspectorView notNil ifTrue:[
c94c232ef91e do not show new-inspector in menu, if there is none loaded
Claus Gittinger <cg@exept.de>
parents: 8973
diff changeset
   119
        items := items , #(
c94c232ef91e do not show new-inspector in menu, if there is none loaded
Claus Gittinger <cg@exept.de>
parents: 8973
diff changeset
   120
                       ('Inspect Hierarchical'         #doNewInspect           )
c94c232ef91e do not show new-inspector in menu, if there is none loaded
Claus Gittinger <cg@exept.de>
parents: 8973
diff changeset
   121
                ).
c94c232ef91e do not show new-inspector in menu, if there is none loaded
Claus Gittinger <cg@exept.de>
parents: 8973
diff changeset
   122
    ].
c94c232ef91e do not show new-inspector in menu, if there is none loaded
Claus Gittinger <cg@exept.de>
parents: 8973
diff changeset
   123
    items := items , #(
2085
ec4daf11d3b6 added #copyKey - menu item
Claus Gittinger <cg@exept.de>
parents: 1743
diff changeset
   124
                       ('-')
7946
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   125
                       ('Owners'               showOwners     )
7805
a2d82b06d71b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7373
diff changeset
   126
                       ('Ref Chains'           showReferences )
4269
b5d1e481db7a refactored
Claus Gittinger <cg@exept.de>
parents: 4100
diff changeset
   127
                       ('References to Global' showKeyReferences )
2085
ec4daf11d3b6 added #copyKey - menu item
Claus Gittinger <cg@exept.de>
parents: 1743
diff changeset
   128
                       ('-')
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   129
                       ('Browse'               browse         )
2085
ec4daf11d3b6 added #copyKey - menu item
Claus Gittinger <cg@exept.de>
parents: 1743
diff changeset
   130
                       ('-')
9502
49a0c6fc64b4 comment/format in: #doRemoveKey
Claus Gittinger <cg@exept.de>
parents: 9379
diff changeset
   131
                       ('Add Key...'           doAddKey       )
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   132
                       ('Remove Key'           doRemoveKey    )
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   133
                       ('-')
470
5bb60cb688c8 category rename / added monitor stuff
Claus Gittinger <cg@exept.de>
parents: 385
diff changeset
   134
                   ).
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   135
18311
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   136
        items := items , #(
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   137
                       ('Show All'   doShowAll )
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   138
                       ('Hide All'   doHideAll )
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   139
                   ).
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   140
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   141
        hideClassVars == true ifTrue:[
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   142
            items := items , #(
7805
a2d82b06d71b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7373
diff changeset
   143
                           ('Show ClassVars'   doShowClassVars )
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   144
                       ).
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   145
        ] ifFalse:[
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   146
            items := items , #(
7805
a2d82b06d71b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7373
diff changeset
   147
                           ('Hide ClassVars'   doHideClassVars )
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   148
                       ).
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   149
        ].
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   150
        hideClasses == true ifTrue:[
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   151
            items := items , #(
7805
a2d82b06d71b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7373
diff changeset
   152
                           ('Show Classes'     doShowClasses )
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   153
                       ).
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   154
        ] ifFalse:[
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   155
            items := items , #(
7805
a2d82b06d71b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7373
diff changeset
   156
                           ('Hide Classes'     doHideClasses )
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   157
                       ).
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   158
        ].
8403
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   159
        hideUnloadedClasses == true ifTrue:[
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   160
            items := items , #(
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   161
                           ('Show Unloaded Classes'     doShowUnloadedClasses )
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   162
                       ).
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   163
        ] ifFalse:[
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   164
            items := items , #(
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   165
                           ('Hide UnloadedClasses'     doHideUnloadedClasses )
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   166
                       ).
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   167
        ].
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   168
        hideAliases == true ifTrue:[
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   169
            items := items , #(
7805
a2d82b06d71b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7373
diff changeset
   170
                           ('Show Aliases'     doShowAliases )
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   171
                       ).
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   172
        ] ifFalse:[
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   173
            items := items , #(
7805
a2d82b06d71b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7373
diff changeset
   174
                           ('Hide Aliases'     doHideAliases )
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   175
                       ).
7946
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   176
        ].
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   177
        hideLiteralValues == true ifTrue:[
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   178
            items := items , #(
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   179
                           ('Show Literal Values'  doShowLiteralValues )
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   180
                       ).
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   181
        ] ifFalse:[
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   182
            items := items , #(
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   183
                           ('Hide Literal Values'  doHideLiteralValues )
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   184
                       ).
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   185
        ].
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   186
        hideNilValues == true ifTrue:[
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   187
            items := items , #(
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   188
                           ('Show Nil Values'  doShowNilValues )
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   189
                       ).
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   190
        ] ifFalse:[
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   191
            items := items , #(
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   192
                           ('Hide Nil Values'  doHideNilValues )
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   193
                       ).
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   194
        ].
12624
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   195
        hideColorsAndImages == true ifTrue:[
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   196
            items := items , #(
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   197
                           ('Show Colors and Images'  doShowColorsAndImages )
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   198
                       ).
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   199
        ] ifFalse:[
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   200
            items := items , #(
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   201
                           ('Hide Colors and Images'  doHideColorsAndImages )
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   202
                       ).
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   203
        ].
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   204
        hideSignalInstances == true ifTrue:[
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   205
            items := items , #(
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   206
                           ('Show Signals'  doShowSignalInstances )
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   207
                       ).
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   208
        ] ifFalse:[
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   209
            items := items , #(
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   210
                           ('Hide Signals'  doHideSignalInstances )
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   211
                       ).
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   212
        ].
17959
dd48c30087b2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17659
diff changeset
   213
        hideEmptyCollections == true ifTrue:[
dd48c30087b2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17659
diff changeset
   214
            items := items , #(
dd48c30087b2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17659
diff changeset
   215
                           ('Show Empty Collections'  doShowEmptyCollections )
dd48c30087b2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17659
diff changeset
   216
                       ).
dd48c30087b2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17659
diff changeset
   217
        ] ifFalse:[
dd48c30087b2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17659
diff changeset
   218
            items := items , #(
dd48c30087b2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17659
diff changeset
   219
                           ('Hide Empty Collections'  doHideEmptyCollections )
dd48c30087b2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17659
diff changeset
   220
                       ).
dd48c30087b2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17659
diff changeset
   221
        ].
17960
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   222
        hideFreeSemaphores == true ifTrue:[
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   223
            items := items , #(
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   224
                           ('Show Free Semaphores'  doShowFreeSemaphores )
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   225
                       ).
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   226
        ] ifFalse:[
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   227
            items := items , #(
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   228
                           ('Hide Free Semaphores'  doHideFreeSemaphores )
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   229
                       ).
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   230
        ].
18311
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   231
        hideStreams == true ifTrue:[
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   232
            items := items , #(
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   233
                           ('Show Streams'  doShowStreams )
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   234
                       ).
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   235
        ] ifFalse:[
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   236
            items := items , #(
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   237
                           ('Hide Streams'  doHideStreams )
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   238
                       ).
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   239
        ].
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   240
        hideFilenames == true ifTrue:[
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   241
            items := items , #(
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   242
                           ('Show Filenames'  doShowFilenames )
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   243
                       ).
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   244
        ] ifFalse:[
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   245
            items := items , #(
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   246
                           ('Hide Filenames'  doHideFilenames )
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   247
                       ).
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   248
        ].
17960
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   249
        hideCollectionsHoldingOnlyLiterals == true ifTrue:[
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   250
            items := items , #(
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   251
                           ('Show Collections of Literals'  doShowCollectionsHoldingOnlyLiterals )
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   252
                       ).
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   253
        ] ifFalse:[
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   254
            items := items , #(
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   255
                           ('Hide Collections of Literals'  doHideCollectionsHoldingOnlyLiterals )
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   256
                       ).
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   257
        ].
17962
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   258
        hideNonRefObjectReferences == true ifTrue:[
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   259
            items := items , #(
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   260
                           ('Show References to Simple Objects'  doShowNonRefObjectReferences )
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   261
                       ).
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   262
        ] ifFalse:[
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   263
            items := items , #(
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   264
                           ('Hide References to Simple Objects'  doHideNonRefObjectReferences )
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   265
                       ).
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   266
        ].
17960
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   267
45
950b84ba89e6 *** empty log message ***
claus
parents: 36
diff changeset
   268
    ] ifFalse:[
1665
7e3fc40e26ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1361
diff changeset
   269
        items := #(
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   270
                       ('Copy Key'             doCopyKey      )
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   271
                       ('-')
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   272
                       ('Inspect'              doInspect      )
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   273
                       ('Inspect Key'          doInspectKey   )
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   274
                       ('BasicInspect'         doBasicInspect )
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   275
                       ('Inspect Hierarchical' doNewInspect   )
2085
ec4daf11d3b6 added #copyKey - menu item
Claus Gittinger <cg@exept.de>
parents: 1743
diff changeset
   276
                       ('-')
7946
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   277
                       ('Owners'               showOwners     )
7805
a2d82b06d71b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7373
diff changeset
   278
                       ('Ref Chains'           showReferences )
12598
8dcaa0fcccc1 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12111
diff changeset
   279
                       ('Ref Chains to Key'    showReferencesToKey )
2085
ec4daf11d3b6 added #copyKey - menu item
Claus Gittinger <cg@exept.de>
parents: 1743
diff changeset
   280
                       ('-')
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   281
                       ('Browse'                       browse                 )
7805
a2d82b06d71b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7373
diff changeset
   282
                       ('Browse Class Hierarchy'       browseClassHierarchy   )
a2d82b06d71b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7373
diff changeset
   283
                       ('Browse Full Class Protocol'   browseFullClassProtocol)
2085
ec4daf11d3b6 added #copyKey - menu item
Claus Gittinger <cg@exept.de>
parents: 1743
diff changeset
   284
                       ('-')
9502
49a0c6fc64b4 comment/format in: #doRemoveKey
Claus Gittinger <cg@exept.de>
parents: 9379
diff changeset
   285
                       ('Add Key...'           doAddKey       )
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   286
                       ('Remove Key'           doRemoveKey    )
470
5bb60cb688c8 category rename / added monitor stuff
Claus Gittinger <cg@exept.de>
parents: 385
diff changeset
   287
                   ).
5bb60cb688c8 category rename / added monitor stuff
Claus Gittinger <cg@exept.de>
parents: 385
diff changeset
   288
    ].
5bb60cb688c8 category rename / added monitor stuff
Claus Gittinger <cg@exept.de>
parents: 385
diff changeset
   289
12834
daf3c6ecec6d menu fix: showMore/hasMore
Claus Gittinger <cg@exept.de>
parents: 12624
diff changeset
   290
    (hasMore) ifTrue:[
daf3c6ecec6d menu fix: showMore/hasMore
Claus Gittinger <cg@exept.de>
parents: 12624
diff changeset
   291
        items := items , #(                                  
daf3c6ecec6d menu fix: showMore/hasMore
Claus Gittinger <cg@exept.de>
parents: 12624
diff changeset
   292
                      ('-')
daf3c6ecec6d menu fix: showMore/hasMore
Claus Gittinger <cg@exept.de>
parents: 12624
diff changeset
   293
                      ('Show More'                   showMore               )
daf3c6ecec6d menu fix: showMore/hasMore
Claus Gittinger <cg@exept.de>
parents: 12624
diff changeset
   294
                   ).
daf3c6ecec6d menu fix: showMore/hasMore
Claus Gittinger <cg@exept.de>
parents: 12624
diff changeset
   295
        (inspectedObject size > (nShown * 2)) ifTrue:[
daf3c6ecec6d menu fix: showMore/hasMore
Claus Gittinger <cg@exept.de>
parents: 12624
diff changeset
   296
            items := items , #(
daf3c6ecec6d menu fix: showMore/hasMore
Claus Gittinger <cg@exept.de>
parents: 12624
diff changeset
   297
                        ('Show All'                     #showAll                )
daf3c6ecec6d menu fix: showMore/hasMore
Claus Gittinger <cg@exept.de>
parents: 12624
diff changeset
   298
                          )
daf3c6ecec6d menu fix: showMore/hasMore
Claus Gittinger <cg@exept.de>
parents: 12624
diff changeset
   299
        ].
daf3c6ecec6d menu fix: showMore/hasMore
Claus Gittinger <cg@exept.de>
parents: 12624
diff changeset
   300
    ].
470
5bb60cb688c8 category rename / added monitor stuff
Claus Gittinger <cg@exept.de>
parents: 385
diff changeset
   301
    monitorProcess isNil ifTrue:[
1665
7e3fc40e26ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1361
diff changeset
   302
        items := items , #(
2085
ec4daf11d3b6 added #copyKey - menu item
Claus Gittinger <cg@exept.de>
parents: 1743
diff changeset
   303
                       ('-')
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   304
                       ('Start Monitor'    doStartMonitor )
1665
7e3fc40e26ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1361
diff changeset
   305
                          ).
470
5bb60cb688c8 category rename / added monitor stuff
Claus Gittinger <cg@exept.de>
parents: 385
diff changeset
   306
    ] ifFalse:[
1665
7e3fc40e26ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1361
diff changeset
   307
        items := items , #(
2085
ec4daf11d3b6 added #copyKey - menu item
Claus Gittinger <cg@exept.de>
parents: 1743
diff changeset
   308
                       ('-')
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   309
                       ('Stop Monitor'     doStopMonitor  )
1665
7e3fc40e26ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1361
diff changeset
   310
                          ).
45
950b84ba89e6 *** empty log message ***
claus
parents: 36
diff changeset
   311
    ].
950b84ba89e6 *** empty log message ***
claus
parents: 36
diff changeset
   312
11815
bb38b22a951d changed:
Claus Gittinger <cg@exept.de>
parents: 11516
diff changeset
   313
    items := items , (self sortOrderItems).
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   314
    items := items , #(
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   315
                   ('-')
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   316
                   ('Update'     doUpdate  )
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   317
                      ).
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   318
1665
7e3fc40e26ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1361
diff changeset
   319
    m := PopUpMenu itemList:items resources:resources.
470
5bb60cb688c8 category rename / added monitor stuff
Claus Gittinger <cg@exept.de>
parents: 385
diff changeset
   320
7942
fce54ed1ef8b sharedPool inspection support
Claus Gittinger <cg@exept.de>
parents: 7805
diff changeset
   321
    (inspectedObject isNameSpace or:[inspectedObject isSharedPool]) ifTrue:[
8973
76f40edc89d3 changed: #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 8527
diff changeset
   322
        m disableAll:#( doAddKey )
76f40edc89d3 changed: #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 8527
diff changeset
   323
    ].
76f40edc89d3 changed: #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 8527
diff changeset
   324
    (inspectedObject isSharedPool) ifTrue:[
76f40edc89d3 changed: #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 8527
diff changeset
   325
        m disableAll:#( doRemoveKey )
7942
fce54ed1ef8b sharedPool inspection support
Claus Gittinger <cg@exept.de>
parents: 7805
diff changeset
   326
    ].
fce54ed1ef8b sharedPool inspection support
Claus Gittinger <cg@exept.de>
parents: 7805
diff changeset
   327
9379
4fec8657865c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9376
diff changeset
   328
    (selIdx := self theSingleSelectionIndex) isNil ifTrue:[
1665
7e3fc40e26ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1361
diff changeset
   329
        m disableAll:#(doInspect doInspectKey doBasicInspect doNewInspect
9376
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   330
                       doStartMonitor doStopMonitor doCopyKey 
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   331
                       showKeyReferences showReferences showOwners browse
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   332
                      ).
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   333
        selectionIndex isEmptyOrNil ifTrue:[
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   334
            "/ allowed for multi-select
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   335
            m disableAll:#( doRemoveKey )
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   336
        ]
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2190
diff changeset
   337
    ] ifFalse:[
9379
4fec8657865c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9376
diff changeset
   338
        (self keyIndexForLine:selIdx) isNil ifTrue:[
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2190
diff changeset
   339
            m disableAll:#(doInspectKey doRemoveKey doCopyKey)
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2190
diff changeset
   340
        ]
1665
7e3fc40e26ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1361
diff changeset
   341
    ].
7946
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   342
    hideLiteralValues == true ifTrue:[
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   343
        m disableAll:#( doShowNilValues doHideNilValues )
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   344
    ].
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   345
1665
7e3fc40e26ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1361
diff changeset
   346
    ^ m.
7e3fc40e26ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1361
diff changeset
   347
11815
bb38b22a951d changed:
Claus Gittinger <cg@exept.de>
parents: 11516
diff changeset
   348
    "Modified: / 26-09-2012 / 13:20:59 / cg"
18311
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   349
    "Modified: / 31-07-2018 / 01:14:46 / Claus Gittinger"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
   350
! !
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   351
470
5bb60cb688c8 category rename / added monitor stuff
Claus Gittinger <cg@exept.de>
parents: 385
diff changeset
   352
!DictionaryInspectorView methodsFor:'menu actions'!
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   353
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   354
browse
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   355
    |cls|
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   356
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   357
    cls := self selection class theNonMetaclass.
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   358
"/    cls isNameSpace ifTrue:[
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   359
"/        self halt.
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   360
"/    ].
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   361
    cls browserClass openInClass:cls selector:nil
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   362
!
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   363
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   364
doAddKey
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   365
    "add a key"
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   366
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   367
    |keyName key val l|
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   368
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   369
    keyName := Dialog request:'Key to add (storeString):' initialAnswer:''.
9502
49a0c6fc64b4 comment/format in: #doRemoveKey
Claus Gittinger <cg@exept.de>
parents: 9379
diff changeset
   370
    keyName notEmptyOrNil ifTrue:[
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   371
        key := Object readFrom:keyName onError:[ self information:'Bad input.'. ^ self].
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2190
diff changeset
   372
        (inspectedObject includesKey:key) ifFalse:[
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   373
            val := Dialog request:'Value to add (storeString):' initialAnswer:''.
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   374
            val notNil ifTrue:[
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   375
                val := Object readFrom:val onError:[ self information:'Bad input.'. ^ self].
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   376
            ].
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3140
diff changeset
   377
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   378
            inspectedObject at:key put:val.
2236
257f587ad7dc migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   379
            selectionIndex := selectedLine := nil.
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2190
diff changeset
   380
            inspectedObject changed.
2213
d6e6c41db3ef keep scroll-offset when removing a key
Claus Gittinger <cg@exept.de>
parents: 2212
diff changeset
   381
            l := listView firstLineShown.
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2190
diff changeset
   382
            self reinspect. "force list update"
2213
d6e6c41db3ef keep scroll-offset when removing a key
Claus Gittinger <cg@exept.de>
parents: 2212
diff changeset
   383
            listView scrollToLine:l
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2190
diff changeset
   384
        ]
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   385
    ]
9502
49a0c6fc64b4 comment/format in: #doRemoveKey
Claus Gittinger <cg@exept.de>
parents: 9379
diff changeset
   386
49a0c6fc64b4 comment/format in: #doRemoveKey
Claus Gittinger <cg@exept.de>
parents: 9379
diff changeset
   387
    "Modified: / 01-07-2010 / 10:53:25 / cg"
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   388
!
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   389
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   390
doHideAliases
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   391
    hideAliases := true.
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   392
    self reinspect
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   393
!
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   394
18311
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   395
doHideAll
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   396
    "/ hideClassVars := true.   
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   397
    hideClasses := hideUnloadedClasses := hideAliases := true.
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   398
    hideNilValues := hideLiteralValues := hideColorsAndImages := true.
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   399
    hideSignalInstances := hideEmptyCollections := hideFreeSemaphores := true.
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   400
    hideCollectionsHoldingOnlyLiterals := hideNonRefObjectReferences := true.
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   401
    hideStreams := hideFilenames := hideSimpleObjects := true.
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   402
    hideAliases := true.
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   403
    self reinspect
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   404
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   405
    "Created: / 31-07-2018 / 01:16:07 / Claus Gittinger"
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   406
!
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   407
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   408
doHideClassVars
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   409
    hideClassVars := true.
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   410
    self reinspect
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   411
!
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   412
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   413
doHideClasses
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   414
    hideClasses := true.
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   415
    self reinspect
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   416
!
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   417
17960
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   418
doHideCollectionsHoldingOnlyLiterals
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   419
    hideCollectionsHoldingOnlyLiterals := true.
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   420
    self reinspect
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   421
!
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   422
12624
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   423
doHideColorsAndImages
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   424
    hideColorsAndImages := true.
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   425
    self reinspect
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   426
!
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   427
17959
dd48c30087b2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17659
diff changeset
   428
doHideEmptyCollections
dd48c30087b2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17659
diff changeset
   429
    hideEmptyCollections := true.
dd48c30087b2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17659
diff changeset
   430
    self reinspect
dd48c30087b2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17659
diff changeset
   431
!
dd48c30087b2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17659
diff changeset
   432
18311
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   433
doHideFilenames
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   434
    hideFilenames := true.
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   435
    self reinspect
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   436
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   437
    "Created: / 31-07-2018 / 01:13:51 / Claus Gittinger"
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   438
!
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   439
17960
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   440
doHideFreeSemaphores
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   441
    hideFreeSemaphores := true.
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   442
    self reinspect
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   443
!
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   444
7946
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   445
doHideLiteralValues
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   446
    hideLiteralValues := true.
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   447
    self reinspect
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   448
!
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   449
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   450
doHideNilValues
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   451
    hideNilValues := true.
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   452
    self reinspect
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   453
!
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   454
17962
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   455
doHideNonRefObjectReferences
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   456
    hideNonRefObjectReferences := true.
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   457
    self reinspect
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   458
!
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   459
12624
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   460
doHideSignalInstances
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   461
    hideSignalInstances := true.
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   462
    self reinspect
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   463
!
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   464
18311
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   465
doHideSimpleObjects
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   466
    hideSimpleObjects := true.
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   467
    self reinspect
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   468
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   469
    "Created: / 31-07-2018 / 01:29:29 / Claus Gittinger"
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   470
!
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   471
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   472
doHideStreams
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   473
    hideStreams := true.
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   474
    self reinspect
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   475
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   476
    "Created: / 31-07-2018 / 01:13:18 / Claus Gittinger"
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   477
!
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   478
8403
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   479
doHideUnloadedClasses
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   480
    hideUnloadedClasses := true.
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   481
    self reinspect
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   482
!
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   483
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   484
doInspectKey
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   485
    "inspect selected items key"
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   486
4269
b5d1e481db7a refactored
Claus Gittinger <cg@exept.de>
parents: 4100
diff changeset
   487
    |key|
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   488
4269
b5d1e481db7a refactored
Claus Gittinger <cg@exept.de>
parents: 4100
diff changeset
   489
    key := self selectedKey.
b5d1e481db7a refactored
Claus Gittinger <cg@exept.de>
parents: 4100
diff changeset
   490
    key notNil ifTrue:[
14261
89fca378e089 class: DictionaryInspectorView
Stefan Vogel <sv@exept.de>
parents: 13624
diff changeset
   491
        self inspectNext:key.
4269
b5d1e481db7a refactored
Claus Gittinger <cg@exept.de>
parents: 4100
diff changeset
   492
    ]
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   493
!
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   494
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   495
doRemoveKey
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   496
    "remove selected item from keys"
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   497
9376
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   498
    |l|
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   499
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   500
    listView withWaitCursorDo:[
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   501
        self selectedKeys do:[:key |
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   502
            (inspectedObject includesKey:key) ifTrue:[
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   503
                inspectedObject removeKey:key
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   504
            ]
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   505
        ].
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   506
9376
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   507
        keys := nil.
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   508
        selectionIndex := selectedLine := nil.
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   509
        inspectedObject changed.
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   510
    ].
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   511
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   512
    l := listView firstLineShown.
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   513
    self reinspect. "force list update"
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   514
    listView scrollToLine:l.
1740
5dd8db18c0cf added show references
Claus Gittinger <cg@exept.de>
parents: 1665
diff changeset
   515
!
5dd8db18c0cf added show references
Claus Gittinger <cg@exept.de>
parents: 1665
diff changeset
   516
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   517
doShowAliases
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   518
    hideAliases := false.
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   519
    self reinspect
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   520
!
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   521
18311
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   522
doShowAll
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   523
    "/ hideClassVars := := false.
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   524
    hideClasses := hideUnloadedClasses := hideAliases := false.
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   525
    hideNilValues := hideLiteralValues := hideColorsAndImages := false.
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   526
    hideSignalInstances := hideEmptyCollections := hideFreeSemaphores := false.
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   527
    hideCollectionsHoldingOnlyLiterals := hideNonRefObjectReferences := false.
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   528
    hideStreams := hideFilenames := false.
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   529
    hideAliases := hideSimpleObjects := false.
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   530
    self reinspect
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   531
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   532
    "Created: / 31-07-2018 / 01:16:17 / Claus Gittinger"
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   533
!
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   534
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   535
doShowClassVars
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   536
    hideClassVars := false.
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   537
    self reinspect
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   538
!
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   539
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   540
doShowClasses
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   541
    hideClasses := false.
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   542
    self reinspect
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   543
!
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   544
17960
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   545
doShowCollectionsHoldingOnlyLiterals
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   546
    hideCollectionsHoldingOnlyLiterals := false.
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   547
    self reinspect
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   548
!
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   549
12624
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   550
doShowColorsAndImages
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   551
    hideColorsAndImages := false.
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   552
    self reinspect
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   553
!
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   554
17959
dd48c30087b2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17659
diff changeset
   555
doShowEmptyCollections
dd48c30087b2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17659
diff changeset
   556
    hideEmptyCollections := false.
dd48c30087b2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17659
diff changeset
   557
    self reinspect
dd48c30087b2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17659
diff changeset
   558
!
dd48c30087b2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17659
diff changeset
   559
18311
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   560
doShowFilenames
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   561
    hideFilenames := false.
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   562
    self reinspect
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   563
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   564
    "Created: / 31-07-2018 / 01:13:41 / Claus Gittinger"
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   565
!
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   566
17960
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   567
doShowFreeSemaphores
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   568
    hideFreeSemaphores := false.
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   569
    self reinspect
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   570
!
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   571
7946
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   572
doShowLiteralValues
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   573
    hideLiteralValues := false.
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   574
    self reinspect
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   575
!
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   576
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   577
doShowNilValues
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   578
    hideNilValues := false.
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   579
    self reinspect
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   580
!
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   581
17962
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   582
doShowNonRefObjectReferences
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   583
    hideNonRefObjectReferences := false.
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   584
    self reinspect
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   585
!
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   586
12624
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   587
doShowSignalInstances
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   588
    hideSignalInstances := false.
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   589
    self reinspect
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   590
!
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   591
18311
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   592
doShowSimpleObjects
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   593
    hideSimpleObjects := false.
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   594
    self reinspect
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   595
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   596
    "Created: / 31-07-2018 / 01:29:43 / Claus Gittinger"
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   597
!
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   598
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   599
doShowStreams
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   600
    hideStreams := false.
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   601
    self reinspect
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   602
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   603
    "Created: / 31-07-2018 / 01:13:27 / Claus Gittinger"
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   604
!
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   605
8403
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   606
doShowUnloadedClasses
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   607
    hideUnloadedClasses := false.
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   608
    self reinspect
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   609
!
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   610
1740
5dd8db18c0cf added show references
Claus Gittinger <cg@exept.de>
parents: 1665
diff changeset
   611
showKeyReferences
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2190
diff changeset
   612
    "show users of selected key (i.e. global).
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2190
diff changeset
   613
     Only useful when inspecting smalltalk"
1740
5dd8db18c0cf added show references
Claus Gittinger <cg@exept.de>
parents: 1665
diff changeset
   614
4269
b5d1e481db7a refactored
Claus Gittinger <cg@exept.de>
parents: 4100
diff changeset
   615
    |key|
1740
5dd8db18c0cf added show references
Claus Gittinger <cg@exept.de>
parents: 1665
diff changeset
   616
4269
b5d1e481db7a refactored
Claus Gittinger <cg@exept.de>
parents: 4100
diff changeset
   617
    key := self selectedKey.
b5d1e481db7a refactored
Claus Gittinger <cg@exept.de>
parents: 4100
diff changeset
   618
    key notNil ifTrue:[
2274
a225b0d4dce7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2271
diff changeset
   619
        self topView withWaitCursorDo:[
17659
12535bd10210 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17474
diff changeset
   620
            SystemBrowser default browseReferendsOf:(key asSymbol)
1740
5dd8db18c0cf added show references
Claus Gittinger <cg@exept.de>
parents: 1665
diff changeset
   621
        ].
5dd8db18c0cf added show references
Claus Gittinger <cg@exept.de>
parents: 1665
diff changeset
   622
    ]
17659
12535bd10210 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17474
diff changeset
   623
12535bd10210 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17474
diff changeset
   624
    "Modified: / 01-09-2017 / 14:20:41 / cg"
12598
8dcaa0fcccc1 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12111
diff changeset
   625
!
8dcaa0fcccc1 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12111
diff changeset
   626
8dcaa0fcccc1 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12111
diff changeset
   627
showReferencesToKey
8dcaa0fcccc1 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12111
diff changeset
   628
    self selectedKey class hasImmediateInstances ifTrue:[
8dcaa0fcccc1 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12111
diff changeset
   629
        ^ self warn:'Sorry - cannot show references to immediate objects'
8dcaa0fcccc1 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12111
diff changeset
   630
    ].
17984
35fad214143a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 17974
diff changeset
   631
    "Run in own process to allow inspector to be closed while running"
35fad214143a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 17974
diff changeset
   632
    [
35fad214143a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 17974
diff changeset
   633
        ObjectMemory displayRefChainTo:(self selectedKey)
35fad214143a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 17974
diff changeset
   634
    ] fork.
35fad214143a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 17974
diff changeset
   635
35fad214143a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 17974
diff changeset
   636
    "Modified: / 13-02-2018 / 12:27:39 / stefan"
470
5bb60cb688c8 category rename / added monitor stuff
Claus Gittinger <cg@exept.de>
parents: 385
diff changeset
   637
! !
5bb60cb688c8 category rename / added monitor stuff
Claus Gittinger <cg@exept.de>
parents: 385
diff changeset
   638
5bb60cb688c8 category rename / added monitor stuff
Claus Gittinger <cg@exept.de>
parents: 385
diff changeset
   639
!DictionaryInspectorView methodsFor:'private'!
5bb60cb688c8 category rename / added monitor stuff
Claus Gittinger <cg@exept.de>
parents: 385
diff changeset
   640
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2190
diff changeset
   641
baseInspectedObjectClass
2297
a881c775d42f Fix for classes like MethodDictionary, that are not a subclass of Dictionary.
Stefan Vogel <sv@exept.de>
parents: 2274
diff changeset
   642
2298
4cff11435fb8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2297
diff changeset
   643
    (inspectedObject isMemberOf:Dictionary) ifFalse:[
4cff11435fb8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2297
diff changeset
   644
        (inspectedObject class inheritsFrom:Dictionary) ifFalse:[
4cff11435fb8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2297
diff changeset
   645
            "this is true for e.g. MethodDictionary"
4cff11435fb8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2297
diff changeset
   646
            ^ Object
4cff11435fb8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2297
diff changeset
   647
        ]
2297
a881c775d42f Fix for classes like MethodDictionary, that are not a subclass of Dictionary.
Stefan Vogel <sv@exept.de>
parents: 2274
diff changeset
   648
    ].
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2190
diff changeset
   649
    ^ Dictionary
2297
a881c775d42f Fix for classes like MethodDictionary, that are not a subclass of Dictionary.
Stefan Vogel <sv@exept.de>
parents: 2274
diff changeset
   650
a881c775d42f Fix for classes like MethodDictionary, that are not a subclass of Dictionary.
Stefan Vogel <sv@exept.de>
parents: 2274
diff changeset
   651
    "Modified: / 23.7.1999 / 10:39:11 / stefan"
2298
4cff11435fb8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2297
diff changeset
   652
4cff11435fb8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2297
diff changeset
   653
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2190
diff changeset
   654
!
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2190
diff changeset
   655
649
11d4cbff1092 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 645
diff changeset
   656
defaultLabel
4095
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3874
diff changeset
   657
    ^ 'Keys'
649
11d4cbff1092 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 645
diff changeset
   658
11d4cbff1092 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 645
diff changeset
   659
    "Created: 28.6.1996 / 19:46:51 / cg"
11d4cbff1092 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 645
diff changeset
   660
!
11d4cbff1092 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 645
diff changeset
   661
18732
aad2a3b13dda #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18731
diff changeset
   662
hasAllNumericKeys
aad2a3b13dda #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18731
diff changeset
   663
    "answer true, if all keys of the inspectedObject are numbers"
aad2a3b13dda #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18731
diff changeset
   664
aad2a3b13dda #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18731
diff changeset
   665
    inspectedObject keysDo:[:k | 
aad2a3b13dda #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18731
diff changeset
   666
        k isProtoObject ifTrue:[^ false].
aad2a3b13dda #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18731
diff changeset
   667
        k isNumber ifFalse:[^ false].
aad2a3b13dda #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18731
diff changeset
   668
    ].
aad2a3b13dda #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18731
diff changeset
   669
    ^ true
aad2a3b13dda #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18731
diff changeset
   670
aad2a3b13dda #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18731
diff changeset
   671
    "Created: / 03-04-2019 / 08:23:56 / Claus Gittinger"
aad2a3b13dda #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18731
diff changeset
   672
!
aad2a3b13dda #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18731
diff changeset
   673
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3870
diff changeset
   674
indexList
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3870
diff changeset
   675
    "return a list of indexes to show in the selectionList.
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   676
     Set hasMore to true, if a '...' entry should be added."
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   677
9927
aa0e12d67765 changed: #indexList
Claus Gittinger <cg@exept.de>
parents: 9926
diff changeset
   678
    |sortBlockForKeys allShown|
9926
d683250942f9 added: #allNumericKeys
Claus Gittinger <cg@exept.de>
parents: 9505
diff changeset
   679
13624
b59ab4a6247d class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 13576
diff changeset
   680
    (inspectedObject isNameSpace 
18731
90458176aca7 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 18311
diff changeset
   681
     or:[inspectedObject isSharedPool]) ifTrue:[
13624
b59ab4a6247d class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 13576
diff changeset
   682
        ^ self indexListForNameSpace.
b59ab4a6247d class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 13576
diff changeset
   683
    ].
b59ab4a6247d class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 13576
diff changeset
   684
9927
aa0e12d67765 changed: #indexList
Claus Gittinger <cg@exept.de>
parents: 9926
diff changeset
   685
    allShown := inspectedObject size <= nShown.
aa0e12d67765 changed: #indexList
Claus Gittinger <cg@exept.de>
parents: 9926
diff changeset
   686
15681
45a2a17c583e class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 14951
diff changeset
   687
    inspectedObject isOrdered ifFalse:[
18732
aad2a3b13dda #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18731
diff changeset
   688
        (allShown and:[self hasAllNumericKeys]) ifTrue:[
15681
45a2a17c583e class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 14951
diff changeset
   689
            sortBlockForKeys := [:a :b | a < b].
45a2a17c583e class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 14951
diff changeset
   690
        ] ifFalse:[
45a2a17c583e class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 14951
diff changeset
   691
            sortBlockForKeys := [:a :b | a displayString < b displayString].
45a2a17c583e class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 14951
diff changeset
   692
        ].
9926
d683250942f9 added: #allNumericKeys
Claus Gittinger <cg@exept.de>
parents: 9505
diff changeset
   693
    ].
18731
90458176aca7 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 18311
diff changeset
   694
90458176aca7 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 18311
diff changeset
   695
    sortBlockForKeys notNil ifTrue:[
90458176aca7 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 18311
diff changeset
   696
        keys := (SortedCollection new:(inspectedObject size min:nShown)) sortBlock:sortBlockForKeys.
90458176aca7 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 18311
diff changeset
   697
    ] ifFalse:[
90458176aca7 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 18311
diff changeset
   698
        keys := OrderedCollection new:(inspectedObject size min:nShown).
8527
1f78e8ddae80 also show only the first nShown names;
Claus Gittinger <cg@exept.de>
parents: 8470
diff changeset
   699
    ].
1f78e8ddae80 also show only the first nShown names;
Claus Gittinger <cg@exept.de>
parents: 8470
diff changeset
   700
18731
90458176aca7 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 18311
diff changeset
   701
    "/ do not use 'inspectedObject keys',
90458176aca7 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 18311
diff changeset
   702
    "/ since Sets couldn't hold nils (which are now valid keys)
90458176aca7 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 18311
diff changeset
   703
    "/ now they can: #(1 2 3 nil) asSet
90458176aca7 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 18311
diff changeset
   704
    allShown ifTrue:[
90458176aca7 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 18311
diff changeset
   705
        inspectedObject keysDo:[:k | keys add:k].
90458176aca7 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 18311
diff changeset
   706
        ^ keys.
90458176aca7 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 18311
diff changeset
   707
    ].
90458176aca7 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 18311
diff changeset
   708
90458176aca7 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 18311
diff changeset
   709
    inspectedObject keysDo:[:k | 
90458176aca7 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 18311
diff changeset
   710
        keys add:k.
90458176aca7 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 18311
diff changeset
   711
        keys size >= nShown ifTrue:[ 
90458176aca7 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 18311
diff changeset
   712
            hasMore := true.
90458176aca7 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 18311
diff changeset
   713
            ^ keys
90458176aca7 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 18311
diff changeset
   714
        ].
90458176aca7 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 18311
diff changeset
   715
    ]. 
90458176aca7 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 18311
diff changeset
   716
    ^ keys.
9926
d683250942f9 added: #allNumericKeys
Claus Gittinger <cg@exept.de>
parents: 9505
diff changeset
   717
9927
aa0e12d67765 changed: #indexList
Claus Gittinger <cg@exept.de>
parents: 9926
diff changeset
   718
    "Modified: / 10-05-2011 / 08:14:59 / cg"
18731
90458176aca7 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 18311
diff changeset
   719
    "Modified (comment): / 02-04-2019 / 23:21:09 / Stefan Vogel"
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3870
diff changeset
   720
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3870
diff changeset
   721
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3870
diff changeset
   722
indexListForNameSpace
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3870
diff changeset
   723
    "return a list of indexes to show in the selectionList.
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3870
diff changeset
   724
     Set hasMore to true, if a '...' entry should be added."
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3870
diff changeset
   725
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3870
diff changeset
   726
    keys := SortedCollection new:1000.
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3870
diff changeset
   727
8403
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   728
    inspectedObject keysDo:[:k |
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   729
        |hidden i o|
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   730
8403
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   731
        hidden := false.
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   732
        hideClassVars == true ifTrue:[
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   733
            (i := k lastIndexOf:$:) ~~ 0 ifTrue:[
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   734
                (i > 1 and:[(k at:i-1) ~~ $:]) ifTrue:[
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   735
                    hidden := true
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   736
                ].
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   737
            ].
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   738
        ].
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   739
        (hidden not and:[hideNilValues == true]) ifTrue:[
14951
c620388aa2e2 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 14678
diff changeset
   740
            o isNil ifTrue:[ 
c620388aa2e2 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 14678
diff changeset
   741
                o := inspectedObject at:k ifAbsent:nil. 
c620388aa2e2 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 14678
diff changeset
   742
                o isNil ifTrue:[
c620388aa2e2 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 14678
diff changeset
   743
                    hidden := true
c620388aa2e2 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 14678
diff changeset
   744
                ].
8403
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   745
            ].
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   746
        ].
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   747
        (hidden not and:[hideClasses == true]) ifTrue:[
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   748
            o isNil ifTrue:[ o := inspectedObject at:k ifAbsent:nil ].
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   749
            o isBehavior ifTrue:[
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   750
                inspectedObject == Smalltalk ifTrue:[
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   751
                    o name == k ifTrue:[
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   752
                        hidden := true
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   753
                    ]
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   754
                ] ifFalse:[
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   755
                    o nameWithoutNameSpacePrefix = k ifTrue:[
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   756
                        hidden := true
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   757
                    ]
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   758
                ]
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   759
            ].
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   760
        ].
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   761
        (hidden not and:[hideAliases == true]) ifTrue:[
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   762
            o isNil ifTrue:[ o := inspectedObject at:k ifAbsent:nil ].
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   763
            o isBehavior ifTrue:[
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   764
                inspectedObject == Smalltalk ifTrue:[
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   765
                    o name ~~ k ifTrue:[
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   766
                        hidden := true
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   767
                    ]
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   768
                ] ifFalse:[
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   769
                    o nameWithoutNameSpacePrefix ~= k ifTrue:[
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3870
diff changeset
   770
                        hidden := true
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3870
diff changeset
   771
                    ].
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3870
diff changeset
   772
                ].
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3870
diff changeset
   773
            ].
8403
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   774
        ].
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   775
        (hidden not and:[hideLiteralValues == true]) ifTrue:[
8470
2bec16caeefb changed #indexListForNameSpace
Claus Gittinger <cg@exept.de>
parents: 8403
diff changeset
   776
self breakPoint:#cg.
8403
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   777
            o isNil ifTrue:[ o := inspectedObject at:k ifAbsent:nil ].
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   778
            o isLiteral ifTrue:[
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   779
                hidden := true
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3870
diff changeset
   780
            ].
8403
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   781
        ].
12624
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   782
        (hidden not and:[hideColorsAndImages == true]) ifTrue:[
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   783
            o isNil ifTrue:[ o := inspectedObject at:k ifAbsent:nil ].
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   784
            (o isColor or:[o isImageOrForm or:[o class == Cursor]]) ifTrue:[
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   785
                hidden := true
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   786
            ].
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   787
        ].
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   788
        (hidden not and:[hideSignalInstances == true]) ifTrue:[
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   789
            o isNil ifTrue:[ o := inspectedObject at:k ifAbsent:nil ].
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   790
            (o isException or:[o isKindOf:Signal]) ifTrue:[
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   791
                hidden := true
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   792
            ].
fd12279a7888 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12598
diff changeset
   793
        ].
17959
dd48c30087b2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17659
diff changeset
   794
        (hidden not and:[hideEmptyCollections == true]) ifTrue:[
dd48c30087b2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17659
diff changeset
   795
            o isNil ifTrue:[ o := inspectedObject at:k ifAbsent:nil ].
dd48c30087b2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17659
diff changeset
   796
            (o isCollection and:[o size == 0]) ifTrue:[
dd48c30087b2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17659
diff changeset
   797
                hidden := true
dd48c30087b2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17659
diff changeset
   798
            ].
17960
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   799
        ].                   
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   800
        (hidden not and:[hideCollectionsHoldingOnlyLiterals == true]) ifTrue:[
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   801
            o isNil ifTrue:[ o := inspectedObject at:k ifAbsent:nil ].
17962
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   802
            (o isCollection) ifTrue:[
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   803
                (o conform:[:el | el isLiteral]) ifTrue:[
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   804
                    hidden := true
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   805
                ] ifFalse:[
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   806
                    (o conform:[:el | el isCollection and:[el conform:[:subEl | subEl isLiteral]]]) ifTrue:[
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   807
                        hidden := true
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   808
                    ].
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   809
                ].
17960
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   810
            ].
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   811
        ].                   
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   812
        (hidden not and:[hideFreeSemaphores == true]) ifTrue:[
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   813
            o isNil ifTrue:[ o := inspectedObject at:k ifAbsent:nil ].
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   814
            ((o isKindOf:Semaphore) 
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   815
                    and:[(o owner isNil or:[o owner isCollection and:[o owner isEmpty]])
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   816
                    and:[o waitingProcesses isEmptyOrNil]]) ifTrue:[
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   817
                hidden := true
df3cb342a9a6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17959
diff changeset
   818
            ].
17959
dd48c30087b2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17659
diff changeset
   819
        ].
17962
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   820
        (hidden not and:[hideNonRefObjectReferences == true]) ifTrue:[
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   821
            o isNil ifTrue:[ o := inspectedObject at:k ifAbsent:nil ].
17974
09608edef8eb #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 17973
diff changeset
   822
            hidden := (o class == Point)
09608edef8eb #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 17973
diff changeset
   823
                         or:[(o class == Rectangle)
09608edef8eb #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 17973
diff changeset
   824
                         or:[(o class == Object)]]
17962
c8e41a89bb1e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17961
diff changeset
   825
        ].
18311
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   826
        (hidden not and:[hideFilenames == true]) ifTrue:[
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   827
            o isNil ifTrue:[ o := inspectedObject at:k ifAbsent:nil ].
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   828
            (o isFilename) ifTrue:[
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   829
                hidden := true
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   830
            ].
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   831
        ].
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   832
        (hidden not and:[hideStreams == true]) ifTrue:[
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   833
            o isNil ifTrue:[ o := inspectedObject at:k ifAbsent:nil ].
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   834
            (o isStream) ifTrue:[
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   835
                hidden := true
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   836
            ].
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   837
        ].
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   838
        (hidden not and:[hideSimpleObjects == true]) ifTrue:[
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   839
            o isNil ifTrue:[ o := inspectedObject at:k ifAbsent:nil ].
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   840
            ((1 to:o class instSize) conform:[:i | (o instVarAt:i) isLiteral]) ifTrue:[
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   841
                ((o basicSize = 0)
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   842
                or:[ ((1 to:o basicSize) conform:[:i | (o basicAt:i) isLiteral]) ]) ifTrue:[
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   843
                    hidden := true
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   844
                ].
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   845
            ].
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   846
        ].
7946
f12034f5b24a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7942
diff changeset
   847
8403
7f6e4d9aab97 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8024
diff changeset
   848
        hidden ifFalse:[keys add:k]
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3870
diff changeset
   849
    ].
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3870
diff changeset
   850
    ^ keys
17974
09608edef8eb #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 17973
diff changeset
   851
09608edef8eb #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 17973
diff changeset
   852
    "Modified: / 31-01-2018 / 09:34:39 / stefan"
18311
939881d64753 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17984
diff changeset
   853
    "Modified: / 31-07-2018 / 01:36:29 / Claus Gittinger"
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3870
diff changeset
   854
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3870
diff changeset
   855
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3870
diff changeset
   856
indexedFieldList 
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3870
diff changeset
   857
    "return a list of indexed-variable names to show in the selectionList.
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3870
diff changeset
   858
     Set hasMore to true, if a '...' entry should be added."
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3870
diff changeset
   859
11516
8fd04d15008b changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11512
diff changeset
   860
    |indexList keyList|
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3870
diff changeset
   861
11516
8fd04d15008b changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11512
diff changeset
   862
    indexList := self indexList.
8fd04d15008b changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11512
diff changeset
   863
    keyList := indexList 
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3870
diff changeset
   864
        collect:[:k | 
17973
40baaa496c12 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17969
diff changeset
   865
            (k isProtoObject not and:[k isInteger])  
40baaa496c12 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17969
diff changeset
   866
                ifTrue:[ self basicDisplayStringForValue:k ] 
40baaa496c12 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17969
diff changeset
   867
                ifFalse:[ k displayString ]
11516
8fd04d15008b changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11512
diff changeset
   868
        ].
8fd04d15008b changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11512
diff changeset
   869
16547
9aa2c069111c #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 15878
diff changeset
   870
    sortOrder == SortOrderAlphabetical ifTrue:[
11815
bb38b22a951d changed:
Claus Gittinger <cg@exept.de>
parents: 11516
diff changeset
   871
        keyList sort:[:a :b | a string < b string].
bb38b22a951d changed:
Claus Gittinger <cg@exept.de>
parents: 11516
diff changeset
   872
    ].
11516
8fd04d15008b changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11512
diff changeset
   873
    ^ keyList
8fd04d15008b changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11512
diff changeset
   874
        keysAndValuesCollect:[:idx :nm |
14678
079d9fc7384d Fix in DictionaryInspectorView>>#indexedFieldList: use #indexedValueAtKey: instead of object #at:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14261
diff changeset
   875
            self listEntryForName:nm value:(self indexedValueAtKey:(indexList at:idx))
11516
8fd04d15008b changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11512
diff changeset
   876
        ].
8fd04d15008b changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11512
diff changeset
   877
11815
bb38b22a951d changed:
Claus Gittinger <cg@exept.de>
parents: 11516
diff changeset
   878
    "Modified: / 26-09-2012 / 13:22:08 / cg"
14678
079d9fc7384d Fix in DictionaryInspectorView>>#indexedFieldList: use #indexedValueAtKey: instead of object #at:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14261
diff changeset
   879
    "Modified: / 25-07-2014 / 09:44:34 / Jan Vrany <jan.vrany@fit.cvut.cz>"
17973
40baaa496c12 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17969
diff changeset
   880
    "Modified: / 31-01-2018 / 09:03:51 / stefan"
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   881
!
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   882
15877
9e23be012748 #BUGFIX
Stefan Vogel <sv@exept.de>
parents: 15681
diff changeset
   883
indexedValueAtKey:key
9e23be012748 #BUGFIX
Stefan Vogel <sv@exept.de>
parents: 15681
diff changeset
   884
    object isWeakCollection ifTrue:[
9e23be012748 #BUGFIX
Stefan Vogel <sv@exept.de>
parents: 15681
diff changeset
   885
        "keys may vanish"
9e23be012748 #BUGFIX
Stefan Vogel <sv@exept.de>
parents: 15681
diff changeset
   886
        ^ object at:key ifAbsent:[].
9e23be012748 #BUGFIX
Stefan Vogel <sv@exept.de>
parents: 15681
diff changeset
   887
    ].
17474
7382711c82f3 #BUGFIX by sr
sr
parents: 16547
diff changeset
   888
    ^ object at:key ifAbsent:'*gone*'
15877
9e23be012748 #BUGFIX
Stefan Vogel <sv@exept.de>
parents: 15681
diff changeset
   889
!
9e23be012748 #BUGFIX
Stefan Vogel <sv@exept.de>
parents: 15681
diff changeset
   890
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   891
instVarIndexForLine:lineNr
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   892
    "helper - return the index for a named instVar;
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   893
     nil, if self or a keyed instvar is selected."
2189
db73912a0b4c show named instvars (except those of Dictionary)
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
   894
7942
fce54ed1ef8b sharedPool inspection support
Claus Gittinger <cg@exept.de>
parents: 7805
diff changeset
   895
    (inspectedObject isNameSpace or:[inspectedObject isSharedPool]) ifTrue:[
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   896
        ^ nil
957
ecbcb2c15ae8 show a waitCursor, while collecitng keys
Claus Gittinger <cg@exept.de>
parents: 689
diff changeset
   897
    ].
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   898
    ^ super instVarIndexForLine:lineNr
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   899
!
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   900
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   901
keyIndexForLine:lineNr
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   902
    "helper - return the index of the key-list"
470
5bb60cb688c8 category rename / added monitor stuff
Claus Gittinger <cg@exept.de>
parents: 385
diff changeset
   903
5421
86a6077b131d Fix for negative numbers as keys in a Dictionary
Stefan Vogel <sv@exept.de>
parents: 4269
diff changeset
   904
    |firstRealIndex idx line|
4100
d515e0e48272 suppressed pseudo vars fix
Claus Gittinger <cg@exept.de>
parents: 4095
diff changeset
   905
7942
fce54ed1ef8b sharedPool inspection support
Claus Gittinger <cg@exept.de>
parents: 7805
diff changeset
   906
    (inspectedObject isNameSpace or:[inspectedObject isSharedPool]) ifTrue:[
4095
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3874
diff changeset
   907
        (self hasSelfEntry
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   908
        and:[lineNr == 1 or:[lineNr isNil]]) ifTrue:[
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   909
            ^ nil "/ self selected
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   910
        ].
4100
d515e0e48272 suppressed pseudo vars fix
Claus Gittinger <cg@exept.de>
parents: 4095
diff changeset
   911
        firstRealIndex := 1.
d515e0e48272 suppressed pseudo vars fix
Claus Gittinger <cg@exept.de>
parents: 4095
diff changeset
   912
        idx := lineNr.
11512
beaaefe35ca1 nice name list
Claus Gittinger <cg@exept.de>
parents: 9927
diff changeset
   913
        [line := self listEntryAt:firstRealIndex. 
5421
86a6077b131d Fix for negative numbers as keys in a Dictionary
Stefan Vogel <sv@exept.de>
parents: 4269
diff changeset
   914
         (line startsWith:'-') and:[line size < 2 or:[line second isDigit not]]] whileTrue:[
4100
d515e0e48272 suppressed pseudo vars fix
Claus Gittinger <cg@exept.de>
parents: 4095
diff changeset
   915
            firstRealIndex := firstRealIndex + 1.
d515e0e48272 suppressed pseudo vars fix
Claus Gittinger <cg@exept.de>
parents: 4095
diff changeset
   916
            idx := idx - 1.
4095
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3874
diff changeset
   917
        ].
4100
d515e0e48272 suppressed pseudo vars fix
Claus Gittinger <cg@exept.de>
parents: 4095
diff changeset
   918
d515e0e48272 suppressed pseudo vars fix
Claus Gittinger <cg@exept.de>
parents: 4095
diff changeset
   919
        ^ idx   
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   920
    ].
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   921
    ^ super keyIndexForLine:lineNr
11512
beaaefe35ca1 nice name list
Claus Gittinger <cg@exept.de>
parents: 9927
diff changeset
   922
beaaefe35ca1 nice name list
Claus Gittinger <cg@exept.de>
parents: 9927
diff changeset
   923
    "Modified: / 16-05-2012 / 17:56:01 / cg"
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   924
!
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   925
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   926
namedFieldList 
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   927
    "return a list of instVar names to show in the selectionList."
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   928
7942
fce54ed1ef8b sharedPool inspection support
Claus Gittinger <cg@exept.de>
parents: 7805
diff changeset
   929
    (inspectedObject isNameSpace or:[inspectedObject isSharedPool]) ifTrue:[
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   930
        "/ empty ...
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   931
        ^ OrderedCollection new
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   932
    ].
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   933
    ^ super namedFieldList
470
5bb60cb688c8 category rename / added monitor stuff
Claus Gittinger <cg@exept.de>
parents: 385
diff changeset
   934
!
5bb60cb688c8 category rename / added monitor stuff
Claus Gittinger <cg@exept.de>
parents: 385
diff changeset
   935
12834
daf3c6ecec6d menu fix: showMore/hasMore
Claus Gittinger <cg@exept.de>
parents: 12624
diff changeset
   936
numIndexedFields
daf3c6ecec6d menu fix: showMore/hasMore
Claus Gittinger <cg@exept.de>
parents: 12624
diff changeset
   937
    ^ inspectedObject size
daf3c6ecec6d menu fix: showMore/hasMore
Claus Gittinger <cg@exept.de>
parents: 12624
diff changeset
   938
!
daf3c6ecec6d menu fix: showMore/hasMore
Claus Gittinger <cg@exept.de>
parents: 12624
diff changeset
   939
470
5bb60cb688c8 category rename / added monitor stuff
Claus Gittinger <cg@exept.de>
parents: 385
diff changeset
   940
release 
5bb60cb688c8 category rename / added monitor stuff
Claus Gittinger <cg@exept.de>
parents: 385
diff changeset
   941
    "release inspected object"
5bb60cb688c8 category rename / added monitor stuff
Claus Gittinger <cg@exept.de>
parents: 385
diff changeset
   942
5bb60cb688c8 category rename / added monitor stuff
Claus Gittinger <cg@exept.de>
parents: 385
diff changeset
   943
    keys := nil.
5bb60cb688c8 category rename / added monitor stuff
Claus Gittinger <cg@exept.de>
parents: 385
diff changeset
   944
    super release
4269
b5d1e481db7a refactored
Claus Gittinger <cg@exept.de>
parents: 4100
diff changeset
   945
!
b5d1e481db7a refactored
Claus Gittinger <cg@exept.de>
parents: 4100
diff changeset
   946
b5d1e481db7a refactored
Claus Gittinger <cg@exept.de>
parents: 4100
diff changeset
   947
selectedKey
13576
3fd34524bbb9 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12834
diff changeset
   948
    "selected item's key or nil. But only if exactly one item is selected"
4269
b5d1e481db7a refactored
Claus Gittinger <cg@exept.de>
parents: 4100
diff changeset
   949
9376
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   950
    |selIdx idx|
4269
b5d1e481db7a refactored
Claus Gittinger <cg@exept.de>
parents: 4100
diff changeset
   951
9376
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   952
    selIdx := self theSingleSelectionIndex.
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   953
    selIdx notNil ifTrue:[
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   954
        idx := self keyIndexForLine:selIdx.
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   955
        idx notNil ifTrue:[
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   956
            ^ (keys at:idx)
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   957
        ].
4269
b5d1e481db7a refactored
Claus Gittinger <cg@exept.de>
parents: 4100
diff changeset
   958
    ].
b5d1e481db7a refactored
Claus Gittinger <cg@exept.de>
parents: 4100
diff changeset
   959
    ^ nil.
9376
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   960
!
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   961
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   962
selectedKeys
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   963
    "selected keys or empty"
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   964
13576
3fd34524bbb9 class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 12834
diff changeset
   965
    ^ (listView selection ? #()) 
9376
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   966
        collect:[:eachSelectionIndex |
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   967
            |idx|
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   968
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   969
            idx := self keyIndexForLine:eachSelectionIndex.
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   970
            idx notNil 
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   971
                ifTrue:[ (keys at:idx) ]
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   972
                ifFalse:[ nil ]
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   973
        ]
8312c2e767ea allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9350
diff changeset
   974
        thenSelect:[:each | each notNil].
9502
49a0c6fc64b4 comment/format in: #doRemoveKey
Claus Gittinger <cg@exept.de>
parents: 9379
diff changeset
   975
49a0c6fc64b4 comment/format in: #doRemoveKey
Claus Gittinger <cg@exept.de>
parents: 9379
diff changeset
   976
    "Modified: / 01-07-2010 / 10:54:31 / cg"
9505
f7d4e16c1259 added: #selection:
Stefan Vogel <sv@exept.de>
parents: 9502
diff changeset
   977
!
f7d4e16c1259 added: #selection:
Stefan Vogel <sv@exept.de>
parents: 9502
diff changeset
   978
f7d4e16c1259 added: #selection:
Stefan Vogel <sv@exept.de>
parents: 9502
diff changeset
   979
selection:lineNrCollection
f7d4e16c1259 added: #selection:
Stefan Vogel <sv@exept.de>
parents: 9502
diff changeset
   980
    "redefined because of multiselect"
f7d4e16c1259 added: #selection:
Stefan Vogel <sv@exept.de>
parents: 9502
diff changeset
   981
f7d4e16c1259 added: #selection:
Stefan Vogel <sv@exept.de>
parents: 9502
diff changeset
   982
    lineNrCollection isEmptyOrNil ifTrue:[
f7d4e16c1259 added: #selection:
Stefan Vogel <sv@exept.de>
parents: 9502
diff changeset
   983
        self showSelection:nil
f7d4e16c1259 added: #selection:
Stefan Vogel <sv@exept.de>
parents: 9502
diff changeset
   984
    ] ifFalse:[
f7d4e16c1259 added: #selection:
Stefan Vogel <sv@exept.de>
parents: 9502
diff changeset
   985
        self showSelection:lineNrCollection first
f7d4e16c1259 added: #selection:
Stefan Vogel <sv@exept.de>
parents: 9502
diff changeset
   986
    ].
470
5bb60cb688c8 category rename / added monitor stuff
Claus Gittinger <cg@exept.de>
parents: 385
diff changeset
   987
! !
5bb60cb688c8 category rename / added monitor stuff
Claus Gittinger <cg@exept.de>
parents: 385
diff changeset
   988
5bb60cb688c8 category rename / added monitor stuff
Claus Gittinger <cg@exept.de>
parents: 385
diff changeset
   989
!DictionaryInspectorView methodsFor:'user interaction'!
5bb60cb688c8 category rename / added monitor stuff
Claus Gittinger <cg@exept.de>
parents: 385
diff changeset
   990
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   991
indexedValueAtIndex:idx
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   992
    |key|
470
5bb60cb688c8 category rename / added monitor stuff
Claus Gittinger <cg@exept.de>
parents: 385
diff changeset
   993
15878
9df06bebe9e9 #REFACTORING
Stefan Vogel <sv@exept.de>
parents: 15877
diff changeset
   994
    key := keys at:idx ifAbsent:[^ nil].
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   995
    ^ inspectedObject at:key ifAbsent:nil.
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   996
!
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   997
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   998
indexedValueAtIndex:idx put:newValue
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
   999
    |key|
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
  1000
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
  1001
    key := keys at:idx.
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2236
diff changeset
  1002
    inspectedObject at:key put:newValue.
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
  1003
! !
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
  1004
957
ecbcb2c15ae8 show a waitCursor, while collecitng keys
Claus Gittinger <cg@exept.de>
parents: 689
diff changeset
  1005
!DictionaryInspectorView class methodsFor:'documentation'!
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
  1006
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
  1007
version
15877
9e23be012748 #BUGFIX
Stefan Vogel <sv@exept.de>
parents: 15681
diff changeset
  1008
    ^ '$Header$'
8973
76f40edc89d3 changed: #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 8527
diff changeset
  1009
!
76f40edc89d3 changed: #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 8527
diff changeset
  1010
76f40edc89d3 changed: #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 8527
diff changeset
  1011
version_CVS
15877
9e23be012748 #BUGFIX
Stefan Vogel <sv@exept.de>
parents: 15681
diff changeset
  1012
    ^ '$Header$'
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
  1013
! !
12111
0da8cd378b6f class: DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 11815
diff changeset
  1014