InspectorView.st
author Claus Gittinger <cg@exept.de>
Wed, 05 Jun 2019 14:16:59 +0200
changeset 18805 f6df57c6dbfb
parent 18802 9ce4a2f9a5f4
child 18810 d9622ecaa1ba
permissions -rw-r--r--
#BUGFIX by cg class: AbstractFileBrowser changed: #currentFileNameHolder endless loop if file not present.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
18782
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
     1
"{ Encoding: utf8 }"
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
     2
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
     3
"
5
claus
parents: 3
diff changeset
     4
 COPYRIGHT (c) 1989 by Claus Gittinger
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
     5
              All Rights Reserved
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
     6
571fd5eee315 Initial revision
claus
parents:
diff changeset
     7
 This software is furnished under a license and may be used
571fd5eee315 Initial revision
claus
parents:
diff changeset
     8
 only in accordance with the terms of that license and with the
571fd5eee315 Initial revision
claus
parents:
diff changeset
     9
 inclusion of the above copyright notice.   This software may not
571fd5eee315 Initial revision
claus
parents:
diff changeset
    10
 be provided or otherwise made available to, or used by, any
571fd5eee315 Initial revision
claus
parents:
diff changeset
    11
 other person.  No title to or ownership of the software is
571fd5eee315 Initial revision
claus
parents:
diff changeset
    12
 hereby transferred.
571fd5eee315 Initial revision
claus
parents:
diff changeset
    13
"
2657
0623fcb714f7 care for nil strings
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
    14
"{ Package: 'stx:libtool' }"
0623fcb714f7 care for nil strings
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
    15
15246
5c469b9c566c class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 14938
diff changeset
    16
"{ NameSpace: Smalltalk }"
5c469b9c566c class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 14938
diff changeset
    17
93
claus
parents: 80
diff changeset
    18
SimpleView subclass:#InspectorView
11909
9ea1b7aa98dc changed: #pseudoFieldNamesWithIndexed:
Claus Gittinger <cg@exept.de>
parents: 11895
diff changeset
    19
	instanceVariableNames:'listView labelView workspace inspectedObject selectedLine nShown
9ea1b7aa98dc changed: #pseudoFieldNamesWithIndexed:
Claus Gittinger <cg@exept.de>
parents: 11895
diff changeset
    20
		hasMore monitorProcess hideReceiver integerDisplayRadix
9ea1b7aa98dc changed: #pseudoFieldNamesWithIndexed:
Claus Gittinger <cg@exept.de>
parents: 11895
diff changeset
    21
		inspectHistory allowFollow isStandaloneInspector selectionIndex
9ea1b7aa98dc changed: #pseudoFieldNamesWithIndexed:
Claus Gittinger <cg@exept.de>
parents: 11895
diff changeset
    22
		object inspectedObjectHolder displayStringMessage
9ea1b7aa98dc changed: #pseudoFieldNamesWithIndexed:
Claus Gittinger <cg@exept.de>
parents: 11895
diff changeset
    23
		suppressPseudoSlots dereferenceValueHolders suppressHeadline
12467
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
    24
		headLineLabel sortOrder hideMessages hideHashes
18022
c5e8f4ba1838 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18017
diff changeset
    25
		holderChangeInterest sortOrderHolder maxValueDisplayStringLength'
18789
8ff9798593ec #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18787
diff changeset
    26
	classVariableNames:'DefaultHideHashes DefaultHideMessages DefaultIcon
8ff9798593ec #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18787
diff changeset
    27
		DefaultIntegerDisplayRadix DefaultMaxValueDisplayStringLength
8ff9798593ec #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18787
diff changeset
    28
		ExpandArraysInAllLists IdDictionary LastExtent NextSequentialID
8ff9798593ec #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18787
diff changeset
    29
		NoLongerPresentDummyObject SortOrderAlphabetical
8ff9798593ec #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18787
diff changeset
    30
		SortOrderInstvarOrder'
11909
9ea1b7aa98dc changed: #pseudoFieldNamesWithIndexed:
Claus Gittinger <cg@exept.de>
parents: 11895
diff changeset
    31
	poolDictionaries:''
9ea1b7aa98dc changed: #pseudoFieldNamesWithIndexed:
Claus Gittinger <cg@exept.de>
parents: 11895
diff changeset
    32
	category:'Interface-Inspector'
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
    33
!
571fd5eee315 Initial revision
claus
parents:
diff changeset
    34
871
a29021918ec5 fixed openOn:monitor:
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
    35
!InspectorView class methodsFor:'documentation'!
29
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    36
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    37
copyright
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    38
"
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    39
 COPYRIGHT (c) 1989 by Claus Gittinger
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
    40
              All Rights Reserved
29
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    41
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    42
 This software is furnished under a license and may be used
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    43
 only in accordance with the terms of that license and with the
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    44
 inclusion of the above copyright notice.   This software may not
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    45
 be provided or otherwise made available to, or used by, any
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    46
 other person.  No title to or ownership of the software is
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    47
 hereby transferred.
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    48
"
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    49
!
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    50
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    51
documentation
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    52
"
1570
7b8bda4df1dc comment
Claus Gittinger <cg@exept.de>
parents: 1494
diff changeset
    53
    This class implements a graphical inspector.
29
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    54
    Inspecting can be done on an object -
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    55
    (where its instvarnames/values are inspected)
1570
7b8bda4df1dc comment
Claus Gittinger <cg@exept.de>
parents: 1494
diff changeset
    56
    or a list of objects (where a nameArray/valuesArray is inspected).
29
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    57
    The later is used by the debugger to inspect method variables/args.
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    58
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    59
    The system calls the inspector through the global variable 'Inspector'
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    60
    which is bound to this class (but could be redefined - it actually is
1570
7b8bda4df1dc comment
Claus Gittinger <cg@exept.de>
parents: 1494
diff changeset
    61
    set to MiniInspector in a smalltalk without graphical user interface,
7b8bda4df1dc comment
Claus Gittinger <cg@exept.de>
parents: 1494
diff changeset
    62
    or to NewInspector if that is wanted).
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
    63
29
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    64
    Also notice, that there are two methods to inspect an object:
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    65
    sending #basicInspect to any object, will open this kind of inspector on 
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    66
    it (showing instance variables which are physically present).
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    67
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    68
    Sending it #inspect, will - depending on the object - sometimes invoke a
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    69
    specialized inspector. 
1570
7b8bda4df1dc comment
Claus Gittinger <cg@exept.de>
parents: 1494
diff changeset
    70
    (see OrderedCollectionInspectorView, ImageInspectorView, 
7b8bda4df1dc comment
Claus Gittinger <cg@exept.de>
parents: 1494
diff changeset
    71
     ColorInspectorView etc. as examples).
29
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    72
446
8ded3f1df7d2 commentary
Claus Gittinger <cg@exept.de>
parents: 426
diff changeset
    73
    You can also open a monitoring inspector, which displays some instance
8ded3f1df7d2 commentary
Claus Gittinger <cg@exept.de>
parents: 426
diff changeset
    74
    variable in regular intervals. See #openOn:monitor:.
8ded3f1df7d2 commentary
Claus Gittinger <cg@exept.de>
parents: 426
diff changeset
    75
29
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    76
    examples:
2008
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
    77
            #(1 2 3 4) asOrderedCollection inspect
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
    78
            #(1 2 3 4) asOrderedCollection basicInspect
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
    79
            (Array new:10000) inspect
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
    80
            (Image fromFile:'bitmaps/claus.gif') inspect
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
    81
            (Image fromFile:'bitmaps/claus.gif') basicInspect
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
    82
            (Image fromFile:'bitmaps/SBrowser.xbm') inspect
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
    83
            (Image fromFile:'bitmaps/SBrowser.xbm') basicInspect
446
8ded3f1df7d2 commentary
Claus Gittinger <cg@exept.de>
parents: 426
diff changeset
    84
2008
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
    85
            InspectorView openOn:Display
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
    86
            InspectorView openOn:Display monitor:'shiftDown'
11660
bf523c8f3232 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 11658
diff changeset
    87
            InspectorView openOn:(Image fromScreen)
bf523c8f3232 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 11658
diff changeset
    88
            InspectorView openOn:(Image fromFile:'banner8.xpm')
2008
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
    89
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
    90
    The InspectorView can also be used as a subComponent within another view.
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
    91
    In this case, the isStandAlone flag should be cleared, to prevent the
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
    92
    inspector from changing the topViews window label.
510
6543e55fb227 documentation
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
    93
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
    94
    Notice:
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
    95
        the instvars 'inspectedObject' and 'selectedLine' have been 
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
    96
        renamed to 'object' and 'selectionIndex' for squeak compatibility;
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
    97
        however, the old vars are kept (in sync) for a while, to allow for
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
    98
        smooth migration.
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
    99
6940
c95880ea4d17 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6851
diff changeset
   100
  Controlling the contents from the inspected object.
c95880ea4d17 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6851
diff changeset
   101
c95880ea4d17 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6851
diff changeset
   102
    By redefining inspectorExtraAttributes or inspectorExtraNamedFields, the inspected
c95880ea4d17 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6851
diff changeset
   103
    object can add items to the list of fields as ashown in the left list-view of the inspector.
c95880ea4d17 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6851
diff changeset
   104
    These methods are meant to return a sequencable Collection of Associations, which represent
c95880ea4d17 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6851
diff changeset
   105
    of pseudo slot-name, slot-value pairs.
c95880ea4d17 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6851
diff changeset
   106
    In the list, extra attributes are shown with a dash (-), extra named fields are marked with a tick (`).
c95880ea4d17 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6851
diff changeset
   107
    These are added (read only) to the list.
c95880ea4d17 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6851
diff changeset
   108
510
6543e55fb227 documentation
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   109
    [author:]
2008
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
   110
        Claus Gittinger
29
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
   111
"
16550
795a7b625be6 #OTHER by mawalch
mawalch
parents: 16546
diff changeset
   112
! !
795a7b625be6 #OTHER by mawalch
mawalch
parents: 16546
diff changeset
   113
795a7b625be6 #OTHER by mawalch
mawalch
parents: 16546
diff changeset
   114
!InspectorView class methodsFor:'initialization'!
795a7b625be6 #OTHER by mawalch
mawalch
parents: 16546
diff changeset
   115
795a7b625be6 #OTHER by mawalch
mawalch
parents: 16546
diff changeset
   116
initialize
16546
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
   117
    SortOrderAlphabetical := #alphabetical.
17872
096003c27b76 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17823
diff changeset
   118
    SortOrderInstvarOrder := #instvarOrder.
096003c27b76 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17823
diff changeset
   119
    NoLongerPresentDummyObject := Object new.
29
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
   120
! !
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
   121
871
a29021918ec5 fixed openOn:monitor:
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
   122
!InspectorView class methodsFor:'instance creation'!
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
   123
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   124
for:anObject
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   125
    "create and launch a new inspector for anObject.
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   126
     This protocol is a historic leftover - this method will vanish."
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   127
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   128
    ^ self openOn:anObject
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   129
!
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   130
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   131
inspect:anObject
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   132
    "create and launch a new inspector for anObject.
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   133
     This protocol is a historic leftover - this method will vanish."
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   134
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   135
    ^ self openOn:anObject
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   136
!
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   137
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
   138
openOn:anObject
571fd5eee315 Initial revision
claus
parents:
diff changeset
   139
    "create and launch a new inspector for anObject"
571fd5eee315 Initial revision
claus
parents:
diff changeset
   140
416
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   141
    ^ self openOn:anObject monitor:nil
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   142
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   143
    "
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   144
     InspectorView openOn:(5 @ 7)
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   145
     InspectorView openOn:(Array new:400)
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   146
     DictionaryInspectorView openOn:(IdentityDictionary new)
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   147
    "
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   148
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   149
    "Modified: 1.3.1996 / 19:31:03 / cg"
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   150
!
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   151
8452
0840b314f7bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8388
diff changeset
   152
openOn:anObject monitor:anInstVarNameOrNil
416
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   153
    "create and launch a new inspector for anObject.
8452
0840b314f7bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8388
diff changeset
   154
     If anInstVarNameOrNil is nonNil, let the inspector monitor it
2008
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
   155
     (use an integer-printString as name, for indexed instVars)."
416
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   156
105
claus
parents: 100
diff changeset
   157
    |topView inspectorView|
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
   158
1895
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
   159
    topView := StandardSystemView new.
9295
34141a7227ca changed: #openOn:monitor:
Stefan Vogel <sv@exept.de>
parents: 9280
diff changeset
   160
    topView
34141a7227ca changed: #openOn:monitor:
Stefan Vogel <sv@exept.de>
parents: 9280
diff changeset
   161
        icon:self defaultIcon;
34141a7227ca changed: #openOn:monitor:
Stefan Vogel <sv@exept.de>
parents: 9280
diff changeset
   162
        label:'Inspector';
34141a7227ca changed: #openOn:monitor:
Stefan Vogel <sv@exept.de>
parents: 9280
diff changeset
   163
        iconLabel:'Inspector';  
34141a7227ca changed: #openOn:monitor:
Stefan Vogel <sv@exept.de>
parents: 9280
diff changeset
   164
        extent:self defaultTopViewExtent;
34141a7227ca changed: #openOn:monitor:
Stefan Vogel <sv@exept.de>
parents: 9280
diff changeset
   165
        objectAttributeAt:#rememberExtent put:true.
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
   166
571fd5eee315 Initial revision
claus
parents:
diff changeset
   167
    inspectorView := self origin:(0.0 @ 0.0)
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
   168
                          corner:(1.0 @ 1.0)
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
   169
                             in:topView.
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
   170
3
claus
parents: 0
diff changeset
   171
    "kludge: must realize first, to be able to set menu again"
352
e84b6352735d set focusSequence
Claus Gittinger <cg@exept.de>
parents: 351
diff changeset
   172
    topView openAndWait.
871
a29021918ec5 fixed openOn:monitor:
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
   173
    topView windowGroup 
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
   174
        focusSequence:(Array 
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
   175
                            with:inspectorView listView
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
   176
                            with:inspectorView workspace).
9262
792dbfa38baf changed:
Stefan Vogel <sv@exept.de>
parents: 9032
diff changeset
   177
    inspectorView 
792dbfa38baf changed:
Stefan Vogel <sv@exept.de>
parents: 9032
diff changeset
   178
        allowFollow:true;
792dbfa38baf changed:
Stefan Vogel <sv@exept.de>
parents: 9032
diff changeset
   179
        isStandaloneInspector:true;
792dbfa38baf changed:
Stefan Vogel <sv@exept.de>
parents: 9032
diff changeset
   180
        inspect:anObject.
416
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   181
8452
0840b314f7bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8388
diff changeset
   182
    anInstVarNameOrNil notNil ifTrue:[
0840b314f7bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8388
diff changeset
   183
        inspectorView monitor:anInstVarNameOrNil
416
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   184
    ].
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   185
69
0d6acfdae045 *** empty log message ***
claus
parents: 61
diff changeset
   186
    ^ inspectorView
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
   187
29
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
   188
    "
416
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   189
     |m|
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   190
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   191
     m := 1 asValue.
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   192
     InspectorView openOn:m monitor:'value'.
871
a29021918ec5 fixed openOn:monitor:
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
   193
a29021918ec5 fixed openOn:monitor:
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
   194
     2 to:10 do:[:i |
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
   195
         Delay waitForSeconds:1.
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
   196
         m value:i
871
a29021918ec5 fixed openOn:monitor:
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
   197
     ]
416
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   198
    "
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   199
29
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
   200
    "
416
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   201
     |o|
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   202
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   203
     o := Array with:1 with:2 with:3.
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   204
     InspectorView openOn:o monitor:'2'.
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   205
     Delay waitForSeconds:1.
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   206
     o at:2 put:20
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   207
    "
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   208
7867
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
   209
    "Created: / 01-03-1996 / 19:30:50 / cg"
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
   210
    "Modified: / 23-10-2007 / 19:08:21 / cg"
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
   211
!
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
   212
13133
207c334d6f58 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13016
diff changeset
   213
openOn:anObject title:aString
207c334d6f58 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13016
diff changeset
   214
    "create and launch a new inspector for anObject"
207c334d6f58 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13016
diff changeset
   215
207c334d6f58 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13016
diff changeset
   216
    (self openOn:anObject monitor:nil) topView label:aString
207c334d6f58 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13016
diff changeset
   217
207c334d6f58 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13016
diff changeset
   218
    "
207c334d6f58 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13016
diff changeset
   219
     InspectorView openOn:(5 @ 7) title:'my point'
207c334d6f58 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13016
diff changeset
   220
    "
207c334d6f58 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13016
diff changeset
   221
!
207c334d6f58 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13016
diff changeset
   222
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
   223
openOn:anObject withEvalPane:withEvalPane
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
   224
    ^ self openOn:anObject
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
   225
!
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
   226
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
   227
openOn:anObject withEvalPane:withEvalPane withLabel:aLabel
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
   228
    ^ self openOn:anObject
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
   229
! !
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
   230
10321
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   231
!InspectorView class methodsFor:'common label support'!
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   232
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   233
commonLabelFor:anObject
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   234
    "return the windowLabel to use in my topView, when inspecting anObject.
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   235
     Identical objects are labelled with the same id, which makes it easy to
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   236
     see if two objects are identical (and is very useful, indeed).
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   237
     WARNING: used by both Inspector and Inspector2 !!!!!!"
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   238
14184
96fc012dd2e9 class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 14102
diff changeset
   239
    |lbl id|
10321
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   240
17123
42b500e22252 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17032
diff changeset
   241
    (anObject isProtoObject not and:[anObject isImmediate or:[anObject isBoolean]]) ifTrue:[
14508
268012bb76c1 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14406
diff changeset
   242
        ^ self labelNameFor:anObject.
10321
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   243
    ].
14508
268012bb76c1 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14406
diff changeset
   244
    lbl := '<%1> %2'.
10321
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   245
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   246
    IdDictionary isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   247
        IdDictionary := WeakIdentityDictionary new.
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   248
    ].
14508
268012bb76c1 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14406
diff changeset
   249
268012bb76c1 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14406
diff changeset
   250
    "/ get or assign a new id
10321
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   251
    [    
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   252
        id := IdDictionary 
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   253
                    at:anObject 
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   254
                    ifAbsentPut:[ 
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   255
                        |nextID|
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   256
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   257
                        nextID := NextSequentialID ? 0.
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   258
                        NextSequentialID := nextID + 1.
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   259
                        nextID
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   260
                    ].
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   261
    ] valueUninterruptably.
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   262
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   263
    ^ self classResources 
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   264
        string:lbl 
14508
268012bb76c1 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14406
diff changeset
   265
        with:id
10321
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   266
        with:(self labelNameFor:anObject)
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   267
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   268
    "Created: / 15-07-2011 / 16:21:44 / cg"
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   269
!
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   270
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   271
labelNameFor:anObject
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   272
    "return the iconLabel to use in my topView, when inspecting anObject.
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   273
     Simply returns the className or name of anObjects class"
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   274
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   275
    |s|
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   276
17123
42b500e22252 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17032
diff changeset
   277
    anObject isProtoObject ifTrue:[
17816
ee2acbd6beab #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17814
diff changeset
   278
        ^ anObject class nameWithArticle.
16758
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
   279
    ].
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
   280
18802
9ce4a2f9a5f4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18797
diff changeset
   281
    s := anObject inspectorLabelInWindowTitle.
9ce4a2f9a5f4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18797
diff changeset
   282
    "/ for very strange anon classes / instances of anon classes
10321
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   283
    s isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   284
        anObject isBehavior ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   285
            ^ 'someBehavior'
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   286
        ].
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   287
        ^ 'something'
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   288
    ].
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   289
    ^ s
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   290
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   291
    "Created: / 15-07-2011 / 16:20:06 / cg"
17816
ee2acbd6beab #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17814
diff changeset
   292
    "Modified: / 29-11-2017 / 10:22:15 / stefan"
18802
9ce4a2f9a5f4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18797
diff changeset
   293
    "Modified: / 05-06-2019 / 11:20:14 / Claus Gittinger"
10321
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   294
! !
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   295
871
a29021918ec5 fixed openOn:monitor:
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
   296
!InspectorView class methodsFor:'defaults'!
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
   297
1873
5fd55aa184d4 added redefinable #defaultExtent method.
Claus Gittinger <cg@exept.de>
parents: 1855
diff changeset
   298
defaultExtent
13768
956c2f91c5d9 Replace references to Diplay with "Screen current" - where appropriate
Stefan Vogel <sv@exept.de>
parents: 13701
diff changeset
   299
    "return the default extent of my instances.
956c2f91c5d9 Replace references to Diplay with "Screen current" - where appropriate
Stefan Vogel <sv@exept.de>
parents: 13701
diff changeset
   300
     The value returned here is usually ignored, and
956c2f91c5d9 Replace references to Diplay with "Screen current" - where appropriate
Stefan Vogel <sv@exept.de>
parents: 13701
diff changeset
   301
     the value from preferredExtent taken instead."
956c2f91c5d9 Replace references to Diplay with "Screen current" - where appropriate
Stefan Vogel <sv@exept.de>
parents: 13701
diff changeset
   302
956c2f91c5d9 Replace references to Diplay with "Screen current" - where appropriate
Stefan Vogel <sv@exept.de>
parents: 13701
diff changeset
   303
     |display|
956c2f91c5d9 Replace references to Diplay with "Screen current" - where appropriate
Stefan Vogel <sv@exept.de>
parents: 13701
diff changeset
   304
956c2f91c5d9 Replace references to Diplay with "Screen current" - where appropriate
Stefan Vogel <sv@exept.de>
parents: 13701
diff changeset
   305
    display := Screen current.
956c2f91c5d9 Replace references to Diplay with "Screen current" - where appropriate
Stefan Vogel <sv@exept.de>
parents: 13701
diff changeset
   306
    ^ (display monitorBoundsAt:display pointerPosition) extent // 3.
1873
5fd55aa184d4 added redefinable #defaultExtent method.
Claus Gittinger <cg@exept.de>
parents: 1855
diff changeset
   307
5fd55aa184d4 added redefinable #defaultExtent method.
Claus Gittinger <cg@exept.de>
parents: 1855
diff changeset
   308
    "Created: / 7.9.1998 / 13:47:45 / cg"
5fd55aa184d4 added redefinable #defaultExtent method.
Claus Gittinger <cg@exept.de>
parents: 1855
diff changeset
   309
    "Modified: / 7.9.1998 / 14:15:38 / cg"
5fd55aa184d4 added redefinable #defaultExtent method.
Claus Gittinger <cg@exept.de>
parents: 1855
diff changeset
   310
!
5fd55aa184d4 added redefinable #defaultExtent method.
Claus Gittinger <cg@exept.de>
parents: 1855
diff changeset
   311
16883
603af3eefa1e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16832
diff changeset
   312
defaultHideHashes
603af3eefa1e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16832
diff changeset
   313
    ^ DefaultHideHashes? true
603af3eefa1e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16832
diff changeset
   314
!
603af3eefa1e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16832
diff changeset
   315
603af3eefa1e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16832
diff changeset
   316
defaultHideHashes:aBoolean
603af3eefa1e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16832
diff changeset
   317
    DefaultHideHashes := aBoolean
603af3eefa1e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16832
diff changeset
   318
!
603af3eefa1e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16832
diff changeset
   319
603af3eefa1e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16832
diff changeset
   320
defaultHideMessages
603af3eefa1e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16832
diff changeset
   321
    ^ DefaultHideMessages ? true
603af3eefa1e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16832
diff changeset
   322
!
603af3eefa1e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16832
diff changeset
   323
603af3eefa1e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16832
diff changeset
   324
defaultHideMessages:aBoolean
603af3eefa1e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16832
diff changeset
   325
    DefaultHideMessages := aBoolean
603af3eefa1e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16832
diff changeset
   326
!
603af3eefa1e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16832
diff changeset
   327
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
   328
defaultIcon
1146
231ebb35a507 defaultIcon improved
Claus Gittinger <cg@exept.de>
parents: 1094
diff changeset
   329
    "return the browsers default window icon"
231ebb35a507 defaultIcon improved
Claus Gittinger <cg@exept.de>
parents: 1094
diff changeset
   330
7835
ba364068a743 icon resource
Claus Gittinger <cg@exept.de>
parents: 7808
diff changeset
   331
    <resource: #programImage>
7629
48bf8de91618 Fix #defaultIcon
Stefan Vogel <sv@exept.de>
parents: 7626
diff changeset
   332
    <resource: #style (#INSPECTOR_ICON #INSPECTOR_ICON_FILE)>
1146
231ebb35a507 defaultIcon improved
Claus Gittinger <cg@exept.de>
parents: 1094
diff changeset
   333
7629
48bf8de91618 Fix #defaultIcon
Stefan Vogel <sv@exept.de>
parents: 7626
diff changeset
   334
    |nm i resources|
1146
231ebb35a507 defaultIcon improved
Claus Gittinger <cg@exept.de>
parents: 1094
diff changeset
   335
231ebb35a507 defaultIcon improved
Claus Gittinger <cg@exept.de>
parents: 1094
diff changeset
   336
    (i := DefaultIcon) isNil ifTrue:[
7629
48bf8de91618 Fix #defaultIcon
Stefan Vogel <sv@exept.de>
parents: 7626
diff changeset
   337
        resources := self classResources.
48bf8de91618 Fix #defaultIcon
Stefan Vogel <sv@exept.de>
parents: 7626
diff changeset
   338
        i := resources at:#INSPECTOR_ICON default:nil.
2338
0d791a4b518a #on: -> #onDevice:
Claus Gittinger <cg@exept.de>
parents: 2323
diff changeset
   339
        i isNil ifTrue:[
7629
48bf8de91618 Fix #defaultIcon
Stefan Vogel <sv@exept.de>
parents: 7626
diff changeset
   340
            nm := resources at:#INSPECTOR_ICON_FILE default:'Inspector.xbm'.
2475
12068d713365 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2454
diff changeset
   341
            i := Smalltalk imageFromFileNamed:nm forClass:self.
2338
0d791a4b518a #on: -> #onDevice:
Claus Gittinger <cg@exept.de>
parents: 2323
diff changeset
   342
            i isNil ifTrue:[
2454
114111038a2b try my bitmaps in package directory
Claus Gittinger <cg@exept.de>
parents: 2447
diff changeset
   343
                i := StandardSystemView defaultIcon
2338
0d791a4b518a #on: -> #onDevice:
Claus Gittinger <cg@exept.de>
parents: 2323
diff changeset
   344
            ]
0d791a4b518a #on: -> #onDevice:
Claus Gittinger <cg@exept.de>
parents: 2323
diff changeset
   345
        ].
0d791a4b518a #on: -> #onDevice:
Claus Gittinger <cg@exept.de>
parents: 2323
diff changeset
   346
        i notNil ifTrue:[
0d791a4b518a #on: -> #onDevice:
Claus Gittinger <cg@exept.de>
parents: 2323
diff changeset
   347
            DefaultIcon := i := i onDevice:Display
0d791a4b518a #on: -> #onDevice:
Claus Gittinger <cg@exept.de>
parents: 2323
diff changeset
   348
        ]
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
   349
    ].
1146
231ebb35a507 defaultIcon improved
Claus Gittinger <cg@exept.de>
parents: 1094
diff changeset
   350
    ^ i
874
9ec421cec441 use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 871
diff changeset
   351
7629
48bf8de91618 Fix #defaultIcon
Stefan Vogel <sv@exept.de>
parents: 7626
diff changeset
   352
    "
48bf8de91618 Fix #defaultIcon
Stefan Vogel <sv@exept.de>
parents: 7626
diff changeset
   353
       DefaultIcon := nil
48bf8de91618 Fix #defaultIcon
Stefan Vogel <sv@exept.de>
parents: 7626
diff changeset
   354
    "
7835
ba364068a743 icon resource
Claus Gittinger <cg@exept.de>
parents: 7808
diff changeset
   355
ba364068a743 icon resource
Claus Gittinger <cg@exept.de>
parents: 7808
diff changeset
   356
    "Modified: / 17-09-2007 / 11:36:17 / cg"
7867
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
   357
!
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
   358
11247
992680ca31b0 added: #defaultIntegerDisplayRadix
Claus Gittinger <cg@exept.de>
parents: 11232
diff changeset
   359
defaultIntegerDisplayRadix
992680ca31b0 added: #defaultIntegerDisplayRadix
Claus Gittinger <cg@exept.de>
parents: 11232
diff changeset
   360
    ^ DefaultIntegerDisplayRadix ? 10
992680ca31b0 added: #defaultIntegerDisplayRadix
Claus Gittinger <cg@exept.de>
parents: 11232
diff changeset
   361
992680ca31b0 added: #defaultIntegerDisplayRadix
Claus Gittinger <cg@exept.de>
parents: 11232
diff changeset
   362
    "Created: / 10-02-2012 / 19:51:38 / cg"
992680ca31b0 added: #defaultIntegerDisplayRadix
Claus Gittinger <cg@exept.de>
parents: 11232
diff changeset
   363
!
992680ca31b0 added: #defaultIntegerDisplayRadix
Claus Gittinger <cg@exept.de>
parents: 11232
diff changeset
   364
18022
c5e8f4ba1838 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18017
diff changeset
   365
defaultMaxValueDisplayStringLength
c5e8f4ba1838 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18017
diff changeset
   366
    "cut off and show '...' if longer"
c5e8f4ba1838 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18017
diff changeset
   367
18023
f4e6c0611ac9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18022
diff changeset
   368
    ^ DefaultMaxValueDisplayStringLength ? 100000
18022
c5e8f4ba1838 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18017
diff changeset
   369
!
c5e8f4ba1838 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18017
diff changeset
   370
c5e8f4ba1838 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18017
diff changeset
   371
defaultMaxValueDisplayStringLength:anIntegerOrNilForDefault
c5e8f4ba1838 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18017
diff changeset
   372
    "cut off and show '...' if longer"
c5e8f4ba1838 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18017
diff changeset
   373
c5e8f4ba1838 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18017
diff changeset
   374
    DefaultMaxValueDisplayStringLength := anIntegerOrNilForDefault
c5e8f4ba1838 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18017
diff changeset
   375
!
c5e8f4ba1838 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18017
diff changeset
   376
16546
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
   377
defaultSortOrder
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
   378
    ^ SortOrderInstvarOrder
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
   379
!
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
   380
7867
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
   381
defaultTopViewExtent
9389
f7ad2b69030f better tracking of sizeChange for default size.
sr
parents: 9384
diff changeset
   382
    |def|
f7ad2b69030f better tracking of sizeChange for default size.
sr
parents: 9384
diff changeset
   383
f7ad2b69030f better tracking of sizeChange for default size.
sr
parents: 9384
diff changeset
   384
    def := LastExtent ? self defaultExtent.
f7ad2b69030f better tracking of sizeChange for default size.
sr
parents: 9384
diff changeset
   385
    ^ def min:(Screen current usableExtent)
7867
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
   386
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
   387
    "Created: / 23-10-2007 / 19:04:13 / cg"
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
   388
!
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
   389
11230
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   390
expandArraysInAllLists
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   391
    "in the 'all instvars' list, expand arrays"
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   392
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   393
    ^ ExpandArraysInAllLists ? false
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   394
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   395
    "Created: / 30-01-2012 / 16:52:57 / cg"
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   396
!
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   397
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   398
expandArraysInAllLists:aBoolean
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   399
    "in the 'all instvars' list, expand arrays"
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   400
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   401
    ExpandArraysInAllLists := aBoolean
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   402
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   403
    "Created: / 30-01-2012 / 16:53:01 / cg"
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   404
!
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   405
7867
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
   406
rememberLastExtent:anExtent
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
   407
    LastExtent := anExtent
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
   408
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
   409
    "Created: / 23-10-2007 / 19:10:02 / cg"
16546
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
   410
!
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
   411
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
   412
sortOrderAlphabetical
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
   413
    ^ SortOrderAlphabetical
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
   414
!
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
   415
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
   416
sortOrderInstvarOrder
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
   417
    ^ SortOrderInstvarOrder
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
   418
! !
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
   419
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   420
!InspectorView class methodsFor:'image specs'!
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   421
11514
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   422
imageFor_arrays
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   423
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   424
     by the ImageEditor of ST/X."
17477
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   425
11514
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   426
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   427
     the ImageEditor may not be able to read the specification."
17477
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   428
11514
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   429
    "
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   430
     self imageFor_arrays inspect
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   431
     ImageEditor openOnClass:self andSelector:#imageFor_arrays
17477
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   432
     Icon flushCachedIcons
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   433
    "
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   434
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   435
    <resource: #image>
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   436
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   437
    ^Icon
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   438
        constantNamed:'InspectorView class imageFor_arrays'
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   439
        ifAbsentPut:[(Depth4Image width:16 height:16) bits:(ByteArray fromPackedString:'
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   440
H"H"H"H"H"H"H"H"H"H"H"H"H"H"H"H"H"H&*H)"H"H"H!! 3@0D"H"H!! C@8PAH"H"(@@@!!@\"H"JC@0!!DARH"H(@@@D\EH"H")@PD]P\"H"HTQ@U[BRH"H"
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   441
EUTKBRH"H"H!!]U^RH"H"H"H"H"H"H"H"H"H"H"H"H"H"H"H"H"Hb')
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   442
            colorMapFromArray:#[255 255 255 218 112 214 226 226 226 255 0 255 199 21 133 115 16 49 198 123 148 140 49 74 208 32 144 156 74 99 186 85 211 90 0 33]
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   443
            mask:((ImageMask width:16 height:16) bits:(ByteArray fromPackedString:'@@@@@@@@A>@O<A?8G? _>A?8G? _>@?0A>@@@@@@@@@b'); yourself); yourself]
11514
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   444
!
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   445
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   446
imageFor_characters
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   447
    "This resource specification was automatically generated
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   448
     by the ImageEditor of ST/X."
18439
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   449
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   450
    "Do not manually edit this!! If it is corrupted,
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   451
     the ImageEditor may not be able to read the specification."
18439
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   452
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   453
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   454
     self imageFor_characters inspect
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   455
     ImageEditor openOnClass:self andSelector:#imageFor_characters
18439
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   456
     Icon flushCachedIcons
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   457
    "
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   458
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   459
    <resource: #image>
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   460
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   461
    ^Icon
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   462
        constantNamed:'InspectorView class imageFor_characters'
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   463
        ifAbsentPut:[(Depth8Image width:16 height:16) bits:(ByteArray fromPackedString:'
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   464
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@6LD5MLCX@@@@@@@@@@@ADRTEABS-FQ@@@@@@@@@A@MSTIBP$I
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   465
BTU@@@@@@@@@LC@IT5LIRD$6M@@@@@@@@D4<O@$IBT9EP4H@@@@@@@AMNUP9NP$IBS)B@@@@@@@@LC@IL4,IQTL6LP@@@@@@@D@>O $IBP$IQ2<@@@@@@@@@
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   466
K$1LS@%GQ3<@@@@@@@@@@@A@LTIBLR<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a')
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   467
            colorMapFromArray:#[226 226 226 176 176 176 155 155 155 169 169 169 152 152 152 164 164 164 149 149 149 192 192 192 240 240 240 255 255 255 202 202 202 201 201 201 151 151 151 162 162 162 148 148 148 158 158 158 173 173 173 154 154 154 167 167 167 150 150 150 160 160 160 180 180 180 156 156 156 170 170 170 153 153 153 165 165 165 183 183 183 0 0 0 227 231 0 132 132 0 151 156 0 142 131 128 255 252 49 175 181 0 255 234 140 218 222 0 251 255 33 74 74 0 94 99 0 107 107 0 143 148 0 189 189 0 87 90 0 251 255 8 247 255 16 167 173 0 206 99 132 156 74 99 206 66 107 115 16 49 255 16 90 189 0 57 132 16 49 206 0 57 198 123 140 255 49 123 255 33 99 222 0 66 99 0 24 239 0 66 255 0 74 255 140 214 148 0 41 140 49 74 198 123 148 255 0 82 90 0 24 132 0 41 206 99 123 156 0 41 198 0 57 74 0 24 255 16 82 214 0 66 90 0 33 189 0 49 107 0 33 206 16 74 214 8 66 173 0 49 115 0 33 181 0 49 74 0 16 255 8 82 231 0 66]
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   468
            mask:((ImageMask width:16 height:16) bits:(ByteArray fromPackedString:'@@@@@@@@A>@O<A?8G? _>A?8G? _>@?0A>@@@@@@@@@b'); yourself); yourself]
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   469
!
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   470
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   471
imageFor_classes
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   472
    <resource: #image>
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   473
    "This resource specification was automatically generated
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   474
     by the ImageEditor of ST/X."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   475
    "Do not manually edit this!! If it is corrupted,
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   476
     the ImageEditor may not be able to read the specification."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   477
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   478
     self imageFor_classes inspect
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   479
     ImageEditor openOnClass:self andSelector:#imageFor_classes
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   480
     Icon flushCachedIcons"
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   481
    
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   482
    ^ Icon constantNamed:'InspectorView class imageFor_classes'
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   483
        ifAbsentPut:[
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   484
            (Depth8Image new)
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   485
                width:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   486
                height:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   487
                photometric:(#palette);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   488
                bitsPerSample:(#[ 8 ]);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   489
                samplesPerPixel:(1);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   490
                bits:(ByteArray 
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   491
                            fromPackedString:'
11517
bf056eb85f41 changed:
Claus Gittinger <cg@exept.de>
parents: 11514
diff changeset
   492
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@6LD5MLCX@@@@@@@@@@@ADRTEAOC-FQ@@@@@@@@@A@MT 2M3\;
bf056eb85f41 changed:
Claus Gittinger <cg@exept.de>
parents: 11514
diff changeset
   493
Q$U@@@@@@@@@LD!!HRD!!HRTX>M@@@@@@@@D4<RC\8S$%FP4H@@@@@@@AMNS$9MST3P3)B@@@@@@@@LCL3R4,3P4)GLP@@@@@@@D@>O#8>R$)JQ2<@@@@@@@@@
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   494
K$1LP$]GQ3<@@@@@@@@@@@A@LTIBLR<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a');
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   495
                colorMapFromArray:#[ 226 226 226 176 176 176 155 155 155 169 169 169 152 152 152 164 164 164 149 149 149 192 192 192 240 240 240 255 255 255 202 202 202 201 201 201 151 151 151 162 162 162 148 148 148 158 158 158 173 173 173 154 154 154 167 167 167 150 150 150 160 160 160 180 180 180 156 156 156 170 170 170 153 153 153 165 165 165 183 183 183 0 0 0 0 215 231 0 125 132 0 143 156 128 142 132 49 248 255 0 166 181 140 255 240 0 207 222 33 240 255 0 70 74 0 89 99 0 102 107 0 136 148 0 180 189 0 82 90 8 239 255 16 235 255 0 158 173 127 206 99 95 156 74 100 206 66 44 115 16 78 255 16 48 189 0 43 132 16 47 206 0 136 198 123 113 255 49 88 255 33 55 222 0 19 99 0 54 239 0 61 255 0 208 255 140 34 148 0 69 140 49 144 198 123 69 255 0 19 90 0 34 132 0 118 206 99 33 156 0 47 198 0 20 74 0 70 255 16 55 214 0 28 90 0 40 189 0 28 107 0 64 206 16 56 214 8 ];
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   496
                mask:((ImageMask new)
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   497
                            width:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   498
                            height:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   499
                            bits:(ByteArray 
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   500
                                        fromPackedString:'@@@@@@@@A>@O<A?8G? _>A?8G? _>@?0A>@@@@@@@@@b');
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   501
                            yourself);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   502
                yourself
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   503
        ]
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   504
!
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   505
15613
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   506
imageFor_collectionHolder
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   507
    "This resource specification was automatically generated
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   508
     by the ImageEditor of ST/X."
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   509
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   510
    "Do not manually edit this!! If it is corrupted,
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   511
     the ImageEditor may not be able to read the specification."
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   512
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   513
    "
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   514
     self imageFor_collectionHolder inspect
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   515
     ImageEditor openOnClass:self andSelector:#imageFor_collectionHolder
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   516
     Icon flushCachedIcons
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   517
    "
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   518
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   519
    <resource: #image>
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   520
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   521
    ^Icon
17477
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   522
        constantNamed:'InspectorView class imageFor_collectionHolder'
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   523
        ifAbsentPut:[(Depth4Image width:16 height:16) bits:(ByteArray fromPackedString:'
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   524
&Y$"H"H"&Y&Y&RH"H"JY&Y$"H"H"H"JY&RH U&TBH)&YH!!1DQLD"&Y$!!1DQF#AJY&RWDQDZL()&YI,QDZH12&Y$&1L!!,+GJY&RWH"H)<()&YH\"H];02&Y$"
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   525
GG];02JY&RH!!)7(2H)&YH"H"H"H"&Y&YH"H"H)&Y&Y$"H"H"&Y$b')
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   526
            colorMapFromArray:#[198 123 148 218 112 214 226 226 226 156 74 99 255 0 255 186 85 211 208 32 144 115 16 49 199 21 133 60 59 55 140 49 74 90 0 33 255 255 255]
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   527
            mask:((ImageMask width:16 height:16) bits:(ByteArray fromPackedString:'<@?0C<@C1>OO<=?;7?/_>=?;7?/_><?31>O@@?@O<@<b'); yourself); yourself]
15613
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   528
!
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   529
11514
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   530
imageFor_collections
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   531
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   532
     by the ImageEditor of ST/X."
17477
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   533
11514
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   534
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   535
     the ImageEditor may not be able to read the specification."
17477
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   536
11514
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   537
    "
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   538
     self imageFor_collections inspect
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   539
     ImageEditor openOnClass:self andSelector:#imageFor_collections
17477
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   540
     Icon flushCachedIcons
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   541
    "
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   542
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   543
    <resource: #image>
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   544
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   545
    ^Icon
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   546
        constantNamed:'InspectorView class imageFor_collections'
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   547
        ifAbsentPut:[(Depth4Image width:16 height:16) bits:(ByteArray fromPackedString:'
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   548
H"H"H"H"H"H"H"H"H"H"H"H"H"H"H"H"H"H&*H)"H"H"H!!@3L0D"H"H!!@3L8PAH"H"(CL3!!@\"H"J@L3!!DARH"H(@0R@\EH"H"(DQD]P\"H"HPQDU[BRH"H"
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   549
DEU[BRH"H"H!!]U^RH"H"H"H"H"H"H"H"H"H"H"H"H"H"H"H"H"Hb')
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   550
            colorMapFromArray:#[255 255 255 218 112 214 226 226 226 255 0 255 199 21 133 115 16 49 198 123 148 140 49 74 208 32 144 156 74 99 186 85 211 90 0 33]
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   551
            mask:((ImageMask width:16 height:16) bits:(ByteArray fromPackedString:'@@@@@@@@A>@O<A?8G? _>A?8G? _>@?0A>@@@@@@@@@b'); yourself); yourself]
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   552
!
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   553
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   554
imageFor_collections_empty
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   555
    "This resource specification was automatically generated
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   556
     by the ImageEditor of ST/X."
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   557
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   558
    "Do not manually edit this!! If it is corrupted,
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   559
     the ImageEditor may not be able to read the specification."
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   560
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   561
    "
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   562
     self imageFor_collections_empty inspect
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   563
     ImageEditor openOnClass:self andSelector:#imageFor_collections_empty
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   564
     Icon flushCachedIcons
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   565
    "
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   566
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   567
    <resource: #image>
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   568
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   569
    ^Icon
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   570
        constantNamed:'InspectorView class imageFor_collections_empty'
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   571
        ifAbsentPut:[(Depth4Image width:16 height:16) bits:(ByteArray fromPackedString:'
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   572
H"H"H"H"H"H"H"H"H"H"H"H"H"H"H"H"H"H&*H)"H"H"H!!@3L0D"H"H!!@3L8PAH"H"(CL3!!@\"H"J@L3!!DARH"H(@3RD\EH"H"(DQD]P\"H"HPQDU[BRH"H"
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   573
DEU[BRH"H"H!!]U^RH"H"H"H"H"H"H"H"H"H"H"H"H"H"H"H"H"Hb')
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   574
            colorMapFromArray:#[255 255 255 218 112 214 226 226 226 255 0 255 199 21 133 115 16 49 198 123 148 140 49 74 208 32 144 156 74 99 186 85 211 90 0 33]
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   575
            mask:((ImageMask width:16 height:16) bits:(ByteArray fromPackedString:'@@@@@@@@A>@O<A?8G? _>A?8G? _>@?0A>@@@@@@@@@b'); yourself); yourself]
11514
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   576
!
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   577
11768
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   578
imageFor_colors
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   579
    <resource: #image>
11768
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   580
    "This resource specification was automatically generated
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   581
     by the ImageEditor of ST/X."
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   582
    "Do not manually edit this!! If it is corrupted,
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   583
     the ImageEditor may not be able to read the specification."
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   584
    "
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   585
     self imageFor_colors inspect
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   586
     ImageEditor openOnClass:self andSelector:#imageFor_colors
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   587
     Icon flushCachedIcons"
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   588
    
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   589
    ^ Icon constantNamed:'InspectorView imageFor_colors'
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   590
        ifAbsentPut:[
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   591
            (Depth8Image new)
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   592
                width:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   593
                height:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   594
                photometric:(#palette);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   595
                bitsPerSample:(#[ 8 ]);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   596
                samplesPerPixel:(1);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   597
                bits:(ByteArray 
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   598
                            fromPackedString:'
11768
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   599
GQ4]GQ4]GQ4]GQ4]GQ4]GQ4]GQ4]GQ4]GQ4]GQ4]GQ4]GQ4]GQ4]GQ4]GQ4]GQ4]GQ4]GQ4@N#(:N @]GQ4]GQ4]GQ4@N#(:N#(*M!!4]GQ4]GQ4@@C(:N#(:
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   600
J"(6@A4]GQ4]@@@@N!!HRD"(*J#P]GQ4]GP@@@AHRD!!H2L#D1GQ4]GQ4@@@@RD!!HRLB4,KA4]GQ4]@@@@D!!HRH"T*J"(]GQ4]GP@@@@,IH"H"H"(]GQ4]GQ4]
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   601
@@@KDRH%H"\]GQ4]GQ4]GQ4@BP$ZH @]GQ4]GQ4]GQ4]GQ4]GQ4]GQ4]GQ4]GQ4]GQ4]GQ4]GQ4]GQ4]GQ4]GQ4]GQ4]GQ4]GQ4]GP@a');
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   602
                colorMapFromArray:#[ 0 58 255 0 135 255 0 230 255 0 252 254 0 255 127 0 255 175 0 255 244 0 255 249 63 243 47 115 82 16 125 141 170 128 32 210 156 131 74 158 160 171 161 153 136 180 196 100 191 187 200 192 22 179 195 255 19 198 173 123 198 181 123 206 165 66 206 173 99 206 182 99 207 206 217 216 179 229 219 0 153 223 255 19 225 255 19 226 226 226 229 255 19 246 223 40 247 246 216 248 221 223 250 0 86 252 233 208 254 255 25 255 59 19 255 98 19 255 115 19 255 127 26 255 137 26 255 167 32 255 185 155 255 186 0 255 188 0 255 189 16 255 193 19 255 197 19 255 200 19 255 206 19 255 210 26 255 213 26 255 236 19 255 248 0 255 255 0 255 255 19 255 255 255 0 206 0 ];
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   603
                mask:((ImageMask new)
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   604
                            width:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   605
                            height:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   606
                            bits:(ByteArray 
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   607
                                        fromPackedString:'@@@@@@@@@<@G8@?0G? _>A?8G? O<@_ @<@@@@@@@@@b');
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   608
                            yourself);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   609
                yourself
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   610
        ]
11768
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   611
!
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   612
11514
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   613
imageFor_dictionaries
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   614
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   615
     by the ImageEditor of ST/X."
17477
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   616
11514
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   617
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   618
     the ImageEditor may not be able to read the specification."
17477
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   619
11514
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   620
    "
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   621
     self imageFor_dictionaries inspect
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   622
     ImageEditor openOnClass:self andSelector:#imageFor_dictionaries
17477
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   623
     Icon flushCachedIcons
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   624
    "
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   625
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   626
    <resource: #image>
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   627
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   628
    ^Icon
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   629
        constantNamed:'InspectorView class imageFor_dictionaries'
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   630
        ifAbsentPut:[(Depth4Image width:16 height:16) bits:(ByteArray fromPackedString:'
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   631
L3L3L3L3L3L3L3L3L3L3L3L3L3L3L3L3L3L0Y7XCL3L3L2]UUYH3L3L2]QU]FRL3L3YU4U^Y(3L3M=7]/Q*CL3L7]=FY*HL3L3ZYFY4\(3L3L)&Z"L1CL3L3
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   632
JH#MECL3L3L2*H)CL3L3L3L3L3L3L3L3L3L3L3L3L3L3L3L3L3Lb')
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   633
            colorMapFromArray:#[198 123 148 240 240 240 218 112 214 226 226 226 156 74 99 255 0 255 186 85 211 208 32 144 115 16 49 199 21 133 140 49 74 176 176 176 90 0 33 255 255 255]
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   634
            mask:((ImageMask width:16 height:16) bits:(ByteArray fromPackedString:'@@@@@@@@A>@O<A?8G? _>A?8G? _>@?0A>@@@@@@@@@b'); yourself); yourself]
11514
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   635
!
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   636
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   637
imageFor_false
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   638
    <resource: #image>
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   639
    "This resource specification was automatically generated
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   640
     by the ImageEditor of ST/X."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   641
    "Do not manually edit this!! If it is corrupted,
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   642
     the ImageEditor may not be able to read the specification."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   643
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   644
     self imageFor_false inspect
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   645
     ImageEditor openOnClass:self andSelector:#imageFor_false
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   646
     Icon flushCachedIcons"
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   647
    
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   648
    ^ Icon constantNamed:'InspectorView imageFor_false'
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   649
        ifAbsentPut:[
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   650
            (Depth8Image new)
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   651
                width:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   652
                height:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   653
                photometric:(#palette);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   654
                bitsPerSample:(#[ 8 ]);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   655
                samplesPerPixel:(1);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   656
                bits:(ByteArray 
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   657
                            fromPackedString:'
11548
9eab7ffc6c78 changed:
Claus Gittinger <cg@exept.de>
parents: 11547
diff changeset
   658
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@A@ LC@ D@@@@@@@@@@@@DAPXFA0 IA@@@@@@@@@@JB0XLC@0L
9eab7ffc6c78 changed:
Claus Gittinger <cg@exept.de>
parents: 11547
diff changeset
   659
CP8J@@@@@@@@@ XOCA@PDA@QD @@@@@@@@LGC00PD1PNEQX@@@@@@@@CE1 LC@0MEQ$V@@@@@@@@@!!PTCA@PDAXZF0@@@@@@@@(QC 0PGA$]F!!8@@@@@@@@@
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   660
G10\GA(ZF"@@@@@@@@@@@@@JF1XVF18@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a');
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   661
                colorMapFromArray:#[ 0 0 0 200 120 145 208 64 109 208 16 96 208 96 128 208 0 87 248 0 103 248 0 88 240 0 85 200 0 68 200 120 146 208 0 72 250 255 248 184 192 189 160 0 52 248 8 100 135 144 128 144 0 60 128 16 63 208 8 83 184 0 77 128 0 53 88 0 37 216 0 75 224 0 78 96 0 25 64 0 27 120 16 59 120 0 50 64 0 12 160 72 102 208 96 143 136 32 60 ];
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   662
                mask:((ImageMask new)
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   663
                            width:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   664
                            height:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   665
                            bits:(ByteArray 
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   666
                                        fromPackedString:'@@@@@@@@A>@O<A?8G? _>A?8G? _>@?0A>@@@@@@@@@b');
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   667
                            yourself);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   668
                yourself
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   669
        ]
13246
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   670
!
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   671
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   672
imageFor_falseHolder
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   673
    <resource: #image>
13246
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   674
    "This resource specification was automatically generated
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   675
     by the ImageEditor of ST/X."
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   676
    "Do not manually edit this!! If it is corrupted,
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   677
     the ImageEditor may not be able to read the specification."
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   678
    "
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   679
     self imageFor_falseHolder inspect
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   680
     ImageEditor openOnClass:self andSelector:#imageFor_falseHolder
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   681
     Icon flushCachedIcons"
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   682
    
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   683
    ^ Icon constantNamed:'InspectorView imageFor_falseHolder'
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   684
        ifAbsentPut:[
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   685
            (Depth8Image new)
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   686
                width:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   687
                height:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   688
                photometric:(#palette);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   689
                bitsPerSample:(#[ 8 ]);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   690
                samplesPerPixel:(1);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   691
                bits:(ByteArray 
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   692
                            fromPackedString:'
13246
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   693
H"H"H @@@@@@@@@@H"H"H"H"H"H@@@@@@@@@@BH"H"H"H @@@@@@@@@@@@@@@BH"H"H@@@@A@ LC@ D@@@@"H"H"@@@DAPXFA0 IA@@@H"H"H @JB0XLC@0L
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   694
CP8J@BH"H"H@@ XOCA@PDA@QD @"H"H"@@LGC00PD1PNEQX@H"H"H @CE1 LC@0MEQ$V@BH"H"H@@!!PTCA@PDAXZF0@"H"H"@@(QC 0PGA$]F!!8@H"H"H @@
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   695
G10\GA(ZF"@@@BH"H"H@@@@JF1XVF18@@@@"H"H"@@@@@@@@@@@@@@@@H"H"H"H"@@@@@@@@@@@"H"H"H"H"H @@@@@@@@@@H"H"H @a');
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   696
                colorMapFromArray:#[ 0 0 0 200 120 145 208 64 109 208 16 96 208 96 128 208 0 87 248 0 103 248 0 88 240 0 85 200 0 68 200 120 146 208 0 72 250 255 248 184 192 189 160 0 52 248 8 100 135 144 128 144 0 60 128 16 63 208 8 83 184 0 77 128 0 53 88 0 37 216 0 75 224 0 78 96 0 25 64 0 27 120 16 59 120 0 50 64 0 12 160 72 102 208 96 143 136 32 60 226 226 226 60 59 55 ];
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   697
                mask:((ImageMask new)
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   698
                            width:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   699
                            height:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   700
                            bits:(ByteArray 
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   701
                                        fromPackedString:'<@?0C<@C1>OO<=?;7?/_>=?;7?/_><?31>O@@?@O<@<b');
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   702
                            yourself);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   703
                yourself
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   704
        ]
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   705
!
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   706
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   707
imageFor_floats
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   708
    "This resource specification was automatically generated
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   709
     by the ImageEditor of ST/X."
15613
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   710
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   711
    "Do not manually edit this!! If it is corrupted,
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   712
     the ImageEditor may not be able to read the specification."
15613
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   713
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   714
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   715
     self imageFor_floats inspect
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   716
     ImageEditor openOnClass:self andSelector:#imageFor_floats
15613
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   717
     Icon flushCachedIcons
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   718
    "
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   719
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   720
    <resource: #image>
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   721
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   722
    ^Icon
18439
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   723
        constantNamed:'InspectorView class imageFor_floats'
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   724
        ifAbsentPut:[(Depth8Image width:16 height:16) bits:(ByteArray fromPackedString:'
11517
bf056eb85f41 changed:
Claus Gittinger <cg@exept.de>
parents: 11514
diff changeset
   725
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@6LD5MLCX@@@@@@@@@@@ADRTEAOC-FQ@@@@@@@@@A@MT 2BS\;
18439
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   726
Q$U@@@@@@@@@LD!!HBP%HRTX>M@@@@@@@@D4<BP$IS#MFP4H@@@@@@@AMNS$9BSUCP3)B@@@@@@@@LCL3R0%EBP%GLP@@@@@@@D@>O $IQP$IQ2<@@@@@@@@@
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   727
K$1LP$]GQ3<@@@@@@@@@@@A@LTIBLR<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a')
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   728
            colorMapFromArray:#[226 226 226 176 176 176 155 155 155 169 169 169 152 152 152 164 164 164 149 149 149 192 192 192 240 240 240 255 255 255 202 202 202 201 201 201 151 151 151 162 162 162 148 148 148 158 158 158 173 173 173 154 154 154 167 167 167 150 150 150 160 160 160 180 180 180 156 156 156 170 170 170 153 153 153 165 165 165 183 183 183 0 0 0 0 231 4 0 132 0 0 156 5 139 142 128 52 255 49 0 181 6 161 255 140 0 222 4 33 255 37 0 74 0 0 99 5 0 107 0 0 148 5 0 189 0 0 90 3 8 255 12 16 255 24 0 173 6 206 173 99 156 131 74 206 165 66 115 82 16 255 181 16 189 132 0 132 99 16 206 149 0 198 181 123 255 181 49 255 189 33 222 156 0 99 75 0 239 173 0 255 181 0 255 181 140 148 107 0 140 115 49 198 173 123 255 173 0 90 66 0 132 91 0 206 182 99 156 115 0 198 141 0 74 50 0 255 189 16 214 148 0 90 57 0 189 140 0 107 74 0 206 148 16 214 156 8]
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   729
            mask:((ImageMask width:16 height:16) bits:(ByteArray fromPackedString:'@@@@@@@@A>@O<A?8G? _>A?8G? _>@?0A>@@@@@@@@@b'); yourself); yourself]
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   730
!
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   731
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   732
imageFor_fractions
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   733
    "This resource specification was automatically generated
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   734
     by the ImageEditor of ST/X."
17477
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   735
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   736
    "Do not manually edit this!! If it is corrupted,
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   737
     the ImageEditor may not be able to read the specification."
17477
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   738
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   739
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   740
     self imageFor_fractions inspect
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   741
     ImageEditor openOnClass:self andSelector:#imageFor_fractions
17477
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   742
     Icon flushCachedIcons
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   743
    "
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   744
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   745
    <resource: #image>
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   746
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   747
    ^Icon
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   748
        constantNamed:'InspectorView class imageFor_fractions'
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   749
        ifAbsentPut:[(Depth8Image width:16 height:16) bits:(ByteArray fromPackedString:'
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   750
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@6LD5MLCX@@@@@@@@@@@ADRTEABS-FQ@@@@@@@@@A@MSH2BP$7
18439
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   751
LTY@@@@@@@@@LCH2L#HIS#D1M@@@@@@@@D4<OC0<PCL1LTH@@@@@@@AML0$IBP$IBP%B@@@@@@@@LCL3L0$3BT\1LP@@@@@@@D@>L3L3BT]GQ2<@@@@@@@@@
17477
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   752
K$03BP$IQ3<@@@@@@@@@@@A@LTIBLR<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a')
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   753
            colorMapFromArray:#[226 226 226 176 176 176 155 155 155 169 169 169 152 152 152 164 164 164 149 149 149 192 192 192 240 240 240 255 255 255 202 202 202 201 201 201 151 151 151 162 162 162 148 148 148 158 158 158 173 173 173 154 154 154 167 167 167 150 150 150 160 160 160 180 180 180 156 156 156 170 170 170 153 153 153 165 165 165 183 183 183 0 0 0 0 231 4 0 132 0 0 156 5 139 142 128 52 255 49 0 181 6 161 255 140 0 222 4 33 255 37 0 74 0 0 99 5 0 107 0 0 148 5 0 189 0 0 90 3 8 255 12 16 255 24 0 173 6 206 173 99 156 131 74 206 165 66 115 82 16 255 181 16 189 132 0 132 99 16 206 149 0 198 181 123 255 181 49 255 189 33 222 156 0 99 75 0 239 173 0 255 181 0 255 181 140 148 107 0 140 115 49 198 173 123 255 173 0 90 66 0 132 91 0 206 182 99 156 115 0 198 141 0 74 50 0 255 189 16 214 148 0 90 57 0 189 140 0 107 74 0 206 148 16 214 156 8]
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
   754
            mask:((ImageMask width:16 height:16) bits:(ByteArray fromPackedString:'@@@@@@@@A>@O<A?8G? _>A?8G? _>@?0A>@@@@@@@@@b'); yourself); yourself]
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   755
!
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   756
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   757
imageFor_integers
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   758
    "This resource specification was automatically generated
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   759
     by the ImageEditor of ST/X."
18439
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   760
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   761
    "Do not manually edit this!! If it is corrupted,
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   762
     the ImageEditor may not be able to read the specification."
18439
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   763
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   764
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   765
     self imageFor_integers inspect
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   766
     ImageEditor openOnClass:self andSelector:#imageFor_integers
18439
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   767
     Icon flushCachedIcons
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   768
    "
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   769
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   770
    <resource: #image>
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   771
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   772
    ^Icon
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   773
        constantNamed:'InspectorView class imageFor_integers'
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   774
        ifAbsentPut:[(Depth8Image width:16 height:16) bits:(ByteArray fromPackedString:'
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   775
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@6LD5MLCX@@@@@@@@@@@ADRTEAOC-FQ@@@@@@@@@A@MT 2L $;
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   776
Q$U@@@@@@@@@LD!!HR@$IRTX>M@@@@@@@@D4<R@$IBSMFP4H@@@@@@@AMNS$9NP%CP3)B@@@@@@@@LCL3R4,IP4)GLP@@@@@@@D@>O$@IBP%JQ2<@@@@@@@@@
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   777
K$1LP$]GQ3<@@@@@@@@@@@A@LTIBLR<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a')
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   778
            colorMapFromArray:#[226 226 226 176 176 176 155 155 155 169 169 169 152 152 152 164 164 164 149 149 149 192 192 192 240 240 240 255 255 255 202 202 202 201 201 201 151 151 151 162 162 162 148 148 148 158 158 158 173 173 173 154 154 154 167 167 167 150 150 150 160 160 160 180 180 180 156 156 156 170 170 170 153 153 153 165 165 165 183 183 183 0 0 0 0 231 4 0 132 0 0 156 5 139 142 128 52 255 49 0 181 6 161 255 140 0 222 4 33 255 37 0 74 0 0 99 5 0 107 0 0 148 5 0 189 0 0 90 3 8 255 12 16 255 24 0 173 6 206 173 99 156 131 74 206 165 66 115 82 16 255 181 16 189 132 0 132 99 16 206 149 0 198 181 123 255 181 49 255 189 33 222 156 0 99 75 0 239 173 0 255 181 0 255 181 140 148 107 0 140 115 49 198 173 123 255 173 0 90 66 0 132 91 0 206 182 99 156 115 0 198 141 0 74 50 0 255 189 16 214 148 0 90 57 0 189 140 0 107 74 0 206 148 16]
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   779
            mask:((ImageMask width:16 height:16) bits:(ByteArray fromPackedString:'@@@@@@@@A>@O<A?8G? _>A?8G? _>@?0A>@@@@@@@@@b'); yourself); yourself]
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   780
!
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   781
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   782
imageFor_nil
15610
e99baf15ad02 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15254
diff changeset
   783
    <resource: #programImage>
e99baf15ad02 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15254
diff changeset
   784
12063
Claus Gittinger <cg@exept.de>
parents: 12031
diff changeset
   785
    ^ self imageFor_nil2
Claus Gittinger <cg@exept.de>
parents: 12031
diff changeset
   786
Claus Gittinger <cg@exept.de>
parents: 12031
diff changeset
   787
    "Modified: / 21-11-2012 / 14:24:21 / cg"
Claus Gittinger <cg@exept.de>
parents: 12031
diff changeset
   788
!
Claus Gittinger <cg@exept.de>
parents: 12031
diff changeset
   789
Claus Gittinger <cg@exept.de>
parents: 12031
diff changeset
   790
imageFor_nil1
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   791
    <resource: #image>
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   792
    "This resource specification was automatically generated
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   793
     by the ImageEditor of ST/X."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   794
    "Do not manually edit this!! If it is corrupted,
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   795
     the ImageEditor may not be able to read the specification."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   796
    "
12063
Claus Gittinger <cg@exept.de>
parents: 12031
diff changeset
   797
     self imageFor_nil1 inspect
Claus Gittinger <cg@exept.de>
parents: 12031
diff changeset
   798
     ImageEditor openOnClass:self andSelector:#imageFor_nil1
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   799
     Icon flushCachedIcons"
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   800
    
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   801
    ^ Icon constantNamed:'InspectorView imageFor_nil1'
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   802
        ifAbsentPut:[
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   803
            (Depth8Image new)
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   804
                width:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   805
                height:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   806
                photometric:(#palette);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   807
                bitsPerSample:(#[ 8 ]);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   808
                samplesPerPixel:(1);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   809
                bits:(ByteArray 
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   810
                            fromPackedString:'
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   811
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@KEP4MEP,@@@@@@@@@@@@GEA$YAP4OA0@@@@@@@@@JEA$WF!!HM
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   812
C1 J@@@@@@@@EQ$R@@ CEAXDDP@@@@@@@@4ED!!(ACQXXC@X@@@@@@@@ME@4TEAXXCALF@@@@@@@@EQXVE HXC@XNF@@@@@@@@@(DF@PLCALNC!!@@@@@@@@@@
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   813
A1LSA 8NC 4@@@@@@@@@@@@JF@XFFA@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a');
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   814
                colorMapFromArray:#[ 226 226 226 176 176 176 155 155 155 169 169 169 152 152 152 164 164 164 149 149 149 192 192 192 240 240 240 255 255 255 202 202 202 201 201 201 151 151 151 162 162 162 148 148 148 158 158 158 173 173 173 154 154 154 167 167 167 150 150 150 160 160 160 180 180 180 156 156 156 170 170 170 153 153 153 165 165 165 183 183 183 ];
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   815
                mask:((ImageMask new)
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   816
                            width:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   817
                            height:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   818
                            bits:(ByteArray 
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   819
                                        fromPackedString:'@@@@@@@@A>@O<A?8G? _>A?8G? _>@?0A>@@@@@@@@@b');
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   820
                            yourself);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   821
                yourself
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   822
        ]
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   823
!
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   824
12063
Claus Gittinger <cg@exept.de>
parents: 12031
diff changeset
   825
imageFor_nil2
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   826
    <resource: #image>
12063
Claus Gittinger <cg@exept.de>
parents: 12031
diff changeset
   827
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 12031
diff changeset
   828
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 12031
diff changeset
   829
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 12031
diff changeset
   830
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 12031
diff changeset
   831
    "
Claus Gittinger <cg@exept.de>
parents: 12031
diff changeset
   832
     self imageFor_nil2 inspect
Claus Gittinger <cg@exept.de>
parents: 12031
diff changeset
   833
     ImageEditor openOnClass:self andSelector:#imageFor_nil2
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   834
     Icon flushCachedIcons"
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   835
    
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   836
    ^ Icon constantNamed:'InspectorView imageFor_nil2'
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   837
        ifAbsentPut:[
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   838
            (Depth4Image new)
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   839
                width:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   840
                height:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   841
                photometric:(#palette);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   842
                bitsPerSample:(#[ 4 ]);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   843
                samplesPerPixel:(1);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   844
                bits:(ByteArray 
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   845
                            fromPackedString:'
13246
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   846
"H"H"H"H"H"H"H"H"H"H"H"H"H"H"H"H"H"G]7]8"H"H"GQDSLBH"H"GQL3L2P"H"H]L3L3FBH"H!!43L3LTH"H"GSL3L0 "H"H_L3L11BH"H!!<3L1:DH"H"H
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   847
B*,QDH"H"H"@@@@H"H"H"H"H"H"H"H"H"H"H"H"H"H"H"H"H"H b');
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   848
                colorMapFromArray:#[ 0 0 0 74 74 0 94 99 0 240 240 240 255 255 255 132 132 0 143 148 0 142 131 128 226 226 226 151 156 0 107 107 0 87 90 0 230 230 230 ];
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   849
                mask:((ImageMask new)
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   850
                            width:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   851
                            height:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   852
                            bits:(ByteArray 
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   853
                                        fromPackedString:'@@@@@@@@A>@O<A?8G? _>A?8G? _>@?0A>@@@@@@@@@b');
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   854
                            yourself);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   855
                yourself
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   856
        ]
13246
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   857
!
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   858
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   859
imageFor_nilHolder
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   860
    <resource: #image>
13246
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   861
    "This resource specification was automatically generated
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   862
     by the ImageEditor of ST/X."
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   863
    "Do not manually edit this!! If it is corrupted,
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   864
     the ImageEditor may not be able to read the specification."
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   865
    "
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   866
     self imageFor_nilHolder inspect
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   867
     ImageEditor openOnClass:self andSelector:#imageFor_nilHolder
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   868
     Icon flushCachedIcons"
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   869
    
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   870
    ^ Icon constantNamed:'InspectorView imageFor_nilHolder'
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   871
        ifAbsentPut:[
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   872
            (Depth4Image new)
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   873
                width:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   874
                height:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   875
                photometric:(#palette);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   876
                bitsPerSample:(#[ 4 ]);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   877
                samplesPerPixel:(1);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   878
                bits:(ByteArray 
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   879
                            fromPackedString:'
13246
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   880
3L2H"H"H3L3L3H"H"H#L3L2H"H"H"H#L3H"G]7]8"L3L"GQDS]BH3L2GQM7]6P#L3H]M7]7VBL3L!!47]7]TH3L2GS]7]4 #L3H_]7]51BL3L!!=7]5:DH3L2H
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   881
B*,QDH#L3H"@@@@H"L3L"H"H"H"H3L3L"H"H"L3L3L2H"H"H3L0b');
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   882
                colorMapFromArray:#[ 0 0 0 74 74 0 94 99 0 240 240 240 255 255 255 132 132 0 143 148 0 142 131 128 226 226 226 151 156 0 107 107 0 87 90 0 60 59 55 230 230 230 ];
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   883
                mask:((ImageMask new)
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   884
                            width:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   885
                            height:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   886
                            bits:(ByteArray 
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   887
                                        fromPackedString:'<@?0C<@C1>OO<=?;7?/_>=?;7?/_><?31>O@@?@O<@<b');
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   888
                            yourself);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   889
                yourself
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   890
        ]
12063
Claus Gittinger <cg@exept.de>
parents: 12031
diff changeset
   891
!
Claus Gittinger <cg@exept.de>
parents: 12031
diff changeset
   892
15613
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   893
imageFor_numberHolder
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   894
    "This resource specification was automatically generated
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   895
     by the ImageEditor of ST/X."
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   896
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   897
    "Do not manually edit this!! If it is corrupted,
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   898
     the ImageEditor may not be able to read the specification."
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   899
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   900
    "
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   901
     self imageFor_numberHolder inspect
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   902
     ImageEditor openOnClass:self andSelector:#imageFor_numberHolder
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   903
     Icon flushCachedIcons
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   904
    "
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   905
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   906
    <resource: #image>
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   907
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   908
    ^Icon
18439
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   909
        constantNamed:'InspectorView class imageFor_numberHolder'
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   910
        ifAbsentPut:[(Depth8Image width:16 height:16) bits:(ByteArray fromPackedString:'
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   911
C@0LC@ HB@ HB@ HC@0LC@0LC@0HB@ HB@ HB@0LC@0LC@ HB@ HB@ HB@ HB@0LC@0HB@ VDB,+DAXHB@ LC@0LB@ "I1<_F1($H  HC@0LC@ ^ERXRD PZ
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   912
IBL^B@0LC@0HDBX&I PDI2P\E@ LC@0LBB,[I!!\WAAL$HR@HC@0LC@ +FA XF@P!!HQ$ B@0LC@0HDALSJR$DHR %DP LC@0LBA8\GA0DA@P(IP<HC@0LC@ H
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   913
C"(*HBT%IQ4HB@0LC@0HB@ ^DR@ DP<HB@ LC@0LB@ HB@ HB@ HB@ HC@0LC@0LB@ HB@ HB@ LC@0LC@0LC@ HB@ HB@ HC@0LC@@a')
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   914
            colorMapFromArray:#[0 0 0 74 74 0 94 99 0 240 240 240 255 255 255 132 132 0 143 148 0 142 131 128 226 226 226 151 156 0 107 107 0 87 90 0 60 59 55 230 230 230 206 173 99 156 131 74 206 165 66 115 82 16 255 181 16 189 132 0 132 99 16 206 149 0 198 181 123 255 181 49 222 156 0 99 75 0 239 173 0 255 181 0 148 107 0 140 115 49 198 173 123 255 173 0 90 66 0 132 91 0 206 182 99 156 115 0 198 141 0 74 50 0 255 189 16 214 148 0 90 57 0 189 140 0 107 74 0 206 148 16]
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   915
            mask:((ImageMask width:16 height:16) bits:(ByteArray fromPackedString:'<@?0C<@C1>OO<=?;7?/_>=?;7?/_><?31>O@@?@O<@<b'); yourself); yourself]
15613
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   916
!
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
   917
18560
90b5e8e89f57 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 18558
diff changeset
   918
imageFor_numbers
90b5e8e89f57 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 18558
diff changeset
   919
    ^ self imageFor_integers
90b5e8e89f57 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 18558
diff changeset
   920
90b5e8e89f57 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 18558
diff changeset
   921
    "Created: / 25-01-2019 / 11:40:38 / Claus Gittinger"
90b5e8e89f57 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 18558
diff changeset
   922
!
90b5e8e89f57 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 18558
diff changeset
   923
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   924
imageFor_others
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   925
    <resource: #image>
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   926
    "This resource specification was automatically generated
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   927
     by the ImageEditor of ST/X."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   928
    "Do not manually edit this!! If it is corrupted,
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   929
     the ImageEditor may not be able to read the specification."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   930
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   931
     self imageFor_others inspect
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   932
     ImageEditor openOnClass:self andSelector:#imageFor_others
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   933
     Icon flushCachedIcons"
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   934
    
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   935
    ^ Icon constantNamed:'InspectorView imageFor_others'
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   936
        ifAbsentPut:[
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   937
            (Depth4Image new)
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   938
                width:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   939
                height:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   940
                photometric:(#palette);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   941
                bitsPerSample:(#[ 4 ]);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   942
                samplesPerPixel:(1);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   943
                bits:(ByteArray 
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   944
                            fromPackedString:'
13246
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   945
.;.;.;.;.;.;.;.;.;.;.;.;.;.;.;.;.;.5UUU[.;.;.5****B;.;.5*-;\) .;.;V-;\6VB;.;-Z;\*ZXK.;.5+Z*J$0.;.;V)**!!QB;.;-Z):]TDK.;.;
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   946
ADHQDK.;.;.0@@@K.;.;.;.;.;.;.;.;.;.;.;.;.;.;.;.;.;,b');
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   947
                colorMapFromArray:#[ 0 0 0 76 74 0 88 90 0 96 100 0 108 108 0 144 132 130 152 156 0 168 174 0 176 182 0 188 190 0 220 222 0 228 226 230 228 232 0 240 240 240 255 252 50 ];
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   948
                mask:((ImageMask new)
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   949
                            width:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   950
                            height:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   951
                            bits:(ByteArray 
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   952
                                        fromPackedString:'@@@@@@@@A>@O<A?8G? _>A?8G? _>@?0A>@@@@@@@@@b');
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   953
                            yourself);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   954
                yourself
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   955
        ]
13246
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   956
!
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   957
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   958
imageFor_othersHolder
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   959
    <resource: #image>
13246
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   960
    "This resource specification was automatically generated
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   961
     by the ImageEditor of ST/X."
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   962
    "Do not manually edit this!! If it is corrupted,
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   963
     the ImageEditor may not be able to read the specification."
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   964
    "
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   965
     self imageFor_othersHolder inspect
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   966
     ImageEditor openOnClass:self andSelector:#imageFor_othersHolder
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   967
     Icon flushCachedIcons"
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   968
    
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   969
    ^ Icon constantNamed:'InspectorView imageFor_othersHolder'
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   970
        ifAbsentPut:[
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   971
            (Depth4Image new)
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   972
                width:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   973
                height:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   974
                photometric:(#palette);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   975
                bitsPerSample:(#[ 4 ]);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   976
                samplesPerPixel:(1);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   977
                bits:(ByteArray 
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   978
                            fromPackedString:'
13246
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
   979
&Y%&Y&Y&&Y&Y&VY&Y&ZY&Y%&Y&Y&Y&ZY&VY#L3L6Y)&YY#DQDQA&&Y%#DX:DGPZY&VLX:D!!]A)&YX1:DEQ4F&Y%#FAGAV0ZY&VLUDQ0?A)&YX1E1\2<F&Y%&
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   980
@"+?<FZY&VY @@@FY)&YY&Y&Y&Y&&Y&YY&Y&Y)&Y&Y%&Y&Y&&Y$b');
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   981
                colorMapFromArray:#[ 0 0 0 220 222 0 108 108 0 144 132 130 228 232 0 188 190 0 228 226 230 168 174 0 240 240 240 60 59 55 88 90 0 96 100 0 176 182 0 152 156 0 255 252 50 76 74 0 ];
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   982
                mask:((ImageMask new)
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   983
                            width:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   984
                            height:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   985
                            bits:(ByteArray 
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   986
                                        fromPackedString:'<@?0C<@C1>OO<=?;7?/_>=?;7?/_><?31>O@@?@O<@<b');
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   987
                            yourself);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   988
                yourself
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
   989
        ]
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   990
!
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   991
18439
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   992
imageFor_proxy
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   993
    "This resource specification was automatically generated
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   994
     by the ImageEditor of ST/X."
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   995
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   996
    "Do not manually edit this!! If it is corrupted,
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   997
     the ImageEditor may not be able to read the specification."
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   998
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
   999
    "
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1000
     self imageFor_proxy inspect
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1001
     ImageEditor openOnClass:self andSelector:#imageFor_proxy
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1002
     Icon flushCachedIcons
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1003
    "
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1004
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1005
    <resource: #image>
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1006
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1007
    ^Icon
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1008
        constantNamed:'InspectorView class imageFor_proxy'
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1009
        ifAbsentPut:[(Depth8Image width:16 height:16) bits:(ByteArray fromPackedString:'
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1010
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BH"H"H @@@@@@@@@@@@@@@"G"D!!GP@@@@@@@@@KEP4MH!!D_HQ,@@@@@@@@GEA$YH!!D!!@1<[@@@@@@@JEA$WF"H!!
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1011
DQ,[F0@@@@@@EQ$R@@ "GBL[DP@@@@@@@@4ED!!(AH!!,[C@X@@@@@@@@ME@4TEAXXCALF@@@@@@@@EQXVE HXC@XNF@@@@@@@@@(DF@PLCALNC!!@@@@@@@@@@
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1012
A1LSA 8NC 4@@@@@@@@@@@@JF@XFFA@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a')
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1013
            colorMapFromArray:#[226 226 226 176 176 176 155 155 155 169 169 169 152 152 152 164 164 164 149 149 149 192 192 192 240 240 240 255 255 255 202 202 202 201 201 201 151 151 151 162 162 162 148 148 148 158 158 158 173 173 173 154 154 154 167 167 167 150 150 150 160 160 160 180 180 180 156 156 156 170 170 170 153 153 153 165 165 165 183 183 183 214 214 214 138 138 138 204 204 204 66 66 66 45 45 45 224 224 224 0 0 0 241 241 241 184 184 184]
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1014
            mask:((ImageMask width:16 height:16) bits:(ByteArray fromPackedString:'@@@@_@A<A?0O?A?<G? _>A?8G? _>@?0A>@@@@@@@@@b'); yourself); yourself]
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1015
!
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1016
11521
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
  1017
imageFor_sequenceableCollections
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
  1018
    "This resource specification was automatically generated
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
  1019
     by the ImageEditor of ST/X."
17477
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  1020
11521
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
  1021
    "Do not manually edit this!! If it is corrupted,
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
  1022
     the ImageEditor may not be able to read the specification."
17477
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  1023
11521
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
  1024
    "
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
  1025
     self imageFor_sequenceableCollections inspect
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
  1026
     ImageEditor openOnClass:self andSelector:#imageFor_sequenceableCollections
17477
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  1027
     Icon flushCachedIcons
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  1028
    "
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  1029
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  1030
    <resource: #image>
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  1031
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  1032
    ^Icon
11521
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
  1033
        constantNamed:'InspectorView class imageFor_sequenceableCollections'
17477
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  1034
        ifAbsentPut:[(Depth4Image width:16 height:16) bits:(ByteArray fromPackedString:'
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  1035
L3L3L3L3L3L3L3L3L3L3L3L3L3L3L3L3L3L0Y7XCL3L3L2]UUYH3L3L2]UU\FRL3L3YUUU^Y(3L3M5UU''A*CL3L7]9&Y*HL3L3ZY&Y0[(3L3L)&Z"K-CL3L3
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  1036
JH"<ECL3L3L2*H)CL3L3L3L3L3L3L3L3L3L3L3L3L3L3L3L3L3Lb')
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  1037
            colorMapFromArray:#[198 123 148 240 240 240 218 112 214 226 226 226 156 74 99 255 0 255 186 85 211 208 32 144 115 16 49 199 21 133 140 49 74 90 0 33 255 255 255]
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  1038
            mask:((ImageMask width:16 height:16) bits:(ByteArray fromPackedString:'@@@@@@@@A>@O<A?8G? _>A?8G? _>@?0A>@@@@@@@@@b'); yourself); yourself]
11521
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
  1039
!
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
  1040
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1041
imageFor_strings
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1042
    <resource: #image>
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1043
    "This resource specification was automatically generated
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1044
     by the ImageEditor of ST/X."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1045
    "Do not manually edit this!! If it is corrupted,
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1046
     the ImageEditor may not be able to read the specification."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1047
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1048
     self imageFor_strings inspect
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1049
     ImageEditor openOnClass:self andSelector:#imageFor_strings
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1050
     Icon flushCachedIcons"
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1051
    
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1052
    ^ Icon constantNamed:'InspectorView class imageFor_strings'
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1053
        ifAbsentPut:[
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1054
            (Depth8Image new)
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1055
                width:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1056
                height:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1057
                photometric:(#palette);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1058
                bitsPerSample:(#[ 8 ]);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1059
                samplesPerPixel:(1);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1060
                bits:(ByteArray 
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1061
                            fromPackedString:'
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1062
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@6LD5MLCX@@@@@@@@@@@ADRTEAOC-FQ@@@@@@@@@A@MTDIM5LI
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1063
BTU@@@@@@@@@LDDIM3]HBP$>M@@@@@@@@D4<BP$8S#LIP4H@@@@@@@AMNP$IMUDIP3)B@@@@@@@@LCL3R4=EP4)GLP@@@@@@@D@>QS9CTC)RQ2<@@@@@@@@@
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1064
K$1LP$]GQ3<@@@@@@@@@@@A@LTIBLR<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a');
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1065
                colorMapFromArray:#[ 226 226 226 176 176 176 155 155 155 169 169 169 152 152 152 164 164 164 149 149 149 192 192 192 240 240 240 255 255 255 202 202 202 201 201 201 151 151 151 162 162 162 148 148 148 158 158 158 173 173 173 154 154 154 167 167 167 150 150 150 160 160 160 180 180 180 156 156 156 170 170 170 153 153 153 165 165 165 183 183 183 0 0 0 227 231 0 132 132 0 151 156 0 142 131 128 255 252 49 175 181 0 255 234 140 218 222 0 251 255 33 74 74 0 94 99 0 107 107 0 143 148 0 189 189 0 87 90 0 251 255 8 247 255 16 167 173 0 206 99 132 156 74 99 206 66 107 115 16 49 255 16 90 189 0 57 132 16 49 206 0 57 198 123 140 255 49 123 255 33 99 222 0 66 99 0 24 239 0 66 255 0 74 255 140 214 148 0 41 140 49 74 198 123 148 255 0 82 90 0 24 132 0 41 206 99 123 156 0 41 198 0 57 74 0 24 255 16 82 214 0 66 90 0 33 189 0 49 107 0 33 206 16 74 214 8 66 173 0 49 115 0 33 181 0 49 74 0 16 255 8 82 ];
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1066
                mask:((ImageMask new)
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1067
                            width:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1068
                            height:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1069
                            bits:(ByteArray 
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1070
                                        fromPackedString:'@@@@@@@@A>@O<A?8G? _>A?8G? _>@?0A>@@@@@@@@@b');
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1071
                            yourself);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1072
                yourself
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1073
        ]
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1074
!
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1075
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1076
imageFor_symbols
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1077
    <resource: #image>
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1078
    "This resource specification was automatically generated
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1079
     by the ImageEditor of ST/X."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1080
    "Do not manually edit this!! If it is corrupted,
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1081
     the ImageEditor may not be able to read the specification."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1082
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1083
     self imageFor_symbols inspect
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1084
     ImageEditor openOnClass:self andSelector:#imageFor_symbols
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1085
     Icon flushCachedIcons"
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1086
    
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1087
    ^ Icon constantNamed:'InspectorView class imageFor_symbols'
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1088
        ifAbsentPut:[
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1089
            (Depth8Image new)
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1090
                width:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1091
                height:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1092
                photometric:(#palette);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1093
                bitsPerSample:(#[ 8 ]);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1094
                samplesPerPixel:(1);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1095
                bits:(ByteArray 
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1096
                            fromPackedString:'
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1097
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@6LD5MLCX@@@@@@@@@@@ADRTEAOC-FQ@@@@@@@@@A@MTDIM5LI
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1098
Q$U@@@@@@@@@LDDIBP$IBP$>M@@@@@@@@D4<NP$8S $>P4H@@@@@@@AMNS$IMUDIP3)B@@@@@@@@LCLIBP$IBP%GLP@@@@@@@D@>QP%CT@%RQ2<@@@@@@@@@
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1099
K$1LP$]GQ3<@@@@@@@@@@@A@LTIBLR<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a');
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1100
                colorMapFromArray:#[ 226 226 226 176 176 176 155 155 155 169 169 169 152 152 152 164 164 164 149 149 149 192 192 192 240 240 240 255 255 255 202 202 202 201 201 201 151 151 151 162 162 162 148 148 148 158 158 158 173 173 173 154 154 154 167 167 167 150 150 150 160 160 160 180 180 180 156 156 156 170 170 170 153 153 153 165 165 165 183 183 183 0 0 0 227 231 0 132 132 0 151 156 0 142 131 128 255 252 49 175 181 0 255 234 140 218 222 0 251 255 33 74 74 0 94 99 0 107 107 0 143 148 0 189 189 0 87 90 0 251 255 8 247 255 16 167 173 0 206 99 132 156 74 99 206 66 107 115 16 49 255 16 90 189 0 57 132 16 49 206 0 57 198 123 140 255 49 123 255 33 99 222 0 66 99 0 24 239 0 66 255 0 74 255 140 214 148 0 41 140 49 74 198 123 148 255 0 82 90 0 24 132 0 41 206 99 123 156 0 41 198 0 57 74 0 24 255 16 82 214 0 66 90 0 33 189 0 49 107 0 33 206 16 74 214 8 66 173 0 49 115 0 33 181 0 49 74 0 16 255 8 82 ];
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1101
                mask:((ImageMask new)
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1102
                            width:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1103
                            height:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1104
                            bits:(ByteArray 
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1105
                                        fromPackedString:'@@@@@@@@A>@O<A?8G? _>A?8G? _>@?0A>@@@@@@@@@b');
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1106
                            yourself);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1107
                yourself
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1108
        ]
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1109
!
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1110
18539
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1111
imageFor_timeAndDate
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1112
    "This resource specification was automatically generated
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1113
     by the ImageEditor of ST/X."
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1114
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1115
    "Do not manually edit this!! If it is corrupted,
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1116
     the ImageEditor may not be able to read the specification."
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1117
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1118
    "
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1119
     self imageFor_timeAndDate inspect
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1120
     ImageEditor openOnClass:self andSelector:#imageFor_timeAndDate
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1121
     Icon flushCachedIcons
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1122
    "
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1123
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1124
    <resource: #image>
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1125
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1126
    ^Icon
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1127
        constantNamed:'InspectorView class imageFor_timeAndDate'
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1128
        ifAbsentPut:[(Depth8Image width:16 height:16) bits:(ByteArray fromPackedString:'
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1129
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@6LD5MLCX@@@@@@@@@@@ADRTEABS-FQ@@@@@@@@@A@MTD7M0%F
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1130
Q$U@@@@@@@@@LDEAM4DINTX>M@@@@@@@@D4<NS\8BT8>P4H@@@@@@@AMO@$IBP%CP4MB@@@@@@@@LCL9L5EQTDMGLP@@@@@@@D@>L3MCTEAPQ2<@@@@@@@@@
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1131
K$1LP$IGQ3<@@@@@@@@@@@A@LTIBLR<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a')
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1132
            colorMapFromArray:#[226 226 226 176 176 176 155 155 155 169 169 169 152 152 152 164 164 164 149 149 149 192 192 192 240 240 240 255 255 255 202 202 202 201 201 201 151 151 151 162 162 162 148 148 148 158 158 158 173 173 173 154 154 154 167 167 167 150 150 150 160 160 160 180 180 180 156 156 156 170 170 170 153 153 153 165 165 165 183 183 183 0 0 0 227 231 0 132 132 0 151 156 0 142 131 128 255 252 49 175 181 0 255 234 140 218 222 0 251 255 33 74 74 0 94 99 0 107 107 0 143 148 0 189 189 0 87 90 0 251 255 8 247 255 16 167 173 0 206 99 132 156 74 99 206 66 107 115 16 49 255 16 90 189 0 57 132 16 49 206 0 57 198 123 140 255 49 123 255 33 99 222 0 66 99 0 24 239 0 66 255 0 74 255 140 214 148 0 41 140 49 74 198 123 148 255 0 82 90 0 24 132 0 41 206 99 123 156 0 41 198 0 57 74 0 24 255 16 82 214 0 66 90 0 33 189 0 49 107 0 33 206 16 74 214 8 66 173 0 49 115 0 33 181 0 49]
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1133
            mask:((ImageMask width:16 height:16) bits:(ByteArray fromPackedString:'@@@@@@@@A>@O<A?8G? _>A?8G? _>@?0A>@@@@@@@@@b'); yourself); yourself]
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1134
!
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1135
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1136
imageFor_true
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1137
    <resource: #image>
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1138
    "This resource specification was automatically generated
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1139
     by the ImageEditor of ST/X."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1140
    "Do not manually edit this!! If it is corrupted,
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1141
     the ImageEditor may not be able to read the specification."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1142
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1143
     self imageFor_true inspect
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1144
     ImageEditor openOnClass:self andSelector:#imageFor_true
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1145
     Icon flushCachedIcons"
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1146
    
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1147
    ^ Icon constantNamed:'InspectorView imageFor_true'
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1148
        ifAbsentPut:[
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1149
            (Depth8Image new)
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1150
                width:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1151
                height:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1152
                photometric:(#palette);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1153
                bitsPerSample:(#[ 8 ]);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1154
                samplesPerPixel:(1);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1155
                bits:(ByteArray 
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1156
                            fromPackedString:'
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1157
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@(MB@ MB @@@@@@@@@@@@:K#@0F2(\N @@@@@@@@@-H0$IBP$I
13246
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
  1158
A18-@@@@@@@@MC@$I@$$IBP9HP@@@@@@@B@[J20IIB0^K3 @@@@@@@@ MRT,BRP^K1<8@@@@@@@@MB0,I $$K2\"JP@@@@@@@B49G#$IIA<]H#H@@@@@@@@@
14406
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1159
M#L3NBH"H#\@@@@@@@@@@@@-JS 8JSH@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a');
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1160
                colorMapFromArray:#[ 226 226 226 176 176 176 155 155 155 169 169 169 152 152 152 164 164 164 149 149 149 192 192 192 240 240 240 255 255 255 202 202 202 201 201 201 151 151 151 162 162 162 148 148 148 158 158 158 173 173 173 154 154 154 167 167 167 150 150 150 160 160 160 180 180 180 156 156 156 170 170 170 153 153 153 165 165 165 183 183 183 98 255 0 75 198 0 25 74 0 57 156 0 34 99 0 92 206 16 60 132 16 31 74 0 79 206 0 128 131 142 88 231 0 70 189 0 38 90 0 148 198 123 57 115 16 92 239 0 103 255 8 76 189 0 154 198 123 85 214 0 53 132 0 106 255 0 138 255 49 107 156 74 44 115 0 119 206 66 85 222 0 142 206 99 68 139 33 33 90 0 57 148 0 135 206 99 ];
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1161
                mask:((ImageMask new)
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1162
                            width:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1163
                            height:16;
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1164
                            bits:(ByteArray 
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1165
                                        fromPackedString:'@@@@@@@@A>@O<A?8G? _>A?8G? _>@?0A>@@@@@@@@@b');
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1166
                            yourself);
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1167
                yourself
491319fd30ed Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14401
diff changeset
  1168
        ]
13246
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
  1169
!
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
  1170
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
  1171
imageFor_trueHolder
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
  1172
    "This resource specification was automatically generated
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
  1173
     by the ImageEditor of ST/X."
18439
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1174
13246
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
  1175
    "Do not manually edit this!! If it is corrupted,
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
  1176
     the ImageEditor may not be able to read the specification."
18439
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1177
13246
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
  1178
    "
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
  1179
     self imageFor_trueHolder inspect
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
  1180
     ImageEditor openOnClass:self andSelector:#imageFor_trueHolder
18439
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1181
     Icon flushCachedIcons
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1182
    "
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1183
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1184
    <resource: #image>
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1185
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1186
    ^Icon
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1187
        constantNamed:'InspectorView class imageFor_trueHolder'
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1188
        ifAbsentPut:[(Depth8Image width:16 height:16) bits:(ByteArray fromPackedString:'
13246
82b532a7c4c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13185
diff changeset
  1189
N3,;N0@@@@@@@@@@N3,;N3,;N3,@@@@@@@@@@C,;N3,;N0@@@@@@@@@@@@@@@C,;N3,@@@@(MB@ MB @@@@;N3,;@@@:K#@0F2(\N @@N3,;N0@-H0$IBP$I
18439
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1190
A18-@C,;N3,@MC@GA0$$IBP9HP@;N3,;@B@[J20IIB0^K3 @N3,;N0@ MRT,BRP^K1<8@C,;N3,@MB0,I $$K2\"JP@;N3,;@B49G#$IIA<]H#H@N3,;N0@@
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1191
M#L3NBH"H#\@@C,;N3,@@@@-JS 8JSH@@@@;N3,;@@@@@@@@@@@@@@@@N3,;N3,;@@@@@@@@@@@;N3,;N3,;N0@@@@@@@@@@N3,;N0@a')
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1192
            colorMapFromArray:#[226 226 226 176 176 176 155 155 155 169 169 169 152 152 152 164 164 164 149 149 149 192 192 192 240 240 240 255 255 255 202 202 202 201 201 201 151 151 151 162 162 162 148 148 148 158 158 158 173 173 173 154 154 154 167 167 167 150 150 150 160 160 160 180 180 180 156 156 156 170 170 170 153 153 153 165 165 165 183 183 183 98 255 0 75 198 0 25 74 0 57 156 0 34 99 0 92 206 16 60 132 16 31 74 0 79 206 0 128 131 142 88 231 0 70 189 0 38 90 0 148 198 123 57 115 16 92 239 0 103 255 8 76 189 0 154 198 123 85 214 0 53 132 0 106 255 0 138 255 49 107 156 74 44 115 0 119 206 66 85 222 0 142 206 99 68 139 33 33 90 0 57 148 0 135 206 99 60 59 55]
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1193
            mask:((ImageMask width:16 height:16) bits:(ByteArray fromPackedString:'<@?0C<@C1>OO<=?;7?/_>=?;7?/_><?31>O@@?@O<@<b'); yourself); yourself]
18539
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1194
!
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1195
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1196
imageRedBullet
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1197
    "This resource specification was automatically generated
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1198
     by the ImageEditor of ST/X."
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1199
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1200
    "Do not manually edit this!! If it is corrupted,
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1201
     the ImageEditor may not be able to read the specification."
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1202
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1203
    "
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1204
     self imageRedBullet inspect
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1205
     ImageEditor openOnClass:self andSelector:#imageRedBullet
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1206
     Icon flushCachedIcons
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1207
    "
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1208
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1209
    <resource: #image>
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1210
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1211
    ^Icon
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1212
        constantNamed:'InspectorView class imageRedBullet'
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1213
        ifAbsentPut:[(Depth8Image width:16 height:16) bits:(ByteArray fromPackedString:'
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1214
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@6LD5MLCX@@@@@@@@@@@ADRTEAOC-FQ@@@@@@@@@A@MTEAM5MF
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1215
Q$U@@@@@@@@@LDEAPTD7NTX>M@@@@@@@@D4<NS\8M48>P4H@@@@@@@AMNS$3MUECP3)B@@@@@@@@LCL3L5EQTDMGLP@@@@@@@D@>QSMCTEARQ2<@@@@@@@@@
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1216
K$1LP$]GQ3<@@@@@@@@@@@A@LTIBLR<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a')
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1217
            colorMapFromArray:#[226 226 226 176 176 176 155 155 155 169 169 169 152 152 152 164 164 164 149 149 149 192 192 192 240 240 240 255 255 255 202 202 202 201 201 201 151 151 151 162 162 162 148 148 148 158 158 158 173 173 173 154 154 154 167 167 167 150 150 150 160 160 160 180 180 180 156 156 156 170 170 170 153 153 153 165 165 165 183 183 183 0 0 0 227 231 0 132 132 0 151 156 0 142 131 128 255 252 49 175 181 0 255 234 140 218 222 0 251 255 33 74 74 0 94 99 0 107 107 0 143 148 0 189 189 0 87 90 0 251 255 8 247 255 16 167 173 0 206 99 132 156 74 99 206 66 107 115 16 49 255 16 90 189 0 57 132 16 49 206 0 57 198 123 140 255 49 123 255 33 99 222 0 66 99 0 24 239 0 66 255 0 74 255 140 214 148 0 41 140 49 74 198 123 148 255 0 82 90 0 24 132 0 41 206 99 123 156 0 41 198 0 57 74 0 24 255 16 82 214 0 66 90 0 33 189 0 49 107 0 33 206 16 74 214 8 66 173 0 49 115 0 33 181 0 49 74 0 16 255 8 82]
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1218
            mask:((ImageMask width:16 height:16) bits:(ByteArray fromPackedString:'@@@@@@@@A>@O<A?8G? _>A?8G? _>@?0A>@@@@@@@@@b'); yourself); yourself]
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1219
! !
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  1220
15610
e99baf15ad02 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15254
diff changeset
  1221
!InspectorView class methodsFor:'presentation'!
e99baf15ad02 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15254
diff changeset
  1222
e99baf15ad02 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15254
diff changeset
  1223
iconForValue: anObject
18439
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1224
    "choose a nice icon image to be shown in the list"
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1225
    
18539
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1226
    ^ anObject inspectorValueListIconFor:self.
15610
e99baf15ad02 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15254
diff changeset
  1227
e99baf15ad02 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15254
diff changeset
  1228
    "Created: / 16-05-2012 / 17:58:20 / cg"
17477
ebed6ccbc087 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17458
diff changeset
  1229
    "Modified: / 17-03-2017 / 11:26:59 / cg"
18539
31a9222edfdf #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18458
diff changeset
  1230
    "Modified: / 12-12-2018 / 16:24:05 / Claus Gittinger"
15613
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1231
!
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1232
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1233
iconForValueClass: aClass
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1234
    "this is useful if we do not want to or cannot access the value itself easily;
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1235
     For example as a helper for bridge objects"
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1236
18439
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1237
    (aClass includesBehavior:ProtoObject) ifTrue:[
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1238
        ^ self imageFor_proxy
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1239
    ].    
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1240
15613
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1241
    aClass == UndefinedObject ifTrue:[
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1242
        ^ self imageFor_nil
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1243
    ].
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1244
    aClass == True ifTrue:[
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1245
        ^ self imageFor_true
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1246
    ].
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1247
    aClass == False ifTrue:[
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1248
        ^ self imageFor_false
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1249
    ].
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1250
    ((aClass == Future) or:[aClass == Lazy]) ifTrue:[
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1251
        ^ self imageFor_others
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1252
    ].
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1253
    (aClass includesBehavior:Integer) ifTrue:[
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1254
        ^ self imageFor_integers
16804
52a7f72328f2 #DOCUMENTATION by mawalch
mawalch
parents: 16758
diff changeset
  1255
    ].
15613
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1256
    (aClass includesBehavior:Fraction) ifTrue:[
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1257
        ^ self imageFor_fractions
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1258
    ].
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1259
    (aClass includesBehavior:LimitedPrecisionReal) ifTrue:[
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1260
        ^ self imageFor_floats
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1261
    ].
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1262
    (aClass includesBehavior:Collection) ifTrue:[
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1263
        (aClass includesBehavior:CharacterArray) ifTrue:[
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1264
            (aClass includesBehavior:Symbol) ifTrue:[
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1265
                ^ self imageFor_symbols
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1266
            ].
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1267
            ^ self imageFor_strings
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1268
        ].
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1269
        (aClass includesBehavior:Dictionary) ifTrue:[
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1270
            ^ self imageFor_dictionaries
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1271
        ].
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1272
        (aClass includesBehavior:SequenceableCollection) ifTrue:[
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1273
            (aClass includesBehavior:Array) ifTrue:[
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1274
                ^ self imageFor_arrays
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1275
            ].
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1276
            ^ self imageFor_sequenceableCollections
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1277
        ].
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1278
        ^ self imageFor_collections
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1279
    ].
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1280
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1281
    (aClass == Character) ifTrue:[
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1282
        ^ self imageFor_characters
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1283
    ].
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1284
    (aClass includesBehavior: Behavior) ifTrue:[
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1285
        ^ self imageFor_classes
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1286
    ].
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1287
    (aClass includesBehavior: Color) ifTrue:[
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1288
        ^ self imageFor_colors
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1289
    ].
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1290
    (aClass includesBehavior: ValueModel) ifTrue:[
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1291
        ^ self imageFor_othersHolder
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1292
    ].
00f739f2e1ef class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15610
diff changeset
  1293
    ^ self imageFor_others
18439
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1294
3c0c274e5532 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18436
diff changeset
  1295
    "Modified: / 03-10-2018 / 10:32:40 / Claus Gittinger"
15610
e99baf15ad02 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15254
diff changeset
  1296
! !
e99baf15ad02 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15254
diff changeset
  1297
2598
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1298
!InspectorView class methodsFor:'queries-plugin'!
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1299
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1300
aspectSelectors
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1301
    ^ #( inspectedObjectHolder )
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1302
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1303
    "Modified: / 10.2.2000 / 12:25:28 / cg"
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1304
! !
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1305
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1306
!InspectorView methodsFor:'accessing'!
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1307
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  1308
allowFollow:aBoolean
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  1309
    "enable/disable the follow menu item;
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  1310
     This is disabled for inspectors which are embedded in the debugger"
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  1311
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  1312
    allowFollow := aBoolean
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  1313
!
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  1314
4095
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  1315
dereferenceValueHolders:aBoolean
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  1316
    dereferenceValueHolders := aBoolean
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  1317
!
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  1318
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  1319
fieldListLabel:aString
12810
b7a6631ef77e class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12784
diff changeset
  1320
    labelView label:aString.
b7a6631ef77e class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12784
diff changeset
  1321
    labelView adjust:#left.
4095
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  1322
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  1323
    "Created: 28.6.1996 / 15:30:26 / cg"
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  1324
!
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  1325
9630
72d3d048a53e headLineLabel
Claus Gittinger <cg@exept.de>
parents: 9625
diff changeset
  1326
headLineLabel:aString
72d3d048a53e headLineLabel
Claus Gittinger <cg@exept.de>
parents: 9625
diff changeset
  1327
    "an alternative headline label (if used as embedded inspector)"
72d3d048a53e headLineLabel
Claus Gittinger <cg@exept.de>
parents: 9625
diff changeset
  1328
72d3d048a53e headLineLabel
Claus Gittinger <cg@exept.de>
parents: 9625
diff changeset
  1329
    headLineLabel := aString.
72d3d048a53e headLineLabel
Claus Gittinger <cg@exept.de>
parents: 9625
diff changeset
  1330
9648
bf870042cb9f changed: #headLineLabel:
Claus Gittinger <cg@exept.de>
parents: 9637
diff changeset
  1331
    labelView notNil ifTrue:[
bf870042cb9f changed: #headLineLabel:
Claus Gittinger <cg@exept.de>
parents: 9637
diff changeset
  1332
        labelView label:headLineLabel.
bf870042cb9f changed: #headLineLabel:
Claus Gittinger <cg@exept.de>
parents: 9637
diff changeset
  1333
    ].
bf870042cb9f changed: #headLineLabel:
Claus Gittinger <cg@exept.de>
parents: 9637
diff changeset
  1334
bf870042cb9f changed: #headLineLabel:
Claus Gittinger <cg@exept.de>
parents: 9637
diff changeset
  1335
    "Modified: / 25-11-2010 / 17:16:45 / cg"
9630
72d3d048a53e headLineLabel
Claus Gittinger <cg@exept.de>
parents: 9625
diff changeset
  1336
!
72d3d048a53e headLineLabel
Claus Gittinger <cg@exept.de>
parents: 9625
diff changeset
  1337
9693
Claus Gittinger <cg@exept.de>
parents: 9690
diff changeset
  1338
headLineLabelView
Claus Gittinger <cg@exept.de>
parents: 9690
diff changeset
  1339
    "provides access to the headline"
Claus Gittinger <cg@exept.de>
parents: 9690
diff changeset
  1340
Claus Gittinger <cg@exept.de>
parents: 9690
diff changeset
  1341
    ^ labelView
Claus Gittinger <cg@exept.de>
parents: 9690
diff changeset
  1342
Claus Gittinger <cg@exept.de>
parents: 9690
diff changeset
  1343
    "Created: / 21-01-2011 / 12:07:13 / cg"
Claus Gittinger <cg@exept.de>
parents: 9690
diff changeset
  1344
!
Claus Gittinger <cg@exept.de>
parents: 9690
diff changeset
  1345
12448
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  1346
hideHashes:aBoolean
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  1347
    "hide/show the hash-entries in the field list;
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  1348
     This can be hidden for end-user applications"
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  1349
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  1350
    hideHashes := aBoolean
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  1351
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  1352
    "Created: 28.6.1996 / 15:08:32 / cg"
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  1353
!
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  1354
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  1355
hideMessages:aBoolean
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  1356
    "hide/show the messages-entries in the field list;
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  1357
     This can be hidden for end-user applications"
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  1358
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  1359
    hideMessages := aBoolean
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  1360
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  1361
    "Created: 28.6.1996 / 15:08:32 / cg"
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  1362
!
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  1363
644
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1364
hideReceiver:aBoolean
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  1365
    "hide/show the self-entry for the inspected object;
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  1366
     This is hidden for context inspectors in the debugger"
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  1367
644
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1368
    hideReceiver := aBoolean
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1369
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1370
    "Created: 28.6.1996 / 15:08:32 / cg"
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1371
!
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1372
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1373
inspect:anObject
8452
0840b314f7bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8388
diff changeset
  1374
    "set/update the object to be inspected"
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1375
16064
a770f72f3601 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15959
diff changeset
  1376
    self inspect:anObject keepSelection:false
a770f72f3601 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15959
diff changeset
  1377
!
a770f72f3601 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15959
diff changeset
  1378
a770f72f3601 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15959
diff changeset
  1379
inspect:anObject keepSelection:keepSelectionBoolean
a770f72f3601 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15959
diff changeset
  1380
    "set/update the object to be inspected"
a770f72f3601 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15959
diff changeset
  1381
11547
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
  1382
    |keepList fieldNameList sameObject sameClass oldSelectedField idx|
9390
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
  1383
9690
5682d804727a changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9672
diff changeset
  1384
    "/ (anObject isNil and:[object isNil]) ifTrue:[^ self].
9651
cca26b954d45 changed:
Claus Gittinger <cg@exept.de>
parents: 9648
diff changeset
  1385
9390
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
  1386
    sameObject := (anObject == object) and:[object notNil].
10520
f15aa3e05329 Fix for variable-length classes in #inspect:
vrany
parents: 10436
diff changeset
  1387
17517
73de7cfcb58d #OTHER by mawalch
mawalch
parents: 17477
diff changeset
  1388
    "/ JV@2011-08-06: Be careful here, classes may be variable-length,
10520
f15aa3e05329 Fix for variable-length classes in #inspect:
vrany
parents: 10436
diff changeset
  1389
    "/ so instances of same class may have different number of slots!!
17517
73de7cfcb58d #OTHER by mawalch
mawalch
parents: 17477
diff changeset
  1390
    "/ (caused problems especially when stack inspector is shown in debugger).
10520
f15aa3e05329 Fix for variable-length classes in #inspect:
vrany
parents: 10436
diff changeset
  1391
    "/ To fix, I've added ------------------------v
f15aa3e05329 Fix for variable-length classes in #inspect:
vrany
parents: 10436
diff changeset
  1392
    sameClass := (anObject class == object class) and:[anObject class isVariable not].
9390
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
  1393
    selectionIndex notNil ifTrue:[
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
  1394
        oldSelectedField := (listView list ? #()) at:selectionIndex ifAbsent:nil.
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
  1395
    ].
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1396
    inspectedObject := object := anObject.
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1397
11547
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
  1398
    keepList := ((sameObject | sameClass) and:[listView list notEmptyOrNil]).
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
  1399
    "/ assume that the list remains unchanged;
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
  1400
    "/ this is no longer true, if some inst-slot has changed (bullet colors)
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
  1401
    UserPreferences current showTypeIndicatorInInspector ifTrue:[
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
  1402
        keepList := false.
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
  1403
    ].
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
  1404
    keepList ifFalse:[
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  1405
        hasMore := false.
17517
73de7cfcb58d #OTHER by mawalch
mawalch
parents: 17477
diff changeset
  1406
        fieldNameList := self fieldList.
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  1407
        hasMore ifTrue:[
11547
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
  1408
            fieldNameList add:' ... '
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  1409
        ].
11547
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
  1410
        listView contents:fieldNameList.
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  1411
        workspace contents:nil.
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  1412
        self setDoItAction.
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1413
    ].
9390
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
  1414
    sameClass ifFalse:[
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
  1415
        selectionIndex := selectedLine := nil.
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
  1416
    ].
9262
792dbfa38baf changed:
Stefan Vogel <sv@exept.de>
parents: 9032
diff changeset
  1417
    isStandaloneInspector ifTrue:[
8452
0840b314f7bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8388
diff changeset
  1418
        "/ not embedded (as in the debugger)
17517
73de7cfcb58d #OTHER by mawalch
mawalch
parents: 17477
diff changeset
  1419
        self topView
2284
0f4ee9b43468 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2275
diff changeset
  1420
            label:(self labelFor:anObject);
10321
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
  1421
            iconLabel:(self class labelNameFor:anObject).
8452
0840b314f7bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8388
diff changeset
  1422
    ].
17517
73de7cfcb58d #OTHER by mawalch
mawalch
parents: 17477
diff changeset
  1423
9390
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
  1424
    (sameObject | sameClass) ifFalse:[
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
  1425
        idx := (listView list ? #()) indexOf:oldSelectedField.
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
  1426
        idx ~~ 0 ifTrue:[
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
  1427
            listView selection:idx
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
  1428
        ] ifFalse:[
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
  1429
            self setInitialSelection.
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
  1430
        ]
8452
0840b314f7bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8388
diff changeset
  1431
    ].
18041
13926da725fa #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18038
diff changeset
  1432
    self showSelection:((selectedLine ? 1) min: listView numberOfLines)
9624
defa4a2d2a10 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9615
diff changeset
  1433
10520
f15aa3e05329 Fix for variable-length classes in #inspect:
vrany
parents: 10436
diff changeset
  1434
    "Modified (comment): / 06-08-2011 / 13:41:50 / Jan Vrany <jan.vrany@fit.cvut.cz>"
11547
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
  1435
    "Modified: / 02-06-2012 / 13:06:59 / cg"
17517
73de7cfcb58d #OTHER by mawalch
mawalch
parents: 17477
diff changeset
  1436
    "Modified (comment): / 24-05-2017 / 22:00:53 / mawalch"
1895
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1437
!
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1438
14259
4ccbb1be5b0b class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 14201
diff changeset
  1439
inspectNext:anObject
4ccbb1be5b0b class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 14201
diff changeset
  1440
    "do a followup inspect on an object.
4ccbb1be5b0b class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 14201
diff changeset
  1441
     This does either open a new inspector, or advances
4ccbb1be5b0b class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 14201
diff changeset
  1442
     the Inspector2 to anObject"
4ccbb1be5b0b class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 14201
diff changeset
  1443
4ccbb1be5b0b class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 14201
diff changeset
  1444
    |app|
4ccbb1be5b0b class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 14201
diff changeset
  1445
4ccbb1be5b0b class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 14201
diff changeset
  1446
    app := self application.
4ccbb1be5b0b class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 14201
diff changeset
  1447
    (app isKindOf:Tools::Inspector2) ifTrue:[
4ccbb1be5b0b class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 14201
diff changeset
  1448
        app inspect:anObject
4ccbb1be5b0b class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 14201
diff changeset
  1449
    ] ifFalse:[
4ccbb1be5b0b class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 14201
diff changeset
  1450
        anObject inspect
4ccbb1be5b0b class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 14201
diff changeset
  1451
    ]
4ccbb1be5b0b class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 14201
diff changeset
  1452
!
4ccbb1be5b0b class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 14201
diff changeset
  1453
1895
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1454
isStandaloneInspector:aBoolean
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  1455
    "obsolete now"
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  1456
2008
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  1457
    isStandaloneInspector := aBoolean
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  1458
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  1459
    "Modified: / 12.2.1999 / 16:01:44 / cg"
29
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
  1460
!
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
  1461
644
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1462
label:aString
4106
1222d4e1166e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4095
diff changeset
  1463
    "set the fieldListLabel - obsolete; collides with inherited label-functionality"
1222d4e1166e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4095
diff changeset
  1464
5845
c7a4a4cd352b Mark obsolete methods
Stefan Vogel <sv@exept.de>
parents: 5698
diff changeset
  1465
    <resource:#obsolete>
4106
1222d4e1166e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4095
diff changeset
  1466
    self obsoleteMethodWarning:'use fieldListLabel:'.
1222d4e1166e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4095
diff changeset
  1467
    self fieldListLabel:aString.
1222d4e1166e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4095
diff changeset
  1468
    super label:aString.
644
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1469
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1470
    "Created: 28.6.1996 / 15:30:26 / cg"
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1471
!
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1472
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1473
listView
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1474
    ^ listView
352
e84b6352735d set focusSequence
Claus Gittinger <cg@exept.de>
parents: 351
diff changeset
  1475
!
e84b6352735d set focusSequence
Claus Gittinger <cg@exept.de>
parents: 351
diff changeset
  1476
18022
c5e8f4ba1838 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18017
diff changeset
  1477
maxValueDisplayStringLength
c5e8f4ba1838 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18017
diff changeset
  1478
    "strip off and add '...' if the display string of a selected item is longer.
c5e8f4ba1838 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18017
diff changeset
  1479
     (can be changed via class default and menu)"
c5e8f4ba1838 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18017
diff changeset
  1480
c5e8f4ba1838 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18017
diff changeset
  1481
    ^ maxValueDisplayStringLength ? (self class defaultMaxValueDisplayStringLength)
c5e8f4ba1838 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18017
diff changeset
  1482
!
c5e8f4ba1838 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18017
diff changeset
  1483
c5e8f4ba1838 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18017
diff changeset
  1484
maxValueDisplayStringLength:something
c5e8f4ba1838 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18017
diff changeset
  1485
    maxValueDisplayStringLength := something.
c5e8f4ba1838 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18017
diff changeset
  1486
!
c5e8f4ba1838 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18017
diff changeset
  1487
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  1488
reinspect
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  1489
    "update display for a changed inspectedObject"
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  1490
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  1491
    |aList|
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  1492
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  1493
    hasMore := false.
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  1494
    aList := self fieldList.
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  1495
    hasMore ifTrue:[
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  1496
        aList add:' ... '
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  1497
    ].
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  1498
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  1499
    listView contents:aList.
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  1500
    self setDoItAction.
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1501
    selectionIndex := selectedLine := nil
11547
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
  1502
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
  1503
    "Modified (comment): / 02-06-2012 / 13:08:15 / cg"
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  1504
!
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  1505
9625
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1506
suppressHeadline:aBoolean
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1507
    "hide/show the title line above the list/value"
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1508
9736
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
  1509
    suppressHeadline := aBoolean.
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
  1510
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
  1511
    labelView notNil ifTrue:[
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
  1512
        suppressHeadline == true ifTrue:[
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
  1513
            labelView beInvisible.
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
  1514
            listView container topInset:0.
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
  1515
            workspace container topInset:0.
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
  1516
        ] ifFalse:[
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
  1517
            labelView beVisible.
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
  1518
            listView container topInset:(labelView preferredHeight).
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
  1519
            workspace container topInset:(labelView preferredHeight).
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
  1520
        ].
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
  1521
    ].
9625
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1522
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1523
    "Created: / 09-11-2010 / 14:50:04 / cg"
9736
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
  1524
    "Modified: / 05-02-2011 / 14:03:55 / cg"
9625
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1525
!
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1526
4095
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  1527
suppressPseudoSlots:aBoolean
17588
b3a2da852bf2 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17517
diff changeset
  1528
    "to enable/disable the pseudo slots (eg. inspectorExtraAttributes)"
17589
1fe021219a49 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17588
diff changeset
  1529
1fe021219a49 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17588
diff changeset
  1530
    aBoolean ~~ suppressPseudoSlots ifTrue:[
1fe021219a49 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17588
diff changeset
  1531
        suppressPseudoSlots := aBoolean.
1fe021219a49 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17588
diff changeset
  1532
        self reinspect.
1fe021219a49 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17588
diff changeset
  1533
    ].
1fe021219a49 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17588
diff changeset
  1534
1fe021219a49 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17588
diff changeset
  1535
    "Modified: / 18-07-2017 / 15:23:51 / cg"
4095
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  1536
!
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  1537
352
e84b6352735d set focusSequence
Claus Gittinger <cg@exept.de>
parents: 351
diff changeset
  1538
workspace
e84b6352735d set focusSequence
Claus Gittinger <cg@exept.de>
parents: 351
diff changeset
  1539
    ^ workspace
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1540
! !
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1541
2724
ca96b304e992 category changes
Claus Gittinger <cg@exept.de>
parents: 2657
diff changeset
  1542
!InspectorView methodsFor:'accessing-channels'!
2598
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1543
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1544
inspectedObjectHolder
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1545
    inspectedObjectHolder isNil ifTrue:[
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1546
        inspectedObjectHolder := ValueHolder new.
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1547
        inspectedObjectHolder addDependent:self.
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1548
    ].
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1549
    ^ inspectedObjectHolder
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1550
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1551
    "Created: / 10.2.2000 / 13:33:16 / cg"
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1552
    "Modified: / 10.2.2000 / 13:34:23 / cg"
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1553
!
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1554
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1555
inspectedObjectHolder:aValueHolder
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1556
    inspectedObjectHolder notNil ifTrue:[
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1557
        inspectedObjectHolder removeDependent:self.
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1558
    ].
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1559
    inspectedObjectHolder := aValueHolder.
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1560
    inspectedObjectHolder notNil ifTrue:[
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1561
        inspectedObjectHolder addDependent:self.
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1562
    ].
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1563
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1564
    "Created: / 10.2.2000 / 13:34:53 / cg"
16546
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1565
!
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1566
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1567
sortOrderHolder
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1568
    ^ sortOrderHolder
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1569
!
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1570
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1571
sortOrderHolder:aValueHolder
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1572
    self assert:aValueHolder notNil.
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1573
    
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1574
    sortOrderHolder notNil ifTrue:[
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1575
        sortOrderHolder removeDependent:self.
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1576
    ].
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1577
    sortOrderHolder := aValueHolder.
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1578
    sortOrderHolder addDependent:self.
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1579
    self sortOrderHolderChanged.
2598
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1580
! !
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1581
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1582
!InspectorView methodsFor:'change & update'!
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1583
12467
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  1584
holderChanged:aValueHolder
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  1585
    "a valueHolder of which I have registered an iterest
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  1586
     has changed (see the menu item: 'Catch Change').
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  1587
     Remove the interest (no further notifications) either by evaluating:
14070
f95472e8cb38 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13990
diff changeset
  1588
        aValueHolder retractInterestsFor:holderChangeInterest
f95472e8cb38 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13990
diff changeset
  1589
      or:
12467
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  1590
        self doUncatchChanges
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  1591
     here, or via the field menu"
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  1592
14070
f95472e8cb38 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13990
diff changeset
  1593
    "/ aValueHolder retractInterestsFor:holderChangeInterest
12467
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  1594
    self halt:'ValueHolder has changed - please proceed'.
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  1595
!
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  1596
16546
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1597
sortOrderHolderChanged
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1598
    |newOrder|
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1599
    
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1600
    newOrder := sortOrderHolder value.
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1601
    sortOrder ~~ newOrder ifTrue:[
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1602
        sortOrder := newOrder.
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1603
        self reinspect.
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1604
    ].
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1605
!
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1606
2598
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1607
update:something with:aParameter from:changedObject
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1608
    "Invoked when one of my dependees sends a change notification."
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1609
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1610
    |oldSelection|
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1611
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  1612
    changedObject == object ifTrue:[
2598
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1613
        oldSelection := listView selection.
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  1614
        self inspect:object.
2598
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1615
        oldSelection notNil ifTrue:[
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1616
            self showSelection:oldSelection
16546
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1617
        ].
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1618
        ^ self
2598
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1619
    ].
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1620
12457
db4080187675 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12448
diff changeset
  1621
    changedObject == inspectedObjectHolder ifTrue:[
16546
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1622
        self inspect:(inspectedObjectHolder value).
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1623
        ^ self
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1624
    ].
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1625
    changedObject == sortOrderHolder ifTrue:[
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1626
        self sortOrderHolderChanged.
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1627
        ^ self.
2598
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1628
    ].
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1629
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1630
    super update:something with:aParameter from:changedObject
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1631
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1632
    "Created: / 10.2.2000 / 13:46:38 / cg"
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1633
    "Modified: / 10.2.2000 / 13:48:18 / cg"
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1634
! !
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1635
7297
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1636
!InspectorView methodsFor:'drag & drop'!
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1637
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1638
getDisplayObjects
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1639
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1640
    ^List with:self selection printString
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1641
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1642
    "Created: / 16-08-2005 / 21:54:52 / janfrog"
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1643
    "Modified: / 18-09-2006 / 21:11:16 / cg"
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1644
!
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1645
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1646
getDropObjects
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1647
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1648
    ^List with:(DropObject new:self selection).
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1649
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1650
    "Created: / 16-08-2005 / 21:49:23 / janfrog"
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1651
    "Modified: / 18-09-2006 / 21:11:31 / cg"
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1652
! !
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1653
8025
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1654
!InspectorView methodsFor:'event handling'!
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1655
10424
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
  1656
doubleClickOnLine:lineNr
14259
4ccbb1be5b0b class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 14201
diff changeset
  1657
    self inspectNext:self selectedField.
10424
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
  1658
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
  1659
    "Created: / 29-07-2011 / 21:09:43 / cg"
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
  1660
!
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
  1661
8025
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1662
keyPress:key x:x y:y
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1663
    "handle special keys"
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1664
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1665
    <resource: #keyboard (#BrowseIt #InspectIt)>
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1666
12031
d36e19c23f23 changed: #keyPress:x:y:
Claus Gittinger <cg@exept.de>
parents: 11946
diff changeset
  1667
    self theSingleSelectionIndex "selection" notNil ifTrue:[
8025
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1668
        (key == #BrowseIt) ifTrue:[
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1669
            self browse.
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1670
            ^ self.
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1671
        ].
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1672
        (key == #InspectIt) ifTrue:[
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1673
            self doInspect.
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1674
            ^ self.
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1675
        ].
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1676
    ].
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1677
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1678
    "all my other input is passed on to the workspace-field"
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1679
    x notNil ifTrue:[
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1680
        "/ not already delegated
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1681
        workspace keyPress:key x:-1 y:-1
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1682
    ].
9389
f7ad2b69030f better tracking of sizeChange for default size.
sr
parents: 9384
diff changeset
  1683
!
f7ad2b69030f better tracking of sizeChange for default size.
sr
parents: 9384
diff changeset
  1684
11702
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1685
selectedField
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1686
    ^ self theSingleSelectionIndex isNil 
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1687
                            ifTrue:[object] 
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1688
                            ifFalse:[self selection].
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1689
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1690
    "Created: / 27-07-2012 / 22:42:23 / cg"
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1691
!
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1692
9389
f7ad2b69030f better tracking of sizeChange for default size.
sr
parents: 9384
diff changeset
  1693
sizeChanged:how
f7ad2b69030f better tracking of sizeChange for default size.
sr
parents: 9384
diff changeset
  1694
    super sizeChanged:how.
f7ad2b69030f better tracking of sizeChange for default size.
sr
parents: 9384
diff changeset
  1695
f7ad2b69030f better tracking of sizeChange for default size.
sr
parents: 9384
diff changeset
  1696
    isStandaloneInspector == true ifTrue:[
f7ad2b69030f better tracking of sizeChange for default size.
sr
parents: 9384
diff changeset
  1697
        LastExtent := self topView extent.
f7ad2b69030f better tracking of sizeChange for default size.
sr
parents: 9384
diff changeset
  1698
    ].
8025
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1699
! !
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1700
2587
b6838cdb1f14 added show-stream-contents menu item
Claus Gittinger <cg@exept.de>
parents: 2580
diff changeset
  1701
!InspectorView methodsFor:'initialization & release'!
2117
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1702
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1703
destroy
7867
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
  1704
    (self topView objectAttributeAt:#rememberExtent) == true ifTrue:[
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
  1705
        self class rememberLastExtent:(self topView extent).
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
  1706
    ].
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
  1707
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1708
    inspectedObject := object := nil.
2117
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1709
    monitorProcess notNil ifTrue:[
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1710
        monitorProcess terminate
2117
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1711
    ].
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1712
    super destroy
7867
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
  1713
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
  1714
    "Modified: / 23-10-2007 / 19:11:04 / cg"
2117
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1715
!
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1716
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1717
initialize
644
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1718
    |v panel helpView labelView2|
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1719
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1720
    super initialize.
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1721
3318
46c3347385f4 preps to allow for displayString message to be configured
Claus Gittinger <cg@exept.de>
parents: 3199
diff changeset
  1722
    displayStringMessage := #displayString.
16883
603af3eefa1e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16832
diff changeset
  1723
    hideReceiver := false.
603af3eefa1e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16832
diff changeset
  1724
    hideHashes := self class defaultHideHashes.
603af3eefa1e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16832
diff changeset
  1725
    hideMessages := self class defaultHideMessages.
10846
75970cbe22b1 class definition
Claus Gittinger <cg@exept.de>
parents: 10521
diff changeset
  1726
    integerDisplayRadix := (DefaultIntegerDisplayRadix ? 10).
16546
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1727
    sortOrder := SortOrderInstvarOrder.
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1728
    sortOrderHolder := sortOrder asValue.
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  1729
    sortOrderHolder addDependent:self.
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  1730
    allowFollow := false.
2008
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  1731
    isStandaloneInspector := false.
644
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1732
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1733
    panel := VariableHorizontalPanel 
1991
dfbb30988edd no miniScrollers; no autoHide
Claus Gittinger <cg@exept.de>
parents: 1930
diff changeset
  1734
                origin:(0.0 @ 0.0)
dfbb30988edd no miniScrollers; no autoHide
Claus Gittinger <cg@exept.de>
parents: 1930
diff changeset
  1735
                corner:(1.0 @ 1.0)
dfbb30988edd no miniScrollers; no autoHide
Claus Gittinger <cg@exept.de>
parents: 1930
diff changeset
  1736
                in:self.
644
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1737
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1738
    helpView := View origin:(0.0 @ 0.0) corner:(0.3 @ 1.0) in:panel.
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1739
    helpView level:0; borderWidth:0.
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1740
9625
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1741
    suppressHeadline == true ifFalse:[
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1742
        labelView := Label origin:0.0@0.0 corner:1.0@0.0 in:helpView.
9630
72d3d048a53e headLineLabel
Claus Gittinger <cg@exept.de>
parents: 9625
diff changeset
  1743
        labelView label:(headLineLabel ? self defaultLabel).
9625
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1744
        labelView bottomInset:(labelView preferredHeight negated).
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1745
    ].
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1746
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1747
    v := HVScrollableView 
9625
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1748
            for:SelectionInListView 
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1749
            miniScrollerH:true
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1750
            miniScrollerV:false
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1751
            in:helpView.
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1752
    v origin:(0.0 @ 0.0) corner:(1.0 @ 1.0).
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1753
    labelView notNil ifTrue:[
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1754
        v topInset:(labelView preferredHeight).
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1755
    ].
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1756
1991
dfbb30988edd no miniScrollers; no autoHide
Claus Gittinger <cg@exept.de>
parents: 1930
diff changeset
  1757
"/    v autoHideScrollBars:true.
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1758
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1759
    listView := v scrolledView.
8653
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  1760
    listView action:[:lineNr | self selection:lineNr.].
10424
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
  1761
    listView doubleClickAction:[:lineNr | self doubleClickOnLine:lineNr].
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1762
    listView ignoreReselect:false.
98
claus
parents: 93
diff changeset
  1763
    listView menuHolder:self; menuPerformer:self; menuMessage:#fieldMenu.
7297
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1764
    self initializeDragAndDrop.
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1765
644
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1766
    helpView := View origin:(0.3 @ 0.0) corner:(1.0 @ 1.0) in:panel.
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1767
    helpView level:0; borderWidth:0.
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1768
9625
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1769
    suppressHeadline == true ifFalse:[
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1770
        labelView2 := Label origin:0.0@0.0 corner:1.0@0.0 in:helpView.
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1771
        labelView2 label:''.
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1772
        labelView2 bottomInset:(labelView preferredHeight negated).
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1773
    ].
644
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1774
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1775
    v := HVScrollableView 
1991
dfbb30988edd no miniScrollers; no autoHide
Claus Gittinger <cg@exept.de>
parents: 1930
diff changeset
  1776
                for:CodeView 
dfbb30988edd no miniScrollers; no autoHide
Claus Gittinger <cg@exept.de>
parents: 1930
diff changeset
  1777
                miniScrollerH:true
dfbb30988edd no miniScrollers; no autoHide
Claus Gittinger <cg@exept.de>
parents: 1930
diff changeset
  1778
                miniScrollerV:false
dfbb30988edd no miniScrollers; no autoHide
Claus Gittinger <cg@exept.de>
parents: 1930
diff changeset
  1779
                in:helpView.
dfbb30988edd no miniScrollers; no autoHide
Claus Gittinger <cg@exept.de>
parents: 1930
diff changeset
  1780
"/    v autoHideScrollBars:true.
644
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1781
    v origin:(0.0 @ 0.0) corner:(1.0 @ 1.0).
9625
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1782
    labelView2 notNil ifTrue:[
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1783
        v topInset:(labelView2 preferredHeight).
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1784
    ].
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1785
    workspace := v scrolledView.
15246
5c469b9c566c class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 14938
diff changeset
  1786
    workspace autoIndent:false.
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1787
3608
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  1788
    self setAcceptAction.
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1789
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1790
    nShown := 100.
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1791
    hasMore := false.
644
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1792
7297
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1793
    "Modified: / 16-08-2005 / 21:54:04 / janfrog"
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1794
    "Modified: / 20-07-2012 / 10:48:34 / cg"
7297
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1795
!
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1796
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1797
initializeDragAndDrop
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1798
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1799
    | source |
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1800
    source := DropSource 
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1801
                    receiver:self
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1802
                    argument:nil
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1803
                    dropObjectSelector:#getDropObjects
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1804
                    displayObjectSelector:#getDisplayObjects
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1805
                    dropFeedBackSelector:nil.
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1806
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1807
    listView dropSource:source.
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1808
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1809
    "Created: / 16-08-2005 / 21:51:43 / janfrog"
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1810
    "Modified: / 18-09-2006 / 21:13:05 / cg"
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  1811
!
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  1812
593
6bc83313d7ff checkin from browser
Claus Gittinger <cg@exept.de>
parents: 570
diff changeset
  1813
realize
6bc83313d7ff checkin from browser
Claus Gittinger <cg@exept.de>
parents: 570
diff changeset
  1814
    "delayed setup of lists till first map-time - 
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  1815
     this makes startup of inspectors a bit faster"
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  1816
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  1817
    |o|
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  1818
593
6bc83313d7ff checkin from browser
Claus Gittinger <cg@exept.de>
parents: 570
diff changeset
  1819
    super realize.
17032
a8c6d15d5761 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 16883
diff changeset
  1820
    "/ cg: I don't remember what this was needed for (is it still?)
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  1821
    false "object notNil" ifTrue:[
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1822
        "
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1823
         kludge to trick inspect:, which ignores setting the
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1824
         same object again ...
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1825
        "
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  1826
        o := object.
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1827
        inspectedObject := object := nil.
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1828
        self inspect:o
383
e5760d864242 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 352
diff changeset
  1829
    ]
593
6bc83313d7ff checkin from browser
Claus Gittinger <cg@exept.de>
parents: 570
diff changeset
  1830
7887
be186ae12782 dont clobber the current selection on realize
Claus Gittinger <cg@exept.de>
parents: 7867
diff changeset
  1831
    "Created: / 30-05-1996 / 09:38:37 / cg"
be186ae12782 dont clobber the current selection on realize
Claus Gittinger <cg@exept.de>
parents: 7867
diff changeset
  1832
    "Modified: / 05-11-2007 / 20:11:44 / cg"
2117
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1833
!
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1834
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1835
release
16804
52a7f72328f2 #DOCUMENTATION by mawalch
mawalch
parents: 16758
diff changeset
  1836
    "release inspected object. This is normally not needed,
2117
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1837
     since the garbage collector will find this memory alone.
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1838
     However, if some applications keeps invisible inspectors around
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1839
     (for example, the debugger does this), the inspected object
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1840
     would be kept from being freed or freed very late."
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1841
16064
a770f72f3601 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15959
diff changeset
  1842
    "
2117
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1843
    inspectedObject notNil ifTrue:[
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1844
        inspectedObject removeDependent:self
2117
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1845
    ].
16064
a770f72f3601 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15959
diff changeset
  1846
    "
a770f72f3601 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15959
diff changeset
  1847
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1848
    inspectedObject := object := nil.
2117
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1849
    self setDoItAction.      "/ to release ref to inspectedObject in doItBlock
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1850
    workspace contents:nil.
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1851
    listView contents:nil.
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1852
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1853
    super release.
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1854
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1855
    "Modified: 11.6.1997 / 13:20:39 / cg"
8452
0840b314f7bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8388
diff changeset
  1856
!
0840b314f7bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8388
diff changeset
  1857
0840b314f7bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8388
diff changeset
  1858
setInitialSelection
14102
6128c780a9c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14070
diff changeset
  1859
    Error handle:[:ex |
6128c780a9c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14070
diff changeset
  1860
    ] do:[
17123
42b500e22252 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17032
diff changeset
  1861
        object isProtoObject ifFalse:[
14102
6128c780a9c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14070
diff changeset
  1862
            object isString ifTrue:[
6128c780a9c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14070
diff changeset
  1863
                self showSelection:1    "/ the self-line    
6128c780a9c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14070
diff changeset
  1864
            ]
6128c780a9c5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14070
diff changeset
  1865
        ].
8452
0840b314f7bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8388
diff changeset
  1866
    ].
98
claus
parents: 93
diff changeset
  1867
! !
claus
parents: 93
diff changeset
  1868
claus
parents: 93
diff changeset
  1869
!InspectorView methodsFor:'menu'!
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1870
18017
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1871
debugMenu
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1872
    "now contains the trap, references etc. items in a submenu"
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1873
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1874
    <resource: #programMenu>
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1875
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1876
    |items sel isValueModel m|
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1877
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1878
    items := #().
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1879
    sel := self selection.
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1880
    isValueModel := sel isProtoObject not and:[sel isValueModel].
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1881
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1882
    monitorProcess isNil ifTrue:[
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1883
        items := items , #(
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1884
                        ('Start Monitor'                #doStartMonitor         )
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1885
                          ).
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1886
    ] ifFalse:[
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1887
        items := items , #(
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1888
                        ('Stop Monitor'                #doStopMonitor           )
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1889
                          ).
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1890
    ].
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1891
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1892
    items := items , #(
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1893
                       ('-')
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1894
                       ('Owners'                       #showOwners             )  
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1895
                       ('Ref Chains'                   #showReferences         )
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1896
                       ('Dependents'                   #showDependents         )
18357
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  1897
                       ('Dependent Of'                 #showDependentOf         )
18017
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1898
              ).
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1899
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1900
    items := items , #(
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1901
                       ('-')
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1902
                       ('Trap Message...'              #doTrap                 )
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1903
                       ('Trap Update Messages...'      #doTrapUpdates          )
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1904
                       ('Trap all Messages'            #doTrapAll              )
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1905
                       ('Trace all Messages'           #doTraceAll             )
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1906
                       ('Untrace/Untrap'               #doUntrace              )
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1907
"/                       ('-')
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1908
"/                       ('Trap change to instVar'       #doTrapInstVarChange    )
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1909
"/                       ('Trap change to any instVar'   #doTrapAnyInstVarChange )
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1910
              ).
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1911
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1912
    isValueModel ifTrue:[
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1913
        (holderChangeInterest notNil
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1914
        and:[ (sel interestsFor:holderChangeInterest) notEmptyOrNil ]) ifTrue:[
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1915
            items := items , #(
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1916
                       ('Uncatch Changes'             #doUncatchChanges           )
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1917
              ).
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1918
        ] ifFalse:[
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1919
            items := items , #(
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1920
                       ('Catch Changes'               #doCatchChanges             )
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1921
              ).
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1922
        ].
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1923
    ].
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1924
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1925
    items := items , #(
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1926
                       ('-')
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1927
                       ('Local Protocol'               #localProtocolMenu      )
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1928
                       ('Full Protocol'                #protocolMenu           )
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1929
                     ).
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1930
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1931
    m := PopUpMenu itemList:items resources:resources.
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1932
    m subMenuAt:#protocolMenu put:(self protocolMenu).
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1933
    m subMenuAt:#localProtocolMenu put:(self localProtocolMenu).
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1934
    ^ m
18357
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  1935
18017
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1936
    "Modified: / 27-09-2017 / 09:33:54 / cg"
18357
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  1937
    "Modified: / 27-08-2018 / 11:05:46 / Claus Gittinger"
18017
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1938
!
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1939
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1940
fieldMenu
18017
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  1941
    "return the popup menu for the field-list"
1040
5835207bcb3e menu resource
Claus Gittinger <cg@exept.de>
parents: 901
diff changeset
  1942
1235
13610578a5d2 resource flag: #menu -> #programMenu
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1943
    <resource: #programMenu>
1040
5835207bcb3e menu resource
Claus Gittinger <cg@exept.de>
parents: 901
diff changeset
  1944
17458
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1945
    |items m sel isValueModel operationItems|
1597
48629e1fc7b6 use new menu-creation message in PopUpMenu.
Claus Gittinger <cg@exept.de>
parents: 1570
diff changeset
  1946
12528
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  1947
    sel := self selection.
17458
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1948
    isValueModel := sel isProtoObject not and:[sel isValueModel].
12528
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  1949
1597
48629e1fc7b6 use new menu-creation message in PopUpMenu.
Claus Gittinger <cg@exept.de>
parents: 1570
diff changeset
  1950
    items := #(
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3164
diff changeset
  1951
                       ('Copy Name or Key'             #doCopyKey              )
2085
ec4daf11d3b6 added #copyKey - menu item
Claus Gittinger <cg@exept.de>
parents: 2008
diff changeset
  1952
                       ('-')
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3164
diff changeset
  1953
                       ('Inspect'                      #doInspect              )
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3164
diff changeset
  1954
                       ('BasicInspect'                 #doBasicInspect         )
9349
e6d367cbe86c do not show new-inspector in menu, if there is none loaded
Claus Gittinger <cg@exept.de>
parents: 9316
diff changeset
  1955
             ).
17458
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1956
    isValueModel ifTrue:[
12528
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  1957
        items := items , #(
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  1958
                       ('Inspect Value'                #doInspectValue         )
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  1959
             ).
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  1960
    ].
9349
e6d367cbe86c do not show new-inspector in menu, if there is none loaded
Claus Gittinger <cg@exept.de>
parents: 9316
diff changeset
  1961
    NewInspector::NewInspectorView notNil ifTrue:[
e6d367cbe86c do not show new-inspector in menu, if there is none loaded
Claus Gittinger <cg@exept.de>
parents: 9316
diff changeset
  1962
        items := items , #(
4197
8086dadff648 added broese methods class
Claus Gittinger <cg@exept.de>
parents: 4106
diff changeset
  1963
                       ('Inspect Hierarchical'         #doNewInspect           )
9349
e6d367cbe86c do not show new-inspector in menu, if there is none loaded
Claus Gittinger <cg@exept.de>
parents: 9316
diff changeset
  1964
                ).
e6d367cbe86c do not show new-inspector in menu, if there is none loaded
Claus Gittinger <cg@exept.de>
parents: 9316
diff changeset
  1965
    ].
e6d367cbe86c do not show new-inspector in menu, if there is none loaded
Claus Gittinger <cg@exept.de>
parents: 9316
diff changeset
  1966
    items := items , #(
18031
5a3f12aad45b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18023
diff changeset
  1967
                       ('-')
8993
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1968
                       ('Browse'                       #browse                 )
8800
ab79a72dfdec changed: #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 8799
diff changeset
  1969
             ).
17458
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1970
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1971
    sel isProtoObject ifFalse:[
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1972
        isValueModel ifTrue:[
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1973
            items := items , #(
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1974
                           ('Browse Value'                 #browseValue            )
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1975
                 ).
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1976
        ].
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1977
        (sel isSymbol) ifTrue:[
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1978
            items := items , #(
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1979
                           ('Browse Implementors'           #browseImplementorsOfSymbolValue)
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1980
                  ).
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1981
        ].
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1982
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1983
        (inspectedObject class allInstVarNames includes:(self selectedKeyName)) ifTrue:[
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1984
            items := items , #(
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1985
                           ('Browse References to Instvar'           #browseReferencesToInstvar)
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1986
                  ).
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1987
        ].
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1988
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1989
        items := items , (self optionalToolItems).
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1990
        items := items , (self optionalViewSelectionItems).
12934
2dc6af821d0d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12916
diff changeset
  1991
    ].
17458
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1992
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1993
    sel isProtoObject ifFalse:[
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1994
        items := items , (self optionalMethodOrBlockSelectionItems).
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1995
        items := items , (self optionalStreamSelectionItems).
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1996
        items := items , (self optionalFilenameSelectionItems).
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1997
        items := items , (self optionalByteArraySelectionItems).
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1998
        operationItems := self optionalOperationMenuItemsFor:sel.
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  1999
    ].
7639
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  2000
2579
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  2001
    items := items , #(
2085
ec4daf11d3b6 added #copyKey - menu item
Claus Gittinger <cg@exept.de>
parents: 2008
diff changeset
  2002
                       ('-')
18017
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2003
                       ('Debug'                        #debugMenu      )
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  2004
              ).
1895
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  2005
17458
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  2006
    isValueModel ifTrue:[
12467
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2007
        (holderChangeInterest notNil
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2008
        and:[ (sel interestsFor:holderChangeInterest) notEmptyOrNil ]) ifTrue:[
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2009
            items := items , #(
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2010
                       ('Uncatch Changes'             #doUncatchChanges           )
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2011
              ).
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2012
        ] ifFalse:[
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2013
            items := items , #(
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2014
                       ('Catch Changes'               #doCatchChanges             )
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2015
              ).
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2016
        ].
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2017
    ].
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2018
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  2019
    allowFollow ifTrue:[
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  2020
        items := #(
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3164
diff changeset
  2021
                            ('Follow'                       #doFollow              )
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3164
diff changeset
  2022
                            ('Back'                         #doBack              )
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  2023
                            ('-')
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  2024
                  )
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  2025
                 ,
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  2026
                 items.
1895
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  2027
    ].
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  2028
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  2029
    hasMore ifTrue:[
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  2030
        items := items , #(
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  2031
                        ('-')
4197
8086dadff648 added broese methods class
Claus Gittinger <cg@exept.de>
parents: 4106
diff changeset
  2032
                        ('Show More'                    #showMore               )
11576
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2033
                          ).
11578
f750a9c9fb7a +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11576
diff changeset
  2034
        (self numIndexedFields > (nShown * 2)) ifTrue:[
11576
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2035
            items := items , #(
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2036
                        ('Show All'                     #showAll                )
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  2037
                          )
11576
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2038
        ].
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  2039
    ].
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  2040
18017
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2041
    items := items, #(('-')).
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2042
    items := items , (self sortOrderItems).
7639
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  2043
    items := items , (self numberBaseItems).
1634
216a4254e634 added 'hex integers' toggle to menu.
Claus Gittinger <cg@exept.de>
parents: 1597
diff changeset
  2044
16814
7492f3cc9301 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16804
diff changeset
  2045
    operationItems notEmptyOrNil ifTrue:[
7492f3cc9301 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16804
diff changeset
  2046
        items := items, #(('-')) , operationItems
7492f3cc9301 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16804
diff changeset
  2047
    ].
7492f3cc9301 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16804
diff changeset
  2048
    
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2049
    m := PopUpMenu
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  2050
          itemList:items
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  2051
          resources:resources.
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2052
18017
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2053
    m subMenuAt:#debugMenu put:(self debugMenu).
8993
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  2054
9703
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  2055
    (self theSingleSelectionIndex isNil) ifTrue:[
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  2056
        m disableAll:#(doFollow doInspect doBasicInspect doNewInspect
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  2057
                       browse browseClassHierarchy browseFullClassProtocol
12934
2dc6af821d0d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12916
diff changeset
  2058
                       browseValue browseImplementorsOfSymbolValue
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2059
                       doStartMonitor doCopyKey doCopyKey)
1895
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  2060
    ].
9703
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  2061
    (self hasSelfEntry and:[selectionIndex == 1]) ifTrue:[
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  2062
        m disableAll:#(doFollow doCopyKey "doInspect doBasicInspect")
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2063
    ].
7975
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  2064
17458
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  2065
    inspectHistory isEmptyOrNil ifTrue:[
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  2066
        m disable:#doBack
1895
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  2067
    ].
6491
d02c41c57d02 better menu
Claus Gittinger <cg@exept.de>
parents: 6372
diff changeset
  2068
    sel class hasImmediateInstances ifTrue:[
2580
d0c284a14c9c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2579
diff changeset
  2069
        m disableAll:#(showReferences doNewInspect)
d0c284a14c9c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2579
diff changeset
  2070
    ].
8616
51d6f6c57f14 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8452
diff changeset
  2071
"/    sel inspectorClass == self class ifFalse:[
51d6f6c57f14 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8452
diff changeset
  2072
"/        m disable:#doFollow
51d6f6c57f14 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8452
diff changeset
  2073
"/    ].
17458
bc6fd1b6103a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17457
diff changeset
  2074
    (sel isProtoObject or:[sel isMethod not]) ifTrue:[
4197
8086dadff648 added broese methods class
Claus Gittinger <cg@exept.de>
parents: 4106
diff changeset
  2075
        m disable:#browseMethodsClass
8086dadff648 added broese methods class
Claus Gittinger <cg@exept.de>
parents: 4106
diff changeset
  2076
    ].
3199
5478ca0ac71f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3198
diff changeset
  2077
12597
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2078
    sel := nil. "/ release ref to sel; helps reference finder
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2079
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2080
    ^ m
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2081
17694
a18d927e5ede #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17647
diff changeset
  2082
    "Modified: / 27-09-2017 / 09:33:54 / cg"
7639
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  2083
!
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  2084
12597
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2085
localProtocolMenu
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2086
    "return the menu for the inspected object's local implemented messages"
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2087
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2088
    |localSelectors labels localProtocolMenu|
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2089
12886
7b0e8db1cf42 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12849
diff changeset
  2090
    localSelectors := object class methodDictionary keysSorted.
12597
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2091
    "/ kludge: '-' and '=' are special in a menu
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2092
    labels := localSelectors collect:[:sel | (#('-' '=') includes:sel) ifTrue:[' ',sel] ifFalse:[sel]].
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2093
    localProtocolMenu := PopUpMenu
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2094
                        labels:labels
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2095
                        selector:#letSelectedObjectPerform: 
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2096
                        args:localSelectors
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2097
                        receiver:self.
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2098
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2099
    ^ localProtocolMenu
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2100
!
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2101
7639
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  2102
numberBaseItems
9557
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  2103
    ^ {
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  2104
        (integerDisplayRadix == 10) 
12643
60880a007cb0 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12642
diff changeset
  2105
            ifFalse:[ #('Show Integers as Decimal'  #setDisplayRadixTo10  ) ] .
13527
b49478620933 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13258
diff changeset
  2106
        (integerDisplayRadix == 16) 
b49478620933 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13258
diff changeset
  2107
            ifFalse:[ #('Show Integers as Hex'  #setDisplayRadixTo16      ) ] .
9557
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  2108
        (integerDisplayRadix == 2) 
12643
60880a007cb0 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12642
diff changeset
  2109
            ifFalse:[ #('Show Integers as Binary'  #setDisplayRadixTo2    ) ] .
9557
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  2110
      } select:[:el | el notNil].
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  2111
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  2112
    "Modified: / 24-08-2010 / 17:31:51 / cg"
7639
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  2113
!
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  2114
9700
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  2115
optionalByteArraySelectionItems
12467
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2116
"/    |sel|
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2117
"/
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2118
"/    sel := self selection.
17823
d68fc84f98a0 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17816
diff changeset
  2119
    (object isProtoObject not and:[object isByteArray]) ifTrue:[
9700
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  2120
        ^ #(
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  2121
               ('Save Bytes to File...'             #saveBytesToFile)
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  2122
          ).
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  2123
    ].
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  2124
    ^ #()
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  2125
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  2126
    "Created: / 25-01-2011 / 17:16:12 / cg"
17823
d68fc84f98a0 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17816
diff changeset
  2127
    "Modified: / 30-11-2017 / 11:08:43 / stefan"
9700
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  2128
!
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  2129
7639
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  2130
optionalFilenameSelectionItems
18017
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2131
    |sel items|
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2132
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2133
    items := #().
7639
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  2134
    sel := self selection.
17823
d68fc84f98a0 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17816
diff changeset
  2135
    (sel isFilename or:[(sel isString and:[sel asFilename exists])
d68fc84f98a0 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17816
diff changeset
  2136
                    or:[object isProtoObject not and:[object isFilename]]]) ifTrue:[
18017
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2137
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2138
        items := #(('-')).
18458
5d926a1e6b8b #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 18440
diff changeset
  2139
        sel asFilename isRegularFile ifTrue:[
18017
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2140
            items := items , #(
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2141
                            ('Open Application'              #openApplication)
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2142
                     ).
9737
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  2143
        ].
18017
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2144
        items := items , #(
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2145
                            ('Open FileBrowser'             #openFileBrowser)
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2146
                         ).
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2147
        OperatingSystem isMSWINDOWSlike ifTrue:[
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2148
            items := items , #(
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2149
                       ('Show in Explorer'                  #showInWindowsExplorer)
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2150
                     ).
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2151
        ].
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2152
        OperatingSystem isOSXlike ifTrue:[
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2153
            items := items , #(
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2154
                       ('Show in Finder'                    #showInWindowsExplorer)
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2155
                     ).
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2156
        ].
7639
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  2157
    ].
18017
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2158
    ^ items
7639
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  2159
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  2160
    "Created: / 09-02-2007 / 16:10:30 / cg"
9737
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  2161
    "Modified: / 05-02-2011 / 15:49:48 / cg"
17823
d68fc84f98a0 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17816
diff changeset
  2162
    "Modified: / 30-11-2017 / 11:08:10 / stefan"
7639
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  2163
!
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  2164
8799
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2165
optionalMethodOrBlockSelectionItems
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2166
    |sel items|
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2167
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2168
    sel := self selection.
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2169
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2170
    items := #().
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2171
    (sel isBlock or:[sel isContext]) ifTrue:[
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2172
        items := items , #(
10436
75108fe4b96f comment/format in: #browse
Claus Gittinger <cg@exept.de>
parents: 10424
diff changeset
  2173
                       ('Browse Block''s Home'           #browseHome)
8799
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2174
              ).
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2175
    ].
17823
d68fc84f98a0 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17816
diff changeset
  2176
    (sel isMethod or:[object isProtoObject not and:[object isMethod]]) ifTrue:[
8799
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2177
        items := items , #(
10436
75108fe4b96f comment/format in: #browse
Claus Gittinger <cg@exept.de>
parents: 10424
diff changeset
  2178
                       ('Browse Method''s Class'         #browseMethodsClass)
8799
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2179
                 ).
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2180
    ].
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2181
    (selectionIndex notNil 
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2182
    and:[(self fieldList at:selectionIndex ifAbsent:nil) = '-dependents']) ifTrue:[
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2183
        items := items , #(
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2184
                       ('Browse Update Methods'        #browseUpdateMethods)
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2185
                 ).
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2186
    ].
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2187
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2188
    ^ items
10436
75108fe4b96f comment/format in: #browse
Claus Gittinger <cg@exept.de>
parents: 10424
diff changeset
  2189
75108fe4b96f comment/format in: #browse
Claus Gittinger <cg@exept.de>
parents: 10424
diff changeset
  2190
    "Modified: / 03-08-2011 / 15:03:36 / cg"
17823
d68fc84f98a0 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17816
diff changeset
  2191
    "Modified: / 30-11-2017 / 11:05:57 / stefan"
8799
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2192
!
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2193
16814
7492f3cc9301 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16804
diff changeset
  2194
optionalOperationMenuItemsFor:anObject
7492f3cc9301 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16804
diff changeset
  2195
    "chance to add instance-specific operation menu items.
7492f3cc9301 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16804
diff changeset
  2196
     See SerialPort as an example"
7492f3cc9301 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16804
diff changeset
  2197
     
7492f3cc9301 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16804
diff changeset
  2198
    ^ anObject inspectorExtraMenuOperations
7492f3cc9301 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16804
diff changeset
  2199
7492f3cc9301 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16804
diff changeset
  2200
    "
7492f3cc9301 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16804
diff changeset
  2201
     SerialPort new inspect    
7492f3cc9301 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16804
diff changeset
  2202
    "
7492f3cc9301 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16804
diff changeset
  2203
!
7492f3cc9301 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16804
diff changeset
  2204
7639
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  2205
optionalStreamSelectionItems
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  2206
    |sel|
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  2207
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  2208
    sel := self selection.
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  2209
8090
45e0ec5d10f5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8065
diff changeset
  2210
    sel isStream ifTrue:[
45e0ec5d10f5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8065
diff changeset
  2211
        sel isFileStream ifTrue:[
9737
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  2212
            OperatingSystem isMSWINDOWSlike ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  2213
                ^ #(
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  2214
                       ('Show in Explorer'             #showInWindowsExplorer)
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  2215
                       ('Open FileBrowser'             #openFileBrowser)
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  2216
                  ).
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  2217
            ].
8090
45e0ec5d10f5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8065
diff changeset
  2218
            ^ #(
45e0ec5d10f5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8065
diff changeset
  2219
                       ('Open FileBrowser'             #openFileBrowser)
45e0ec5d10f5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8065
diff changeset
  2220
              ).
45e0ec5d10f5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8065
diff changeset
  2221
        ].
9384
30eafebfd3f5 code deobfuscated:
Claus Gittinger <cg@exept.de>
parents: 9378
diff changeset
  2222
        sel isExternalStream ifFalse:[
8090
45e0ec5d10f5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8065
diff changeset
  2223
            ^ #(
7639
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  2224
                       ('Show Stream Contents'         #showStreamContents)
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  2225
              ).
8090
45e0ec5d10f5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8065
diff changeset
  2226
        ].
7639
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  2227
    ].
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  2228
    ^ #()
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  2229
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  2230
    "Created: / 09-02-2007 / 16:09:15 / cg"
9737
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  2231
    "Modified: / 05-02-2011 / 15:49:55 / cg"
8799
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2232
!
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2233
9703
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  2234
optionalToolItems
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  2235
    "inserted after inspect/browse"
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  2236
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  2237
    ^ #()
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  2238
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  2239
    "Created: / 27-01-2011 / 11:51:12 / cg"
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  2240
!
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  2241
8799
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2242
optionalViewSelectionItems
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2243
    |sel|
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2244
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2245
    sel := self selection.
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2246
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2247
    sel isView ifTrue:[
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2248
        ^ #(
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2249
            ('Show Widget Hierarchy'             #openWidgetHierarchy)
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2250
          ).
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2251
    ].
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2252
    ^ #()
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2253
!
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2254
12597
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2255
protocolMenu
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2256
    "return the menu for the inspected object's implemented messages"
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2257
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2258
    |protocols protocolsSorted selectorsByFirstCharacter protocolMenu|
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2259
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2260
    protocols := Dictionary new.
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2261
    selectorsByFirstCharacter := Dictionary new.
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2262
    object class withAllSuperclassesDo:[:eachClass |
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2263
        eachClass methodDictionary keysAndValuesDo:[:sel :m |
15677
1e349bc06021 class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 15670
diff changeset
  2264
            sel argumentCount == 0 ifTrue:[
13870
f879d86b381f merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13768
diff changeset
  2265
                (protocols at:(m category ?'') ifAbsentPut:[Set new]) add:sel.
12597
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2266
                (selectorsByFirstCharacter at:(sel first asString) ifAbsentPut:[Set new]) add:sel.
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2267
            ]
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2268
        ].
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2269
    ].
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2270
12886
7b0e8db1cf42 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12849
diff changeset
  2271
    protocolsSorted := protocols keysSorted.
12597
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2272
    protocolMenu := PopUpMenu
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2273
                        labels:#('alphabetical' '=') , protocolsSorted
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2274
                        selectors:#(nil nil) , protocolsSorted.
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2275
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2276
    protocolMenu 
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2277
        subMenuAt:'alphabetical'
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2278
        put:[
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2279
            |firstChars alphaMenu|
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2280
12886
7b0e8db1cf42 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12849
diff changeset
  2281
            firstChars := selectorsByFirstCharacter keysSorted.
12597
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2282
            alphaMenu := PopUpMenu
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2283
                               labels:firstChars
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2284
                               selector:#mmm 
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2285
                               args:firstChars
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2286
                               receiver:self.
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2287
            firstChars do:[:ch |
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2288
                alphaMenu
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2289
                    subMenuAt:ch
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2290
                    put:[
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2291
                        |selectors sortedSelectors|
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2292
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2293
                        selectors := selectorsByFirstCharacter at:ch.
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2294
                        sortedSelectors := selectors asArray sort.
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2295
                        PopUpMenu
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2296
                            labels:sortedSelectors
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2297
                            selector:#letSelectedObjectPerform: 
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2298
                            args:sortedSelectors
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2299
                            receiver:self.
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2300
                    ]
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2301
            ].
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2302
            alphaMenu
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2303
        ].
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2304
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2305
    protocolsSorted do:[:p |
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2306
        protocolMenu 
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2307
            subMenuAt:p 
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2308
            put:[
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2309
                |selectors sortedSelectors|
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2310
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2311
                selectors := protocols at:p.
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2312
                sortedSelectors := selectors asArray sort.
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2313
                PopUpMenu
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2314
                    labels:sortedSelectors
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2315
                    selector:#letSelectedObjectPerform: 
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2316
                    args:sortedSelectors
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2317
                    receiver:self.
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2318
            ]
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2319
    ].
15677
1e349bc06021 class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 15670
diff changeset
  2320
    ^ protocolMenu
13870
f879d86b381f merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13768
diff changeset
  2321
f879d86b381f merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13768
diff changeset
  2322
    "Modified: / 15-10-2013 / 12:38:49 / Jan Vrany <jan.vrany@fit.cvut.cz>"
12597
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2323
!
cce7b1ccaa6d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2324
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2325
sortOrderItems
18561
f52896fd831a #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 18560
diff changeset
  2326
    "menu items for sort-order"
f52896fd831a #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 18560
diff changeset
  2327
    
11634
06cd46b8e285 changed: #sortOrderItems
Claus Gittinger <cg@exept.de>
parents: 11629
diff changeset
  2328
    object class instSize == 0 ifTrue:[ ^ #() ].
18561
f52896fd831a #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 18560
diff changeset
  2329
    
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2330
    ^ {
16546
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  2331
        (sortOrder == SortOrderInstvarOrder) 
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2332
            ifFalse:[ #('Instvar Order'  #setSortOrderToInstvarOrder  ) ] .
16546
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  2333
        (sortOrder == SortOrderAlphabetical) 
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2334
            ifFalse:[ #('Alphabetical'  #setSortOrderToAlphabetical  ) ] .
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2335
      } select:[:el | el notNil].
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2336
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2337
    "Created: / 20-07-2012 / 10:47:53 / cg"
18561
f52896fd831a #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 18560
diff changeset
  2338
    "Modified (format): / 26-01-2019 / 10:46:41 / Claus Gittinger"
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2339
! !
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2340
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2341
!InspectorView methodsFor:'menu actions'!
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2342
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2343
browse
12528
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  2344
    self doBrowse:self selectedField 
527
2faba0c6ab96 ask class for browserClass
Claus Gittinger <cg@exept.de>
parents: 510
diff changeset
  2345
!
2faba0c6ab96 ask class for browserClass
Claus Gittinger <cg@exept.de>
parents: 510
diff changeset
  2346
2faba0c6ab96 ask class for browserClass
Claus Gittinger <cg@exept.de>
parents: 510
diff changeset
  2347
browseClass
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  2348
    |cls|
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2349
11702
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  2350
    cls := self selectedField class.
10436
75108fe4b96f comment/format in: #browse
Claus Gittinger <cg@exept.de>
parents: 10424
diff changeset
  2351
    cls browserClass 
75108fe4b96f comment/format in: #browse
Claus Gittinger <cg@exept.de>
parents: 10424
diff changeset
  2352
        openInClass:cls selector:nil
75108fe4b96f comment/format in: #browse
Claus Gittinger <cg@exept.de>
parents: 10424
diff changeset
  2353
        "/ browseClass:cls
75108fe4b96f comment/format in: #browse
Claus Gittinger <cg@exept.de>
parents: 10424
diff changeset
  2354
11702
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  2355
    "Modified: / 27-07-2012 / 22:42:39 / cg"
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2356
!
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2357
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2358
browseClassHierarchy
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  2359
    |cls|
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2360
11702
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  2361
    cls := self selectedField class.
527
2faba0c6ab96 ask class for browserClass
Claus Gittinger <cg@exept.de>
parents: 510
diff changeset
  2362
    cls browserClass browseClassHierarchy:cls
2faba0c6ab96 ask class for browserClass
Claus Gittinger <cg@exept.de>
parents: 510
diff changeset
  2363
11702
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  2364
    "Modified: / 27-07-2012 / 22:42:47 / cg"
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2365
!
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2366
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2367
browseFullClassProtocol
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  2368
    |cls|
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2369
11702
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  2370
    cls := self selectedField class.
527
2faba0c6ab96 ask class for browserClass
Claus Gittinger <cg@exept.de>
parents: 510
diff changeset
  2371
    cls browserClass browseFullClassProtocol:cls
2faba0c6ab96 ask class for browserClass
Claus Gittinger <cg@exept.de>
parents: 510
diff changeset
  2372
11702
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  2373
    "Modified: / 27-07-2012 / 22:42:50 / cg"
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2374
!
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2375
2579
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  2376
browseHome
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  2377
    |sel mthd|
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  2378
11702
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  2379
    sel := self selectedField.
2579
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  2380
    sel isBlock ifTrue:[
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  2381
        mthd := sel homeMethod
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  2382
    ] ifFalse:[
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  2383
        sel isContext ifTrue:[
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  2384
            mthd := sel method.
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  2385
        ]
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  2386
    ].
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  2387
    mthd isNil ifTrue:[
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  2388
        ^ self warn:'Sorry - cannot figure out home method.'
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  2389
    ].
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  2390
    mthd class browserClass 
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  2391
        openInClass:mthd mclass selector:mthd selector
11702
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  2392
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  2393
    "Modified: / 27-07-2012 / 22:42:55 / cg"
2579
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  2394
!
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  2395
12934
2dc6af821d0d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12916
diff changeset
  2396
browseImplementorsOfSymbolValue
2dc6af821d0d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12916
diff changeset
  2397
    |symbol|
2dc6af821d0d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12916
diff changeset
  2398
2dc6af821d0d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12916
diff changeset
  2399
    symbol := self selection.
18789
8ff9798593ec #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18787
diff changeset
  2400
    inspectedObject class browserClass 
12934
2dc6af821d0d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12916
diff changeset
  2401
        browseImplementorsOf:symbol
18789
8ff9798593ec #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18787
diff changeset
  2402
8ff9798593ec #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18787
diff changeset
  2403
    "Modified (format): / 28-05-2019 / 19:53:17 / Claus Gittinger"
12934
2dc6af821d0d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12916
diff changeset
  2404
!
2dc6af821d0d class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12916
diff changeset
  2405
4197
8086dadff648 added broese methods class
Claus Gittinger <cg@exept.de>
parents: 4106
diff changeset
  2406
browseMethodsClass
15254
9c48449d6d0e class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15246
diff changeset
  2407
    |mthd mclass|
4197
8086dadff648 added broese methods class
Claus Gittinger <cg@exept.de>
parents: 4106
diff changeset
  2408
8086dadff648 added broese methods class
Claus Gittinger <cg@exept.de>
parents: 4106
diff changeset
  2409
    mthd := self selection.
15254
9c48449d6d0e class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15246
diff changeset
  2410
    (mclass := mthd mclass) isNil ifTrue:[
9c48449d6d0e class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15246
diff changeset
  2411
        Dialog information:'Method is no longer valid (class has been changed in the meanwhile)'
9c48449d6d0e class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15246
diff changeset
  2412
    ] ifFalse:[
9c48449d6d0e class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15246
diff changeset
  2413
        mclass browserClass 
9c48449d6d0e class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15246
diff changeset
  2414
            openInClass:mclass 
9c48449d6d0e class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15246
diff changeset
  2415
            selector:mthd selector
9c48449d6d0e class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15246
diff changeset
  2416
    ].
4197
8086dadff648 added broese methods class
Claus Gittinger <cg@exept.de>
parents: 4106
diff changeset
  2417
!
8086dadff648 added broese methods class
Claus Gittinger <cg@exept.de>
parents: 4106
diff changeset
  2418
16832
5edf4aa25bf6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 16816
diff changeset
  2419
browseReferencesToInstvar
5edf4aa25bf6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 16816
diff changeset
  2420
    SystemBrowser default
5edf4aa25bf6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 16816
diff changeset
  2421
        browseRefsTo:(self selectedKeyName) 
5edf4aa25bf6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 16816
diff changeset
  2422
        classVars:false
5edf4aa25bf6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 16816
diff changeset
  2423
        in:(inspectedObject class withAllSuperclasses)
5edf4aa25bf6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 16816
diff changeset
  2424
        modificationsOnly:false
5edf4aa25bf6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 16816
diff changeset
  2425
!
5edf4aa25bf6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 16816
diff changeset
  2426
7975
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  2427
browseUpdateMethods
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  2428
    |deps methods|
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  2429
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  2430
    deps := self selection.
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  2431
    methods := Set new.
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  2432
    deps do:[:each | 
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  2433
        |implClass|
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  2434
8962
b0e0907c0bf7 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 8908
diff changeset
  2435
        implClass := each class whichClassIncludesSelector:#'update:with:from:'.
7975
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  2436
        implClass notNil ifTrue:[
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  2437
            methods add:(implClass compiledMethodAt:#'update:with:from:')
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  2438
        ]
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  2439
    ].
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  2440
    methods isEmpty ifTrue:[^ self].
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  2441
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  2442
    methods first mclass browserClass 
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  2443
        browseMethods:methods
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  2444
        title:'Update Method(s) of dependent(s)'
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  2445
!
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  2446
12528
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  2447
browseValue
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  2448
    self doBrowse:self selectedField value
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  2449
!
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  2450
1895
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  2451
doBack
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  2452
    "user selected back-menu entry"
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  2453
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  2454
    |objectToInspect|
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  2455
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  2456
    inspectHistory size > 0 ifTrue:[
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2457
        objectToInspect := inspectHistory removeLast.
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2458
        inspectHistory size == 0 ifTrue:[
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2459
            inspectHistory := nil
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2460
        ].
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2461
        self inspect:objectToInspect.
1895
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  2462
    ]
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  2463
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  2464
    "Created: / 22.9.1998 / 18:22:01 / cg"
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  2465
    "Modified: / 22.9.1998 / 18:22:28 / cg"
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  2466
!
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  2467
1930
fc38f714f4ab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1895
diff changeset
  2468
doBasicInspect
fc38f714f4ab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1895
diff changeset
  2469
    "user selected inspect-menu entry"
fc38f714f4ab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1895
diff changeset
  2470
12528
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  2471
    self doInspect:self selectedField basic:true
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  2472
!
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  2473
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  2474
doBrowse:what
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  2475
    |cls|
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  2476
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  2477
    cls := what class.
15938
cae7d2a6c923 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 15895
diff changeset
  2478
    cls browserClass openInClass:cls selector:nil
12528
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  2479
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  2480
    "Created: / 14-12-1995 / 19:15:50 / cg"
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  2481
    "Modified: / 27-07-2012 / 22:42:44 / cg"
1930
fc38f714f4ab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1895
diff changeset
  2482
!
fc38f714f4ab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1895
diff changeset
  2483
12467
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2484
doCatchChanges
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2485
    |sel|
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2486
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2487
    holderChangeInterest isNil ifTrue:[
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2488
        "/ remember the interest, in order to be able to retract later
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2489
        holderChangeInterest := [ self holderChanged:sel ]
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2490
    ].
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2491
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2492
    sel := self selection.
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2493
    sel onChangeSend:#value to:holderChangeInterest.
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2494
!
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2495
1895
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  2496
doFollow
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  2497
    "user selected follow-menu entry"
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  2498
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  2499
    |objectToInspect|
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  2500
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  2501
    selectionIndex notNil ifTrue:[
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  2502
        objectToInspect := self selection.
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  2503
        inspectHistory isNil ifTrue:[
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  2504
            inspectHistory := OrderedCollection new
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  2505
        ].
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2506
        inspectHistory addLast:object.
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  2507
        self inspect:objectToInspect.
1895
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  2508
    ]
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  2509
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  2510
    "Created: / 22.9.1998 / 18:21:08 / cg"
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  2511
    "Modified: / 22.9.1998 / 18:22:23 / cg"
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  2512
!
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  2513
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2514
doInspect
12528
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  2515
    "user selected inspect menu entry"
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  2516
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  2517
    self doInspect:self selectedField basic:false
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  2518
!
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  2519
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  2520
doInspectValue
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  2521
    "user selected inspect-value menu entry"
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  2522
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  2523
    self doInspect:self selectedField value basic:false
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2524
!
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2525
1365
4a98e9a59430 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1270
diff changeset
  2526
doNewInspect
4a98e9a59430 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1270
diff changeset
  2527
    self doInspect:#new
4a98e9a59430 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1270
diff changeset
  2528
!
4a98e9a59430 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1270
diff changeset
  2529
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2530
doStartMonitor
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2531
    "start a monitoring process"
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2532
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2533
    monitorProcess isNil ifTrue:[
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  2534
        monitorProcess :=
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  2535
            [
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  2536
                |sel|
295
92bcaa9996ae minor changes for ContextInspector required
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  2537
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  2538
                [true] whileTrue:[
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  2539
                    (sel := selectionIndex) notNil ifTrue:[
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  2540
                        self showSelection:sel 
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  2541
                    ].
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  2542
                    (Delay forSeconds:0.5) wait
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  2543
                ]
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  2544
            ] forkAt:Processor userBackgroundPriority
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2545
    ]
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2546
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2547
    "Modified: 12.4.1996 / 14:20:06 / cg"
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2548
!
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2549
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2550
doStopMonitor
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2551
    "stop the monitor"
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2552
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2553
    monitorProcess terminate.
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2554
    monitorProcess := nil
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2555
!
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2556
2800
4e5792ade7aa menu fix
Claus Gittinger <cg@exept.de>
parents: 2724
diff changeset
  2557
doTraceAll
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2558
    "place a trace on all messages sent to the inspected object"
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2559
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2560
    self topView withWaitCursorDo:[MessageTracer traceAll:object on:Transcript]
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2561
!
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2562
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2563
doTrap
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2564
    "place a trap on a message sent to the inspected object"
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2565
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2566
    |string selector|
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2567
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2568
    string := Dialog request:'Selector to trap on:' onCancel:nil.
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2569
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2570
    string notNil ifTrue:[
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2571
        selector := string asSymbolIfInterned.
901
56fe927e0734 fix doTrap
ca
parents: 874
diff changeset
  2572
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2573
        selector isNil ifTrue:[
11893
ae42ce342190 changed:
Claus Gittinger <cg@exept.de>
parents: 11858
diff changeset
  2574
            self warn:'No such selector'
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2575
        ] ifFalse:[
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2576
            self topView withWaitCursorDo:[MessageTracer trap:object 
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2577
                                                         selector:selector]
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2578
        ]
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2579
    ]
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2580
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2581
    "Modified: 12.4.1996 / 14:07:01 / cg"
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2582
!
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2583
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2584
doTrapAll
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2585
    "place a trap on all messages sent to the inspected object"
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2586
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2587
    self topView withWaitCursorDo:[MessageTracer trapAll:object]
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2588
!
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2589
2850
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  2590
doTrapAnyInstVarChange
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  2591
    "place a trap which is triggered if any instVar of the inspected object is changed"
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  2592
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  2593
    self topView withWaitCursorDo:[
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2594
        MessageTracer trapModificationsIn:object
2850
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  2595
    ]
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  2596
!
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  2597
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  2598
doTrapInstVarChange
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  2599
    "place a trap which is triggered if the selected instVar of the inspected object is changed"
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  2600
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  2601
    self topView withWaitCursorDo:[
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  2602
        |idx|
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  2603
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  2604
        "/ a named instVar ?
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  2605
        idx := self instVarIndexForLine:selectionIndex.
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  2606
        idx isNil ifTrue:[
11893
ae42ce342190 changed:
Claus Gittinger <cg@exept.de>
parents: 11858
diff changeset
  2607
            self warn:'Select an instance variable first.'.
2850
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  2608
            ^ self.
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  2609
        ].
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  2610
        MessageTracer 
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2611
                trapModificationsOf:(object class allInstVarNames at:idx)
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2612
                in:object
2850
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  2613
    ]
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  2614
!
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  2615
13185
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2616
doTrapUpdates
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2617
    "place a trap on all update and XXXChanged messages sent to the inspected object"
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2618
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2619
    |selectors|
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2620
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2621
    selectors := IdentitySet new.
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2622
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2623
    "/ find all dependencies which lead to a message to this object
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2624
    "/ (also look for onChangeSend: and onChangeEvaluate: dependencies)
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2625
    InterestConverter allInstances do:[:i |
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2626
        |dest mthd messages|
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2627
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2628
        dest := i destination.
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2629
        (dest == object) ifTrue:[
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2630
            selectors add:(i selector)
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2631
        ] ifFalse:[
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2632
            (dest isBlock 
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2633
            and:[ (dest methodHome receiver == object)
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2634
            and:[ (mthd := dest methodHome method) notNil ]]) ifTrue:[   
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2635
                "/ vague
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2636
                messages := mthd messagesSent.
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2637
                messages := messages select:[:sel | object class implements:sel].
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2638
                selectors addAll:messages.
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2639
            ].
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2640
        ]
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2641
    ].
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2642
    #(update:
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2643
      update:with:
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2644
      update:with:from:)
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2645
    do:[:each |
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2646
        (object class implements:each) ifTrue:[
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2647
            selectors add:each.
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2648
        ]
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2649
    ].
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2650
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2651
    InterestConverter allInstances 
14938
e3a2c4118452 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14815
diff changeset
  2652
        select:[:i | |dest|
e3a2c4118452 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14815
diff changeset
  2653
                     dest := i destination.
e3a2c4118452 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14815
diff changeset
  2654
                     dest class == MessageSend
e3a2c4118452 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14815
diff changeset
  2655
                     and:[dest selector == #value
e3a2c4118452 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14815
diff changeset
  2656
                     and:[dest receiver == object ]]]
13185
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2657
        thenDo:[:i | selectors add:(i selector)].
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2658
14938
e3a2c4118452 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14815
diff changeset
  2659
    selectors isEmpty ifTrue:[
e3a2c4118452 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14815
diff changeset
  2660
        Dialog information:'I found no update/interest messages to trap.'.
e3a2c4118452 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14815
diff changeset
  2661
        ^ self.
e3a2c4118452 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14815
diff changeset
  2662
    ].
e3a2c4118452 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14815
diff changeset
  2663
13185
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2664
    (Dialog 
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2665
        confirm:('About to place an instance trap on the following selectors:\\' withCRs
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2666
                    , (selectors asOrderedCollection sort asStringWith:'\' withCRs)))
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2667
        ifFalse:[ ^ self].
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2668
14938
e3a2c4118452 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14815
diff changeset
  2669
    self topView withWaitCursorDo:[
e3a2c4118452 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14815
diff changeset
  2670
        MessageTracer trap:object selectors:selectors
e3a2c4118452 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14815
diff changeset
  2671
    ]
13185
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2672
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2673
    "Created: / 16-07-2013 / 19:56:08 / cg"
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2674
!
a682a29bb651 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
  2675
12467
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2676
doUncatchChanges
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2677
    |sel|
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2678
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2679
    holderChangeInterest notNil ifTrue:[
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2680
        sel := self selection.
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2681
        sel retractInterestsFor:holderChangeInterest
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2682
    ].
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2683
!
49d6f47ed3f4 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12457
diff changeset
  2684
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2685
doUntrace
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2686
    "remove traps/traces"
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2687
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2688
    MessageTracer untrace:object
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2689
!
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2690
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2691
inspectOwners
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2692
    "open an inspector on owners of the inspectedObject.
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2693
     (this is a secret function)"
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2694
18357
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2695
    self windowGroup withCursor:(Cursor questionMark) do:[
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2696
        |owners dict|
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2697
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2698
        owners := (ObjectMemory whoReferences:object) asOrderedCollection.
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2699
        owners size > 500 ifTrue:[
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2700
            (self confirm:'there are ' , owners size printString , ' owners.\\Do you really want to see them all ?' withCRs)
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2701
            ifFalse:[^ self]
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2702
        ].
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2703
        dict := IdentityDictionary new.
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2704
        owners do:[:owner |
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2705
            |set names oClass|
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2706
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2707
            owner ~~ self ifTrue:[
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2708
                set := Set new.
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2709
                names := owner class allInstVarNames.
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2710
                oClass := owner class.
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2711
                1 to:oClass instSize do:[:i |
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2712
                    (owner instVarAt:i) == object ifTrue:[
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2713
                        set add:(names at:i).
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2714
                    ].
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2715
                ].
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2716
                oClass isVariable ifTrue:[
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2717
                    oClass isPointers ifTrue:[
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2718
                        1 to:owner basicSize do:[:i |
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2719
                            (owner basicAt:i) == object ifTrue:[
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2720
                                 set add:i
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2721
                            ]
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2722
                        ]
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2723
                    ]
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2724
                ].
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2725
                dict at:owner put:set
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2726
            ].
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2727
        ].
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2728
        dict inspect
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  2729
    ]
18357
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2730
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2731
    "Modified: / 27-08-2018 / 11:12:32 / Claus Gittinger"
2587
b6838cdb1f14 added show-stream-contents menu item
Claus Gittinger <cg@exept.de>
parents: 2580
diff changeset
  2732
!
b6838cdb1f14 added show-stream-contents menu item
Claus Gittinger <cg@exept.de>
parents: 2580
diff changeset
  2733
8993
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  2734
letSelectedObjectPerform:aSelector
9574
d2a1b8074d35 changed:
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
  2735
    |sel argString|
8993
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  2736
11702
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  2737
    sel := self selectedField.
15677
1e349bc06021 class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 15670
diff changeset
  2738
    aSelector argumentCount == 0 ifTrue:[
8993
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  2739
        (sel perform:aSelector) inspect.
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  2740
        ^ self.
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  2741
    ].
15677
1e349bc06021 class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 15670
diff changeset
  2742
    aSelector argumentCount == 1 ifTrue:[
9574
d2a1b8074d35 changed:
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
  2743
        argString := Dialog request:'Argument (Smalltalk Object)'.
d2a1b8074d35 changed:
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
  2744
        argString isEmptyOrNil ifTrue:[^ self].
d2a1b8074d35 changed:
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
  2745
        (sel perform:aSelector with:(Object readFrom:argString)) inspect.
d2a1b8074d35 changed:
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
  2746
        ^ self.
d2a1b8074d35 changed:
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
  2747
    ].
15677
1e349bc06021 class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 15670
diff changeset
  2748
self halt:'unimplemented argumentCount'.
9574
d2a1b8074d35 changed:
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
  2749
11702
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  2750
    "Modified: / 27-07-2012 / 22:43:37 / cg"
8993
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  2751
!
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  2752
18017
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2753
openApplication
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2754
    "open a windows or osx application (typically a viewer)"
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2755
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2756
    |fn|
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2757
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2758
    fn := self selection.
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2759
    fn isNil ifTrue:[ fn := inspectedObject ].
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2760
    fn isStream ifTrue:[
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2761
        fn := fn pathName
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2762
    ].
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2763
    fn := fn asFilename.
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2764
    fn isDirectory ifTrue:[^ self].
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2765
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2766
    OperatingSystem
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2767
        openApplicationForDocument:fn pathName
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2768
        operation:#open.
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2769
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2770
    "Created: / 05-02-2011 / 15:49:33 / cg"
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2771
!
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2772
6283
7fa17d36a91c +openFileBrowser (when inspeting a filename)
Claus Gittinger <cg@exept.de>
parents: 6130
diff changeset
  2773
openFileBrowser
7fa17d36a91c +openFileBrowser (when inspeting a filename)
Claus Gittinger <cg@exept.de>
parents: 6130
diff changeset
  2774
    |fn|
7fa17d36a91c +openFileBrowser (when inspeting a filename)
Claus Gittinger <cg@exept.de>
parents: 6130
diff changeset
  2775
7fa17d36a91c +openFileBrowser (when inspeting a filename)
Claus Gittinger <cg@exept.de>
parents: 6130
diff changeset
  2776
    fn := self selection.
9615
6fc22155a4f6 changed: #openFileBrowser
Claus Gittinger <cg@exept.de>
parents: 9574
diff changeset
  2777
    fn isNil ifTrue:[ fn := inspectedObject ].
8155
018dcb4973bf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8090
diff changeset
  2778
    fn isStream ifTrue:[
018dcb4973bf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8090
diff changeset
  2779
        fn := fn pathName asFilename
018dcb4973bf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8090
diff changeset
  2780
    ].
17647
2ba588ad0dce #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17589
diff changeset
  2781
    FileBrowser default openOnFileNamed:fn asFilename.
2ba588ad0dce #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17589
diff changeset
  2782
2ba588ad0dce #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17589
diff changeset
  2783
    "Modified: / 01-09-2017 / 14:05:31 / cg"
6283
7fa17d36a91c +openFileBrowser (when inspeting a filename)
Claus Gittinger <cg@exept.de>
parents: 6130
diff changeset
  2784
!
7fa17d36a91c +openFileBrowser (when inspeting a filename)
Claus Gittinger <cg@exept.de>
parents: 6130
diff changeset
  2785
8799
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2786
openWidgetHierarchy
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2787
    |view|
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2788
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2789
    view := self selection.
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2790
    view isView ifFalse:[^ self].
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2791
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2792
    WindowTreeView openOn:view
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2793
!
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  2794
9700
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  2795
saveBytesToFile
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  2796
    |fn|
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  2797
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  2798
    fn := Dialog requestFileName:'Save bytes into:'.
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  2799
    fn isEmptyOrNil ifTrue:[^ self].
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  2800
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  2801
    fn asFilename contents:inspectedObject.
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  2802
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  2803
    "Modified: / 25-01-2011 / 17:23:38 / cg"
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  2804
!
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  2805
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2806
setDisplayRadixTo10
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2807
    self setDisplayRadixTo:10
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2808
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2809
    "Created: / 24-08-2010 / 17:26:12 / cg"
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2810
!
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2811
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2812
setDisplayRadixTo16
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2813
    self setDisplayRadixTo:16
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2814
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2815
    "Created: / 24-08-2010 / 17:26:22 / cg"
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2816
!
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2817
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2818
setDisplayRadixTo2
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2819
    self setDisplayRadixTo:2
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2820
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2821
    "Created: / 24-08-2010 / 17:26:18 / cg"
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2822
!
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2823
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2824
setDisplayRadixTo:radix
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2825
    |sel|
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2826
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2827
    integerDisplayRadix := DefaultIntegerDisplayRadix := radix.
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2828
    self reinspect.
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2829
    sel := listView selection.
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2830
    sel notNil ifTrue:[
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2831
        self showSelection:sel
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2832
    ]
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2833
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2834
    "Created: / 24-08-2010 / 17:26:54 / cg"
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2835
!
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2836
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2837
setSortOrderTo:aSymbol
16546
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  2838
    "aSymbol must be one of #alphabetical or #instvarOrder"
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  2839
    
16604
8fe42a521acf #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16563
diff changeset
  2840
    self assert:((aSymbol == SortOrderAlphabetical) or:[ aSymbol == SortOrderInstvarOrder ]).
16546
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  2841
    sortOrderHolder value:aSymbol.
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2842
!
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2843
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2844
setSortOrderToAlphabetical
16546
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  2845
    self setSortOrderTo:SortOrderAlphabetical
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2846
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2847
    "Created: / 20-07-2012 / 10:59:52 / cg"
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2848
!
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2849
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2850
setSortOrderToInstvarOrder
16563
ea6d2d30a73b #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16550
diff changeset
  2851
    self setSortOrderTo:SortOrderInstvarOrder
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2852
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2853
    "Created: / 20-07-2012 / 10:59:59 / cg"
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2854
!
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2855
11576
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2856
showAll
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2857
    |o|
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2858
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2859
    hasMore ifTrue:[
11578
f750a9c9fb7a +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11576
diff changeset
  2860
        nShown := self numIndexedFields.
11576
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2861
        "/ force update (which is otherwise ignored)
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2862
        o := object.
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2863
        inspectedObject := object := nil.
16064
a770f72f3601 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15959
diff changeset
  2864
        self inspect:o keepSelection:true
11576
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2865
    ]
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2866
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2867
    "Created: / 13-06-2012 / 09:27:45 / cg"
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2868
!
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2869
15715
a734f6d30da5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  2870
showAlphabetical:aBoolean
a734f6d30da5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  2871
    aBoolean ifTrue:[
a734f6d30da5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  2872
        self setSortOrderToAlphabetical
a734f6d30da5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  2873
    ] ifFalse:[
a734f6d30da5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  2874
        self setSortOrderToInstvarOrder
a734f6d30da5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  2875
    ].
a734f6d30da5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  2876
!
a734f6d30da5 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15713
diff changeset
  2877
18357
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2878
showDependentOf
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2879
    "show all objects of which the selected object is a dependent"
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2880
    
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2881
    |o owners|    
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2882
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2883
    owners := OrderedCollection new.
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2884
    o := self selection.
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2885
    self windowGroup withCursor:(Cursor questionMark) do:[
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2886
        |dependents dict|
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2887
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2888
        ObjectMemory allObjectsDo:[:each |
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2889
            |deps|
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2890
            
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2891
            (each class ~~ String) ifTrue:[
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2892
                each isProtoObject ifFalse:[
18632
da7e6cb7c8aa #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18573
diff changeset
  2893
                    (deps := each dependents) size ~~ 0 ifTrue:[
18357
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2894
                        (deps includesIdentical:o) ifTrue:[
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2895
                            owners add:each
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2896
                        ].    
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2897
                    ].    
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2898
                ].    
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2899
            ].    
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2900
        ]
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2901
    ].
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2902
    owners isEmptyOrNil ifTrue:[
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2903
        self information:'Not dependending on anything.'.
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2904
        ^ self
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2905
    ].
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2906
    owners inspect.
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2907
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2908
    "Created: / 27-08-2018 / 11:09:35 / Claus Gittinger"
18632
da7e6cb7c8aa #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18573
diff changeset
  2909
    "Modified: / 01-03-2019 / 15:57:54 / Claus Gittinger"
18357
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2910
!
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2911
17694
a18d927e5ede #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17647
diff changeset
  2912
showDependents
18357
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2913
    "show the selected object's dependents"
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2914
    
17694
a18d927e5ede #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17647
diff changeset
  2915
    |o|    
a18d927e5ede #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17647
diff changeset
  2916
a18d927e5ede #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17647
diff changeset
  2917
    o := self selection.
18357
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2918
    self windowGroup withCursor:(Cursor questionMark) do:[
17694
a18d927e5ede #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17647
diff changeset
  2919
        |dependents dict|
a18d927e5ede #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17647
diff changeset
  2920
a18d927e5ede #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17647
diff changeset
  2921
        dependents := o dependents.
a18d927e5ede #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17647
diff changeset
  2922
        dependents isEmptyOrNil ifTrue:[
a18d927e5ede #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17647
diff changeset
  2923
            self information:'No dependents.'.
a18d927e5ede #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17647
diff changeset
  2924
            ^ self
a18d927e5ede #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17647
diff changeset
  2925
        ].
a18d927e5ede #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17647
diff changeset
  2926
        dependents := dependents asOrderedCollection.
a18d927e5ede #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17647
diff changeset
  2927
        dependents inspect.
a18d927e5ede #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17647
diff changeset
  2928
    ]
a18d927e5ede #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17647
diff changeset
  2929
a18d927e5ede #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17647
diff changeset
  2930
    "Created: / 27-09-2017 / 09:35:08 / cg"
18357
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2931
    "Modified: / 27-08-2018 / 11:12:14 / Claus Gittinger"
17694
a18d927e5ede #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17647
diff changeset
  2932
!
a18d927e5ede #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17647
diff changeset
  2933
9737
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  2934
showInWindowsExplorer
18017
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2935
    "show folder in explorer/finder or filebrowser"
9737
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  2936
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  2937
    |fn dir|
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  2938
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  2939
    fn := self selection.
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  2940
    fn isNil ifTrue:[ fn := inspectedObject ].
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  2941
    fn isStream ifTrue:[
18017
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2942
        fn := fn pathName
9737
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  2943
    ].
18017
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2944
    fn := fn asFilename.
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2945
    fn openExplorer.
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2946
"/    dir := fn isDirectory
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2947
"/            ifTrue:[ fn ]
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2948
"/            ifFalse:[ fn directory ].
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2949
"/
ae8d19e71acb #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18014
diff changeset
  2950
"/    dir openExplorer
9737
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  2951
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  2952
    "Created: / 05-02-2011 / 15:49:33 / cg"
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  2953
!
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  2954
11576
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2955
showMore
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2956
    |o|
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2957
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2958
    hasMore ifTrue:[
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2959
        nShown := nShown * 2.
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2960
        "/ force update (which is otherwise ignored)
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2961
        o := object.
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2962
        inspectedObject := object := nil.
16064
a770f72f3601 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15959
diff changeset
  2963
        self inspect:o keepSelection:true
11576
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2964
    ]
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2965
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2966
    "Modified: / 26.8.1998 / 19:05:25 / cg"
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2967
!
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  2968
7951
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  2969
showOwners
17032
a8c6d15d5761 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 16883
diff changeset
  2970
    |o|    
7951
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  2971
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  2972
    o := self selection.
18357
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2973
    self windowGroup withCursor:(Cursor questionMark) do:[
7951
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  2974
        |owners dict|
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  2975
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  2976
        owners := (ObjectMemory whoReferences:o).
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  2977
        owners isEmptyOrNil ifTrue:[
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  2978
            self information:'No owners found.'.
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  2979
            ^ self
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  2980
        ].
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  2981
        owners := owners asOrderedCollection.
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  2982
        "
17032
a8c6d15d5761 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 16883
diff changeset
  2983
         skip weakArrays ... (they don't count)
7951
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  2984
        "
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  2985
        owners := owners reject:[:owner | owner isMemberOf:WeakArray].
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  2986
        owners inspect.
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  2987
"/        inspector := DictionaryInspectorView openOn:dict.
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  2988
"/        inspector listView doubleClickAction:[:lineNr | inspector doInspectKey].
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  2989
    ]
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  2990
18357
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2991
    "Modified: / 15-10-1996 / 22:09:38 / cg"
b35af359170b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18259
diff changeset
  2992
    "Modified: / 27-08-2018 / 11:12:28 / Claus Gittinger"
7951
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  2993
!
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  2994
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  2995
showReferences
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  2996
    "user selected references-menu entry"
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  2997
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  2998
    self selection class hasImmediateInstances ifTrue:[
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  2999
        ^ self warn:'Sorry - cannot show references to immediate objects'
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  3000
    ].
17985
e80c463e90f6 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 17977
diff changeset
  3001
    "Run in own process to allow inspector to be closed while running"
e80c463e90f6 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 17977
diff changeset
  3002
    [
18735
539b94983daf #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 18632
diff changeset
  3003
        ObjectMemory displayRefChainTo:self selection.
539b94983daf #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 18632
diff changeset
  3004
    ] forkNamed:#showReferences.
17985
e80c463e90f6 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 17977
diff changeset
  3005
e80c463e90f6 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 17977
diff changeset
  3006
    "Modified: / 30-07-1998 / 14:03:16 / cg"
e80c463e90f6 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 17977
diff changeset
  3007
    "Modified: / 13-02-2018 / 12:27:19 / stefan"
18735
539b94983daf #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 18632
diff changeset
  3008
    "Modified (format): / 11-04-2019 / 14:31:38 / Stefan Vogel"
7951
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  3009
!
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  3010
2587
b6838cdb1f14 added show-stream-contents menu item
Claus Gittinger <cg@exept.de>
parents: 2580
diff changeset
  3011
showStreamContents
b6838cdb1f14 added show-stream-contents menu item
Claus Gittinger <cg@exept.de>
parents: 2580
diff changeset
  3012
    |sel|
b6838cdb1f14 added show-stream-contents menu item
Claus Gittinger <cg@exept.de>
parents: 2580
diff changeset
  3013
b6838cdb1f14 added show-stream-contents menu item
Claus Gittinger <cg@exept.de>
parents: 2580
diff changeset
  3014
    sel := self selection.
b6838cdb1f14 added show-stream-contents menu item
Claus Gittinger <cg@exept.de>
parents: 2580
diff changeset
  3015
    (sel isStream and:[sel isExternalStream not]) ifTrue:[
b6838cdb1f14 added show-stream-contents menu item
Claus Gittinger <cg@exept.de>
parents: 2580
diff changeset
  3016
        workspace replace:(sel contents printString)
b6838cdb1f14 added show-stream-contents menu item
Claus Gittinger <cg@exept.de>
parents: 2580
diff changeset
  3017
    ].
b6838cdb1f14 added show-stream-contents menu item
Claus Gittinger <cg@exept.de>
parents: 2580
diff changeset
  3018
b6838cdb1f14 added show-stream-contents menu item
Claus Gittinger <cg@exept.de>
parents: 2580
diff changeset
  3019
    "Created: / 6.2.2000 / 13:46:37 / cg"
b6838cdb1f14 added show-stream-contents menu item
Claus Gittinger <cg@exept.de>
parents: 2580
diff changeset
  3020
    "Modified: / 6.2.2000 / 13:47:37 / cg"
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  3021
! !
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  3022
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3023
!InspectorView methodsFor:'presentation'!
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3024
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3025
appendDisplayStringForElementsOf:val indent:lvl pad:padding to:aStream
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3026
    val doWithIndex:[:el :idx |
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3027
        |elValString|
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3028
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3029
        aStream spaces:lvl.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3030
        aStream nextPutAll:(' ' paddedTo:padding with:$.).
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3031
        aStream nextPutAll:(' [',(idx printString leftPaddedTo:2),']').
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3032
        aStream nextPutAll:' : '.
16804
52a7f72328f2 #DOCUMENTATION by mawalch
mawalch
parents: 16758
diff changeset
  3033
        elValString := self basicDisplayStringForValue:el.
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3034
        aStream nextPutAll:elValString.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3035
        aStream cr.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3036
        "/ s nextPutAll:(self stringWithAllInstVarValuesFor:el level:lvl+4)
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3037
    ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3038
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3039
    "Created: / 12-02-2012 / 09:55:53 / cg"
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3040
!
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3041
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3042
basicDisplayStringForValue:someValue 
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3043
    "return the value's displayString to be pasted into the workspace."
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3044
12496
0c1a828b524e class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12467
diff changeset
  3045
    |s maxStringLength|
0c1a828b524e class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12467
diff changeset
  3046
18022
c5e8f4ba1838 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18017
diff changeset
  3047
    maxStringLength := self maxValueDisplayStringLength.
17975
04ee23918108 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 17956
diff changeset
  3048
17705
bfbd5f0b4cb9 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17694
diff changeset
  3049
    thisContext isRecursive ifTrue:[
17706
f8550765a5cf #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17705
diff changeset
  3050
        "/ catch this, to avoid endless recurion if there is an error
f8550765a5cf #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17705
diff changeset
  3051
        "/ in printString generation
17705
bfbd5f0b4cb9 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17694
diff changeset
  3052
        ^ '**error**'
bfbd5f0b4cb9 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17694
diff changeset
  3053
    ].
bfbd5f0b4cb9 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17694
diff changeset
  3054
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3055
    Error handle:[:ex |
12688
f497f6254988 use #creator instead of #signal
Claus Gittinger <cg@exept.de>
parents: 12643
diff changeset
  3056
        (ex creator == WriteError and:[s isStream]) ifTrue:[
12496
0c1a828b524e class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12467
diff changeset
  3057
            "hit the write limit"
12103
00db0ef29541 class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 12090
diff changeset
  3058
            s writeLimit:nil.
00db0ef29541 class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 12090
diff changeset
  3059
            s nextPutAll:' ...'.
00db0ef29541 class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 12090
diff changeset
  3060
            ^ s contents.
00db0ef29541 class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 12090
diff changeset
  3061
        ].
17131
eccb24a60c2e #BUGFIX by Maren
matilk
parents: 17130
diff changeset
  3062
        s := someValue class nameWithArticle.
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3063
        displayStringMessage == #displayString ifTrue:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3064
            s := s , ' "error in displayString: ' , ex description , '"'
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3065
        ] ifFalse:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3066
            s := s , ' "error in displayString (' , displayStringMessage , '): ' , ex description , '"'
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3067
        ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3068
        ^ s
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3069
    ] do:[
12090
4d6995f57149 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12076
diff changeset
  3070
        [
17814
1f32591535f0 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17706
diff changeset
  3071
            someValue isProtoObject ifTrue:[
1f32591535f0 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17706
diff changeset
  3072
                "Lazy values redefine #displayOn: to stay lazy"
1f32591535f0 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17706
diff changeset
  3073
                displayStringMessage := #displayString
1f32591535f0 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17706
diff changeset
  3074
            ] ifFalse:[
1f32591535f0 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17706
diff changeset
  3075
                integerDisplayRadix ~= 10 ifTrue:[
1f32591535f0 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17706
diff changeset
  3076
                    "/ not everything can be shown in HEX/Binary
1f32591535f0 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17706
diff changeset
  3077
17975
04ee23918108 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 17956
diff changeset
  3078
                   someValue isInteger ifTrue:[
17814
1f32591535f0 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17706
diff changeset
  3079
                        (someValue < integerDisplayRadix) ifTrue:[  
1f32591535f0 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17706
diff changeset
  3080
                            ^ someValue printString.
1f32591535f0 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17706
diff changeset
  3081
                        ].
1f32591535f0 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17706
diff changeset
  3082
                        s := someValue radixPrintStringRadix:integerDisplayRadix.
1f32591535f0 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17706
diff changeset
  3083
                        s := s , ' "', (someValue printString), '"'.
1f32591535f0 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17706
diff changeset
  3084
                        ^ s
12090
4d6995f57149 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12076
diff changeset
  3085
                    ].
17975
04ee23918108 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 17956
diff changeset
  3086
                    someValue isByteArray ifTrue:[
17814
1f32591535f0 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17706
diff changeset
  3087
                        s := WriteStream on:(String new:10).
18023
f4e6c0611ac9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18022
diff changeset
  3088
                        maxStringLength ~~ 0 ifTrue:[ s writeLimit:maxStringLength ].
17814
1f32591535f0 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17706
diff changeset
  3089
                        someValue printOn:s base:integerDisplayRadix showRadix:true.
1f32591535f0 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17706
diff changeset
  3090
                        ^ s contents
1f32591535f0 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17706
diff changeset
  3091
                    ]
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  3092
                ].
17814
1f32591535f0 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17706
diff changeset
  3093
1f32591535f0 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17706
diff changeset
  3094
                "/ displayStringMessage := #classNameWithArticle
1f32591535f0 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17706
diff changeset
  3095
                "/ displayStringMessage := #displayString
1f32591535f0 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17706
diff changeset
  3096
                "/ displayStringMessage := #printString
12090
4d6995f57149 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12076
diff changeset
  3097
            ].
4d6995f57149 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12076
diff changeset
  3098
4d6995f57149 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12076
diff changeset
  3099
            s := CharacterWriteStream on:(String new:10).
12496
0c1a828b524e class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12467
diff changeset
  3100
            s writeLimit:maxStringLength.
12090
4d6995f57149 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12076
diff changeset
  3101
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3102
            "/ mhmh - avoid sending #perform: (bad for proxy objects which pass it to somewhere..)
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3103
            displayStringMessage == #displayString ifTrue:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3104
                someValue displayOn:s.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3105
                "/ s := someValue displayString.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3106
            ] ifFalse:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3107
                displayStringMessage == #printString ifTrue:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3108
                    someValue printOn:s.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3109
                    "/ s := someValue printString.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3110
                ] ifFalse:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3111
                    displayStringMessage == #storeString ifTrue:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3112
                        someValue storeOn:s.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3113
                        "/ s := someValue storeString.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3114
                    ] ifFalse:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3115
                        ^ someValue perform:displayStringMessage.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3116
                    ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3117
                ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3118
            ].
17975
04ee23918108 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 17956
diff changeset
  3119
            ^ s contents.
12090
4d6995f57149 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12076
diff changeset
  3120
        ] valueWithWatchDog:[^ someValue class nameWithArticle]
4d6995f57149 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12076
diff changeset
  3121
          afterMilliseconds:1000
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3122
    ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3123
17706
f8550765a5cf #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17705
diff changeset
  3124
    "Modified (format): / 10-10-2017 / 13:58:00 / cg"
17975
04ee23918108 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 17956
diff changeset
  3125
    "Modified: / 31-01-2018 / 09:18:17 / stefan"
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3126
!
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3127
18783
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3128
displayStringForPseudoSlot:slotNameString
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3129
    "return the displayString for one of the '-xxx' slots or nil."
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3130
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3131
    (slotNameString startsWith:$-) ifTrue:[
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3132
        (slotNameString startsWith:'-all inst vars') ifTrue:[
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3133
            ^ self stringWithAllInstVarValues
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3134
        ].
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3135
        (slotNameString startsWith:'-all class vars') ifTrue:[
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3136
            ^ self stringWithAllClassVarValues
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3137
        ].
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3138
        (slotNameString startsWith:'-all indexed vars') ifTrue:[
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3139
            ^ self stringWithAllIndexedVarValues
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3140
        ].
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3141
        (slotNameString startsWith:'-all messages') ifTrue:[
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3142
            ^ self stringWithMessages:#all
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3143
        ].
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3144
        (slotNameString startsWith:'-local messages') ifTrue:[
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3145
            ^ self stringWithMessages:#local
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3146
        ].
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3147
        (slotNameString startsWith:'-inherited messages') ifTrue:[
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3148
            ^ self stringWithMessages:#inherited
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3149
        ].
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3150
    ].
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3151
    ^ nil
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3152
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3153
    "Created: / 28-05-2019 / 16:06:45 / Claus Gittinger"
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3154
!
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3155
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3156
displayStringForValue:someValue
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3157
    "return the value's displayString to be pasted into the workspace."
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3158
18783
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3159
    |idx sel extraAttributes valueString|
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3160
17872
096003c27b76 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17823
diff changeset
  3161
    someValue == NoLongerPresentDummyObject ifTrue:[
096003c27b76 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17823
diff changeset
  3162
        "/ this is returned by collection-inspectors,
096003c27b76 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17823
diff changeset
  3163
        "/ when a field-index for a no-longer-present-index is selected
096003c27b76 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17823
diff changeset
  3164
        "/ (eg. if an OrderedCollection growed to a smaller size in the meantime)
18782
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3165
        ^ '«element no longer present»' withColor:Color grey.
17872
096003c27b76 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17823
diff changeset
  3166
    ].
096003c27b76 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17823
diff changeset
  3167
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3168
    idx := self theSingleSelectionIndex.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3169
    idx notNil ifTrue:[
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3170
        sel := self listEntryAt:idx.
14654
087050a49352 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14508
diff changeset
  3171
        sel isNil ifTrue:[^ someValue].
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3172
17130
43d80b2f117a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17124
diff changeset
  3173
        extraAttributes := self myObjectsInspectorExtraAttributes.
43d80b2f117a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17124
diff changeset
  3174
        (extraAttributes includesKey:sel) ifTrue:[
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3175
            ^ someValue "(extraAttributes at:sel) value" printString
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3176
        ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3177
17872
096003c27b76 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17823
diff changeset
  3178
        (sel startsWith:$-) ifTrue:[
18783
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3179
            (valueString := self displayStringForPseudoSlot:sel) notNil ifTrue:[
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3180
                ^ valueString
17872
096003c27b76 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17823
diff changeset
  3181
            ].
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3182
        ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3183
    ].
17427
b353390d1a23 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17184
diff changeset
  3184
    someValue == nil ifTrue:[^ 'nil'].
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3185
    ^ self basicDisplayStringForValue:someValue
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3186
17427
b353390d1a23 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17184
diff changeset
  3187
    "Modified: / 22-02-2017 / 17:35:52 / cg"
18783
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3188
    "Modified: / 28-05-2019 / 16:07:35 / Claus Gittinger"
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3189
!
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3190
15610
e99baf15ad02 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15254
diff changeset
  3191
iconForValue:arg
e99baf15ad02 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15254
diff changeset
  3192
    ^ self class iconForValue:arg
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3193
!
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3194
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3195
listEntryForName:nameString value:value
17872
096003c27b76 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17823
diff changeset
  3196
    "generates the fieldListEntry (icon + valueString)"
096003c27b76 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17823
diff changeset
  3197
11579
0c14b5d9c07f added: #valueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11578
diff changeset
  3198
    |entryString|
11517
bf056eb85f41 changed:
Claus Gittinger <cg@exept.de>
parents: 11514
diff changeset
  3199
bf056eb85f41 changed:
Claus Gittinger <cg@exept.de>
parents: 11514
diff changeset
  3200
    UserPreferences current showTypeIndicatorInInspector ifFalse:[
bf056eb85f41 changed:
Claus Gittinger <cg@exept.de>
parents: 11514
diff changeset
  3201
        ^ nameString
bf056eb85f41 changed:
Claus Gittinger <cg@exept.de>
parents: 11514
diff changeset
  3202
    ].
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3203
11749
213908da088d changed: #listEntryForName:value:
Claus Gittinger <cg@exept.de>
parents: 11748
diff changeset
  3204
    Error handle:[:ex |
213908da088d changed: #listEntryForName:value:
Claus Gittinger <cg@exept.de>
parents: 11748
diff changeset
  3205
        ^ nameString
213908da088d changed: #listEntryForName:value:
Claus Gittinger <cg@exept.de>
parents: 11748
diff changeset
  3206
    ] do:[
16758
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
  3207
        entryString := nameString allBold, (self valueStringInListEntryForValue:value).
18573
9c008eccc386 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 18561
diff changeset
  3208
        "/ for color values, generate a space in that color
17123
42b500e22252 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17032
diff changeset
  3209
        (value isProtoObject not and:[value isColor and:[value red notNil]]) ifTrue:[
11749
213908da088d changed: #listEntryForName:value:
Claus Gittinger <cg@exept.de>
parents: 11748
diff changeset
  3210
            entryString := entryString
213908da088d changed: #listEntryForName:value:
Claus Gittinger <cg@exept.de>
parents: 11748
diff changeset
  3211
                         , '  ' , ('   '
18119
3a2402ee888d #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18099
diff changeset
  3212
                                    withColor:(value contrastingBlackOrWhite)
3a2402ee888d #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18099
diff changeset
  3213
                                    on:value).
11749
213908da088d changed: #listEntryForName:value:
Claus Gittinger <cg@exept.de>
parents: 11748
diff changeset
  3214
        ].
213908da088d changed: #listEntryForName:value:
Claus Gittinger <cg@exept.de>
parents: 11748
diff changeset
  3215
18436
c56ae080f0a0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18357
diff changeset
  3216
        ^ LabelAndIcon 
c56ae080f0a0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18357
diff changeset
  3217
            label:entryString 
c56ae080f0a0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18357
diff changeset
  3218
            icon:(self iconForValue:value)
11547
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
  3219
    ].
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
  3220
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3221
    "Created: / 16-05-2012 / 18:42:28 / cg"
18573
9c008eccc386 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 18561
diff changeset
  3222
    "Modified (comment): / 31-01-2019 / 23:56:12 / Claus Gittinger"
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3223
!
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3224
11580
0bcaed8e460b added: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11579
diff changeset
  3225
plainValueStringInListEntryForValue:value
18099
254565e20e8a #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 18041
diff changeset
  3226
    "returns nil or a string to show in angle brackets (or parenthesis) after the
254565e20e8a #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 18041
diff changeset
  3227
     name in the field list.
18795
3ecc82b45023 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18789
diff changeset
  3228
     This is the string shown in the name list on the left.
3ecc82b45023 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18789
diff changeset
  3229
     For most wellknown classes, the code below generates this;
3ecc82b45023 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18789
diff changeset
  3230
     for other objects, an instance-specific inspectorValueStringInListFor:self is called."
11580
0bcaed8e460b added: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11579
diff changeset
  3231
11587
916e12f6b843 changed: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11580
diff changeset
  3232
    |s|
916e12f6b843 changed: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11580
diff changeset
  3233
15667
7e33637ddce6 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15657
diff changeset
  3234
    "/ UserPreferences current showTypeIndicatorInInspector ifFalse:[^ nil].
18797
b035941a8e4d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18795
diff changeset
  3235
    value isBridgeProxy ifTrue:[
b035941a8e4d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18795
diff changeset
  3236
        "avoid sending out messages"
b035941a8e4d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18795
diff changeset
  3237
        ^ '>>Bridge Proxy<<'
b035941a8e4d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18795
diff changeset
  3238
    ].
18795
3ecc82b45023 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18789
diff changeset
  3239
    value isProxy ifTrue:[
3ecc82b45023 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18789
diff changeset
  3240
        "avoid sending out messages"
3ecc82b45023 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18789
diff changeset
  3241
        ^ '>>Proxy<<'
3ecc82b45023 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18789
diff changeset
  3242
    ].
16758
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
  3243
    value isLazyValue ifTrue:[
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
  3244
        "do not block on not yet finished Futures et al"
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
  3245
        ^ '>>Lazy value<<'
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
  3246
    ].
11587
916e12f6b843 changed: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11580
diff changeset
  3247
    value class == ValueHolder ifTrue:[
15667
7e33637ddce6 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15657
diff changeset
  3248
        "/ just in case...
7e33637ddce6 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15657
diff changeset
  3249
        thisContext isRecursive ifTrue:[^ value inspectorValueStringInListFor:self].
7e33637ddce6 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15657
diff changeset
  3250
11587
916e12f6b843 changed: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11580
diff changeset
  3251
        s := self plainValueStringInListEntryForValue:value value.
916e12f6b843 changed: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11580
diff changeset
  3252
        s notNil ifTrue:[
12784
81727a87cad8 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12753
diff changeset
  3253
            ^ '{' , s , '}'
11587
916e12f6b843 changed: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11580
diff changeset
  3254
        ].
916e12f6b843 changed: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11580
diff changeset
  3255
        ^ nil
916e12f6b843 changed: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11580
diff changeset
  3256
    ].
18795
3ecc82b45023 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18789
diff changeset
  3257
    (value isProtoObject or:[value isNumber or:[value isBoolean or:[value isCharacter]]]) ifTrue:[
3ecc82b45023 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18789
diff changeset
  3258
        ^ self basicDisplayStringForValue:value
11580
0bcaed8e460b added: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11579
diff changeset
  3259
    ].
17945
e5a9fa05e956 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 17938
diff changeset
  3260
    value isText ifTrue:[
e5a9fa05e956 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 17938
diff changeset
  3261
        ^ value string inspectorValueStringInListFor:self
e5a9fa05e956 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 17938
diff changeset
  3262
    ].
11810
320b379eaedb changed: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11808
diff changeset
  3263
    ^ value inspectorValueStringInListFor:self
11580
0bcaed8e460b added: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11579
diff changeset
  3264
0bcaed8e460b added: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11579
diff changeset
  3265
    "Created: / 13-06-2012 / 12:50:26 / cg"
18797
b035941a8e4d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18795
diff changeset
  3266
    "Modified: / 29-05-2019 / 22:54:09 / Claus Gittinger"
11580
0bcaed8e460b added: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11579
diff changeset
  3267
!
0bcaed8e460b added: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11579
diff changeset
  3268
15895
43a27a49800d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15800
diff changeset
  3269
stringWithAllClassVarValues
43a27a49800d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15800
diff changeset
  3270
    ^ self stringWithAllClassVarValuesFor:object level:0
43a27a49800d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15800
diff changeset
  3271
!
43a27a49800d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15800
diff changeset
  3272
43a27a49800d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15800
diff changeset
  3273
stringWithAllClassVarValuesFor:anObject level:lvl
18782
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3274
    |names values|
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3275
15895
43a27a49800d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15800
diff changeset
  3276
    names := anObject allClassVarNames.
16546
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  3277
    true "sortOrder == SortOrderAlphabetical" ifTrue:[
15895
43a27a49800d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15800
diff changeset
  3278
        names := names copy sort
43a27a49800d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15800
diff changeset
  3279
    ].
18782
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3280
    DebugView withDebuggingFlagSetDo:[
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3281
        values := names collect:[:eachClassVarName |
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3282
                    (anObject whichClassDefinesClassVar:eachClassVarName asSymbol) classVarAt:eachClassVarName
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3283
                  ].
15895
43a27a49800d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15800
diff changeset
  3284
    ].
18782
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3285
    ^ self stringWithAllNames:names andValues:values level:lvl
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3286
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3287
    "
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3288
     (1 to:10) asOrderedCollection inspect
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3289
    "
17977
e2d21d17cb5e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 17975
diff changeset
  3290
e2d21d17cb5e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 17975
diff changeset
  3291
    "Modified: / 01-02-2018 / 10:11:03 / stefan"
18782
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3292
    "Modified (comment): / 28-05-2019 / 12:15:54 / Claus Gittinger"
15895
43a27a49800d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15800
diff changeset
  3293
!
43a27a49800d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15800
diff changeset
  3294
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3295
stringWithAllIndexedVarValues
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3296
    |nIdx s names maxLen varString padLeft|
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3297
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3298
    nIdx := object size.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3299
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3300
    s := CharacterWriteStream on:''.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3301
    names := self indexList.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3302
    names size > 0 ifTrue:[
16713
6fc5c0d48f98 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 16640
diff changeset
  3303
        maxLen := names inject:0 into:[:maxSoFar :eachName | (eachName displayString size) max:maxSoFar]. 
12642
6dab05146bff class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12611
diff changeset
  3304
        padLeft := names conform:[:eachIdx | eachIdx isInteger].  
16713
6fc5c0d48f98 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 16640
diff changeset
  3305
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3306
        names do:[:eachIdx |
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3307
            |val|
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3308
15800
52040902201e class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 15715
diff changeset
  3309
            self isIndexShown ifTrue:[
52040902201e class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 15715
diff changeset
  3310
                padLeft ifTrue:[
52040902201e class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 15715
diff changeset
  3311
                    s nextPutAll:(eachIdx printStringLeftPaddedTo:maxLen).
52040902201e class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 15715
diff changeset
  3312
                ] ifFalse:[
16713
6fc5c0d48f98 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 16640
diff changeset
  3313
                    s nextPutAll:((eachIdx displayString , ' ') paddedTo:maxLen+1 with:$.).
15800
52040902201e class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 15715
diff changeset
  3314
                ].
52040902201e class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 15715
diff changeset
  3315
                s nextPutAll:' : '.
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3316
            ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3317
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3318
            val := self indexedValueAtKey:eachIdx.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3319
11251
00baec48d015 changed:
Claus Gittinger <cg@exept.de>
parents: 11250
diff changeset
  3320
            ((ExpandArraysInAllLists == true) and:[val isSequenceable and:[ val class isPointers]]) ifTrue:[
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3321
                s cr.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3322
                self appendDisplayStringForElementsOf:val indent:2 pad:maxLen+1+1 to:s.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3323
            ] ifFalse:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3324
                varString := self basicDisplayStringForValue:val.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3325
                (varString includes:Character cr) ifTrue:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3326
                    varString := varString copyTo:(varString indexOf:Character cr)-1.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3327
                    varString := varString , '...'.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3328
                ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3329
                s nextPutLine:varString.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3330
            ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3331
        ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3332
    ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3333
    nShown < nIdx ifTrue:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3334
        s nextPutLine:' ...'.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3335
    ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3336
    ^ s contents
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3337
11251
00baec48d015 changed:
Claus Gittinger <cg@exept.de>
parents: 11250
diff changeset
  3338
    "Modified: / 12-02-2012 / 10:52:04 / cg"
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3339
!
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3340
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3341
stringWithAllInstVarValues
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3342
    ^ self stringWithAllInstVarValuesFor:object level:0
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3343
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3344
    "Modified: / 31-01-2012 / 18:23:11 / cg"
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3345
!
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3346
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3347
stringWithAllInstVarValuesFor:anObject level:lvl
18782
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3348
    |names values instVarOffsets|
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3349
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3350
    names := anObject class allInstVarNames.
15713
364dd018ea7c class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15712
diff changeset
  3351
    instVarOffsets := 1 to:names size.
16546
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  3352
    sortOrder == SortOrderAlphabetical ifTrue:[
15713
364dd018ea7c class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15712
diff changeset
  3353
        instVarOffsets := instVarOffsets asArray.
364dd018ea7c class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15712
diff changeset
  3354
        names := names copy sortWith:instVarOffsets
15712
7d282ef23f85 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15677
diff changeset
  3355
    ].
18782
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3356
    DebugView withDebuggingFlagSetDo:[
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3357
        values := instVarOffsets collect:[:eachInstVarIndex |
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3358
                    anObject instVarAt:eachInstVarIndex.
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3359
                  ].
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3360
    ].
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3361
              
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3362
    ^ self stringWithAllNames:names andValues:values level:lvl
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3363
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3364
    "Created: / 31-01-2012 / 18:23:15 / cg"
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3365
    "Modified: / 01-02-2018 / 10:11:14 / stefan"
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3366
    "Modified: / 28-05-2019 / 12:12:30 / Claus Gittinger"
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3367
!
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3368
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3369
stringWithAllNames:names andValues:values level:lvl
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3370
    |s maxLen|
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3371
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3372
    s := CharacterWriteStream on:''.
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3373
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3374
    maxLen := (names collect:[:eachName | eachName size]) max.
18782
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3375
    names with:values do:[:eachInstVarName :eachInstVarValue |
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3376
        |valString|
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3377
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3378
        s spaces:lvl.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3379
        s nextPutAll:((eachInstVarName , ' ') paddedTo:maxLen+1 with:$.).
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3380
        s nextPutAll:' : '.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3381
18782
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3382
        ((ExpandArraysInAllLists == true) 
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3383
          and:[eachInstVarValue isSequenceable 
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3384
          and:[eachInstVarValue class isPointers] ]) ifTrue:[
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3385
            s cr.
18782
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3386
            self appendDisplayStringForElementsOf:eachInstVarValue indent:lvl pad:maxLen+1+1 to:s.
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3387
        ] ifFalse:[
18782
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3388
            valString := self basicDisplayStringForValue:eachInstVarValue.
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3389
            (valString includes:Character cr) ifTrue:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3390
                valString := valString copyTo:(valString indexOf:Character cr)-1.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3391
                valString := valString , '...'.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3392
            ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3393
            s nextPutAll:valString.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3394
            s cr.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3395
        ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3396
    ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3397
    ^ s contents
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3398
18782
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3399
    "Created: / 28-05-2019 / 12:11:04 / Claus Gittinger"
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3400
!
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3401
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3402
stringWithMessages:which
16640
3e0634b25d8e #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16604
diff changeset
  3403
    |cls s messages allSelectors|
3e0634b25d8e #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16604
diff changeset
  3404
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3405
    cls := object class.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3406
    which == #local ifTrue:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3407
        messages := cls selectors.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3408
    ] ifFalse:[
16640
3e0634b25d8e #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16604
diff changeset
  3409
        allSelectors := cls allSelectors.
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3410
        which == #all ifTrue:[
16640
3e0634b25d8e #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16604
diff changeset
  3411
            messages := allSelectors.
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3412
        ] ifFalse:[
16640
3e0634b25d8e #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16604
diff changeset
  3413
            messages := allSelectors asNewSet removeAll:cls selectors; yourself.
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3414
        ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3415
    ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3416
16640
3e0634b25d8e #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16604
diff changeset
  3417
    s := CharacterWriteStream on:''.
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3418
    messages asOrderedCollection sort do:[:eachSelector |
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3419
        s nextPutAll:eachSelector.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3420
        s cr.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3421
    ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3422
    ^ s contents
11579
0c14b5d9c07f added: #valueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11578
diff changeset
  3423
!
0c14b5d9c07f added: #valueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11578
diff changeset
  3424
0c14b5d9c07f added: #valueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11578
diff changeset
  3425
valueStringInListEntryForValue:value
0c14b5d9c07f added: #valueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11578
diff changeset
  3426
    "returns something to append to the name"
0c14b5d9c07f added: #valueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11578
diff changeset
  3427
0c14b5d9c07f added: #valueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11578
diff changeset
  3428
    |valString|
0c14b5d9c07f added: #valueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11578
diff changeset
  3429
14815
15e9025634ec class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14796
diff changeset
  3430
    Error handle:[:ex |
15e9025634ec class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14796
diff changeset
  3431
        Transcript showCR:ex description.
15e9025634ec class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14796
diff changeset
  3432
        valString := '*** error in printString **'
15e9025634ec class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14796
diff changeset
  3433
    ] do:[
15e9025634ec class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14796
diff changeset
  3434
        valString := (self plainValueStringInListEntryForValue:value) ? ''.
15e9025634ec class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14796
diff changeset
  3435
    ].
12753
68e6a80fb65e class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12696
diff changeset
  3436
    (inspectedObject notNil and:[value == inspectedObject]) ifTrue:[
12784
81727a87cad8 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12753
diff changeset
  3437
        ^ ' (',valString,') (==self)' 
12696
7e49db09911c class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12688
diff changeset
  3438
    ].
12784
81727a87cad8 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12753
diff changeset
  3439
    ^ ' (',valString,')'
11579
0c14b5d9c07f added: #valueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11578
diff changeset
  3440
0c14b5d9c07f added: #valueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11578
diff changeset
  3441
    "Created: / 13-06-2012 / 12:04:31 / cg"
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3442
! !
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  3443
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  3444
!InspectorView methodsFor:'private'!
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  3445
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  3446
baseInspectedObjectClass
16816
ce7ac654bf0f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16814
diff changeset
  3447
    "only instvars below that are shown by me in the non-basic tab.
ce7ac654bf0f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16814
diff changeset
  3448
     This hides uninterresting details in the regular tab"
ce7ac654bf0f #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16814
diff changeset
  3449
     
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  3450
    ^ Object
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  3451
!
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  3452
647
1791ceddf2ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 644
diff changeset
  3453
defaultLabel
13258
f85c3cb5bfcc class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13246
diff changeset
  3454
    ^ 'Inst & Pseudo Slots'
f85c3cb5bfcc class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13246
diff changeset
  3455
f85c3cb5bfcc class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 13246
diff changeset
  3456
    "Modified: / 30-07-2013 / 09:40:52 / cg"
647
1791ceddf2ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 644
diff changeset
  3457
!
1791ceddf2ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 644
diff changeset
  3458
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3459
derivedFieldNames
9701
c8c52d6b74e3 changed: #derivedFieldNames
Claus Gittinger <cg@exept.de>
parents: 9700
diff changeset
  3460
    |d actionItems valueItems otherItems|
7297
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  3461
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  3462
    d := self derivedFields.
12820
a3b0b7557632 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12810
diff changeset
  3463
    (d isDictionary) ifTrue:[
17184
20a4ba15b83f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17131
diff changeset
  3464
        actionItems := d keys select:[:k | k first == $!!] as:OrderedCollection .
18782
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3465
        valueItems := d keys select:[:k | '-¤' includes:k first] as:OrderedCollection.
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  3466
        otherItems := d keys select:[:k | ('!!-¤' includes: k first) not] as:OrderedCollection.
9701
c8c52d6b74e3 changed: #derivedFieldNames
Claus Gittinger <cg@exept.de>
parents: 9700
diff changeset
  3467
        ^ ((actionItems sort , valueItems sort) collect:[:k | (k copyTo:1),(k copyFrom:2) allItalic])
c8c52d6b74e3 changed: #derivedFieldNames
Claus Gittinger <cg@exept.de>
parents: 9700
diff changeset
  3468
          ,
c8c52d6b74e3 changed: #derivedFieldNames
Claus Gittinger <cg@exept.de>
parents: 9700
diff changeset
  3469
          otherItems sort
7297
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  3470
    ].
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  3471
    ^ d collect:[:eachEntry |
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3472
            |nm|
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3473
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3474
            nm := (eachEntry isAssociation) 
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3475
                    ifTrue:[ eachEntry key ] 
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3476
                    ifFalse:[ eachEntry first ].
8699
c15ffeafbe35 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8689
diff changeset
  3477
            '-',nm allItalic
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3478
        ]
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3479
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3480
    "Created: / 03-08-2006 / 15:02:54 / cg"
9701
c8c52d6b74e3 changed: #derivedFieldNames
Claus Gittinger <cg@exept.de>
parents: 9700
diff changeset
  3481
    "Modified: / 27-01-2011 / 11:45:17 / cg"
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3482
!
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3483
6823
40d460dee8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6491
diff changeset
  3484
derivedFields
17130
43d80b2f117a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17124
diff changeset
  3485
    ^ self myObjectsInspectorExtraAttributes
6823
40d460dee8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6491
diff changeset
  3486
!
40d460dee8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6491
diff changeset
  3487
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3488
extraNamedFieldNames
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3489
    ^ self extraNamedFields 
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3490
        collect:[:eachEntry |
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3491
            |nm|
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3492
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3493
            nm := (eachEntry isAssociation) 
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3494
                    ifTrue:[ eachEntry key ] 
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3495
                    ifFalse:[ eachEntry first ].
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3496
            '`',nm
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3497
        ]
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3498
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3499
    "Modified: / 03-08-2006 / 15:17:19 / cg"
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3500
!
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3501
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3502
extraNamedFields
18008
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  3503
    "another extension mechanism (only used in some java packages):
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  3504
     by redefining inspectorExtraNamedFields in an object to return an array of
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  3505
     pseudo-fieldName->value associations, the inspector's left list can be extended"
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  3506
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  3507
    "the MessageNotUnderstood check below is not sufficient 
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  3508
     - if some proxy (javaBridge) catches and forwards messages for example,
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  3509
       this makes problems. Therefore, we do an extra check here:"
8962
b0e0907c0bf7 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 8908
diff changeset
  3510
    (object class whichClassIncludesSelector:#inspectorExtraNamedFields) isNil ifTrue:[
7054
89bf9a75fb79 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6940
diff changeset
  3511
        ^ #()
89bf9a75fb79 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6940
diff changeset
  3512
    ].
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3513
    ^ [object inspectorExtraNamedFields]
18008
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  3514
            on: MessageNotUnderstood
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  3515
            do: [:ex | ex return: #() ]
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3516
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3517
    "Created: / 03-08-2006 / 13:34:18 / cg"
7054
89bf9a75fb79 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6940
diff changeset
  3518
    "Modified: / 29-08-2006 / 13:03:57 / cg"
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3519
!
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3520
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3521
extraNamedVarIndexForLine:lineNr
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3522
    "helper - return the index for a named instVar;
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3523
     nil, if self or a keyed instvar is selected."
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3524
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3525
    |idx nNamedInstvarsShown nExtraNamedInstvarsShown cls baseCls firstRealIndex line|
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3526
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3527
    lineNr isNil ifTrue:[^ nil].
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3528
    firstRealIndex := 1.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3529
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3530
    idx := lineNr.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3531
    self hasSelfEntry ifTrue:[
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3532
        (lineNr == 1 or:[lineNr isNil]) ifTrue:[
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3533
            ^ nil "/ self selected
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3534
        ].
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3535
        idx := idx - 1.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3536
        firstRealIndex := 2.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3537
    ].
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3538
15959
b041ed9d0e7c #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 15957
diff changeset
  3539
    [
b041ed9d0e7c #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 15957
diff changeset
  3540
        line := self listEntryAt:firstRealIndex. 
b041ed9d0e7c #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 15957
diff changeset
  3541
        line notNil and:[self isSpecialPseudoNameEntry:line]
b041ed9d0e7c #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 15957
diff changeset
  3542
    ] whileTrue:[
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3543
        firstRealIndex := firstRealIndex + 1.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3544
        idx := idx - 1.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3545
    ].
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3546
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3547
    cls := object class.
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3548
    baseCls := self baseInspectedObjectClass.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3549
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3550
    nNamedInstvarsShown := cls instSize.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3551
    "/ only the namedInstvars below baseInspectedObjectClass
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3552
    "/ are shown ...
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3553
    (cls == baseCls or:[cls isSubclassOf:baseCls]) ifTrue:[
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3554
        nNamedInstvarsShown := nNamedInstvarsShown - baseCls instSize.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3555
    ].
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3556
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3557
    idx := idx - nNamedInstvarsShown.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3558
    idx < 1 ifTrue:[
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3559
        ^ nil.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3560
    ].
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3561
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3562
    nExtraNamedInstvarsShown := self extraNamedFields size.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3563
    idx <= nExtraNamedInstvarsShown ifTrue:[
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3564
        ^ idx.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3565
    ].
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3566
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3567
    ^ nil "/ indexed instvar or other selected
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3568
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3569
    "Created: / 03-08-2006 / 13:45:14 / cg"
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3570
    "Modified: / 16-05-2012 / 17:54:52 / cg"
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3571
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3572
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  3573
fieldList 
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  3574
    "return a list of names to show in the selectionList.
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  3575
     Leave hasMore as true, if a '...' entry should be added."
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  3576
6840
52d3f2cbf130 extraNamedField support
Claus Gittinger <cg@exept.de>
parents: 6823
diff changeset
  3577
    |derivedFieldList namedFieldList fieldList cls indexedList extraNamedFieldList|
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  3578
16758
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
  3579
    (object isNil" or:[object isLazyValue]") ifTrue:[
4095
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  3580
        ^ self hasSelfEntry ifFalse:[ #() ] ifTrue:[ #('-self') ]
3338
c2691e356f51 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3318
diff changeset
  3581
    ].
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  3582
17977
e2d21d17cb5e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 17975
diff changeset
  3583
    DebugView withDebuggingFlagSetDo:[
16758
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
  3584
        cls := object class.
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
  3585
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
  3586
        self topView withWaitCursorDo:[
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
  3587
            namedFieldList := self namedFieldList.
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
  3588
            indexedList := self indexedFieldList.
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
  3589
            extraNamedFieldList := OrderedCollection new.
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
  3590
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
  3591
            self hasSelfEntry ifTrue:[
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
  3592
                self suppressPseudoSlots ifFalse:[
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
  3593
                    derivedFieldList := OrderedCollection new.
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
  3594
                    derivedFieldList addAll:(self pseudoFieldNamesWithIndexed:(indexedList notEmptyOrNil)).
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
  3595
                    derivedFieldList addAll:(self derivedFieldNames).
18008
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  3596
                    derivedFieldList addAll:(self objectAttributeKeyNames).
16758
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
  3597
                    extraNamedFieldList addAll:(self extraNamedFieldNames).
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
  3598
                ].
3608
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  3599
            ].
16758
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
  3600
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
  3601
            fieldList := OrderedCollection new.
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
  3602
            derivedFieldList notNil ifTrue:[fieldList addAll:derivedFieldList].
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
  3603
            namedFieldList notNil ifTrue:[fieldList addAll:namedFieldList].
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
  3604
            extraNamedFieldList notNil ifTrue:[fieldList addAll:extraNamedFieldList].
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
  3605
            indexedList notNil ifTrue:[fieldList addAll:indexedList].
3525
761785907491 checkin from browser
martin
parents: 3432
diff changeset
  3606
        ].
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  3607
    ].
6823
40d460dee8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6491
diff changeset
  3608
    ^ fieldList
531
4b079a4e85b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 527
diff changeset
  3609
7297
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  3610
    "Modified: / 18-09-2006 / 21:16:03 / cg"
17977
e2d21d17cb5e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 17975
diff changeset
  3611
    "Modified: / 01-02-2018 / 10:09:19 / stefan"
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  3612
!
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  3613
295
92bcaa9996ae minor changes for ContextInspector required
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  3614
hasSelfEntry
4095
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  3615
    ^ hideReceiver not and:[self suppressPseudoSlots not]
295
92bcaa9996ae minor changes for ContextInspector required
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  3616
92bcaa9996ae minor changes for ContextInspector required
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  3617
    "Created: 14.12.1995 / 19:30:03 / cg"
644
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  3618
    "Modified: 28.6.1996 / 15:13:41 / cg"
295
92bcaa9996ae minor changes for ContextInspector required
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  3619
!
92bcaa9996ae minor changes for ContextInspector required
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  3620
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3621
indexList 
9557
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  3622
    "return a list of indexes usable to access the object's indexed slots.
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  3623
     Set hasMore to true, if a '...' entry should be added."
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  3624
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3625
    |objSz n cls list|
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  3626
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3627
    cls := object class.
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  3628
3868
77040d8d3526 all indexed vars
Claus Gittinger <cg@exept.de>
parents: 3657
diff changeset
  3629
    cls isVariable ifFalse:[^ nil ].
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  3630
11578
f750a9c9fb7a +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11576
diff changeset
  3631
    n := objSz := self numIndexedFields.
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  3632
    (n > nShown) ifTrue:[
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  3633
        n := nShown.
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  3634
        hasMore := true.
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  3635
    ].
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3636
    list := (1 to:n).
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3637
    ^ list 
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3638
"/        keysAndValuesCollect:[:idx :nm |
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3639
"/            LabelAndIcon string:nm image:(self iconForValue:(object basicAt:idx))
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3640
"/        ].
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3641
11578
f750a9c9fb7a +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11576
diff changeset
  3642
    "Modified: / 13-06-2012 / 10:14:13 / cg"
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3643
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3644
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3645
indexOfFirstNamedInstvarInList
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3646
    "helper - return the index for the first named instVar;
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3647
     nil, if self or a keyed instvar is selected."
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3648
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3649
    |firstRealIndex|
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3650
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3651
    firstRealIndex := 1.
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3652
    self hasSelfEntry ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3653
        firstRealIndex := 2.
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3654
    ].
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3655
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3656
    [
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3657
        |line|
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3658
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3659
        line := self listEntryAt:firstRealIndex. 
15959
b041ed9d0e7c #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 15957
diff changeset
  3660
        line notNil and:[self isSpecialPseudoNameEntry:line]
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3661
    ] whileTrue:[
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3662
        firstRealIndex := firstRealIndex + 1.
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3663
    ].
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3664
    ^ firstRealIndex
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3665
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3666
    "Modified: / 16-05-2012 / 17:54:46 / cg"
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3667
!
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3668
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3669
indexedFieldList 
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3670
    "return a list of indexed-variable names to show in the selectionList.
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3671
     Set hasMore to true, if a '...' entry should be added."
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3672
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3673
    |l maxIndex sz list|
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3674
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3675
    l := self indexList.
10858
6a95213e591a changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 10846
diff changeset
  3676
    l isEmptyOrNil ifTrue:[^ nil ].
9557
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  3677
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  3678
    integerDisplayRadix ~~ 10 ifTrue:[
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  3679
        maxIndex := l last.
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  3680
        maxIndex isInteger ifTrue:[
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  3681
            sz := (maxIndex printStringRadix:integerDisplayRadix) size.
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  3682
        ] ifFalse:[
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  3683
            sz := 0
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  3684
        ].
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3685
        list := l collect:
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3686
            [:i | 
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3687
                i isInteger ifTrue:[
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3688
                    (i printStringRadix:integerDisplayRadix size:sz fill:$0) 
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3689
                ] ifFalse:[
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3690
                    i printString
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3691
                ]
9557
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  3692
            ]
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  3693
    ] ifFalse:[
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3694
        list := l collect:[:i | i printString].
9557
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  3695
    ].
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  3696
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3697
    ^ list
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3698
        keysAndValuesCollect:[:idx :nm |
11808
3180e01a7b5e changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11768
diff changeset
  3699
            |val|
3180e01a7b5e changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11768
diff changeset
  3700
3180e01a7b5e changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11768
diff changeset
  3701
            [
11823
67a370901574 changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11810
diff changeset
  3702
                val := self indexedValueAtIndex:idx.
11808
3180e01a7b5e changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11768
diff changeset
  3703
            ] on:Error do:[
11823
67a370901574 changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11810
diff changeset
  3704
                val := ''
11808
3180e01a7b5e changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11768
diff changeset
  3705
            ].
3180e01a7b5e changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11768
diff changeset
  3706
            self listEntryForName:nm value:val
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3707
        ].
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3708
11823
67a370901574 changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11810
diff changeset
  3709
    "Modified: / 27-09-2012 / 21:51:58 / cg"
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3710
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3711
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3712
indexedValueAtIndex:idx
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3713
    ^ object basicAt:idx
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3714
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3715
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3716
indexedValueAtIndex:idx put:newValue
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3717
    object basicAt:idx put:newValue
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  3718
!
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  3719
3884
4329e6c615a5 dont crash in set showing all indexed vars
james
parents: 3874
diff changeset
  3720
indexedValueAtKey:key
4314
7dbc212d0cd2 kludge to show Float bytes
Claus Gittinger <cg@exept.de>
parents: 4268
diff changeset
  3721
    "/ kludge
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3722
    object isLimitedPrecisionReal ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3723
        ^ object basicAt:key
4314
7dbc212d0cd2 kludge to show Float bytes
Claus Gittinger <cg@exept.de>
parents: 4268
diff changeset
  3724
    ].
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3725
    ^ object at:key
3884
4329e6c615a5 dont crash in set showing all indexed vars
james
parents: 3874
diff changeset
  3726
!
4329e6c615a5 dont crash in set showing all indexed vars
james
parents: 3874
diff changeset
  3727
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  3728
instVarIndexForLine:lineNr
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  3729
    "helper - return the index for a named instVar;
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  3730
     nil, if self or a keyed instvar is selected."
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  3731
12849
9c2b60990cea Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12820
diff changeset
  3732
    |idx firstRealIndex line nm|
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  3733
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  3734
    lineNr isNil ifTrue:[^ nil].
3349
b9a9138f8017 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3338
diff changeset
  3735
    firstRealIndex := 1.
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  3736
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  3737
    line := (self listEntryAt:lineNr) string. 
15959
b041ed9d0e7c #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 15957
diff changeset
  3738
    (self isSpecialPseudoNameEntry:line) ifTrue:[^ nil].
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  3739
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  3740
    nm := line asCollectionOfWords first.
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  3741
    idx := object class allInstVarNames indexOf:nm.
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  3742
    idx == 0 ifTrue:[^ nil].
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  3743
    ^ idx.    
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  3744
12849
9c2b60990cea Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12820
diff changeset
  3745
"/    [
9c2b60990cea Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12820
diff changeset
  3746
"/        line := self listEntryAt:firstRealIndex. 
9c2b60990cea Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12820
diff changeset
  3747
"/        (line startsWith:'-') and:[line size < 2 or:[line second isDigit not]]
9c2b60990cea Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12820
diff changeset
  3748
"/    ] whileTrue:[
9c2b60990cea Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12820
diff changeset
  3749
"/        firstRealIndex := firstRealIndex + 1.
9c2b60990cea Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12820
diff changeset
  3750
"/        idx := idx - 1.
9c2b60990cea Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12820
diff changeset
  3751
"/    ].
9c2b60990cea Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12820
diff changeset
  3752
"/
9c2b60990cea Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12820
diff changeset
  3753
"/    cls := object class.
9c2b60990cea Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12820
diff changeset
  3754
"/    baseCls := self baseInspectedObjectClass.
9c2b60990cea Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12820
diff changeset
  3755
"/
9c2b60990cea Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12820
diff changeset
  3756
"/    nNamedInstvarsShown := cls instSize.
9c2b60990cea Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12820
diff changeset
  3757
"/    "/ only the namedInstvars below baseInspectedObjectClass
9c2b60990cea Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12820
diff changeset
  3758
"/    "/ are shown ...
9c2b60990cea Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12820
diff changeset
  3759
"/    (cls includesBehavior:baseCls) ifTrue:[
9c2b60990cea Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12820
diff changeset
  3760
"/        nNamedInstvarsShown := nNamedInstvarsShown - baseCls instSize.
9c2b60990cea Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12820
diff changeset
  3761
"/    ].
9c2b60990cea Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12820
diff changeset
  3762
"/
9c2b60990cea Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12820
diff changeset
  3763
"/    idx <= nNamedInstvarsShown ifTrue:[
9c2b60990cea Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12820
diff changeset
  3764
"/        ^ idx + self baseInspectedObjectClass instSize.
9c2b60990cea Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12820
diff changeset
  3765
"/    ].
9c2b60990cea Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12820
diff changeset
  3766
"/    ^ nil "/ indexed instvar or other selected
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  3767
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  3768
    "Modified: / 20-07-2012 / 11:11:10 / cg"
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  3769
!
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  3770
18787
15c68535c71b #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18783
diff changeset
  3771
isIgnoredEntry:lineEntry atIndex:lineNr
15c68535c71b #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18783
diff changeset
  3772
    "can be redefined to ignore selected separators"
15c68535c71b #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18783
diff changeset
  3773
    
15c68535c71b #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18783
diff changeset
  3774
    ^ false
15c68535c71b #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18783
diff changeset
  3775
15c68535c71b #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18783
diff changeset
  3776
    "Created: / 28-05-2019 / 18:25:27 / Claus Gittinger"
15c68535c71b #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18783
diff changeset
  3777
!
15c68535c71b #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18783
diff changeset
  3778
15959
b041ed9d0e7c #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 15957
diff changeset
  3779
isSpecialPseudoNameEntry:line
b041ed9d0e7c #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 15957
diff changeset
  3780
    ^ (line startsWith:$-) 
b041ed9d0e7c #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 15957
diff changeset
  3781
    and:[line size < 2 or:[line second isDigit not]]
b041ed9d0e7c #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 15957
diff changeset
  3782
!
b041ed9d0e7c #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 15957
diff changeset
  3783
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  3784
keyIndexForLine:lineNr
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  3785
    "helper - return the index of the key-list;
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  3786
     nil, if self or a namedInstVar is selected."
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  3787
6840
52d3f2cbf130 extraNamedField support
Claus Gittinger <cg@exept.de>
parents: 6823
diff changeset
  3788
    |idx nNamedInstvarsShown nExtraNamedInstvarsShown cls baseCls firstRealIndex line|
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  3789
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  3790
    lineNr isNil ifTrue:[^ nil].
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  3791
3349
b9a9138f8017 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3338
diff changeset
  3792
    firstRealIndex := 1.
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  3793
    idx := lineNr.
4095
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  3794
    self hasSelfEntry ifTrue:[
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  3795
        (lineNr == 1 or:[lineNr isNil]) ifTrue:[
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  3796
            ^ nil "/ self selected
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  3797
        ].
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  3798
        idx := idx - 1.
3349
b9a9138f8017 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3338
diff changeset
  3799
        firstRealIndex := firstRealIndex + 1.
b9a9138f8017 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3338
diff changeset
  3800
    ].
b9a9138f8017 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3338
diff changeset
  3801
15959
b041ed9d0e7c #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 15957
diff changeset
  3802
    [
b041ed9d0e7c #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 15957
diff changeset
  3803
        line := self listEntryAt:firstRealIndex. 
b041ed9d0e7c #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 15957
diff changeset
  3804
        line notNil and:[ self isSpecialPseudoNameEntry:line ]
5881
ef6791c315ab oops - out of bounds error fixed
Claus Gittinger <cg@exept.de>
parents: 5845
diff changeset
  3805
    ] whileTrue:[
3349
b9a9138f8017 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3338
diff changeset
  3806
        firstRealIndex := firstRealIndex + 1.
b9a9138f8017 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3338
diff changeset
  3807
        idx := idx - 1.
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  3808
    ].
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  3809
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3810
    cls := object class.
2447
95055cf58b2e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2446
diff changeset
  3811
    baseCls := self baseInspectedObjectClass.
95055cf58b2e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2446
diff changeset
  3812
95055cf58b2e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2446
diff changeset
  3813
    nNamedInstvarsShown := cls instSize.
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  3814
    "/ only the namedInstvars below baseInspectedObjectClass
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  3815
    "/ are shown ...
8962
b0e0907c0bf7 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 8908
diff changeset
  3816
    (cls includesBehavior:baseCls) ifTrue:[
2447
95055cf58b2e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2446
diff changeset
  3817
        nNamedInstvarsShown := nNamedInstvarsShown - baseCls instSize.
95055cf58b2e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2446
diff changeset
  3818
    ].
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3819
    nExtraNamedInstvarsShown := self extraNamedFields size.
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  3820
6840
52d3f2cbf130 extraNamedField support
Claus Gittinger <cg@exept.de>
parents: 6823
diff changeset
  3821
    idx <= (nNamedInstvarsShown+nExtraNamedInstvarsShown) ifTrue:[
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  3822
        ^ nil "/ named instVar selected.
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  3823
    ].
6840
52d3f2cbf130 extraNamedField support
Claus Gittinger <cg@exept.de>
parents: 6823
diff changeset
  3824
    ^ idx - (nNamedInstvarsShown+nExtraNamedInstvarsShown).
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  3825
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3826
    "Modified: / 16-05-2012 / 17:54:34 / cg"
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3827
!
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3828
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3829
listEntryAt:lineNr
11514
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
  3830
    |entry|
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
  3831
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
  3832
    entry := listView at:lineNr.
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
  3833
    entry isNil ifTrue:[^ entry].
11763
f3f1b32db84b changed: #listEntryAt:
Claus Gittinger <cg@exept.de>
parents: 11749
diff changeset
  3834
    ^ entry perform:#string ifNotUnderstood:[ entry printString ].
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3835
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3836
    "Created: / 16-05-2012 / 17:53:39 / cg"
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  3837
!
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  3838
17130
43d80b2f117a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17124
diff changeset
  3839
myObjectsInspectorExtraAttributes
18008
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  3840
    "by redefining inspectorExtraAttributes in an object to return an array of
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  3841
     pseudo-fieldName->value associations, the inspector's left list can be extended"
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  3842
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  3843
    "the MessageNotUnderstood check below is not sufficient 
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  3844
     - if some proxy (javaBridge) catches and forwards messages for example,
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  3845
       this makes problems. Therefore, we do an extra check here:"
17130
43d80b2f117a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17124
diff changeset
  3846
    (object class canUnderstand:#inspectorExtraAttributes) ifFalse:[
43d80b2f117a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17124
diff changeset
  3847
        ^ #()
43d80b2f117a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17124
diff changeset
  3848
    ].
43d80b2f117a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17124
diff changeset
  3849
    ^ [object inspectorExtraAttributes]
18038
fc3b70e1d5b0 #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 18031
diff changeset
  3850
                on: (Error,MessageNotUnderstood)
17130
43d80b2f117a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17124
diff changeset
  3851
                do: [:ex | ex return: #() ]
43d80b2f117a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17124
diff changeset
  3852
43d80b2f117a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17124
diff changeset
  3853
    "Created: / 17-07-2006 / 11:02:32 / cg"
43d80b2f117a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17124
diff changeset
  3854
    "Modified: / 29-08-2006 / 13:03:31 / cg"
43d80b2f117a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17124
diff changeset
  3855
!
43d80b2f117a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17124
diff changeset
  3856
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3857
namedFieldAt:idx
17977
e2d21d17cb5e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 17975
diff changeset
  3858
    ^ DebugView withDebuggingFlagSetDo:[
e2d21d17cb5e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 17975
diff changeset
  3859
        object instVarAt:idx
15657
d0feade4c193 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15614
diff changeset
  3860
    ].
17977
e2d21d17cb5e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 17975
diff changeset
  3861
e2d21d17cb5e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 17975
diff changeset
  3862
    "Modified: / 01-02-2018 / 10:09:53 / stefan"
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3863
!
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3864
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3865
namedFieldAt:idx put:newValue
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3866
    ^ object instVarAt:idx put:newValue
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3867
!
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3868
16804
52a7f72328f2 #DOCUMENTATION by mawalch
mawalch
parents: 16758
diff changeset
  3869
namedFieldList
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  3870
    "return a list of instVar names to show in the selectionList."
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  3871
11715
efa49c4a4f56 changed: #namedFieldList
Claus Gittinger <cg@exept.de>
parents: 11702
diff changeset
  3872
    |aList cls baseCls offset|
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  3873
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3874
    cls := object class.
2447
95055cf58b2e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2446
diff changeset
  3875
    baseCls := self baseInspectedObjectClass.
95055cf58b2e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2446
diff changeset
  3876
3351
64cdbec2dd8e text display
Claus Gittinger <cg@exept.de>
parents: 3349
diff changeset
  3877
    aList := OrderedCollection new.
3338
c2691e356f51 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3318
diff changeset
  3878
3351
64cdbec2dd8e text display
Claus Gittinger <cg@exept.de>
parents: 3349
diff changeset
  3879
    aList addAll:(cls allInstVarNames).
11715
efa49c4a4f56 changed: #namedFieldList
Claus Gittinger <cg@exept.de>
parents: 11702
diff changeset
  3880
    offset := 0.
8962
b0e0907c0bf7 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 8908
diff changeset
  3881
    (cls includesBehavior:baseCls) ifTrue:[
3351
64cdbec2dd8e text display
Claus Gittinger <cg@exept.de>
parents: 3349
diff changeset
  3882
        "/ hide some stuff
11715
efa49c4a4f56 changed: #namedFieldList
Claus Gittinger <cg@exept.de>
parents: 11702
diff changeset
  3883
        offset := self baseInspectedObjectClass instSize.
efa49c4a4f56 changed: #namedFieldList
Claus Gittinger <cg@exept.de>
parents: 11702
diff changeset
  3884
        aList := aList copyFrom:(offset + 1).
3351
64cdbec2dd8e text display
Claus Gittinger <cg@exept.de>
parents: 3349
diff changeset
  3885
    ].
16804
52a7f72328f2 #DOCUMENTATION by mawalch
mawalch
parents: 16758
diff changeset
  3886
    aList := aList
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  3887
                keysAndValuesCollect:[:idx :nm |
15657
d0feade4c193 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15614
diff changeset
  3888
                    |val|
d0feade4c193 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15614
diff changeset
  3889
16758
a5c09d35f59a #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 16713
diff changeset
  3890
                    val := object instVarAt:idx+offset.
15657
d0feade4c193 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15614
diff changeset
  3891
                    self listEntryForName:nm value:val
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  3892
                ].
16546
cf56b507ac97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16138
diff changeset
  3893
    sortOrder == SortOrderAlphabetical ifTrue:[
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  3894
        aList sort:[:a :b | a string < b string].
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  3895
    ].
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  3896
    ^ aList
3349
b9a9138f8017 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3338
diff changeset
  3897
11715
efa49c4a4f56 changed: #namedFieldList
Claus Gittinger <cg@exept.de>
parents: 11702
diff changeset
  3898
    "Modified: / 29-07-2012 / 12:11:06 / cg"
6372
d59bab947578 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6283
diff changeset
  3899
!
d59bab947578 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6283
diff changeset
  3900
11578
f750a9c9fb7a +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11576
diff changeset
  3901
numIndexedFields
f750a9c9fb7a +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11576
diff changeset
  3902
    ^ inspectedObject basicSize
f750a9c9fb7a +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11576
diff changeset
  3903
f750a9c9fb7a +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11576
diff changeset
  3904
    "Created: / 13-06-2012 / 10:13:24 / cg"
f750a9c9fb7a +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11576
diff changeset
  3905
!
f750a9c9fb7a +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11576
diff changeset
  3906
18008
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  3907
objectAttributeKeyNames
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  3908
    |attrs|
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  3909
18014
9061616443d4 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18008
diff changeset
  3910
    (object class canUnderstand:#objectAttributes) ifTrue:[
9061616443d4 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18008
diff changeset
  3911
        (attrs := object objectAttributes) notEmptyOrNil ifTrue:[
9061616443d4 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18008
diff changeset
  3912
            ^ attrs keys collect:[:key | ('+' , key) allItalic ].
9061616443d4 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18008
diff changeset
  3913
        ].
18008
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  3914
    ].
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  3915
    ^ #()
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  3916
!
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  3917
9370
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  3918
pseudoFieldNames
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  3919
    "return a list of names to show in the selectionList.
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  3920
     Leave hasMore as true, if a '...' entry should be added."
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  3921
11565
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  3922
    ^ self pseudoFieldNamesWithIndexed: object class isVariable
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  3923
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  3924
    "Modified: / 06-06-2012 / 11:56:56 / cg"
9370
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  3925
!
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  3926
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  3927
pseudoFieldNamesWithIndexed:withIndexed
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  3928
    "return a list of names to show in the selectionList.
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  3929
     Leave hasMore as true, if a '...' entry should be added."
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  3930
18558
a4a42afb99b4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 18539
diff changeset
  3931
    |list cls nameOfSelf|
9370
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  3932
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  3933
    cls := object class.
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  3934
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  3935
    list := OrderedCollection new.
12448
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  3936
    self hasSelfEntry ifTrue:[
18558
a4a42afb99b4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 18539
diff changeset
  3937
        nameOfSelf := object isJavaObject ifTrue:['this'] ifFalse:['self'].
18783
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3938
        list add:('-',nameOfSelf allItalic).
12448
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  3939
    ].
18783
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3940
    list add:('-','class' allItalic).
12448
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  3941
    hideMessages ifFalse:[
18783
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3942
        list add:('-','local messages' allItalic).
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3943
        "/ list add:('-','inherited messages' allItalic).
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3944
        list add:('-','all messages' allItalic).
12448
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  3945
    ].
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  3946
    hideHashes ifFalse:[
18783
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3947
        list add:('-','hash' allItalic).
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3948
        list add:('-','identityHash' allItalic).
12448
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  3949
    ].
9370
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  3950
11565
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  3951
    withIndexed ifTrue:[
18783
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3952
        list add:('-','basicSize' allItalic),(self valueStringInListEntryForValue:object basicSize).
11565
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  3953
    ].
17124
101cfec65247 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17123
diff changeset
  3954
101cfec65247 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17123
diff changeset
  3955
    object isProtoObject ifFalse:[
101cfec65247 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17123
diff changeset
  3956
        object isCollection ifTrue:[
101cfec65247 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17123
diff changeset
  3957
            (cls whichClassImplements:#size) ~~ (cls whichClassImplements:#basicSize) ifTrue:[
101cfec65247 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17123
diff changeset
  3958
                Error handle:[:ex |
101cfec65247 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17123
diff changeset
  3959
                ] do:[
101cfec65247 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17123
diff changeset
  3960
                    "/ Iterator has trouble
18783
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3961
                    list add:('-','size' allItalic),(self valueStringInListEntryForValue:object size).
17124
101cfec65247 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17123
diff changeset
  3962
                ].
101cfec65247 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17123
diff changeset
  3963
            ]
101cfec65247 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17123
diff changeset
  3964
        ].
101cfec65247 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17123
diff changeset
  3965
101cfec65247 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17123
diff changeset
  3966
        cls hasImmediateInstances ifFalse:[
101cfec65247 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17123
diff changeset
  3967
            object dependents notEmptyOrNil ifTrue:[
18783
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3968
                list add:('-','dependents' allItalic),(self valueStringInListEntryForValue:object dependents size).
11909
9ea1b7aa98dc changed: #pseudoFieldNamesWithIndexed:
Claus Gittinger <cg@exept.de>
parents: 11895
diff changeset
  3969
            ].
17124
101cfec65247 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17123
diff changeset
  3970
        ].
101cfec65247 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17123
diff changeset
  3971
101cfec65247 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17123
diff changeset
  3972
        object isClass ifTrue:[
18783
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3973
            list add:('-','all class vars' allItalic).
9370
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  3974
        ].
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  3975
    ].
17124
101cfec65247 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17123
diff changeset
  3976
101cfec65247 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17123
diff changeset
  3977
    cls instSize ~~ 0 ifTrue:[
18783
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3978
        list add:('-','all inst vars' allItalic).
9370
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  3979
    ].
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  3980
    (withIndexed and:[self showAllIndexedVarsInFieldList]) ifTrue:[
18783
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3981
        list add:('-','all indexed vars' allItalic).
9370
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  3982
    ].
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  3983
    ^ list
11565
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  3984
11579
0c14b5d9c07f added: #valueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11578
diff changeset
  3985
    "Modified: / 13-06-2012 / 12:10:16 / cg"
13870
f879d86b381f merged in jv's chenges
Claus Gittinger <cg@exept.de>
parents: 13768
diff changeset
  3986
    "Modified: / 05-11-2013 / 17:57:00 / Jan Vrany <jan.vrany@fit.cvut.cz>"
18558
a4a42afb99b4 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 18539
diff changeset
  3987
    "Modified: / 24-01-2019 / 12:47:56 / Claus Gittinger"
18783
9439c754727b #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18782
diff changeset
  3988
    "Modified (comment): / 28-05-2019 / 16:11:16 / Claus Gittinger"
9370
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  3989
!
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  3990
3608
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  3991
setAcceptAction
12457
db4080187675 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12448
diff changeset
  3992
    "set the codeView's accept action"
3608
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  3993
9375
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  3994
    |idx acceptAction sel|
3608
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  3995
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  3996
    acceptAction := [:theText | self doAccept:theText asString].
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  3997
9375
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  3998
    idx := self theSingleSelectionIndex.
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  3999
16804
52a7f72328f2 #DOCUMENTATION by mawalch
mawalch
parents: 16758
diff changeset
  4000
    (idx isNil
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  4001
    or:[ object class hasImmediateInstances])
3608
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  4002
    ifTrue:[
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  4003
        acceptAction := nil.
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  4004
    ] ifFalse:[
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  4005
        sel := self listEntryAt:idx.
3608
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  4006
3868
77040d8d3526 all indexed vars
Claus Gittinger <cg@exept.de>
parents: 3657
diff changeset
  4007
        (sel startsWith:'-all') ifTrue:[
3608
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  4008
            acceptAction := nil.
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  4009
        ].
14401
feab073572b2 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14259
diff changeset
  4010
        (sel startsWith:'-class') ifTrue:[
feab073572b2 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14259
diff changeset
  4011
            acceptAction := nil.
feab073572b2 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14259
diff changeset
  4012
        ].
3608
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  4013
        (sel startsWith:'-hash') ifTrue:[
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  4014
            acceptAction := nil.
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  4015
        ].
11565
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  4016
        (sel startsWith:'-basicSize') ifTrue:[
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  4017
            acceptAction := nil.
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  4018
        ].
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  4019
        (sel startsWith:'-size') ifTrue:[
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  4020
            acceptAction := nil.
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  4021
        ].
3608
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  4022
        (sel startsWith:'-identityHash') ifTrue:[
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  4023
            acceptAction := nil.
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  4024
        ].
3634
db094dd598f7 -dependents
Claus Gittinger <cg@exept.de>
parents: 3608
diff changeset
  4025
        (sel startsWith:'-dependents') ifTrue:[
db094dd598f7 -dependents
Claus Gittinger <cg@exept.de>
parents: 3608
diff changeset
  4026
            acceptAction := nil.
db094dd598f7 -dependents
Claus Gittinger <cg@exept.de>
parents: 3608
diff changeset
  4027
        ].
5134
536fbfead179 source field for methods
Claus Gittinger <cg@exept.de>
parents: 4999
diff changeset
  4028
        (sel startsWith:'-source') ifTrue:[
536fbfead179 source field for methods
Claus Gittinger <cg@exept.de>
parents: 4999
diff changeset
  4029
            acceptAction := nil.
536fbfead179 source field for methods
Claus Gittinger <cg@exept.de>
parents: 4999
diff changeset
  4030
        ].
3608
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  4031
    ].
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  4032
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  4033
    workspace acceptAction:acceptAction.
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  4034
11565
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  4035
    "Modified: / 06-06-2012 / 11:57:27 / cg"
3608
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  4036
!
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  4037
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  4038
setDoItAction
542
12d3bf714076 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 531
diff changeset
  4039
    "set the codeViews doit action"
12d3bf714076 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 531
diff changeset
  4040
16804
52a7f72328f2 #DOCUMENTATION by mawalch
mawalch
parents: 16758
diff changeset
  4041
    workspace
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  4042
        doItAction:[:theCode |
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  4043
            |evaluator|
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  4044
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  4045
            (evaluator := object class evaluatorClass)
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  4046
            notNil ifTrue:[
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  4047
                evaluator
16804
52a7f72328f2 #DOCUMENTATION by mawalch
mawalch
parents: 16758
diff changeset
  4048
                    evaluate:theCode
52a7f72328f2 #DOCUMENTATION by mawalch
mawalch
parents: 16758
diff changeset
  4049
                    in:nil
52a7f72328f2 #DOCUMENTATION by mawalch
mawalch
parents: 16758
diff changeset
  4050
                    receiver:object
52a7f72328f2 #DOCUMENTATION by mawalch
mawalch
parents: 16758
diff changeset
  4051
                    notifying:workspace
52a7f72328f2 #DOCUMENTATION by mawalch
mawalch
parents: 16758
diff changeset
  4052
                    logged:true
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  4053
                    ifFail:nil
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  4054
            ] ifFalse:[
12457
db4080187675 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12448
diff changeset
  4055
                'object''s class provides no evaluator'
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  4056
            ]
12916
5d4c346e2bf3 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12886
diff changeset
  4057
        ];
5d4c346e2bf3 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12886
diff changeset
  4058
        editedMethodOrClass:(object class).
542
12d3bf714076 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 531
diff changeset
  4059
17457
41ebd25b97b4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17427
diff changeset
  4060
    workspace simulatedSelf:object.
41ebd25b97b4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17427
diff changeset
  4061
    "/ workspace perform:#simulatedSelf: with:object ifNotUnderstood:[].
41ebd25b97b4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17427
diff changeset
  4062
    
12457
db4080187675 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12448
diff changeset
  4063
"/    object class evaluatorClass isNil ifTrue:[
db4080187675 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12448
diff changeset
  4064
"/        workspace doItAction:nil.
db4080187675 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12448
diff changeset
  4065
"/        workspace acceptAction:nil.
db4080187675 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12448
diff changeset
  4066
"/    ]
1270
3dc841708edd disable accept/doIt, if instances class provides no evaluator
Claus Gittinger <cg@exept.de>
parents: 1235
diff changeset
  4067
17457
41ebd25b97b4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17427
diff changeset
  4068
    "Modified: / 09-03-2017 / 10:42:45 / cg"
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  4069
!
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  4070
3884
4329e6c615a5 dont crash in set showing all indexed vars
james
parents: 3874
diff changeset
  4071
showAllIndexedVarsInFieldList
4329e6c615a5 dont crash in set showing all indexed vars
james
parents: 3874
diff changeset
  4072
    ^ true
4329e6c615a5 dont crash in set showing all indexed vars
james
parents: 3874
diff changeset
  4073
!
4329e6c615a5 dont crash in set showing all indexed vars
james
parents: 3874
diff changeset
  4074
9375
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  4075
theSingleSelectionIndex
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  4076
    "helper - return the index of the (single) selected entry.
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  4077
     Nil if nothing or multiple items are selected"
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  4078
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  4079
    |idx|
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  4080
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  4081
    idx := selectionIndex.
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  4082
    idx isCollection ifTrue:[
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  4083
        selectionIndex size == 1 ifTrue:[
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  4084
            ^ selectionIndex first
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  4085
        ].
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  4086
        ^ nil
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  4087
    ].
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  4088
    ^ selectionIndex
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  4089
!
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  4090
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  4091
valueAtLine:lineNr
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  4092
    "helper - return the value of the selected entry"
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  4093
17184
20a4ba15b83f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17131
diff changeset
  4094
    |idx lineEntry val|
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  4095
4095
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  4096
    (self hasSelfEntry
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  4097
    and:[lineNr == 1 or:[lineNr isNil]]) ifTrue:[
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  4098
        ^ object
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  4099
    ].
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  4100
18787
15c68535c71b #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18783
diff changeset
  4101
    lineEntry := self listEntryAt:lineNr.
15c68535c71b #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18783
diff changeset
  4102
    
17872
096003c27b76 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17823
diff changeset
  4103
    "/ one of the special (pseudo) entries?
18787
15c68535c71b #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18783
diff changeset
  4104
    (lineEntry startsWith:$-) ifTrue:[
17184
20a4ba15b83f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17131
diff changeset
  4105
        (lineEntry ~= '-' 
20a4ba15b83f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17131
diff changeset
  4106
          and:[(lineEntry at:2) isSeparator not
20a4ba15b83f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17131
diff changeset
  4107
          and:[(lineEntry at:2) isDigit not "negative number"]]
20a4ba15b83f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17131
diff changeset
  4108
        ) ifTrue:[
20a4ba15b83f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17131
diff changeset
  4109
            ^ self valueForSpecialLine:lineEntry
3645
d88ce5dea1ce *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3639
diff changeset
  4110
        ].
3338
c2691e356f51 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3318
diff changeset
  4111
    ].
18008
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  4112
    "/ an object attribute?
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  4113
    (lineEntry startsWith:$+) ifTrue:[
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  4114
        (object objectAttributes includesKey:(lineEntry copyFrom:2) asSymbol) ifTrue:[
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  4115
            ^ object objectAttributeAt:(lineEntry copyFrom:2) asSymbol
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  4116
        ]
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  4117
    ].
ed579d6c007e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17985
diff changeset
  4118
17872
096003c27b76 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17823
diff changeset
  4119
    "/ another special (pseudo) entries?
18782
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  4120
    (lineEntry startsWith:$¤) ifTrue:[
17184
20a4ba15b83f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17131
diff changeset
  4121
        ^ self valueForSpecialLine:lineEntry
20a4ba15b83f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17131
diff changeset
  4122
    ].
3338
c2691e356f51 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3318
diff changeset
  4123
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  4124
    "/ a named instVar ?
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  4125
    idx := self instVarIndexForLine:lineNr.
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  4126
    idx notNil ifTrue:[
17872
096003c27b76 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17823
diff changeset
  4127
        "/ avoid endless recursion in case there is a breakPoint on the getter
096003c27b76 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17823
diff changeset
  4128
        BreakPointInterrupt ignoreIn:[
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  4129
            ^ self namedFieldAt:idx
2800
4e5792ade7aa menu fix
Claus Gittinger <cg@exept.de>
parents: 2724
diff changeset
  4130
        ]
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  4131
    ].
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  4132
6840
52d3f2cbf130 extraNamedField support
Claus Gittinger <cg@exept.de>
parents: 6823
diff changeset
  4133
    "/ an extra named field ?
52d3f2cbf130 extraNamedField support
Claus Gittinger <cg@exept.de>
parents: 6823
diff changeset
  4134
    idx := self extraNamedVarIndexForLine:lineNr.
52d3f2cbf130 extraNamedField support
Claus Gittinger <cg@exept.de>
parents: 6823
diff changeset
  4135
    idx notNil ifTrue:[
17872
096003c27b76 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17823
diff changeset
  4136
        "/ avoid endless recursion in case there is a breakPoint on the getter
096003c27b76 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17823
diff changeset
  4137
        BreakPointInterrupt ignoreIn:[
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  4138
            val := ((self extraNamedFields) at:idx) value.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  4139
            val isBlock ifTrue:[ val := val value ].
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  4140
            ^ val
6840
52d3f2cbf130 extraNamedField support
Claus Gittinger <cg@exept.de>
parents: 6823
diff changeset
  4141
        ]
52d3f2cbf130 extraNamedField support
Claus Gittinger <cg@exept.de>
parents: 6823
diff changeset
  4142
    ].
52d3f2cbf130 extraNamedField support
Claus Gittinger <cg@exept.de>
parents: 6823
diff changeset
  4143
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  4144
    "/ an indexed instVar ?
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  4145
    idx := self keyIndexForLine:lineNr.
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  4146
    idx notNil ifTrue:[
17872
096003c27b76 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17823
diff changeset
  4147
        "/ avoid endless recursion in case there is a breakPoint on the getter
096003c27b76 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17823
diff changeset
  4148
        BreakPointInterrupt ignoreIn:[
2800
4e5792ade7aa menu fix
Claus Gittinger <cg@exept.de>
parents: 2724
diff changeset
  4149
            ^ self indexedValueAtIndex:idx.
4e5792ade7aa menu fix
Claus Gittinger <cg@exept.de>
parents: 2724
diff changeset
  4150
        ]
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  4151
    ].
644
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  4152
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  4153
    "/ nope
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  4154
    ^ nil
613
048942111c7b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 593
diff changeset
  4155
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  4156
    "Modified: / 16-05-2012 / 17:54:06 / cg"
18787
15c68535c71b #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18783
diff changeset
  4157
    "Modified: / 28-05-2019 / 18:22:44 / Claus Gittinger"
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  4158
!
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  4159
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  4160
valueAtLine:lineNr put:newValue
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  4161
    |idx|
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  4162
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  4163
    idx := self instVarIndexForLine:selectionIndex.
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  4164
    idx notNil ifTrue:[
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  4165
        self namedFieldAt:idx put:newValue.
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  4166
        ^ self.
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  4167
    ].
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  4168
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  4169
    idx := self keyIndexForLine:selectionIndex.
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  4170
    idx notNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  4171
        self indexedValueAtIndex:idx put:newValue.
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  4172
        ^ self
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  4173
    ].
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  4174
17184
20a4ba15b83f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17131
diff changeset
  4175
    "/ self or special entry selected - don't store
17938
873e0a718474 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17872
diff changeset
  4176
    self beepInEditor.
17184
20a4ba15b83f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17131
diff changeset
  4177
    ^ self 
3349
b9a9138f8017 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3338
diff changeset
  4178
!
b9a9138f8017 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3338
diff changeset
  4179
b9a9138f8017 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3338
diff changeset
  4180
valueForSpecialLine:line
18259
aaf5a643cbf5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18119
diff changeset
  4181
    |idx fieldEntry extraAttributes fields fieldValue|
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  4182
17130
43d80b2f117a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17124
diff changeset
  4183
    extraAttributes := self myObjectsInspectorExtraAttributes.
43d80b2f117a #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17124
diff changeset
  4184
    (extraAttributes includesKey:line) ifTrue:[
18259
aaf5a643cbf5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18119
diff changeset
  4185
        Error handle:[:ex |
18780
9c2b3406ea73 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18735
diff changeset
  4186
            fieldValue := (('Error: ',ex description) withColor:Color red)
9c2b3406ea73 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18735
diff changeset
  4187
                                "actionForAll:[Debugger enterException:ex]"
18259
aaf5a643cbf5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18119
diff changeset
  4188
        ] do:[
aaf5a643cbf5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18119
diff changeset
  4189
            fieldValue := (extraAttributes at:line) value
aaf5a643cbf5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18119
diff changeset
  4190
        ].
aaf5a643cbf5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18119
diff changeset
  4191
        ^ fieldValue
7297
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  4192
    ].
6823
40d460dee8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6491
diff changeset
  4193
11419
a96a34326a6a changed: #valueForSpecialLine:
Claus Gittinger <cg@exept.de>
parents: 11276
diff changeset
  4194
    idx := self derivedFieldNames findFirst:[:l | l string = line string ].
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  4195
    idx ~~ 0 ifTrue:[
11419
a96a34326a6a changed: #valueForSpecialLine:
Claus Gittinger <cg@exept.de>
parents: 11276
diff changeset
  4196
        "a lot of backward compatibility crab which has to go away..."
a96a34326a6a changed: #valueForSpecialLine:
Claus Gittinger <cg@exept.de>
parents: 11276
diff changeset
  4197
        fields := self derivedFields.
12820
a3b0b7557632 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12810
diff changeset
  4198
        (fields isDictionary) ifTrue:[
11419
a96a34326a6a changed: #valueForSpecialLine:
Claus Gittinger <cg@exept.de>
parents: 11276
diff changeset
  4199
            fieldEntry := fields associationAt:line string "idx".
a96a34326a6a changed: #valueForSpecialLine:
Claus Gittinger <cg@exept.de>
parents: 11276
diff changeset
  4200
        ] ifFalse:[
a96a34326a6a changed: #valueForSpecialLine:
Claus Gittinger <cg@exept.de>
parents: 11276
diff changeset
  4201
            fieldEntry := fields associationAt:idx.
a96a34326a6a changed: #valueForSpecialLine:
Claus Gittinger <cg@exept.de>
parents: 11276
diff changeset
  4202
        ].
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  4203
    ] ifFalse:[
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  4204
        idx := self extraNamedFieldNames indexOf:line.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  4205
        idx ~~ 0 ifTrue:[
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  4206
            fieldEntry := self extraNamedFields at:idx.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  4207
        ].
6840
52d3f2cbf130 extraNamedField support
Claus Gittinger <cg@exept.de>
parents: 6823
diff changeset
  4208
    ].
6823
40d460dee8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6491
diff changeset
  4209
    fieldEntry notNil ifTrue:[
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  4210
        fieldEntry isAssociation ifTrue:[
11419
a96a34326a6a changed: #valueForSpecialLine:
Claus Gittinger <cg@exept.de>
parents: 11276
diff changeset
  4211
            ^ fieldEntry value value
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  4212
        ].
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  4213
        ^ fieldEntry at:2.
6823
40d460dee8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6491
diff changeset
  4214
    ].
40d460dee8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6491
diff changeset
  4215
3525
761785907491 checkin from browser
martin
parents: 3432
diff changeset
  4216
    (line startsWith:'-self') ifTrue:[
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  4217
        ^ object
3525
761785907491 checkin from browser
martin
parents: 3432
diff changeset
  4218
    ].
11565
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  4219
    (line startsWith:'-basicSize') ifTrue:[
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  4220
        ^ object basicSize
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  4221
    ].
9504
196c6f7d3cc4 changed: #valueForSpecialLine:
Stefan Vogel <sv@exept.de>
parents: 9396
diff changeset
  4222
    (line startsWith:'-size') ifTrue:[
196c6f7d3cc4 changed: #valueForSpecialLine:
Stefan Vogel <sv@exept.de>
parents: 9396
diff changeset
  4223
        ^ object size
196c6f7d3cc4 changed: #valueForSpecialLine:
Stefan Vogel <sv@exept.de>
parents: 9396
diff changeset
  4224
    ].
14401
feab073572b2 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14259
diff changeset
  4225
    (line startsWith:'-class') ifTrue:[
feab073572b2 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14259
diff changeset
  4226
        ^ object class
feab073572b2 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14259
diff changeset
  4227
    ].
3525
761785907491 checkin from browser
martin
parents: 3432
diff changeset
  4228
    (line startsWith:'-hash') ifTrue:[
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  4229
        ^ object hash
3525
761785907491 checkin from browser
martin
parents: 3432
diff changeset
  4230
    ].
761785907491 checkin from browser
martin
parents: 3432
diff changeset
  4231
    (line startsWith:'-identityHash') ifTrue:[
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  4232
        ^ object identityHash
3525
761785907491 checkin from browser
martin
parents: 3432
diff changeset
  4233
    ].
3634
db094dd598f7 -dependents
Claus Gittinger <cg@exept.de>
parents: 3608
diff changeset
  4234
    (line startsWith:'-dependents') ifTrue:[
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  4235
        ^ object dependents
3634
db094dd598f7 -dependents
Claus Gittinger <cg@exept.de>
parents: 3608
diff changeset
  4236
    ].
3868
77040d8d3526 all indexed vars
Claus Gittinger <cg@exept.de>
parents: 3657
diff changeset
  4237
    (line startsWith:'-all') ifTrue:[
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  4238
        ^ object
3608
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  4239
    ].
8726
f0230df32944 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8699
diff changeset
  4240
    (line startsWith:'-local messages') ifTrue:[
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  4241
        ^ object
8726
f0230df32944 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8699
diff changeset
  4242
    ].
f0230df32944 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8699
diff changeset
  4243
    (line startsWith:'-inherited messages') ifTrue:[
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  4244
        ^ object
8726
f0230df32944 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8699
diff changeset
  4245
    ].
f0230df32944 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8699
diff changeset
  4246
    (line startsWith:'-all messages') ifTrue:[
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  4247
        ^ object
8726
f0230df32944 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8699
diff changeset
  4248
    ].
3608
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  4249
12448
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  4250
    (line startsWith:'--- ') ifTrue:[
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  4251
        "/ info line, such as '--- classvariables from...'
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  4252
        ^ object
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  4253
    ].
8495e3427e92 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12103
diff changeset
  4254
3526
d8f3082ea1d7 Remove unused vars
Stefan Vogel <sv@exept.de>
parents: 3525
diff changeset
  4255
    self error:'unknown special line'.
3349
b9a9138f8017 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3338
diff changeset
  4256
6823
40d460dee8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6491
diff changeset
  4257
    "Created: / 31-10-2001 / 09:17:45 / cg"
11565
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  4258
    "Modified: / 06-06-2012 / 11:57:54 / cg"
18780
9c2b3406ea73 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18735
diff changeset
  4259
    "Modified: / 28-05-2019 / 11:12:40 / Claus Gittinger"
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  4260
! !
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  4261
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4262
!InspectorView methodsFor:'queries'!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4263
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4264
canInspect:anObject
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4265
    ^ anObject inspectorClass == self class
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4266
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4267
5925
6502b73091ab *** empty log message ***
ca
parents: 5913
diff changeset
  4268
compilerClass
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  4269
    ^ object class compilerClass
5925
6502b73091ab *** empty log message ***
ca
parents: 5913
diff changeset
  4270
!
6502b73091ab *** empty log message ***
ca
parents: 5913
diff changeset
  4271
4095
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  4272
dereferenceValueHolders
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  4273
    ^ dereferenceValueHolders ? false
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  4274
!
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  4275
15800
52040902201e class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 15715
diff changeset
  4276
isIndexShown
52040902201e class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 15715
diff changeset
  4277
    ^ true
52040902201e class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 15715
diff changeset
  4278
!
52040902201e class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 15715
diff changeset
  4279
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4280
labelFor:anObject
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4281
    "return the windowLabel to use in my topView, when inspecting anObject."
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4282
14508
268012bb76c1 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14406
diff changeset
  4283
    |myClass lbl|
268012bb76c1 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14406
diff changeset
  4284
268012bb76c1 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14406
diff changeset
  4285
    myClass := self class.
268012bb76c1 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 14406
diff changeset
  4286
    (myClass == InspectorView
17123
42b500e22252 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17032
diff changeset
  4287
     and:[anObject isProtoObject not and:[anObject inspectorClass ~~ InspectorView]]) ifTrue:[
6130
8f6c6203e608 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6034
diff changeset
  4288
        lbl := 'BasicInspector on: '
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4289
    ] ifFalse:[
6130
8f6c6203e608 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6034
diff changeset
  4290
        lbl := 'Inspector on: '
5958
751d314f92c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5925
diff changeset
  4291
    ].
17123
42b500e22252 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17032
diff changeset
  4292
    ^ (myClass classResources string:lbl), (myClass commonLabelFor:anObject)
10321
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
  4293
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
  4294
    "Modified: / 15-07-2011 / 16:22:05 / cg"
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4295
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4296
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4297
labelNameFor:anObject
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4298
    "return the iconLabel to use in my topView, when inspecting anObject.
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4299
     Simply returns the className or name of anObjects class"
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4300
11658
b431692d3cba comment/format in: #labelFor:
Claus Gittinger <cg@exept.de>
parents: 11644
diff changeset
  4301
    ^ self class labelNameFor:anObject
5958
751d314f92c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5925
diff changeset
  4302
751d314f92c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5925
diff changeset
  4303
    "
751d314f92c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5925
diff changeset
  4304
     1234 inspect
751d314f92c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5925
diff changeset
  4305
     true inspect
751d314f92c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5925
diff changeset
  4306
     $a inspect
751d314f92c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5925
diff changeset
  4307
    "
11658
b431692d3cba comment/format in: #labelFor:
Claus Gittinger <cg@exept.de>
parents: 11644
diff changeset
  4308
b431692d3cba comment/format in: #labelFor:
Claus Gittinger <cg@exept.de>
parents: 11644
diff changeset
  4309
    "Modified: / 25-07-2012 / 10:15:06 / cg"
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4310
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4311
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4312
selectedKeyName
16064
a770f72f3601 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15959
diff changeset
  4313
    "used by the debugger, to fetch the selected instVar/pseudoVar name,
a770f72f3601 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15959
diff changeset
  4314
     so it can be reselected after the next single step
a770f72f3601 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15959
diff changeset
  4315
     (using tryToSelect..)"
16804
52a7f72328f2 #DOCUMENTATION by mawalch
mawalch
parents: 16758
diff changeset
  4316
11910
6087f8d5d9b4 comment/format in: #tryToSelectKeyNamed:
Claus Gittinger <cg@exept.de>
parents: 11909
diff changeset
  4317
    |sel|
6087f8d5d9b4 comment/format in: #tryToSelectKeyNamed:
Claus Gittinger <cg@exept.de>
parents: 11909
diff changeset
  4318
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4319
    selectionIndex notNil ifTrue:[
11910
6087f8d5d9b4 comment/format in: #tryToSelectKeyNamed:
Claus Gittinger <cg@exept.de>
parents: 11909
diff changeset
  4320
        sel := listView listAt:selectionIndex.
6087f8d5d9b4 comment/format in: #tryToSelectKeyNamed:
Claus Gittinger <cg@exept.de>
parents: 11909
diff changeset
  4321
        sel notNil ifTrue:[
6087f8d5d9b4 comment/format in: #tryToSelectKeyNamed:
Claus Gittinger <cg@exept.de>
parents: 11909
diff changeset
  4322
            sel := sel string.
16064
a770f72f3601 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15959
diff changeset
  4323
            "/ careful: pseudo entries may have spaces in-between
a770f72f3601 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15959
diff changeset
  4324
            (sel startsWith:'-') ifFalse:[
a770f72f3601 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15959
diff changeset
  4325
                "/ clip off the value-info string
a770f72f3601 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15959
diff changeset
  4326
                sel := sel copyUpTo:(Character space).
16804
52a7f72328f2 #DOCUMENTATION by mawalch
mawalch
parents: 16758
diff changeset
  4327
            ].
11910
6087f8d5d9b4 comment/format in: #tryToSelectKeyNamed:
Claus Gittinger <cg@exept.de>
parents: 11909
diff changeset
  4328
            ^ sel
6087f8d5d9b4 comment/format in: #tryToSelectKeyNamed:
Claus Gittinger <cg@exept.de>
parents: 11909
diff changeset
  4329
        ].
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4330
    ].
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4331
    ^ nil
4095
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  4332
!
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  4333
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  4334
suppressPseudoSlots
17588
b3a2da852bf2 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17517
diff changeset
  4335
    "are pseudo slots (eg. inspectorExtraAttributes) suppressed?"
b3a2da852bf2 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17517
diff changeset
  4336
4095
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  4337
    ^ suppressPseudoSlots ? false
17588
b3a2da852bf2 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17517
diff changeset
  4338
b3a2da852bf2 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17517
diff changeset
  4339
    "Modified (comment): / 18-07-2017 / 15:19:55 / cg"
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4340
! !
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4341
8653
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4342
!InspectorView methodsFor:'selection'!
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4343
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4344
selection:lineNr
18789
8ff9798593ec #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18787
diff changeset
  4345
    AbortOperationRequest catch:[
8ff9798593ec #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18787
diff changeset
  4346
        self showSelection:lineNr
8ff9798593ec #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18787
diff changeset
  4347
    ].
8ff9798593ec #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18787
diff changeset
  4348
8ff9798593ec #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18787
diff changeset
  4349
    "Modified: / 28-05-2019 / 19:27:12 / Claus Gittinger"
8653
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4350
!
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4351
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4352
showSelection:lineNr
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4353
    "user clicked on an instvar - show value in workspace"
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4354
17184
20a4ba15b83f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17131
diff changeset
  4355
    |listSize|
9672
bad886ee0f07 changed: #showSelection:
Claus Gittinger <cg@exept.de>
parents: 9651
diff changeset
  4356
18041
13926da725fa #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18038
diff changeset
  4357
    listSize := listView numberOfLines.
9672
bad886ee0f07 changed: #showSelection:
Claus Gittinger <cg@exept.de>
parents: 9651
diff changeset
  4358
    listSize == 0 ifTrue:[^ self].
bad886ee0f07 changed: #showSelection:
Claus Gittinger <cg@exept.de>
parents: 9651
diff changeset
  4359
bad886ee0f07 changed: #showSelection:
Claus Gittinger <cg@exept.de>
parents: 9651
diff changeset
  4360
    (hasMore and:[lineNr == listSize]) ifTrue:[
8653
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4361
        "clicked on the '...' entry"
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4362
        self showMore.
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4363
        listView setSelection:lineNr.
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4364
    ].
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4365
17184
20a4ba15b83f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17131
diff changeset
  4366
    (self hasSelfEntry and:[lineNr == 1]) ifTrue:[
20a4ba15b83f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17131
diff changeset
  4367
        "selecting self also does a re-set, this allows updating the list"
20a4ba15b83f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17131
diff changeset
  4368
        self reinspect.
8653
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4369
    ].
10521
9218a2f4a6d1 Oops, fixes previous (messed) revision (changed: #showSelection:)
vrany
parents: 10520
diff changeset
  4370
    selectionIndex := selectedLine := lineNr.
17184
20a4ba15b83f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17131
diff changeset
  4371
    self showValue:(self selection).
8653
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4372
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4373
    self setAcceptAction.
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4374
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4375
    "Modified: / 03-08-2006 / 14:26:22 / cg"
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4376
!
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4377
16804
52a7f72328f2 #DOCUMENTATION by mawalch
mawalch
parents: 16758
diff changeset
  4378
showValue:someValue
8653
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4379
    "user clicked on an entry - show value in workspace"
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4380
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4381
    |s|
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4382
9651
cca26b954d45 changed:
Claus Gittinger <cg@exept.de>
parents: 9648
diff changeset
  4383
    self "topView" withWaitCursorDo:[
11946
5f9c69ccc6d8 changed: #showValue:
Claus Gittinger <cg@exept.de>
parents: 11916
diff changeset
  4384
        [
5f9c69ccc6d8 changed: #showValue:
Claus Gittinger <cg@exept.de>
parents: 11916
diff changeset
  4385
            s := self displayStringForValue:someValue.
5f9c69ccc6d8 changed: #showValue:
Claus Gittinger <cg@exept.de>
parents: 11916
diff changeset
  4386
        ] valueWithWatchDog:[
12642
6dab05146bff class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12611
diff changeset
  4387
            s := someValue classNameWithArticle,' "- printString generation took too long"'
6dab05146bff class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12611
diff changeset
  4388
        ] afterMilliseconds:1000.
11946
5f9c69ccc6d8 changed: #showValue:
Claus Gittinger <cg@exept.de>
parents: 11916
diff changeset
  4389
8653
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4390
        s = workspace selectionAsString ifFalse:[
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4391
            workspace replace:s.
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4392
        ].
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4393
    ].
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4394
11946
5f9c69ccc6d8 changed: #showValue:
Claus Gittinger <cg@exept.de>
parents: 11916
diff changeset
  4395
    "Modified: / 28-10-2012 / 11:03:04 / cg"
8653
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4396
! !
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  4397
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4398
!InspectorView methodsFor:'user interaction'!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4399
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4400
doAccept:theText
16064
a770f72f3601 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15959
diff changeset
  4401
    "the selected text is evaluated and stored into the selected field"
16804
52a7f72328f2 #DOCUMENTATION by mawalch
mawalch
parents: 16758
diff changeset
  4402
11551
5d6cd56f9dcf changed: #doAccept:
Claus Gittinger <cg@exept.de>
parents: 11548
diff changeset
  4403
    |sel newValue fieldNameList|
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4404
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  4405
    sel := self listEntryAt:(self theSingleSelectionIndex).
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4406
    (sel startsWith:'-all') ifTrue:[
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4407
        workspace flash.
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4408
        ^ self.
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4409
    ].
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4410
4642
ee63c37d9d3c Convert Object>>errorSignal -> Error
Stefan Vogel <sv@exept.de>
parents: 4314
diff changeset
  4411
    Error handle:[:ex |
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4412
        workspace flash
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4413
    ] do:[
16804
52a7f72328f2 #DOCUMENTATION by mawalch
mawalch
parents: 16758
diff changeset
  4414
        newValue := object class evaluatorClass
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4415
                       evaluate:theText
16804
52a7f72328f2 #DOCUMENTATION by mawalch
mawalch
parents: 16758
diff changeset
  4416
                       receiver:object
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4417
                       notifying:workspace.
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4418
4095
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  4419
        self dereferenceValueHolders ifTrue:[
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  4420
            (self valueAtLine:selectionIndex) value:newValue
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  4421
        ] ifFalse:[
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  4422
            self valueAtLine:selectionIndex put:newValue.
11551
5d6cd56f9dcf changed: #doAccept:
Claus Gittinger <cg@exept.de>
parents: 11548
diff changeset
  4423
        ].
5d6cd56f9dcf changed: #doAccept:
Claus Gittinger <cg@exept.de>
parents: 11548
diff changeset
  4424
        "/ update the fieldList...
16804
52a7f72328f2 #DOCUMENTATION by mawalch
mawalch
parents: 16758
diff changeset
  4425
        fieldNameList := self fieldList.
11551
5d6cd56f9dcf changed: #doAccept:
Claus Gittinger <cg@exept.de>
parents: 11548
diff changeset
  4426
        hasMore ifTrue:[
5d6cd56f9dcf changed: #doAccept:
Claus Gittinger <cg@exept.de>
parents: 11548
diff changeset
  4427
            fieldNameList add:' ... '
5d6cd56f9dcf changed: #doAccept:
Claus Gittinger <cg@exept.de>
parents: 11548
diff changeset
  4428
        ].
5d6cd56f9dcf changed: #doAccept:
Claus Gittinger <cg@exept.de>
parents: 11548
diff changeset
  4429
        listView contents:fieldNameList.
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4430
    ]
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  4431
11551
5d6cd56f9dcf changed: #doAccept:
Claus Gittinger <cg@exept.de>
parents: 11548
diff changeset
  4432
    "Modified: / 04-06-2012 / 18:16:29 / cg"
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4433
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4434
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4435
doCopyKey
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4436
    "put the instVar-name into the text-copy-buffer"
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4437
9378
07c0ca7444b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9375
diff changeset
  4438
    |nm selIdx|
07c0ca7444b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9375
diff changeset
  4439
07c0ca7444b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9375
diff changeset
  4440
    (selIdx := self theSingleSelectionIndex) notNil ifTrue:[
11916
b64155bfd864 changed: #doCopyKey
Claus Gittinger <cg@exept.de>
parents: 11910
diff changeset
  4441
        nm := self selectedKeyName.
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4442
        nm notNil ifTrue:[
6034
7f7d4b7362dd set selection interface changed
ca
parents: 5958
diff changeset
  4443
            self setClipboardText:(nm asString)
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4444
        ]
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4445
    ]
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4446
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4447
12528
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  4448
doInspect:basicBooleanOrSymbolForHow
16064
a770f72f3601 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15959
diff changeset
  4449
    "user selected the inspect-menu entry"
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4450
12528
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  4451
    self doInspect:self selectedField basic:basicBooleanOrSymbolForHow
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  4452
!
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  4453
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  4454
doInspect:objectToInspect basic:basic
18789
8ff9798593ec #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18787
diff changeset
  4455
    "user selected the basic-inspect-menu entry.
8ff9798593ec #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18787
diff changeset
  4456
     Hack: basic used to be a boolean;
8ff9798593ec #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18787
diff changeset
  4457
     it can now be also #new (for the new inspector)"
12528
a12288a0588a class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 12496
diff changeset
  4458
8025
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  4459
    objectToInspect notNil ifTrue:[
9349
e6d367cbe86c do not show new-inspector in menu, if there is none loaded
Claus Gittinger <cg@exept.de>
parents: 9316
diff changeset
  4460
        (basic == #new and:[NewInspector::NewInspectorView notNil]) ifTrue:[
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4461
            NewInspector::NewInspectorView inspect:objectToInspect
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4462
        ] ifFalse:[
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4463
            basic ifTrue:[
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4464
                objectToInspect basicInspect
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4465
            ] ifFalse:[
10424
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
  4466
                "/ cg: a bad hack; it is ok for a double-click, but not for the
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
  4467
                "/ menu item (i often want to have another inspector on the same object)
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
  4468
                "/ for the menu: add an extra follow/diveIn or whatever entry, if desired
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
  4469
"/                "HACK"
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
  4470
"/                app := (self topView perform:#application ifNotUnderstood: [nil]).
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
  4471
"/                (app notNil and:[app isKindOf: Tools::Inspector2]) ifTrue:[
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
  4472
"/                    app inspect: objectToInspect
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
  4473
"/                ] ifFalse:[
10207
e2968eb0d08e changed: #doInspect: to open instvars within same Inspector2 window
vrany
parents: 9794
diff changeset
  4474
                    objectToInspect inspect
10424
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
  4475
"/                ]
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4476
            ]
8025
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  4477
        ].
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  4478
    ].
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4479
10207
e2968eb0d08e changed: #doInspect: to open instvars within same Inspector2 window
vrany
parents: 9794
diff changeset
  4480
    "Modified: / 06-07-2011 / 15:58:55 / jv"
11702
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  4481
    "Modified: / 27-07-2012 / 22:43:11 / cg"
18789
8ff9798593ec #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18787
diff changeset
  4482
    "Modified (comment): / 28-05-2019 / 19:40:20 / Claus Gittinger"
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4483
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4484
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4485
doUpdate
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4486
    self reinspect
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4487
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4488
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4489
monitor:anInstVarName
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4490
    "start a monitoring process, showing the given instVar
16064
a770f72f3601 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15959
diff changeset
  4491
     in regular time intervals."
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4492
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4493
    |ivName|
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4494
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4495
    (ivName := anInstVarName) isInteger ifTrue:[
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4496
        ivName := anInstVarName printString
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4497
    ].
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4498
    listView selectElement:ivName.
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4499
    self doStartMonitor
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4500
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4501
    "Created: / 1.3.1996 / 19:31:45 / cg"
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4502
    "Modified: / 12.2.1999 / 16:05:47 / cg"
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4503
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4504
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4505
selection
9375
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  4506
    "helper - return the value of the (single) selected entry.
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  4507
     Nil if nothing or multiple items are selected"
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  4508
18787
15c68535c71b #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18783
diff changeset
  4509
    |lineNr val lineEntry|
15c68535c71b #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18783
diff changeset
  4510
15c68535c71b #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18783
diff changeset
  4511
    lineNr := self theSingleSelectionIndex.
15c68535c71b #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18783
diff changeset
  4512
    lineNr isNil ifTrue:[^ nil].
15c68535c71b #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18783
diff changeset
  4513
15c68535c71b #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18783
diff changeset
  4514
    lineEntry := self listEntryAt:lineNr.
15c68535c71b #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18783
diff changeset
  4515
    "/ an ignored entry? (typically a separator between groups of variables in subclasses)
18789
8ff9798593ec #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18787
diff changeset
  4516
    (self isIgnoredEntry:lineEntry atIndex:lineNr) ifTrue:[
8ff9798593ec #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18787
diff changeset
  4517
        AbortOperationRequest isHandled ifTrue:[ AbortOperationRequest raise ].
8ff9798593ec #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18787
diff changeset
  4518
        ^ ''
8ff9798593ec #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18787
diff changeset
  4519
    ].
18787
15c68535c71b #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18783
diff changeset
  4520
15c68535c71b #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18783
diff changeset
  4521
    val := self valueAtLine:lineNr.
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  4522
    self dereferenceValueHolders ifTrue:[
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  4523
        "workspace-variable-inspection"
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  4524
        val := val value
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  4525
    ].
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  4526
    ^ val
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  4527
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  4528
    "Modified: / 03-08-2006 / 14:27:02 / cg"
18789
8ff9798593ec #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18787
diff changeset
  4529
    "Modified: / 28-05-2019 / 19:55:44 / Claus Gittinger"
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4530
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4531
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4532
showLast
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4533
    "user clicked on an instvar - show value in workspace"
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4534
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4535
    |lastIdx|
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4536
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4537
    lastIdx := listView list size.
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4538
    lastIdx ~~ 0 ifTrue:[
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  4539
        self showSelection:lastIdx.
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  4540
        listView selection:lastIdx.
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4541
    ]
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4542
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4543
    "Created: 28.6.1996 / 15:06:38 / cg"
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4544
    "Modified: 18.3.1997 / 18:22:54 / cg"
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4545
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4546
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4547
tryToSelectKeyNamed:aString
18782
2a03321215c0 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18780
diff changeset
  4548
    "called from the debugger to try to select the previousöy selected
16064
a770f72f3601 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15959
diff changeset
  4549
     field (by name)"
a770f72f3601 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15959
diff changeset
  4550
     
11599
06b7c6cce561 changed: #tryToSelectKeyNamed:
Claus Gittinger <cg@exept.de>
parents: 11594
diff changeset
  4551
    |list idx aStringWithSpace|
06b7c6cce561 changed: #tryToSelectKeyNamed:
Claus Gittinger <cg@exept.de>
parents: 11594
diff changeset
  4552
06b7c6cce561 changed: #tryToSelectKeyNamed:
Claus Gittinger <cg@exept.de>
parents: 11594
diff changeset
  4553
    aString isEmptyOrNil ifTrue:[^ self].
06b7c6cce561 changed: #tryToSelectKeyNamed:
Claus Gittinger <cg@exept.de>
parents: 11594
diff changeset
  4554
11603
6f7540a1e057 changed: #tryToSelectKeyNamed:
Claus Gittinger <cg@exept.de>
parents: 11599
diff changeset
  4555
    aStringWithSpace := aString string,' '.
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4556
5558
8b9d99f714d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5498
diff changeset
  4557
    list := listView list.
8b9d99f714d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5498
diff changeset
  4558
    list notNil ifTrue:[
16804
52a7f72328f2 #DOCUMENTATION by mawalch
mawalch
parents: 16758
diff changeset
  4559
        idx := list findFirst:[:line |
52a7f72328f2 #DOCUMENTATION by mawalch
mawalch
parents: 16758
diff changeset
  4560
                        line = aString
16064
a770f72f3601 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15959
diff changeset
  4561
                        or:[line string startsWith:aStringWithSpace]].
a770f72f3601 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15959
diff changeset
  4562
        idx ~~ 0 ifTrue:[
5558
8b9d99f714d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5498
diff changeset
  4563
            listView selection:idx
8b9d99f714d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5498
diff changeset
  4564
        ].
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4565
    ].
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4566
11599
06b7c6cce561 changed: #tryToSelectKeyNamed:
Claus Gittinger <cg@exept.de>
parents: 11594
diff changeset
  4567
    "Created: / 16-11-2001 / 13:48:51 / cg"
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4568
! !
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  4569
4268
0fe3e4a82ddf more textView protocol (for Workspace)
Claus Gittinger <cg@exept.de>
parents: 4197
diff changeset
  4570
!InspectorView methodsFor:'workspace protocol'!
0fe3e4a82ddf more textView protocol (for Workspace)
Claus Gittinger <cg@exept.de>
parents: 4197
diff changeset
  4571
0fe3e4a82ddf more textView protocol (for Workspace)
Claus Gittinger <cg@exept.de>
parents: 4197
diff changeset
  4572
modified:aBoolean
0fe3e4a82ddf more textView protocol (for Workspace)
Claus Gittinger <cg@exept.de>
parents: 4197
diff changeset
  4573
    ^ workspace modified:aBoolean
0fe3e4a82ddf more textView protocol (for Workspace)
Claus Gittinger <cg@exept.de>
parents: 4197
diff changeset
  4574
!
0fe3e4a82ddf more textView protocol (for Workspace)
Claus Gittinger <cg@exept.de>
parents: 4197
diff changeset
  4575
0fe3e4a82ddf more textView protocol (for Workspace)
Claus Gittinger <cg@exept.de>
parents: 4197
diff changeset
  4576
saveAs:file doAppend:doAppend
0fe3e4a82ddf more textView protocol (for Workspace)
Claus Gittinger <cg@exept.de>
parents: 4197
diff changeset
  4577
    workspace saveAs:file doAppend:doAppend
0fe3e4a82ddf more textView protocol (for Workspace)
Claus Gittinger <cg@exept.de>
parents: 4197
diff changeset
  4578
! !
0fe3e4a82ddf more textView protocol (for Workspace)
Claus Gittinger <cg@exept.de>
parents: 4197
diff changeset
  4579
871
a29021918ec5 fixed openOn:monitor:
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  4580
!InspectorView class methodsFor:'documentation'!
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  4581
10521
9218a2f4a6d1 Oops, fixes previous (messed) revision (changed: #showSelection:)
vrany
parents: 10520
diff changeset
  4582
version
15712
7d282ef23f85 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15677
diff changeset
  4583
    ^ '$Header$'
10521
9218a2f4a6d1 Oops, fixes previous (messed) revision (changed: #showSelection:)
vrany
parents: 10520
diff changeset
  4584
!
9218a2f4a6d1 Oops, fixes previous (messed) revision (changed: #showSelection:)
vrany
parents: 10520
diff changeset
  4585
8868
1fd94adeda59 changed: #setInitialSelection
Claus Gittinger <cg@exept.de>
parents: 8800
diff changeset
  4586
version_CVS
15712
7d282ef23f85 class: InspectorView
Claus Gittinger <cg@exept.de>
parents: 15677
diff changeset
  4587
    ^ '$Header$'
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  4588
! !
12103
00db0ef29541 class: InspectorView
Stefan Vogel <sv@exept.de>
parents: 12090
diff changeset
  4589
16550
795a7b625be6 #OTHER by mawalch
mawalch
parents: 16546
diff changeset
  4590
795a7b625be6 #OTHER by mawalch
mawalch
parents: 16546
diff changeset
  4591
InspectorView initialize!