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