InspectorView.st
author Stefan Vogel <sv@exept.de>
Tue, 16 Oct 2012 14:26:17 +0200
changeset 11846 1e96f0c3ccb1
parent 11839 8eda3c0dda51
child 11858 2da1fc1e7d22
permissions -rw-r--r--
changed: #namedFieldList do not block on lazy values
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
     1
"
5
claus
parents: 3
diff changeset
     2
 COPYRIGHT (c) 1989 by Claus Gittinger
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
     3
              All Rights Reserved
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
     4
571fd5eee315 Initial revision
claus
parents:
diff changeset
     5
 This software is furnished under a license and may be used
571fd5eee315 Initial revision
claus
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
571fd5eee315 Initial revision
claus
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
571fd5eee315 Initial revision
claus
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
571fd5eee315 Initial revision
claus
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
571fd5eee315 Initial revision
claus
parents:
diff changeset
    10
 hereby transferred.
571fd5eee315 Initial revision
claus
parents:
diff changeset
    11
"
2657
0623fcb714f7 care for nil strings
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
    12
"{ Package: 'stx:libtool' }"
0623fcb714f7 care for nil strings
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
    13
93
claus
parents: 80
diff changeset
    14
SimpleView subclass:#InspectorView
8962
b0e0907c0bf7 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 8908
diff changeset
    15
	instanceVariableNames:'listView labelView workspace inspectedObject selectedLine nShown
9557
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
    16
		hasMore monitorProcess hideReceiver integerDisplayRadix
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
    17
		inspectHistory allowFollow isStandaloneInspector selectionIndex
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
    18
		object inspectedObjectHolder displayStringMessage
9630
72d3d048a53e headLineLabel
Claus Gittinger <cg@exept.de>
parents: 9625
diff changeset
    19
		suppressPseudoSlots dereferenceValueHolders suppressHeadline
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
    20
		headLineLabel sortOrder'
10846
75970cbe22b1 class definition
Claus Gittinger <cg@exept.de>
parents: 10521
diff changeset
    21
	classVariableNames:'DefaultIcon IdDictionary NextSequentialID LastExtent
11230
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
    22
		DefaultIntegerDisplayRadix ExpandArraysInAllLists'
8962
b0e0907c0bf7 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 8908
diff changeset
    23
	poolDictionaries:''
b0e0907c0bf7 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 8908
diff changeset
    24
	category:'Interface-Inspector'
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
    25
!
571fd5eee315 Initial revision
claus
parents:
diff changeset
    26
871
a29021918ec5 fixed openOn:monitor:
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
    27
!InspectorView class methodsFor:'documentation'!
29
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    28
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    29
copyright
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    30
"
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    31
 COPYRIGHT (c) 1989 by Claus Gittinger
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
    32
              All Rights Reserved
29
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    33
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    34
 This software is furnished under a license and may be used
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    35
 only in accordance with the terms of that license and with the
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    36
 inclusion of the above copyright notice.   This software may not
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    37
 be provided or otherwise made available to, or used by, any
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    38
 other person.  No title to or ownership of the software is
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    39
 hereby transferred.
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    40
"
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    41
!
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    42
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    43
documentation
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    44
"
1570
7b8bda4df1dc comment
Claus Gittinger <cg@exept.de>
parents: 1494
diff changeset
    45
    This class implements a graphical inspector.
29
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    46
    Inspecting can be done on an object -
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    47
    (where its instvarnames/values are inspected)
1570
7b8bda4df1dc comment
Claus Gittinger <cg@exept.de>
parents: 1494
diff changeset
    48
    or a list of objects (where a nameArray/valuesArray is inspected).
29
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    49
    The later is used by the debugger to inspect method variables/args.
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    50
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    51
    The system calls the inspector through the global variable 'Inspector'
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    52
    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
    53
    set to MiniInspector in a smalltalk without graphical user interface,
7b8bda4df1dc comment
Claus Gittinger <cg@exept.de>
parents: 1494
diff changeset
    54
    or to NewInspector if that is wanted).
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
    55
29
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    56
    Also notice, that there are two methods to inspect an object:
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    57
    sending #basicInspect to any object, will open this kind of inspector on 
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    58
    it (showing instance variables which are physically present).
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    59
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    60
    Sending it #inspect, will - depending on the object - sometimes invoke a
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    61
    specialized inspector. 
1570
7b8bda4df1dc comment
Claus Gittinger <cg@exept.de>
parents: 1494
diff changeset
    62
    (see OrderedCollectionInspectorView, ImageInspectorView, 
7b8bda4df1dc comment
Claus Gittinger <cg@exept.de>
parents: 1494
diff changeset
    63
     ColorInspectorView etc. as examples).
29
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    64
446
8ded3f1df7d2 commentary
Claus Gittinger <cg@exept.de>
parents: 426
diff changeset
    65
    You can also open a monitoring inspector, which displays some instance
8ded3f1df7d2 commentary
Claus Gittinger <cg@exept.de>
parents: 426
diff changeset
    66
    variable in regular intervals. See #openOn:monitor:.
8ded3f1df7d2 commentary
Claus Gittinger <cg@exept.de>
parents: 426
diff changeset
    67
29
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
    68
    examples:
2008
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
    69
            #(1 2 3 4) asOrderedCollection inspect
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
    70
            #(1 2 3 4) asOrderedCollection basicInspect
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
    71
            (Array new:10000) inspect
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
    72
            (Image fromFile:'bitmaps/claus.gif') inspect
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
    73
            (Image fromFile:'bitmaps/claus.gif') basicInspect
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
    74
            (Image fromFile:'bitmaps/SBrowser.xbm') inspect
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
    75
            (Image fromFile:'bitmaps/SBrowser.xbm') basicInspect
446
8ded3f1df7d2 commentary
Claus Gittinger <cg@exept.de>
parents: 426
diff changeset
    76
2008
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
    77
            InspectorView openOn:Display
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
    78
            InspectorView openOn:Display monitor:'shiftDown'
11660
bf523c8f3232 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 11658
diff changeset
    79
            InspectorView openOn:(Image fromScreen)
bf523c8f3232 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 11658
diff changeset
    80
            InspectorView openOn:(Image fromFile:'banner8.xpm')
2008
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
    81
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
    82
    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
    83
    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
    84
    inspector from changing the topViews window label.
510
6543e55fb227 documentation
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
    85
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
    86
    Notice:
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
    87
        the instvars 'inspectedObject' and 'selectedLine' have been 
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
    88
        renamed to 'object' and 'selectionIndex' for squeak compatibility;
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
    89
        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
    90
        smooth migration.
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
    91
6940
c95880ea4d17 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6851
diff changeset
    92
  Controlling the contents from the inspected object.
c95880ea4d17 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6851
diff changeset
    93
c95880ea4d17 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6851
diff changeset
    94
    By redefining inspectorExtraAttributes or inspectorExtraNamedFields, the inspected
c95880ea4d17 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6851
diff changeset
    95
    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
    96
    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
    97
    of pseudo slot-name, slot-value pairs.
c95880ea4d17 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6851
diff changeset
    98
    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
    99
    These are added (read only) to the list.
c95880ea4d17 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6851
diff changeset
   100
510
6543e55fb227 documentation
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   101
    [author:]
2008
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
   102
        Claus Gittinger
29
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
   103
"
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
   104
! !
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
   105
871
a29021918ec5 fixed openOn:monitor:
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
   106
!InspectorView class methodsFor:'instance creation'!
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
   107
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   108
for:anObject
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   109
    "create and launch a new inspector for anObject.
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   110
     This protocol is a historic leftover - this method will vanish."
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   111
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   112
    ^ self openOn:anObject
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   113
!
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   114
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   115
inspect:anObject
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   116
    "create and launch a new inspector for anObject.
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   117
     This protocol is a historic leftover - this method will vanish."
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   118
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   119
    ^ self openOn:anObject
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   120
!
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
   121
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
   122
openOn:anObject
571fd5eee315 Initial revision
claus
parents:
diff changeset
   123
    "create and launch a new inspector for anObject"
571fd5eee315 Initial revision
claus
parents:
diff changeset
   124
416
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   125
    ^ self openOn:anObject monitor:nil
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   126
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   127
    "
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   128
     InspectorView openOn:(5 @ 7)
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   129
     InspectorView openOn:(Array new:400)
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   130
     DictionaryInspectorView openOn:(IdentityDictionary new)
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   131
    "
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   132
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   133
    "Modified: 1.3.1996 / 19:31:03 / cg"
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   134
!
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   135
8452
0840b314f7bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8388
diff changeset
   136
openOn:anObject monitor:anInstVarNameOrNil
416
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   137
    "create and launch a new inspector for anObject.
8452
0840b314f7bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8388
diff changeset
   138
     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
   139
     (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
   140
105
claus
parents: 100
diff changeset
   141
    |topView inspectorView|
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
   142
1895
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
   143
    topView := StandardSystemView new.
9295
34141a7227ca changed: #openOn:monitor:
Stefan Vogel <sv@exept.de>
parents: 9280
diff changeset
   144
    topView
34141a7227ca changed: #openOn:monitor:
Stefan Vogel <sv@exept.de>
parents: 9280
diff changeset
   145
        icon:self defaultIcon;
34141a7227ca changed: #openOn:monitor:
Stefan Vogel <sv@exept.de>
parents: 9280
diff changeset
   146
        label:'Inspector';
34141a7227ca changed: #openOn:monitor:
Stefan Vogel <sv@exept.de>
parents: 9280
diff changeset
   147
        iconLabel:'Inspector';  
34141a7227ca changed: #openOn:monitor:
Stefan Vogel <sv@exept.de>
parents: 9280
diff changeset
   148
        extent:self defaultTopViewExtent;
34141a7227ca changed: #openOn:monitor:
Stefan Vogel <sv@exept.de>
parents: 9280
diff changeset
   149
        objectAttributeAt:#rememberExtent put:true.
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
   150
571fd5eee315 Initial revision
claus
parents:
diff changeset
   151
    inspectorView := self origin:(0.0 @ 0.0)
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
   152
                          corner:(1.0 @ 1.0)
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
   153
                             in:topView.
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
   154
3
claus
parents: 0
diff changeset
   155
    "kludge: must realize first, to be able to set menu again"
352
e84b6352735d set focusSequence
Claus Gittinger <cg@exept.de>
parents: 351
diff changeset
   156
    topView openAndWait.
871
a29021918ec5 fixed openOn:monitor:
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
   157
    topView windowGroup 
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
   158
        focusSequence:(Array 
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
   159
                            with:inspectorView listView
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
   160
                            with:inspectorView workspace).
9262
792dbfa38baf changed:
Stefan Vogel <sv@exept.de>
parents: 9032
diff changeset
   161
    inspectorView 
792dbfa38baf changed:
Stefan Vogel <sv@exept.de>
parents: 9032
diff changeset
   162
        allowFollow:true;
792dbfa38baf changed:
Stefan Vogel <sv@exept.de>
parents: 9032
diff changeset
   163
        isStandaloneInspector:true;
792dbfa38baf changed:
Stefan Vogel <sv@exept.de>
parents: 9032
diff changeset
   164
        inspect:anObject.
416
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   165
8452
0840b314f7bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8388
diff changeset
   166
    anInstVarNameOrNil notNil ifTrue:[
0840b314f7bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8388
diff changeset
   167
        inspectorView monitor:anInstVarNameOrNil
416
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   168
    ].
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   169
69
0d6acfdae045 *** empty log message ***
claus
parents: 61
diff changeset
   170
    ^ inspectorView
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
   171
29
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
   172
    "
416
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   173
     |m|
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   174
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   175
     m := 1 asValue.
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   176
     InspectorView openOn:m monitor:'value'.
871
a29021918ec5 fixed openOn:monitor:
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
   177
a29021918ec5 fixed openOn:monitor:
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
   178
     2 to:10 do:[:i |
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
   179
         Delay waitForSeconds:1.
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
   180
         m value:i
871
a29021918ec5 fixed openOn:monitor:
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
   181
     ]
416
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   182
    "
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   183
29
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
   184
    "
416
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   185
     |o|
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   186
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   187
     o := Array with:1 with:2 with:3.
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   188
     InspectorView openOn:o monitor:'2'.
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   189
     Delay waitForSeconds:1.
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   190
     o at:2 put:20
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   191
    "
fd30ab6185c7 added startup-with-monitor method
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
   192
7867
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
   193
    "Created: / 01-03-1996 / 19:30:50 / cg"
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
   194
    "Modified: / 23-10-2007 / 19:08:21 / cg"
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
   195
!
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
   196
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
   197
openOn:anObject withEvalPane:withEvalPane
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
   198
    ^ self openOn:anObject
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
   199
!
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
   200
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
   201
openOn:anObject withEvalPane:withEvalPane withLabel:aLabel
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
   202
    ^ self openOn:anObject
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
   203
! !
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
   204
10321
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   205
!InspectorView class methodsFor:'common label support'!
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   206
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   207
commonLabelFor:anObject
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   208
    "return the windowLabel to use in my topView, when inspecting anObject.
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   209
     Identical objects are labelled with the same id, which makes it easy to
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   210
     see if two objects are identical (and is very useful, indeed).
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   211
     WARNING: used by both Inspector and Inspector2 !!!!!!"
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   212
11658
b431692d3cba comment/format in: #labelFor:
Claus Gittinger <cg@exept.de>
parents: 11644
diff changeset
   213
    |lbl id extra|
10321
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   214
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   215
    lbl := ''.
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   216
    (anObject isImmediate
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   217
    or:[anObject isBoolean]) ifFalse:[
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   218
        lbl := '<%2> ' 
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   219
    ].
11658
b431692d3cba comment/format in: #labelFor:
Claus Gittinger <cg@exept.de>
parents: 11644
diff changeset
   220
    lbl := lbl , '%1%3'.
10321
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   221
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   222
    IdDictionary isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   223
        IdDictionary := WeakIdentityDictionary new.
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   224
    ].
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   225
    [    
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   226
        id := IdDictionary 
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   227
                    at:anObject 
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   228
                    ifAbsentPut:[ 
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   229
                        |nextID|
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   230
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   231
                        nextID := NextSequentialID ? 0.
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   232
                        NextSequentialID := nextID + 1.
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   233
                        nextID
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   234
                    ].
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   235
    ] valueUninterruptably.
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   236
11658
b431692d3cba comment/format in: #labelFor:
Claus Gittinger <cg@exept.de>
parents: 11644
diff changeset
   237
    extra := ''.
b431692d3cba comment/format in: #labelFor:
Claus Gittinger <cg@exept.de>
parents: 11644
diff changeset
   238
    "/ the following should be provided by the inspected object (labelInInspector)
b431692d3cba comment/format in: #labelFor:
Claus Gittinger <cg@exept.de>
parents: 11644
diff changeset
   239
    anObject isImage ifTrue:[
b431692d3cba comment/format in: #labelFor:
Claus Gittinger <cg@exept.de>
parents: 11644
diff changeset
   240
        anObject fileName notNil ifTrue:[
b431692d3cba comment/format in: #labelFor:
Claus Gittinger <cg@exept.de>
parents: 11644
diff changeset
   241
            extra := ' (', anObject fileName asFilename baseName,')'
b431692d3cba comment/format in: #labelFor:
Claus Gittinger <cg@exept.de>
parents: 11644
diff changeset
   242
        ]
b431692d3cba comment/format in: #labelFor:
Claus Gittinger <cg@exept.de>
parents: 11644
diff changeset
   243
    ].
b431692d3cba comment/format in: #labelFor:
Claus Gittinger <cg@exept.de>
parents: 11644
diff changeset
   244
10321
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   245
    ^ self classResources 
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   246
        string:lbl 
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   247
        with:(self labelNameFor:anObject)
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   248
        with:id
11658
b431692d3cba comment/format in: #labelFor:
Claus Gittinger <cg@exept.de>
parents: 11644
diff changeset
   249
        with:extra
10321
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   250
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   251
    "Created: / 15-07-2011 / 16:21:44 / cg"
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   252
!
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   253
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   254
labelNameFor:anObject
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   255
    "return the iconLabel to use in my topView, when inspecting anObject.
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   256
     Simply returns the className or name of anObjects class"
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   257
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   258
    |s|
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   259
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   260
    anObject isClass ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   261
        s := anObject displayString
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   262
    ] ifFalse:[
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   263
        (anObject isImmediate
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   264
         or:[anObject isBoolean]) ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   265
            s := anObject printString , ', ' , anObject classNameWithArticle
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   266
        ] ifFalse:[
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   267
            s := anObject classNameWithArticle
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   268
        ].
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   269
    ].
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   270
    s isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   271
        anObject isBehavior ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   272
            ^ 'someBehavior'
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   273
        ].
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   274
        ^ 'something'
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   275
    ].
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   276
    ^ s
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   277
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   278
    "Created: / 15-07-2011 / 16:20:06 / cg"
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   279
! !
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   280
871
a29021918ec5 fixed openOn:monitor:
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
   281
!InspectorView class methodsFor:'defaults'!
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
   282
1873
5fd55aa184d4 added redefinable #defaultExtent method.
Claus Gittinger <cg@exept.de>
parents: 1855
diff changeset
   283
defaultExtent
9389
f7ad2b69030f better tracking of sizeChange for default size.
sr
parents: 9384
diff changeset
   284
    ^ (Screen current usableExtent // 3)
1873
5fd55aa184d4 added redefinable #defaultExtent method.
Claus Gittinger <cg@exept.de>
parents: 1855
diff changeset
   285
5fd55aa184d4 added redefinable #defaultExtent method.
Claus Gittinger <cg@exept.de>
parents: 1855
diff changeset
   286
    "Created: / 7.9.1998 / 13:47:45 / cg"
5fd55aa184d4 added redefinable #defaultExtent method.
Claus Gittinger <cg@exept.de>
parents: 1855
diff changeset
   287
    "Modified: / 7.9.1998 / 14:15:38 / cg"
5fd55aa184d4 added redefinable #defaultExtent method.
Claus Gittinger <cg@exept.de>
parents: 1855
diff changeset
   288
!
5fd55aa184d4 added redefinable #defaultExtent method.
Claus Gittinger <cg@exept.de>
parents: 1855
diff changeset
   289
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
   290
defaultIcon
1146
231ebb35a507 defaultIcon improved
Claus Gittinger <cg@exept.de>
parents: 1094
diff changeset
   291
    "return the browsers default window icon"
231ebb35a507 defaultIcon improved
Claus Gittinger <cg@exept.de>
parents: 1094
diff changeset
   292
7835
ba364068a743 icon resource
Claus Gittinger <cg@exept.de>
parents: 7808
diff changeset
   293
    <resource: #programImage>
7629
48bf8de91618 Fix #defaultIcon
Stefan Vogel <sv@exept.de>
parents: 7626
diff changeset
   294
    <resource: #style (#INSPECTOR_ICON #INSPECTOR_ICON_FILE)>
1146
231ebb35a507 defaultIcon improved
Claus Gittinger <cg@exept.de>
parents: 1094
diff changeset
   295
7629
48bf8de91618 Fix #defaultIcon
Stefan Vogel <sv@exept.de>
parents: 7626
diff changeset
   296
    |nm i resources|
1146
231ebb35a507 defaultIcon improved
Claus Gittinger <cg@exept.de>
parents: 1094
diff changeset
   297
231ebb35a507 defaultIcon improved
Claus Gittinger <cg@exept.de>
parents: 1094
diff changeset
   298
    (i := DefaultIcon) isNil ifTrue:[
7629
48bf8de91618 Fix #defaultIcon
Stefan Vogel <sv@exept.de>
parents: 7626
diff changeset
   299
        resources := self classResources.
48bf8de91618 Fix #defaultIcon
Stefan Vogel <sv@exept.de>
parents: 7626
diff changeset
   300
        i := resources at:#INSPECTOR_ICON default:nil.
2338
0d791a4b518a #on: -> #onDevice:
Claus Gittinger <cg@exept.de>
parents: 2323
diff changeset
   301
        i isNil ifTrue:[
7629
48bf8de91618 Fix #defaultIcon
Stefan Vogel <sv@exept.de>
parents: 7626
diff changeset
   302
            nm := resources at:#INSPECTOR_ICON_FILE default:'Inspector.xbm'.
2475
12068d713365 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2454
diff changeset
   303
            i := Smalltalk imageFromFileNamed:nm forClass:self.
2338
0d791a4b518a #on: -> #onDevice:
Claus Gittinger <cg@exept.de>
parents: 2323
diff changeset
   304
            i isNil ifTrue:[
2454
114111038a2b try my bitmaps in package directory
Claus Gittinger <cg@exept.de>
parents: 2447
diff changeset
   305
                i := StandardSystemView defaultIcon
2338
0d791a4b518a #on: -> #onDevice:
Claus Gittinger <cg@exept.de>
parents: 2323
diff changeset
   306
            ]
0d791a4b518a #on: -> #onDevice:
Claus Gittinger <cg@exept.de>
parents: 2323
diff changeset
   307
        ].
0d791a4b518a #on: -> #onDevice:
Claus Gittinger <cg@exept.de>
parents: 2323
diff changeset
   308
        i notNil ifTrue:[
0d791a4b518a #on: -> #onDevice:
Claus Gittinger <cg@exept.de>
parents: 2323
diff changeset
   309
            DefaultIcon := i := i onDevice:Display
0d791a4b518a #on: -> #onDevice:
Claus Gittinger <cg@exept.de>
parents: 2323
diff changeset
   310
        ]
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
   311
    ].
1146
231ebb35a507 defaultIcon improved
Claus Gittinger <cg@exept.de>
parents: 1094
diff changeset
   312
    ^ i
874
9ec421cec441 use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 871
diff changeset
   313
7629
48bf8de91618 Fix #defaultIcon
Stefan Vogel <sv@exept.de>
parents: 7626
diff changeset
   314
    "
48bf8de91618 Fix #defaultIcon
Stefan Vogel <sv@exept.de>
parents: 7626
diff changeset
   315
       DefaultIcon := nil
48bf8de91618 Fix #defaultIcon
Stefan Vogel <sv@exept.de>
parents: 7626
diff changeset
   316
    "
7835
ba364068a743 icon resource
Claus Gittinger <cg@exept.de>
parents: 7808
diff changeset
   317
ba364068a743 icon resource
Claus Gittinger <cg@exept.de>
parents: 7808
diff changeset
   318
    "Modified: / 17-09-2007 / 11:36:17 / cg"
7867
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
   319
!
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
   320
11247
992680ca31b0 added: #defaultIntegerDisplayRadix
Claus Gittinger <cg@exept.de>
parents: 11232
diff changeset
   321
defaultIntegerDisplayRadix
992680ca31b0 added: #defaultIntegerDisplayRadix
Claus Gittinger <cg@exept.de>
parents: 11232
diff changeset
   322
    ^ DefaultIntegerDisplayRadix ? 10
992680ca31b0 added: #defaultIntegerDisplayRadix
Claus Gittinger <cg@exept.de>
parents: 11232
diff changeset
   323
992680ca31b0 added: #defaultIntegerDisplayRadix
Claus Gittinger <cg@exept.de>
parents: 11232
diff changeset
   324
    "Created: / 10-02-2012 / 19:51:38 / cg"
992680ca31b0 added: #defaultIntegerDisplayRadix
Claus Gittinger <cg@exept.de>
parents: 11232
diff changeset
   325
!
992680ca31b0 added: #defaultIntegerDisplayRadix
Claus Gittinger <cg@exept.de>
parents: 11232
diff changeset
   326
7867
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
   327
defaultTopViewExtent
9389
f7ad2b69030f better tracking of sizeChange for default size.
sr
parents: 9384
diff changeset
   328
    |def|
f7ad2b69030f better tracking of sizeChange for default size.
sr
parents: 9384
diff changeset
   329
f7ad2b69030f better tracking of sizeChange for default size.
sr
parents: 9384
diff changeset
   330
    def := LastExtent ? self defaultExtent.
f7ad2b69030f better tracking of sizeChange for default size.
sr
parents: 9384
diff changeset
   331
    ^ def min:(Screen current usableExtent)
7867
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
   332
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
   333
    "Created: / 23-10-2007 / 19:04:13 / cg"
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
   334
!
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
   335
11230
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   336
expandArraysInAllLists
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   337
    "in the 'all instvars' list, expand arrays"
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   338
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   339
    ^ ExpandArraysInAllLists ? false
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   340
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   341
    "Created: / 30-01-2012 / 16:52:57 / cg"
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   342
!
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   343
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   344
expandArraysInAllLists:aBoolean
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   345
    "in the 'all instvars' list, expand arrays"
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   346
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   347
    ExpandArraysInAllLists := aBoolean
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   348
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   349
    "Created: / 30-01-2012 / 16:53:01 / cg"
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   350
!
a29b30fcd694 class definition
Claus Gittinger <cg@exept.de>
parents: 11228
diff changeset
   351
7867
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
   352
rememberLastExtent:anExtent
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
   353
    LastExtent := anExtent
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
   354
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
   355
    "Created: / 23-10-2007 / 19:10:02 / cg"
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
   356
! !
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
   357
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   358
!InspectorView class methodsFor:'image specs'!
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   359
11514
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   360
imageFor_arrays
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   361
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   362
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   363
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   364
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   365
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   366
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   367
    "
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   368
     self imageFor_arrays inspect
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   369
     ImageEditor openOnClass:self andSelector:#imageFor_arrays
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   370
     Icon flushCachedIcons
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   371
    "
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   372
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   373
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   374
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   375
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   376
        constantNamed:'InspectorView class imageFor_arrays'
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   377
        ifAbsentPut:[(Depth8Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   378
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@A@T5EQT4@@@@@@@@@@@@AOTUAPBU@IS0@@@@@@@@AOTP%PBUAQ
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   379
T %O@@@@@@@@T0$IBP$ITUHIO0@@@@@@@EEPBU@ITUIRBSD@@@@@@@AQBP$IBP%RO0$1@@@@@@@@T5HIT %RO3DIO0@@@@@@@D=RT%HILSEJBR<@@@@@@@@@
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   380
S3D1LP%JBR<@@@@@@@@@@@AOO3D1O2<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; 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 218 112 214 255 0 255 208 32 144 199 21 133 186 85 211]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@A>@O<A?8G? _>A?8G? _>@?0A>@@@@@@@@@b') ; yourself); yourself]
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   381
!
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   382
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   383
imageFor_characters
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   384
    "This resource specification was automatically generated
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   385
     by the ImageEditor of ST/X."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   386
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   387
    "Do not manually edit this!! If it is corrupted,
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   388
     the ImageEditor may not be able to read the specification."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   389
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   390
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   391
     self imageFor_characters inspect
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   392
     ImageEditor openOnClass:self andSelector:#imageFor_characters
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   393
     Icon flushCachedIcons
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   394
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   395
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   396
    <resource: #image>
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   397
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   398
    ^Icon
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   399
        constantNamed:'InspectorView class imageFor_characters'
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   400
        ifAbsentPut:[(Depth8Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   401
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@6LD5MLCX@@@@@@@@@@@ADRTDIOC-FQ@@@@@@@@@A@MP$IBP$I
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   402
Q$U@@@@@@@@@L@%SOP%HRP$>M@@@@@@@@D4<BP$IS#MEP4H@@@@@@@AMNUP9BP$IP3)B@@@@@@@@L@$3R0%EP0%GLP@@@@@@@D@>BP$IBP%RQ2<@@@@@@@@@
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   403
K$1LBT]GQ3<@@@@@@@@@@@A@LTIBLR<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; 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]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@A>@O<A?8G? _>A?8G? _>@?0A>@@@@@@@@@b') ; yourself); yourself]
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   404
!
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   405
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   406
imageFor_classes
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   407
    "This resource specification was automatically generated
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   408
     by the ImageEditor of ST/X."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   409
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   410
    "Do not manually edit this!! If it is corrupted,
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   411
     the ImageEditor may not be able to read the specification."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   412
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   413
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   414
     self imageFor_classes inspect
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   415
     ImageEditor openOnClass:self andSelector:#imageFor_classes
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   416
     Icon flushCachedIcons
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   417
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   418
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   419
    <resource: #image>
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   420
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   421
    ^Icon
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   422
        constantNamed:'InspectorView class imageFor_classes'
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   423
        ifAbsentPut:[(Depth8Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
11517
bf056eb85f41 changed:
Claus Gittinger <cg@exept.de>
parents: 11514
diff changeset
   424
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@6LD5MLCX@@@@@@@@@@@ADRTEAOC-FQ@@@@@@@@@A@MT 2M3\;
bf056eb85f41 changed:
Claus Gittinger <cg@exept.de>
parents: 11514
diff changeset
   425
Q$U@@@@@@@@@LD!!HRD!!HRTX>M@@@@@@@@D4<RC\8S$%FP4H@@@@@@@AMNS$9MST3P3)B@@@@@@@@LCL3R4,3P4)GLP@@@@@@@D@>O#8>R$)JQ2<@@@@@@@@@
bf056eb85f41 changed:
Claus Gittinger <cg@exept.de>
parents: 11514
diff changeset
   426
K$1LP$]GQ3<@@@@@@@@@@@A@LTIBLR<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; 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]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); 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
   427
!
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   428
11514
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   429
imageFor_collections
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   430
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   431
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   432
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   433
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   434
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   435
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   436
    "
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   437
     self imageFor_collections inspect
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   438
     ImageEditor openOnClass:self andSelector:#imageFor_collections
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   439
     Icon flushCachedIcons
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   440
    "
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   441
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   442
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   443
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   444
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   445
        constantNamed:'InspectorView class imageFor_collections'
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   446
        ifAbsentPut:[(Depth8Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   447
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@A@T5EQT4@@@@@@@@@@@@AOBUAPTE@IS0@@@@@@@@AOBUAPTEAQ
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   448
T %O@@@@@@@@T0%PTEAPTUHIO0@@@@@@@EDITEAPTUIRBSD@@@@@@@AQBU@IT%DIO0$1@@@@@@@@T0%RT%IRO3DIO0@@@@@@@D<IT%IRLSEJBR<@@@@@@@@@
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   449
S0$1LSEJBR<@@@@@@@@@@@AOO3D1O2<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; 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 218 112 214 255 0 255 208 32 144 199 21 133 186 85 211]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@A>@O<A?8G? _>A?8G? _>@?0A>@@@@@@@@@b') ; yourself); yourself]
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   450
!
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   451
11768
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   452
imageFor_colors
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   453
    "This resource specification was automatically generated
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   454
     by the ImageEditor of ST/X."
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   455
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   456
    "Do not manually edit this!! If it is corrupted,
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   457
     the ImageEditor may not be able to read the specification."
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   458
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   459
    "
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   460
     self imageFor_colors inspect
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   461
     ImageEditor openOnClass:self andSelector:#imageFor_colors
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   462
     Icon flushCachedIcons
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   463
    "
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   464
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   465
    <resource: #image>
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   466
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   467
    ^Icon
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   468
        constantNamed:'InspectorView imageFor_colors'
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   469
        ifAbsentPut:[(Depth8Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   470
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
   471
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]
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   472
@@@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') ; 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]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@<@G8@?0G? _>A?8G? O<@_ @<@@@@@@@@@b') ; yourself); yourself]
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   473
!
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
   474
11514
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   475
imageFor_dictionaries
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   476
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   477
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   478
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   479
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   480
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   481
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   482
    "
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   483
     self imageFor_dictionaries inspect
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   484
     ImageEditor openOnClass:self andSelector:#imageFor_dictionaries
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   485
     Icon flushCachedIcons
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   486
    "
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   487
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   488
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   489
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   490
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   491
        constantNamed:'InspectorView class imageFor_dictionaries'
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   492
        ifAbsentPut:[(Depth8Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   493
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@A@T5EQT4@@@@@@@@@@@@AOTUAPTEARS0@@@@@@@@AOTU@HTE@I
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   494
BEIO@@@@@@@@T5APBP!!PTUIRO0@@@@@@@EDIBP$I@P$HO3D@@@@@@@AQTUDIBEIRO3D1@@@@@@@@T5IRBEIRBP!!JO0@@@@@@@D=RT%H?LSEJR"<@@@@@@@@@
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   495
S3D1LT(IBB<@@@@@@@@@@@AOO3D1O2<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; 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 218 112 214 255 0 255 208 32 144 199 21 133 186 85 211]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@A>@O<A?8G? _>A?8G? _>@?0A>@@@@@@@@@b') ; yourself); yourself]
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   496
!
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
   497
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   498
imageFor_false
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   499
    "This resource specification was automatically generated
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   500
     by the ImageEditor of ST/X."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   501
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   502
    "Do not manually edit this!! If it is corrupted,
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   503
     the ImageEditor may not be able to read the specification."
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
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   506
     self imageFor_false inspect
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   507
     ImageEditor openOnClass:self andSelector:#imageFor_false
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   508
     Icon flushCachedIcons
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   509
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   510
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   511
    <resource: #image>
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   512
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   513
    ^Icon
11548
9eab7ffc6c78 changed:
Claus Gittinger <cg@exept.de>
parents: 11547
diff changeset
   514
        constantNamed:'InspectorView imageFor_false'
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   515
        ifAbsentPut:[(Depth8Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
11548
9eab7ffc6c78 changed:
Claus Gittinger <cg@exept.de>
parents: 11547
diff changeset
   516
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@A@ LC@ D@@@@@@@@@@@@DAPXFA0 IA@@@@@@@@@@JB0XLC@0L
9eab7ffc6c78 changed:
Claus Gittinger <cg@exept.de>
parents: 11547
diff changeset
   517
CP8J@@@@@@@@@ XOCA@PDA@QD @@@@@@@@LGC00PD1PNEQX@@@@@@@@CE1 LC@0MEQ$V@@@@@@@@@!!PTCA@PDAXZF0@@@@@@@@(QC 0PGA$]F!!8@@@@@@@@@
9eab7ffc6c78 changed:
Claus Gittinger <cg@exept.de>
parents: 11547
diff changeset
   518
G10LDA(ZF"@@@@@@@@@@@@@JF1XVF18@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; 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]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); 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
   519
!
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   520
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   521
imageFor_floats
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   522
    "This resource specification was automatically generated
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   523
     by the ImageEditor of ST/X."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   524
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   525
    "Do not manually edit this!! If it is corrupted,
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   526
     the ImageEditor may not be able to read the specification."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   527
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   528
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   529
     self imageFor_floats inspect
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   530
     ImageEditor openOnClass:self andSelector:#imageFor_floats
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   531
     Icon flushCachedIcons
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   532
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   533
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   534
    <resource: #image>
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   535
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   536
    ^Icon
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   537
        constantNamed:'InspectorView class imageFor_floats'
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   538
        ifAbsentPut:[(Depth8Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
11517
bf056eb85f41 changed:
Claus Gittinger <cg@exept.de>
parents: 11514
diff changeset
   539
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@6LD5MLCX@@@@@@@@@@@ADRTEAOC-FQ@@@@@@@@@A@MT 2BS\;
bf056eb85f41 changed:
Claus Gittinger <cg@exept.de>
parents: 11514
diff changeset
   540
Q$U@@@@@@@@@LD!!HBP%HRTX>M@@@@@@@@D4<RC\IS#MFP4H@@@@@@@AMNS$9BSUCP3)B@@@@@@@@LCL3R0%EP4)GLP@@@@@@@D@>O $IBS8IQ2<@@@@@@@@@
11521
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
   541
K$1LP$]GQ3<@@@@@@@@@@@A@LTIBLR<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; 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]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); 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
   542
!
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   543
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   544
imageFor_fractions
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   545
    "This resource specification was automatically generated
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   546
     by the ImageEditor of ST/X."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   547
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   548
    "Do not manually edit this!! If it is corrupted,
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   549
     the ImageEditor may not be able to read the specification."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   550
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   551
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   552
     self imageFor_fractions inspect
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   553
     ImageEditor openOnClass:self andSelector:#imageFor_fractions
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   554
     Icon flushCachedIcons
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   555
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   556
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   557
    <resource: #image>
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   558
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   559
    ^Icon
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   560
        constantNamed:'InspectorView class imageFor_fractions'
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   561
        ifAbsentPut:[(Depth8Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   562
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@6LD5MLCX@@@@@@@@@@@ADRTEABS-FQ@@@@@@@@@A@MSH2BP$7
11521
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
   563
LTY@@@@@@@@@LCH2L#HIS#D1M@@@@@@@@D4<OC0<BSL1LTH@@@@@@@AML3L3BP$ILSEB@@@@@@@@LCL3L0$3BT\1LP@@@@@@@D@>L3L3BT]GQ2<@@@@@@@@@
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
   564
K$03BP$IQ3<@@@@@@@@@@@A@LTIBLR<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; 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]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); 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
   565
!
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   566
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   567
imageFor_integers
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   568
    "This resource specification was automatically generated
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   569
     by the ImageEditor of ST/X."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   570
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   571
    "Do not manually edit this!! If it is corrupted,
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   572
     the ImageEditor may not be able to read the specification."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   573
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   574
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   575
     self imageFor_integers inspect
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   576
     ImageEditor openOnClass:self andSelector:#imageFor_integers
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   577
     Icon flushCachedIcons
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   578
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   579
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   580
    <resource: #image>
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   581
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   582
    ^Icon
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   583
        constantNamed:'InspectorView class imageFor_integers'
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   584
        ifAbsentPut:[(Depth8Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
11517
bf056eb85f41 changed:
Claus Gittinger <cg@exept.de>
parents: 11514
diff changeset
   585
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@6LD5MLCX@@@@@@@@@@@ADRTEAOC-FQ@@@@@@@@@A@MT 2BS\;
bf056eb85f41 changed:
Claus Gittinger <cg@exept.de>
parents: 11514
diff changeset
   586
Q$U@@@@@@@@@LD!!HBP%HRTX>M@@@@@@@@D4<RC\IS#MFP4H@@@@@@@AMNS$9BSUCP3)B@@@@@@@@LCL3R0%EP4)GLP@@@@@@@D@>O $IBS9JQ2<@@@@@@@@@
11521
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
   587
K$1LP$]GQ3<@@@@@@@@@@@A@LTIBLR<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; 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]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); 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
   588
!
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   589
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   590
imageFor_nil
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   591
    "This resource specification was automatically generated
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   592
     by the ImageEditor of ST/X."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   593
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   594
    "Do not manually edit this!! If it is corrupted,
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   595
     the ImageEditor may not be able to read the specification."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   596
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   597
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   598
     self imageFor_nil inspect
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   599
     ImageEditor openOnClass:self andSelector:#imageFor_nil
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   600
     Icon flushCachedIcons
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   601
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   602
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   603
    <resource: #image>
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   604
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   605
    ^Icon
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   606
        constantNamed:'InspectorView class imageFor_nil'
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   607
        ifAbsentPut:[(Depth8Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   608
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@KEP4MEP,@@@@@@@@@@@@GEA$YAP4OA0@@@@@@@@@JEA$WF!!HM
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   609
C1 J@@@@@@@@EQ$R@@ CEAXDDP@@@@@@@@4ED!!(ACQXXC@X@@@@@@@@ME@4TEAXXCALF@@@@@@@@EQXVE HXC@XNF@@@@@@@@@(DF@PLCALNC!!@@@@@@@@@@
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   610
A1LSA 8NC 4@@@@@@@@@@@@JF@XFFA@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; 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]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@A>@O<A?8G? _>A?8G? _>@?0A>@@@@@@@@@b') ; yourself); yourself]
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   611
!
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   612
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   613
imageFor_others
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   614
    "This resource specification was automatically generated
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   615
     by the ImageEditor of ST/X."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   616
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   617
    "Do not manually edit this!! If it is corrupted,
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   618
     the ImageEditor may not be able to read the specification."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   619
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   620
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   621
     self imageFor_others inspect
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   622
     ImageEditor openOnClass:self andSelector:#imageFor_others
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   623
     Icon flushCachedIcons
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   624
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   625
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   626
    <resource: #image>
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   627
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   628
    ^Icon
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   629
        constantNamed:'InspectorView class imageFor_others'
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   630
        ifAbsentPut:[(Depth8Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   631
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_G1<_G1<@@@@@@@@@@@@_BP$IBP HF0@@@@@@@@@_BP$HH@ \
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   632
BA8[@@@@@@@@G0$HH  ,BB$(F0@@@@@@@A<IJ0 $BB$HGQ,@@@@@@@@_BP #BBDHJRX[@@@@@@@@G0 )BB4HHQ<%F0@@@@@@@A<HBB4HKQ<''IQ,@@@@@@@@@
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   633
F2\''J"T%IQ,@@@@@@@@@@@@[F1,[F1,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; 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]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@A>@O<A?8G? _>A?8G? _>@?0A>@@@@@@@@@b') ; yourself); yourself]
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   634
!
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   635
11521
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
   636
imageFor_sequenceableCollections
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
   637
    "This resource specification was automatically generated
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
   638
     by the ImageEditor of ST/X."
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
   639
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
   640
    "Do not manually edit this!! If it is corrupted,
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
   641
     the ImageEditor may not be able to read the specification."
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
   642
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
   643
    "
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
   644
     self imageFor_sequenceableCollections inspect
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
   645
     ImageEditor openOnClass:self andSelector:#imageFor_sequenceableCollections
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
   646
     Icon flushCachedIcons
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
   647
    "
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
   648
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
   649
    <resource: #image>
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
   650
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
   651
    ^Icon
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
   652
        constantNamed:'InspectorView class imageFor_sequenceableCollections'
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
   653
        ifAbsentPut:[(Depth8Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
   654
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@A@T5EQT4@@@@@@@@@@@@AOTUAPTEARS0@@@@@@@@AOTUAPTE@I
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
   655
BEIO@@@@@@@@T5APTEAPTUIRO0@@@@@@@EEPTEAPT $HO3D@@@@@@@AQTUERT%IRO3D1@@@@@@@@T5IRT%IRBP!!JO0@@@@@@@D=RT%H?LSEJR"<@@@@@@@@@
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
   656
S3D1LT(IBB<@@@@@@@@@@@AOO3D1O2<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; 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 218 112 214 255 0 255 208 32 144 199 21 133 186 85 211]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@A>@O<A?8G? _>A?8G? _>@?0A>@@@@@@@@@b') ; yourself); yourself]
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
   657
!
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
   658
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   659
imageFor_strings
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   660
    "This resource specification was automatically generated
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   661
     by the ImageEditor of ST/X."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   662
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   663
    "Do not manually edit this!! If it is corrupted,
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   664
     the ImageEditor may not be able to read the specification."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   665
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   666
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   667
     self imageFor_strings inspect
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   668
     ImageEditor openOnClass:self andSelector:#imageFor_strings
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   669
     Icon flushCachedIcons
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   670
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   671
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   672
    <resource: #image>
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   673
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   674
    ^Icon
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   675
        constantNamed:'InspectorView class imageFor_strings'
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   676
        ifAbsentPut:[(Depth8Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   677
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@6LD5MLCX@@@@@@@@@@@ADRTEAOC-FQ@@@@@@@@@A@MTDIM5LI
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   678
BTU@@@@@@@@@LDDIM3]HBP$>M@@@@@@@@D4<BP$8S#LIP4H@@@@@@@AMNP$IMUDIP3)B@@@@@@@@LCL3R4=EP4)GLP@@@@@@@D@>QS9CTC)RQ2<@@@@@@@@@
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   679
K$1LP$]GQ3<@@@@@@@@@@@A@LTIBLR<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; 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]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@A>@O<A?8G? _>A?8G? _>@?0A>@@@@@@@@@b') ; yourself); yourself]
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   680
!
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   681
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   682
imageFor_symbols
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   683
    "This resource specification was automatically generated
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   684
     by the ImageEditor of ST/X."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   685
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   686
    "Do not manually edit this!! If it is corrupted,
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   687
     the ImageEditor may not be able to read the specification."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   688
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   689
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   690
     self imageFor_symbols inspect
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   691
     ImageEditor openOnClass:self andSelector:#imageFor_symbols
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   692
     Icon flushCachedIcons
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   693
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   694
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   695
    <resource: #image>
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   696
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   697
    ^Icon
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   698
        constantNamed:'InspectorView class imageFor_symbols'
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   699
        ifAbsentPut:[(Depth8Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   700
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@6LD5MLCX@@@@@@@@@@@ADRTEAOC-FQ@@@@@@@@@A@MTDIM5LI
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   701
Q$U@@@@@@@@@LDDIBP$IBP$>M@@@@@@@@D4<NP$8S $>P4H@@@@@@@AMNS$IMUDIP3)B@@@@@@@@LCLIBP$IBP%GLP@@@@@@@D@>QP%CT@%RQ2<@@@@@@@@@
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   702
K$1LP$]GQ3<@@@@@@@@@@@A@LTIBLR<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; 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]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@A>@O<A?8G? _>A?8G? _>@?0A>@@@@@@@@@b') ; yourself); yourself]
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   703
!
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   704
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   705
imageFor_true
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   706
    "This resource specification was automatically generated
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   707
     by the ImageEditor of ST/X."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   708
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   709
    "Do not manually edit this!! If it is corrupted,
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   710
     the ImageEditor may not be able to read the specification."
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   711
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   712
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   713
     self imageFor_true inspect
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   714
     ImageEditor openOnClass:self andSelector:#imageFor_true
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   715
     Icon flushCachedIcons
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   716
    "
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   717
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   718
    <resource: #image>
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   719
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   720
    ^Icon
11548
9eab7ffc6c78 changed:
Claus Gittinger <cg@exept.de>
parents: 11547
diff changeset
   721
        constantNamed:'InspectorView imageFor_true'
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   722
        ifAbsentPut:[(Depth8Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   723
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@(MB@ MB @@@@@@@@@@@@:K#@0F2(\N @@@@@@@@@-H0$IBP$I
11548
9eab7ffc6c78 changed:
Claus Gittinger <cg@exept.de>
parents: 11547
diff changeset
   724
A18-@@@@@@@@MC@GI@$$IBP9HP@@@@@@@B@[J3DIIB0^K3 @@@@@@@@ MRT5BRP^K1<8@@@@@@@@MB0,I $$K2\"JP@@@@@@@B49G#$IIA<]H#H@@@@@@@@@
9eab7ffc6c78 changed:
Claus Gittinger <cg@exept.de>
parents: 11547
diff changeset
   725
M#L3NBH"H#\@@@@@@@@@@@@-JS 8JSH@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; 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]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); 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
   726
! !
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
   727
2598
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   728
!InspectorView class methodsFor:'queries-plugin'!
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   729
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   730
aspectSelectors
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   731
    ^ #( inspectedObjectHolder )
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   732
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   733
    "Modified: / 10.2.2000 / 12:25:28 / cg"
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   734
! !
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   735
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
   736
!InspectorView methodsFor:'accessing'!
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
   737
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
   738
allowFollow:aBoolean
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
   739
    "enable/disable the follow menu item;
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
   740
     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
   741
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
   742
    allowFollow := aBoolean
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
   743
!
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
   744
4095
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
   745
dereferenceValueHolders:aBoolean
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
   746
    dereferenceValueHolders := aBoolean
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
   747
!
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
   748
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
   749
fieldListLabel:aString
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
   750
    labelView label:aString
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
   751
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
   752
    "Created: 28.6.1996 / 15:30:26 / cg"
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
   753
!
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
   754
9630
72d3d048a53e headLineLabel
Claus Gittinger <cg@exept.de>
parents: 9625
diff changeset
   755
headLineLabel:aString
72d3d048a53e headLineLabel
Claus Gittinger <cg@exept.de>
parents: 9625
diff changeset
   756
    "an alternative headline label (if used as embedded inspector)"
72d3d048a53e headLineLabel
Claus Gittinger <cg@exept.de>
parents: 9625
diff changeset
   757
72d3d048a53e headLineLabel
Claus Gittinger <cg@exept.de>
parents: 9625
diff changeset
   758
    headLineLabel := aString.
72d3d048a53e headLineLabel
Claus Gittinger <cg@exept.de>
parents: 9625
diff changeset
   759
9648
bf870042cb9f changed: #headLineLabel:
Claus Gittinger <cg@exept.de>
parents: 9637
diff changeset
   760
    labelView notNil ifTrue:[
bf870042cb9f changed: #headLineLabel:
Claus Gittinger <cg@exept.de>
parents: 9637
diff changeset
   761
        labelView label:headLineLabel.
bf870042cb9f changed: #headLineLabel:
Claus Gittinger <cg@exept.de>
parents: 9637
diff changeset
   762
    ].
bf870042cb9f changed: #headLineLabel:
Claus Gittinger <cg@exept.de>
parents: 9637
diff changeset
   763
bf870042cb9f changed: #headLineLabel:
Claus Gittinger <cg@exept.de>
parents: 9637
diff changeset
   764
    "Modified: / 25-11-2010 / 17:16:45 / cg"
9630
72d3d048a53e headLineLabel
Claus Gittinger <cg@exept.de>
parents: 9625
diff changeset
   765
!
72d3d048a53e headLineLabel
Claus Gittinger <cg@exept.de>
parents: 9625
diff changeset
   766
9693
Claus Gittinger <cg@exept.de>
parents: 9690
diff changeset
   767
headLineLabelView
Claus Gittinger <cg@exept.de>
parents: 9690
diff changeset
   768
    "provides access to the headline"
Claus Gittinger <cg@exept.de>
parents: 9690
diff changeset
   769
Claus Gittinger <cg@exept.de>
parents: 9690
diff changeset
   770
    ^ labelView
Claus Gittinger <cg@exept.de>
parents: 9690
diff changeset
   771
Claus Gittinger <cg@exept.de>
parents: 9690
diff changeset
   772
    "Created: / 21-01-2011 / 12:07:13 / cg"
Claus Gittinger <cg@exept.de>
parents: 9690
diff changeset
   773
!
Claus Gittinger <cg@exept.de>
parents: 9690
diff changeset
   774
644
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
   775
hideReceiver:aBoolean
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
   776
    "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
   777
     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
   778
644
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
   779
    hideReceiver := aBoolean
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
   780
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
   781
    "Created: 28.6.1996 / 15:08:32 / cg"
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
   782
!
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
   783
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
   784
inspect:anObject
8452
0840b314f7bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8388
diff changeset
   785
    "set/update the object to be inspected"
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
   786
11547
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
   787
    |keepList fieldNameList sameObject sameClass oldSelectedField idx|
9390
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
   788
9690
5682d804727a changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9672
diff changeset
   789
    "/ (anObject isNil and:[object isNil]) ifTrue:[^ self].
9651
cca26b954d45 changed:
Claus Gittinger <cg@exept.de>
parents: 9648
diff changeset
   790
9390
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
   791
    sameObject := (anObject == object) and:[object notNil].
10520
f15aa3e05329 Fix for variable-length classes in #inspect:
vrany
parents: 10436
diff changeset
   792
f15aa3e05329 Fix for variable-length classes in #inspect:
vrany
parents: 10436
diff changeset
   793
    "/ JV@2011-08-06: Be carefull here, classes may be variable-lenght,
f15aa3e05329 Fix for variable-length classes in #inspect:
vrany
parents: 10436
diff changeset
   794
    "/ so instances of same class may have different number of slots!!
f15aa3e05329 Fix for variable-length classes in #inspect:
vrany
parents: 10436
diff changeset
   795
    "/ (caused problems expecially when stack inspector is shown in debugger).
f15aa3e05329 Fix for variable-length classes in #inspect:
vrany
parents: 10436
diff changeset
   796
    "/ To fix, I've added ------------------------v
f15aa3e05329 Fix for variable-length classes in #inspect:
vrany
parents: 10436
diff changeset
   797
    sameClass := (anObject class == object class) and:[anObject class isVariable not].
9390
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
   798
    selectionIndex notNil ifTrue:[
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
   799
        oldSelectedField := (listView list ? #()) at:selectionIndex ifAbsent:nil.
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
   800
    ].
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
   801
    inspectedObject := object := anObject.
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
   802
11547
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
   803
    keepList := ((sameObject | sameClass) and:[listView list notEmptyOrNil]).
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
   804
    "/ assume that the list remains unchanged;
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
   805
    "/ 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
   806
    UserPreferences current showTypeIndicatorInInspector ifTrue:[
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
   807
        keepList := false.
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
   808
    ].
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
   809
    keepList ifFalse:[
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
   810
        hasMore := false.
11547
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
   811
        fieldNameList := self fieldList.                               
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
   812
        hasMore ifTrue:[
11547
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
   813
            fieldNameList add:' ... '
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
   814
        ].
11547
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
   815
        listView contents:fieldNameList.
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
   816
        workspace contents:nil.
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
   817
        self setDoItAction.
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
   818
    ].
9390
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
   819
    sameClass ifFalse:[
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
   820
        selectionIndex := selectedLine := nil.
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
   821
    ].
9262
792dbfa38baf changed:
Stefan Vogel <sv@exept.de>
parents: 9032
diff changeset
   822
    isStandaloneInspector ifTrue:[
8452
0840b314f7bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8388
diff changeset
   823
        "/ not embedded (as in the debugger)
2284
0f4ee9b43468 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2275
diff changeset
   824
        self topView 
0f4ee9b43468 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2275
diff changeset
   825
            label:(self labelFor:anObject);
10321
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
   826
            iconLabel:(self class labelNameFor:anObject).
8452
0840b314f7bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8388
diff changeset
   827
    ].
0840b314f7bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8388
diff changeset
   828
        
9390
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
   829
    (sameObject | sameClass) ifFalse:[
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
   830
        idx := (listView list ? #()) indexOf:oldSelectedField.
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
   831
        idx ~~ 0 ifTrue:[
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
   832
            listView selection:idx
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
   833
        ] ifFalse:[
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
   834
            self setInitialSelection.
a18badc9f912 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9389
diff changeset
   835
        ]
8452
0840b314f7bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8388
diff changeset
   836
    ].
10520
f15aa3e05329 Fix for variable-length classes in #inspect:
vrany
parents: 10436
diff changeset
   837
    self showSelection:((selectedLine ? 1) min: listView list size)
9624
defa4a2d2a10 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 9615
diff changeset
   838
10520
f15aa3e05329 Fix for variable-length classes in #inspect:
vrany
parents: 10436
diff changeset
   839
    "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
   840
    "Modified: / 02-06-2012 / 13:06:59 / cg"
1895
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
   841
!
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
   842
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
   843
isStandaloneInspector:aBoolean
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
   844
    "obsolete now"
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
   845
2008
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
   846
    isStandaloneInspector := aBoolean
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
   847
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
   848
    "Modified: / 12.2.1999 / 16:01:44 / cg"
29
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
   849
!
8a72e10043f6 *** empty log message ***
claus
parents: 23
diff changeset
   850
644
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
   851
label:aString
4106
1222d4e1166e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4095
diff changeset
   852
    "set the fieldListLabel - obsolete; collides with inherited label-functionality"
1222d4e1166e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4095
diff changeset
   853
5845
c7a4a4cd352b Mark obsolete methods
Stefan Vogel <sv@exept.de>
parents: 5698
diff changeset
   854
    <resource:#obsolete>
4106
1222d4e1166e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4095
diff changeset
   855
    self obsoleteMethodWarning:'use fieldListLabel:'.
1222d4e1166e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4095
diff changeset
   856
    self fieldListLabel:aString.
1222d4e1166e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4095
diff changeset
   857
    super label:aString.
644
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
   858
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
   859
    "Created: 28.6.1996 / 15:30:26 / cg"
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
   860
!
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
   861
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
   862
listView
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
   863
    ^ listView
352
e84b6352735d set focusSequence
Claus Gittinger <cg@exept.de>
parents: 351
diff changeset
   864
!
e84b6352735d set focusSequence
Claus Gittinger <cg@exept.de>
parents: 351
diff changeset
   865
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
   866
reinspect
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
   867
    "update display for a changed inspectedObject"
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
   868
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
   869
    |aList|
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
   870
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
   871
    hasMore := false.
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
   872
    aList := self fieldList.
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
   873
    hasMore ifTrue:[
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
   874
        aList add:' ... '
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
   875
    ].
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
   876
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
   877
    listView contents:aList.
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
   878
    self setDoItAction.
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
   879
    selectionIndex := selectedLine := nil
11547
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
   880
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
   881
    "Modified (comment): / 02-06-2012 / 13:08:15 / cg"
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
   882
!
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
   883
9625
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
   884
suppressHeadline:aBoolean
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
   885
    "hide/show the title line above the list/value"
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
   886
9736
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
   887
    suppressHeadline := aBoolean.
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
   888
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
   889
    labelView notNil ifTrue:[
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
   890
        suppressHeadline == true ifTrue:[
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
   891
            labelView beInvisible.
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
   892
            listView container topInset:0.
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
   893
            workspace container topInset:0.
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
   894
        ] ifFalse:[
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
   895
            labelView beVisible.
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
   896
            listView container topInset:(labelView preferredHeight).
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
   897
            workspace container topInset:(labelView preferredHeight).
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
   898
        ].
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
   899
    ].
9625
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
   900
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
   901
    "Created: / 09-11-2010 / 14:50:04 / cg"
9736
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
   902
    "Modified: / 05-02-2011 / 14:03:55 / cg"
9625
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
   903
!
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
   904
4095
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
   905
suppressPseudoSlots:aBoolean
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
   906
    suppressPseudoSlots := aBoolean
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
   907
!
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
   908
352
e84b6352735d set focusSequence
Claus Gittinger <cg@exept.de>
parents: 351
diff changeset
   909
workspace
e84b6352735d set focusSequence
Claus Gittinger <cg@exept.de>
parents: 351
diff changeset
   910
    ^ workspace
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
   911
! !
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
   912
2724
ca96b304e992 category changes
Claus Gittinger <cg@exept.de>
parents: 2657
diff changeset
   913
!InspectorView methodsFor:'accessing-channels'!
2598
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   914
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   915
inspectedObjectHolder
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   916
    inspectedObjectHolder isNil ifTrue:[
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   917
        inspectedObjectHolder := ValueHolder new.
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   918
        inspectedObjectHolder addDependent:self.
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   919
    ].
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   920
    ^ inspectedObjectHolder
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   921
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   922
    "Created: / 10.2.2000 / 13:33:16 / cg"
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   923
    "Modified: / 10.2.2000 / 13:34:23 / cg"
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   924
!
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   925
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   926
inspectedObjectHolder:aValueHolder
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   927
    inspectedObjectHolder notNil ifTrue:[
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   928
        inspectedObjectHolder removeDependent:self.
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   929
    ].
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   930
    inspectedObjectHolder := aValueHolder.
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   931
    inspectedObjectHolder notNil ifTrue:[
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   932
        inspectedObjectHolder addDependent:self.
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   933
    ].
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   934
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   935
    "Created: / 10.2.2000 / 13:34:53 / cg"
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   936
! !
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   937
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   938
!InspectorView methodsFor:'change & update'!
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   939
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   940
update:something with:aParameter from:changedObject
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   941
    "Invoked when one of my dependees sends a change notification."
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   942
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   943
    |oldSelection|
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   944
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
   945
    changedObject == object ifTrue:[
2598
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   946
        oldSelection := listView selection.
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
   947
        self inspect:object.
2598
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   948
        oldSelection notNil ifTrue:[
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   949
            self showSelection:oldSelection
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   950
        ]
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   951
    ].
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   952
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
   953
    changedObject == object ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
   954
        self inspect:(object value)
2598
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   955
    ].
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   956
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   957
    super update:something with:aParameter from:changedObject
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   958
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   959
    "Created: / 10.2.2000 / 13:46:38 / cg"
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   960
    "Modified: / 10.2.2000 / 13:48:18 / cg"
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   961
! !
298843749a49 inspectedObjectHolder added
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
   962
7297
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
   963
!InspectorView methodsFor:'drag & drop'!
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
   964
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
   965
getDisplayObjects
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
   966
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
   967
    ^List with:self selection printString
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
   968
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
   969
    "Created: / 16-08-2005 / 21:54:52 / janfrog"
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
   970
    "Modified: / 18-09-2006 / 21:11:16 / cg"
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
   971
!
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
   972
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
   973
getDropObjects
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
   974
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
   975
    ^List with:(DropObject new:self selection).
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
   976
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
   977
    "Created: / 16-08-2005 / 21:49:23 / janfrog"
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
   978
    "Modified: / 18-09-2006 / 21:11:31 / cg"
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
   979
! !
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
   980
8025
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
   981
!InspectorView methodsFor:'event handling'!
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
   982
10424
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
   983
doubleClickOnLine:lineNr
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
   984
    |objectToInspect app|
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
   985
11702
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
   986
    objectToInspect := self selectedField.
10424
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
   987
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
   988
    "HACK"
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
   989
    app := (self topView perform:#application ifNotUnderstood: [nil]).
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
   990
    (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
   991
        app inspect: objectToInspect
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
   992
    ] ifFalse:[
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
   993
        objectToInspect inspect
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
   994
    ]
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
   995
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
   996
    "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
   997
!
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
   998
8025
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
   999
keyPress:key x:x y:y
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1000
    "handle special keys"
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1001
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1002
    <resource: #keyboard (#BrowseIt #InspectIt)>
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1003
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1004
    self selection notNil ifTrue:[
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1005
        (key == #BrowseIt) ifTrue:[
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1006
            self browse.
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1007
            ^ self.
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1008
        ].
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1009
        (key == #InspectIt) ifTrue:[
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1010
            self doInspect.
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1011
            ^ self.
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1012
        ].
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1013
    ].
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1014
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1015
    "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
  1016
    x notNil ifTrue:[
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1017
        "/ not already delegated
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1018
        workspace keyPress:key x:-1 y:-1
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1019
    ].
9389
f7ad2b69030f better tracking of sizeChange for default size.
sr
parents: 9384
diff changeset
  1020
!
f7ad2b69030f better tracking of sizeChange for default size.
sr
parents: 9384
diff changeset
  1021
11702
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1022
selectedField
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1023
    ^ self theSingleSelectionIndex isNil 
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1024
                            ifTrue:[object] 
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1025
                            ifFalse:[self selection].
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1026
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1027
    "Created: / 27-07-2012 / 22:42:23 / cg"
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1028
!
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1029
9389
f7ad2b69030f better tracking of sizeChange for default size.
sr
parents: 9384
diff changeset
  1030
sizeChanged:how
f7ad2b69030f better tracking of sizeChange for default size.
sr
parents: 9384
diff changeset
  1031
    super sizeChanged:how.
f7ad2b69030f better tracking of sizeChange for default size.
sr
parents: 9384
diff changeset
  1032
f7ad2b69030f better tracking of sizeChange for default size.
sr
parents: 9384
diff changeset
  1033
    isStandaloneInspector == true ifTrue:[
f7ad2b69030f better tracking of sizeChange for default size.
sr
parents: 9384
diff changeset
  1034
        LastExtent := self topView extent.
f7ad2b69030f better tracking of sizeChange for default size.
sr
parents: 9384
diff changeset
  1035
    ].
8025
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1036
! !
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  1037
2587
b6838cdb1f14 added show-stream-contents menu item
Claus Gittinger <cg@exept.de>
parents: 2580
diff changeset
  1038
!InspectorView methodsFor:'initialization & release'!
2117
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1039
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1040
destroy
7867
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
  1041
    (self topView objectAttributeAt:#rememberExtent) == true ifTrue:[
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
  1042
        self class rememberLastExtent:(self topView extent).
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
  1043
    ].
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
  1044
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1045
    inspectedObject := object := nil.
2117
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1046
    monitorProcess notNil ifTrue:[
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1047
        monitorProcess terminate
2117
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1048
    ].
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1049
    super destroy
7867
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
  1050
3d405157be72 default size
Claus Gittinger <cg@exept.de>
parents: 7835
diff changeset
  1051
    "Modified: / 23-10-2007 / 19:11:04 / cg"
2117
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1052
!
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1053
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1054
initialize
644
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1055
    |v panel helpView labelView2|
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1056
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1057
    super initialize.
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1058
3318
46c3347385f4 preps to allow for displayString message to be configured
Claus Gittinger <cg@exept.de>
parents: 3199
diff changeset
  1059
    displayStringMessage := #displayString.
644
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1060
    hideReceiver := false.
10846
75970cbe22b1 class definition
Claus Gittinger <cg@exept.de>
parents: 10521
diff changeset
  1061
    integerDisplayRadix := (DefaultIntegerDisplayRadix ? 10).
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1062
    sortOrder := #instvarOrder.
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  1063
    allowFollow := false.
2008
52bf8b8afd3b separated allowFollow from isStandAlone flag
Claus Gittinger <cg@exept.de>
parents: 2007
diff changeset
  1064
    isStandaloneInspector := false.
644
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1065
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1066
    panel := VariableHorizontalPanel 
1991
dfbb30988edd no miniScrollers; no autoHide
Claus Gittinger <cg@exept.de>
parents: 1930
diff changeset
  1067
                origin:(0.0 @ 0.0)
dfbb30988edd no miniScrollers; no autoHide
Claus Gittinger <cg@exept.de>
parents: 1930
diff changeset
  1068
                corner:(1.0 @ 1.0)
dfbb30988edd no miniScrollers; no autoHide
Claus Gittinger <cg@exept.de>
parents: 1930
diff changeset
  1069
                in:self.
644
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1070
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1071
    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
  1072
    helpView level:0; borderWidth:0.
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1073
9625
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1074
    suppressHeadline == true ifFalse:[
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1075
        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
  1076
        labelView label:(headLineLabel ? self defaultLabel).
9625
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1077
        labelView bottomInset:(labelView preferredHeight negated).
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1078
    ].
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1079
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1080
    v := HVScrollableView 
9625
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1081
            for:SelectionInListView 
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1082
            miniScrollerH:true
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1083
            miniScrollerV:false
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1084
            in:helpView.
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1085
    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
  1086
    labelView notNil ifTrue:[
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1087
        v topInset:(labelView preferredHeight).
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1088
    ].
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1089
1991
dfbb30988edd no miniScrollers; no autoHide
Claus Gittinger <cg@exept.de>
parents: 1930
diff changeset
  1090
"/    v autoHideScrollBars:true.
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1091
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1092
    listView := v scrolledView.
8653
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  1093
    listView action:[:lineNr | self selection:lineNr.].
10424
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
  1094
    listView doubleClickAction:[:lineNr | self doubleClickOnLine:lineNr].
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1095
    listView ignoreReselect:false.
98
claus
parents: 93
diff changeset
  1096
    listView menuHolder:self; menuPerformer:self; menuMessage:#fieldMenu.
7297
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1097
    self initializeDragAndDrop.
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1098
644
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1099
    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
  1100
    helpView level:0; borderWidth:0.
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1101
9625
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1102
    suppressHeadline == true ifFalse:[
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1103
        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
  1104
        labelView2 label:''.
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1105
        labelView2 bottomInset:(labelView preferredHeight negated).
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1106
    ].
644
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1107
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1108
    v := HVScrollableView 
1991
dfbb30988edd no miniScrollers; no autoHide
Claus Gittinger <cg@exept.de>
parents: 1930
diff changeset
  1109
                for:CodeView 
dfbb30988edd no miniScrollers; no autoHide
Claus Gittinger <cg@exept.de>
parents: 1930
diff changeset
  1110
                miniScrollerH:true
dfbb30988edd no miniScrollers; no autoHide
Claus Gittinger <cg@exept.de>
parents: 1930
diff changeset
  1111
                miniScrollerV:false
dfbb30988edd no miniScrollers; no autoHide
Claus Gittinger <cg@exept.de>
parents: 1930
diff changeset
  1112
                in:helpView.
dfbb30988edd no miniScrollers; no autoHide
Claus Gittinger <cg@exept.de>
parents: 1930
diff changeset
  1113
"/    v autoHideScrollBars:true.
644
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1114
    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
  1115
    labelView2 notNil ifTrue:[
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1116
        v topInset:(labelView2 preferredHeight).
1b6c049c1990 allow suppressing the headline
Claus Gittinger <cg@exept.de>
parents: 9624
diff changeset
  1117
    ].
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1118
    workspace := v scrolledView.
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1119
3608
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  1120
    self setAcceptAction.
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1121
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1122
    nShown := 100.
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1123
    hasMore := false.
644
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  1124
7297
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1125
    "Modified: / 16-08-2005 / 21:54:04 / janfrog"
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1126
    "Modified: / 20-07-2012 / 10:48:34 / cg"
7297
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1127
!
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1128
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1129
initializeDragAndDrop
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1130
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1131
    | source |
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1132
    source := DropSource 
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1133
                    receiver:self
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1134
                    argument:nil
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1135
                    dropObjectSelector:#getDropObjects
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1136
                    displayObjectSelector:#getDisplayObjects
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1137
                    dropFeedBackSelector:nil.
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1138
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1139
    listView dropSource:source.
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1140
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1141
    "Created: / 16-08-2005 / 21:51:43 / janfrog"
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  1142
    "Modified: / 18-09-2006 / 21:13:05 / cg"
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  1143
!
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  1144
593
6bc83313d7ff checkin from browser
Claus Gittinger <cg@exept.de>
parents: 570
diff changeset
  1145
realize
6bc83313d7ff checkin from browser
Claus Gittinger <cg@exept.de>
parents: 570
diff changeset
  1146
    "delayed setup of lists till first map-time - 
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  1147
     this makes startup of inspectors a bit faster"
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  1148
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  1149
    |o|
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  1150
593
6bc83313d7ff checkin from browser
Claus Gittinger <cg@exept.de>
parents: 570
diff changeset
  1151
    super realize.
7887
be186ae12782 dont clobber the current selection on realize
Claus Gittinger <cg@exept.de>
parents: 7867
diff changeset
  1152
    "/ cg: I dont remember what this was needed for (is it still?)
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  1153
    false "object notNil" ifTrue:[
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1154
        "
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1155
         kludge to trick inspect:, which ignores setting the
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1156
         same object again ...
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1157
        "
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  1158
        o := object.
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1159
        inspectedObject := object := nil.
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1160
        self inspect:o
383
e5760d864242 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 352
diff changeset
  1161
    ]
593
6bc83313d7ff checkin from browser
Claus Gittinger <cg@exept.de>
parents: 570
diff changeset
  1162
7887
be186ae12782 dont clobber the current selection on realize
Claus Gittinger <cg@exept.de>
parents: 7867
diff changeset
  1163
    "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
  1164
    "Modified: / 05-11-2007 / 20:11:44 / cg"
2117
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1165
!
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1166
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1167
release
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1168
    "release inpected object. This is normally not needed,
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1169
     since the garbage collector will find this memory alone.
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1170
     However, if some applications keeps invisible inspectors around
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1171
     (for example, the debugger does this), the inspected object
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1172
     would be kept from being freed or freed very late."
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1173
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1174
"
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1175
    inspectedObject notNil ifTrue:[
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1176
        inspectedObject removeDependent:self
2117
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1177
    ].
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1178
"
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1179
    inspectedObject := object := nil.
2117
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1180
    self setDoItAction.      "/ to release ref to inspectedObject in doItBlock
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1181
    workspace contents:nil.
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1182
    listView contents:nil.
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1183
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1184
    super release.
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1185
dd96b2478eeb category change
Claus Gittinger <cg@exept.de>
parents: 2085
diff changeset
  1186
    "Modified: 11.6.1997 / 13:20:39 / cg"
8452
0840b314f7bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8388
diff changeset
  1187
!
0840b314f7bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8388
diff changeset
  1188
0840b314f7bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8388
diff changeset
  1189
setInitialSelection
8868
1fd94adeda59 changed: #setInitialSelection
Claus Gittinger <cg@exept.de>
parents: 8800
diff changeset
  1190
    object isLazyValue ifFalse:[
1fd94adeda59 changed: #setInitialSelection
Claus Gittinger <cg@exept.de>
parents: 8800
diff changeset
  1191
        object isString ifTrue:[
1fd94adeda59 changed: #setInitialSelection
Claus Gittinger <cg@exept.de>
parents: 8800
diff changeset
  1192
            self showSelection:1    "/ the self-line    
1fd94adeda59 changed: #setInitialSelection
Claus Gittinger <cg@exept.de>
parents: 8800
diff changeset
  1193
        ]
8452
0840b314f7bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8388
diff changeset
  1194
    ].
98
claus
parents: 93
diff changeset
  1195
! !
claus
parents: 93
diff changeset
  1196
claus
parents: 93
diff changeset
  1197
!InspectorView methodsFor:'menu'!
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1198
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1199
fieldMenu
1040
5835207bcb3e menu resource
Claus Gittinger <cg@exept.de>
parents: 901
diff changeset
  1200
    "return the menu for the field-list"
5835207bcb3e menu resource
Claus Gittinger <cg@exept.de>
parents: 901
diff changeset
  1201
1235
13610578a5d2 resource flag: #menu -> #programMenu
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1202
    <resource: #programMenu>
1040
5835207bcb3e menu resource
Claus Gittinger <cg@exept.de>
parents: 901
diff changeset
  1203
9703
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1204
    |items m sel protocolMenu localProtocolMenu 
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1205
     protocols protocolsSorted
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1206
     selectorsByFirstCharacter alphaMenu
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1207
     localSelectors|
1597
48629e1fc7b6 use new menu-creation message in PopUpMenu.
Claus Gittinger <cg@exept.de>
parents: 1570
diff changeset
  1208
48629e1fc7b6 use new menu-creation message in PopUpMenu.
Claus Gittinger <cg@exept.de>
parents: 1570
diff changeset
  1209
    items := #(
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3164
diff changeset
  1210
                       ('Copy Name or Key'             #doCopyKey              )
2085
ec4daf11d3b6 added #copyKey - menu item
Claus Gittinger <cg@exept.de>
parents: 2008
diff changeset
  1211
                       ('-')
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3164
diff changeset
  1212
                       ('Inspect'                      #doInspect              )
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3164
diff changeset
  1213
                       ('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
  1214
             ).
e6d367cbe86c do not show new-inspector in menu, if there is none loaded
Claus Gittinger <cg@exept.de>
parents: 9316
diff changeset
  1215
    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
  1216
        items := items , #(
4197
8086dadff648 added broese methods class
Claus Gittinger <cg@exept.de>
parents: 4106
diff changeset
  1217
                       ('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
  1218
                ).
e6d367cbe86c do not show new-inspector in menu, if there is none loaded
Claus Gittinger <cg@exept.de>
parents: 9316
diff changeset
  1219
    ].
e6d367cbe86c do not show new-inspector in menu, if there is none loaded
Claus Gittinger <cg@exept.de>
parents: 9316
diff changeset
  1220
    items := items , #(
8993
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1221
                       ('Browse'                       #browse                 )
8800
ab79a72dfdec changed: #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 8799
diff changeset
  1222
             ).
9703
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1223
    items := items , (self optionalToolItems).
8800
ab79a72dfdec changed: #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 8799
diff changeset
  1224
    items := items , (self optionalViewSelectionItems).
ab79a72dfdec changed: #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 8799
diff changeset
  1225
    items := items , #(
7951
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1226
                       ('-') 
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1227
                       ('Owners'                       #showOwners             )  
4197
8086dadff648 added broese methods class
Claus Gittinger <cg@exept.de>
parents: 4106
diff changeset
  1228
                       ('Ref Chains'                   #showReferences         )
3199
5478ca0ac71f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3198
diff changeset
  1229
"/                       ('Browse class hierarchy'       #browseClassHierarchy   )
5478ca0ac71f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3198
diff changeset
  1230
"/                       ('Browse full class protocol'   #browseFullClassProtocol)
2579
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  1231
              ).
2587
b6838cdb1f14 added show-stream-contents menu item
Claus Gittinger <cg@exept.de>
parents: 2580
diff changeset
  1232
b6838cdb1f14 added show-stream-contents menu item
Claus Gittinger <cg@exept.de>
parents: 2580
diff changeset
  1233
    sel := self selection.
6491
d02c41c57d02 better menu
Claus Gittinger <cg@exept.de>
parents: 6372
diff changeset
  1234
8799
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1235
    items := items , (self optionalMethodOrBlockSelectionItems).
7639
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1236
    items := items , (self optionalStreamSelectionItems).
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1237
    items := items , (self optionalFilenameSelectionItems).
9700
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  1238
    items := items , (self optionalByteArraySelectionItems).
7639
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1239
2579
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  1240
    items := items , #(
2085
ec4daf11d3b6 added #copyKey - menu item
Claus Gittinger <cg@exept.de>
parents: 2008
diff changeset
  1241
                       ('-')
9574
d2a1b8074d35 changed:
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
  1242
                       ('Local Protocol'               #localProtocolMenu      )
d2a1b8074d35 changed:
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
  1243
                       ('Full Protocol'                #protocolMenu           )
d2a1b8074d35 changed:
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
  1244
                       ('-')
4197
8086dadff648 added broese methods class
Claus Gittinger <cg@exept.de>
parents: 4106
diff changeset
  1245
                       ('Trap Message...'              #doTrap                 )
8086dadff648 added broese methods class
Claus Gittinger <cg@exept.de>
parents: 4106
diff changeset
  1246
                       ('Trap all Messages'            #doTrapAll              )
8086dadff648 added broese methods class
Claus Gittinger <cg@exept.de>
parents: 4106
diff changeset
  1247
                       ('Trace all Messages'           #doTraceAll             )
8086dadff648 added broese methods class
Claus Gittinger <cg@exept.de>
parents: 4106
diff changeset
  1248
                       ('Untrace/Untrap'               #doUntrace              )
2850
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  1249
"/                       ('-')
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3164
diff changeset
  1250
"/                       ('Trap change to instVar'       #doTrapInstVarChange    )
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3164
diff changeset
  1251
"/                       ('Trap change to any instVar'   #doTrapAnyInstVarChange )
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  1252
              ).
1895
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1253
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  1254
    allowFollow ifTrue:[
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  1255
        items := #(
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3164
diff changeset
  1256
                            ('Follow'                       #doFollow              )
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3164
diff changeset
  1257
                            ('Back'                         #doBack              )
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  1258
                            ('-')
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  1259
                  )
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  1260
                 ,
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  1261
                 items.
1895
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1262
    ].
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1263
8993
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1264
    monitorProcess isNil ifTrue:[
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1265
        items := items , #(
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1266
                        ('Start Monitor'                #doStartMonitor         )
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1267
                          ).
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1268
    ] ifFalse:[
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1269
        items := items , #(
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1270
                        ('Stop Monitor'                #doStopMonitor           )
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1271
                          ).
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1272
    ].
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1273
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1274
    hasMore ifTrue:[
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  1275
        items := items , #(
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  1276
                        ('-')
4197
8086dadff648 added broese methods class
Claus Gittinger <cg@exept.de>
parents: 4106
diff changeset
  1277
                        ('Show More'                    #showMore               )
11576
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1278
                          ).
11578
f750a9c9fb7a +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11576
diff changeset
  1279
        (self numIndexedFields > (nShown * 2)) ifTrue:[
11576
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1280
            items := items , #(
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1281
                        ('Show All'                     #showAll                )
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  1282
                          )
11576
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1283
        ].
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1284
    ].
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  1285
8993
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1286
    protocols := Dictionary new.
9703
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1287
    selectorsByFirstCharacter := Dictionary new.
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  1288
    object class withAllSuperclassesDo:[:eachClass |
8993
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1289
        eachClass methodDictionary keysAndValuesDo:[:sel :m |
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1290
            sel numArgs == 0 ifTrue:[
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1291
                (protocols at:m category ifAbsentPut:[Set new]) add:sel.
9703
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1292
                (selectorsByFirstCharacter at:(sel first asString) ifAbsentPut:[Set new]) add:sel.
8993
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1293
            ]
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1294
        ].
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1295
    ].
9574
d2a1b8074d35 changed:
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
  1296
8993
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1297
    protocolsSorted := protocols keys asArray sort.
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1298
    protocolMenu := PopUpMenu
9703
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1299
                        labels:#('alphabetical' '=') , protocolsSorted
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1300
                        selectors:#(nil nil) , protocolsSorted.
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1301
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1302
    protocolMenu 
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1303
        subMenuAt:'alphabetical'
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1304
        put:[
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1305
            |firstChars|
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1306
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1307
            firstChars := selectorsByFirstCharacter keys asOrderedCollection sort.
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1308
            alphaMenu := PopUpMenu
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1309
                               labels:firstChars
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1310
                               selector:#mmm 
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1311
                               args:firstChars
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1312
                               receiver:self.
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1313
            firstChars do:[:ch |
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1314
                alphaMenu
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1315
                    subMenuAt:ch
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1316
                    put:[
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1317
                        |selectors sortedSelectors|
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1318
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1319
                        selectors := selectorsByFirstCharacter at:ch.
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1320
                        sortedSelectors := selectors asArray sort.
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1321
                        protocolMenu := PopUpMenu
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1322
                                            labels:sortedSelectors
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1323
                                            selector:#letSelectedObjectPerform: 
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1324
                                            args:sortedSelectors
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1325
                                            receiver:self.
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1326
                    ]
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1327
            ].
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1328
            alphaMenu
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1329
        ].
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1330
8993
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1331
    protocolsSorted do:[:p |
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1332
        protocolMenu 
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1333
            subMenuAt:p 
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1334
            put:[
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1335
                |selectors sortedSelectors|
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1336
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1337
                selectors := protocols at:p.
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1338
                sortedSelectors := selectors asArray sort.
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1339
                protocolMenu := PopUpMenu
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1340
                                    labels:sortedSelectors
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1341
                                    selector:#letSelectedObjectPerform: 
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1342
                                    args:sortedSelectors
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1343
                                    receiver:self.
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1344
            ]
93
claus
parents: 80
diff changeset
  1345
    ].
claus
parents: 80
diff changeset
  1346
9574
d2a1b8074d35 changed:
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
  1347
    localSelectors := object class methodDictionary keys asArray sort.
d2a1b8074d35 changed:
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
  1348
    localProtocolMenu := PopUpMenu
d2a1b8074d35 changed:
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
  1349
                        labels:localSelectors
d2a1b8074d35 changed:
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
  1350
                        selector:#letSelectedObjectPerform: 
d2a1b8074d35 changed:
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
  1351
                        args:localSelectors
d2a1b8074d35 changed:
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
  1352
                        receiver:self.
d2a1b8074d35 changed:
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
  1353
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1354
    items := items , (self sortOrderItems).
7639
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1355
    items := items , (self numberBaseItems).
1634
216a4254e634 added 'hex integers' toggle to menu.
Claus Gittinger <cg@exept.de>
parents: 1597
diff changeset
  1356
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1357
    m := PopUpMenu
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  1358
          itemList:items
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  1359
          resources:resources.
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1360
8993
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1361
    m subMenuAt:#protocolMenu put:protocolMenu.
9574
d2a1b8074d35 changed:
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
  1362
    m subMenuAt:#localProtocolMenu put:localProtocolMenu.
8993
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1363
9703
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1364
    (self theSingleSelectionIndex isNil) ifTrue:[
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  1365
        m disableAll:#(doFollow doInspect doBasicInspect doNewInspect
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  1366
                       browse browseClassHierarchy browseFullClassProtocol
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  1367
                       doStartMonitor doCopyKey doCopyKey)
1895
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1368
    ].
9703
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1369
    (self hasSelfEntry and:[selectionIndex == 1]) ifTrue:[
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1370
        m disableAll:#(doFollow doCopyKey "doInspect doBasicInspect")
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1371
    ].
7975
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  1372
1895
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1373
    inspectHistory size == 0 ifTrue:[
2007
cd423a740a14 renamed instance variable.
Claus Gittinger <cg@exept.de>
parents: 1991
diff changeset
  1374
        m disable:#doBack
1895
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1375
    ].
6491
d02c41c57d02 better menu
Claus Gittinger <cg@exept.de>
parents: 6372
diff changeset
  1376
    sel class hasImmediateInstances ifTrue:[
2580
d0c284a14c9c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2579
diff changeset
  1377
        m disableAll:#(showReferences doNewInspect)
d0c284a14c9c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2579
diff changeset
  1378
    ].
8616
51d6f6c57f14 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8452
diff changeset
  1379
"/    sel inspectorClass == self class ifFalse:[
51d6f6c57f14 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8452
diff changeset
  1380
"/        m disable:#doFollow
51d6f6c57f14 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8452
diff changeset
  1381
"/    ].
4197
8086dadff648 added broese methods class
Claus Gittinger <cg@exept.de>
parents: 4106
diff changeset
  1382
    sel isMethod ifFalse:[
8086dadff648 added broese methods class
Claus Gittinger <cg@exept.de>
parents: 4106
diff changeset
  1383
        m disable:#browseMethodsClass
8086dadff648 added broese methods class
Claus Gittinger <cg@exept.de>
parents: 4106
diff changeset
  1384
    ].
3199
5478ca0ac71f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3198
diff changeset
  1385
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1386
    ^ m
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1387
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1388
    "Modified: / 20-07-2012 / 10:50:45 / cg"
7639
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1389
!
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1390
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1391
numberBaseItems
9557
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  1392
    ^ {
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  1393
        #('-') .
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  1394
        (integerDisplayRadix == 10) 
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  1395
            ifFalse:[ #('Decimal Integers'  #setDisplayRadixTo10  ) ] .
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  1396
        (integerDisplayRadix == 2) 
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  1397
            ifFalse:[ #('Binary Integers'  #setDisplayRadixTo2    ) ] .
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  1398
        (integerDisplayRadix == 16) 
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  1399
            ifFalse:[ #('Hex Integers'  #setDisplayRadixTo16      ) ] .
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  1400
      } select:[:el | el notNil].
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  1401
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  1402
    "Modified: / 24-08-2010 / 17:31:51 / cg"
7639
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1403
!
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1404
9700
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  1405
optionalByteArraySelectionItems
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  1406
    |sel|
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  1407
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  1408
    sel := self selection.
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  1409
    (object isByteArray) ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  1410
        ^ #(
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  1411
               ('Save Bytes to File...'             #saveBytesToFile)
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  1412
          ).
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  1413
    ].
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  1414
    ^ #()
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  1415
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  1416
    "Created: / 25-01-2011 / 17:16:12 / cg"
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  1417
!
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  1418
7639
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1419
optionalFilenameSelectionItems
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1420
    |sel|
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1421
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1422
    sel := self selection.
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  1423
    (object isFilename or:[sel isFilename]) ifTrue:[
9737
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1424
        OperatingSystem isMSWINDOWSlike ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1425
            ^ #(
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1426
                       ('Show in Explorer'             #showInWindowsExplorer)
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1427
                       ('Open FileBrowser'             #openFileBrowser)
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1428
              ).
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1429
        ].
7639
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1430
        ^ #(
8090
45e0ec5d10f5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8065
diff changeset
  1431
               ('Open FileBrowser'             #openFileBrowser)
45e0ec5d10f5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8065
diff changeset
  1432
          ).
7639
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1433
    ].
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1434
    ^ #()
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1435
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1436
    "Created: / 09-02-2007 / 16:10:30 / cg"
9737
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1437
    "Modified: / 05-02-2011 / 15:49:48 / cg"
7639
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1438
!
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1439
8799
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1440
optionalMethodOrBlockSelectionItems
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1441
    |sel items|
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1442
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1443
    sel := self selection.
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1444
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1445
    items := #().
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1446
    (sel isBlock or:[sel isContext]) ifTrue:[
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1447
        items := items , #(
10436
75108fe4b96f comment/format in: #browse
Claus Gittinger <cg@exept.de>
parents: 10424
diff changeset
  1448
                       ('Browse Block''s Home'           #browseHome)
8799
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1449
              ).
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1450
    ].
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  1451
    (object isMethod or:[sel isMethod]) ifTrue:[
8799
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1452
        items := items , #(
10436
75108fe4b96f comment/format in: #browse
Claus Gittinger <cg@exept.de>
parents: 10424
diff changeset
  1453
                       ('Browse Method''s Class'         #browseMethodsClass)
8799
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1454
                 ).
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1455
    ].
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1456
    (selectionIndex notNil 
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1457
    and:[(self fieldList at:selectionIndex ifAbsent:nil) = '-dependents']) ifTrue:[
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1458
        items := items , #(
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1459
                       ('Browse Update Methods'        #browseUpdateMethods)
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1460
                 ).
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1461
    ].
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1462
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1463
    ^ items
10436
75108fe4b96f comment/format in: #browse
Claus Gittinger <cg@exept.de>
parents: 10424
diff changeset
  1464
75108fe4b96f comment/format in: #browse
Claus Gittinger <cg@exept.de>
parents: 10424
diff changeset
  1465
    "Modified: / 03-08-2011 / 15:03:36 / cg"
8799
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1466
!
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1467
7639
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1468
optionalStreamSelectionItems
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1469
    |sel|
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1470
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1471
    sel := self selection.
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1472
8090
45e0ec5d10f5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8065
diff changeset
  1473
    sel isStream ifTrue:[
45e0ec5d10f5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8065
diff changeset
  1474
        sel isFileStream ifTrue:[
9737
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1475
            OperatingSystem isMSWINDOWSlike ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1476
                ^ #(
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1477
                       ('Show in Explorer'             #showInWindowsExplorer)
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1478
                       ('Open FileBrowser'             #openFileBrowser)
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1479
                  ).
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1480
            ].
8090
45e0ec5d10f5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8065
diff changeset
  1481
            ^ #(
45e0ec5d10f5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8065
diff changeset
  1482
                       ('Open FileBrowser'             #openFileBrowser)
45e0ec5d10f5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8065
diff changeset
  1483
              ).
45e0ec5d10f5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8065
diff changeset
  1484
        ].
9384
30eafebfd3f5 code deobfuscated:
Claus Gittinger <cg@exept.de>
parents: 9378
diff changeset
  1485
        sel isExternalStream ifFalse:[
8090
45e0ec5d10f5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8065
diff changeset
  1486
            ^ #(
7639
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1487
                       ('Show Stream Contents'         #showStreamContents)
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1488
              ).
8090
45e0ec5d10f5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8065
diff changeset
  1489
        ].
7639
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1490
    ].
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1491
    ^ #()
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1492
c888d208bda0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7629
diff changeset
  1493
    "Created: / 09-02-2007 / 16:09:15 / cg"
9737
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1494
    "Modified: / 05-02-2011 / 15:49:55 / cg"
8799
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1495
!
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1496
9703
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1497
optionalToolItems
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1498
    "inserted after inspect/browse"
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1499
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1500
    ^ #()
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1501
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1502
    "Created: / 27-01-2011 / 11:51:12 / cg"
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1503
!
0262e41260f0 added: #optionalToolItems
Claus Gittinger <cg@exept.de>
parents: 9701
diff changeset
  1504
8799
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1505
optionalViewSelectionItems
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1506
    |sel|
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1507
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1508
    sel := self selection.
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1509
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1510
    sel isView ifTrue:[
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1511
        ^ #(
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1512
            ('Show Widget Hierarchy'             #openWidgetHierarchy)
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1513
          ).
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1514
    ].
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1515
    ^ #()
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1516
!
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1517
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1518
sortOrderItems
11634
06cd46b8e285 changed: #sortOrderItems
Claus Gittinger <cg@exept.de>
parents: 11629
diff changeset
  1519
    object class instSize == 0 ifTrue:[ ^ #() ].
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1520
    ^ {
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1521
        #('-') .
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1522
        (sortOrder == #instvarOrder) 
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1523
            ifFalse:[ #('Instvar Order'  #setSortOrderToInstvarOrder  ) ] .
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1524
        (sortOrder == #alphabetical) 
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1525
            ifFalse:[ #('Alphabetical'  #setSortOrderToAlphabetical  ) ] .
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1526
      } select:[:el | el notNil].
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1527
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1528
    "Created: / 20-07-2012 / 10:47:53 / cg"
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1529
! !
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1530
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1531
!InspectorView methodsFor:'menu actions'!
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1532
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1533
browse
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1534
    |cls|
527
2faba0c6ab96 ask class for browserClass
Claus Gittinger <cg@exept.de>
parents: 510
diff changeset
  1535
11702
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1536
    cls := self selectedField class.
10436
75108fe4b96f comment/format in: #browse
Claus Gittinger <cg@exept.de>
parents: 10424
diff changeset
  1537
    (cls browserClass ? UserPreferences current systemBrowserClass) 
75108fe4b96f comment/format in: #browse
Claus Gittinger <cg@exept.de>
parents: 10424
diff changeset
  1538
        openInClass:cls selector:nil
75108fe4b96f comment/format in: #browse
Claus Gittinger <cg@exept.de>
parents: 10424
diff changeset
  1539
75108fe4b96f comment/format in: #browse
Claus Gittinger <cg@exept.de>
parents: 10424
diff changeset
  1540
    "Created: / 14-12-1995 / 19:15:50 / cg"
11702
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1541
    "Modified: / 27-07-2012 / 22:42:44 / cg"
527
2faba0c6ab96 ask class for browserClass
Claus Gittinger <cg@exept.de>
parents: 510
diff changeset
  1542
!
2faba0c6ab96 ask class for browserClass
Claus Gittinger <cg@exept.de>
parents: 510
diff changeset
  1543
2faba0c6ab96 ask class for browserClass
Claus Gittinger <cg@exept.de>
parents: 510
diff changeset
  1544
browseClass
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1545
    |cls|
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1546
11702
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1547
    cls := self selectedField class.
10436
75108fe4b96f comment/format in: #browse
Claus Gittinger <cg@exept.de>
parents: 10424
diff changeset
  1548
    cls browserClass 
75108fe4b96f comment/format in: #browse
Claus Gittinger <cg@exept.de>
parents: 10424
diff changeset
  1549
        openInClass:cls selector:nil
75108fe4b96f comment/format in: #browse
Claus Gittinger <cg@exept.de>
parents: 10424
diff changeset
  1550
        "/ browseClass:cls
75108fe4b96f comment/format in: #browse
Claus Gittinger <cg@exept.de>
parents: 10424
diff changeset
  1551
11702
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1552
    "Modified: / 27-07-2012 / 22:42:39 / cg"
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1553
!
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1554
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1555
browseClassHierarchy
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1556
    |cls|
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1557
11702
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1558
    cls := self selectedField class.
527
2faba0c6ab96 ask class for browserClass
Claus Gittinger <cg@exept.de>
parents: 510
diff changeset
  1559
    cls browserClass browseClassHierarchy:cls
2faba0c6ab96 ask class for browserClass
Claus Gittinger <cg@exept.de>
parents: 510
diff changeset
  1560
11702
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1561
    "Modified: / 27-07-2012 / 22:42:47 / cg"
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1562
!
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1563
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1564
browseFullClassProtocol
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1565
    |cls|
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1566
11702
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1567
    cls := self selectedField class.
527
2faba0c6ab96 ask class for browserClass
Claus Gittinger <cg@exept.de>
parents: 510
diff changeset
  1568
    cls browserClass browseFullClassProtocol:cls
2faba0c6ab96 ask class for browserClass
Claus Gittinger <cg@exept.de>
parents: 510
diff changeset
  1569
11702
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1570
    "Modified: / 27-07-2012 / 22:42:50 / cg"
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1571
!
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1572
2579
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  1573
browseHome
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  1574
    |sel mthd|
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  1575
11702
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1576
    sel := self selectedField.
2579
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  1577
    sel isBlock ifTrue:[
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  1578
        mthd := sel homeMethod
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  1579
    ] ifFalse:[
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  1580
        sel isContext ifTrue:[
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  1581
            mthd := sel method.
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  1582
        ]
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  1583
    ].
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  1584
    mthd isNil ifTrue:[
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  1585
        ^ self warn:'Sorry - cannot figure out home method.'
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  1586
    ].
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  1587
    mthd class browserClass 
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  1588
        openInClass:mthd mclass selector:mthd selector
11702
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1589
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1590
    "Modified: / 27-07-2012 / 22:42:55 / cg"
2579
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  1591
!
81108fb4f996 added browse home-method
Claus Gittinger <cg@exept.de>
parents: 2475
diff changeset
  1592
4197
8086dadff648 added broese methods class
Claus Gittinger <cg@exept.de>
parents: 4106
diff changeset
  1593
browseMethodsClass
8086dadff648 added broese methods class
Claus Gittinger <cg@exept.de>
parents: 4106
diff changeset
  1594
    |mthd|
8086dadff648 added broese methods class
Claus Gittinger <cg@exept.de>
parents: 4106
diff changeset
  1595
8086dadff648 added broese methods class
Claus Gittinger <cg@exept.de>
parents: 4106
diff changeset
  1596
    mthd := self selection.
8086dadff648 added broese methods class
Claus Gittinger <cg@exept.de>
parents: 4106
diff changeset
  1597
    mthd mclass browserClass 
8086dadff648 added broese methods class
Claus Gittinger <cg@exept.de>
parents: 4106
diff changeset
  1598
        openInClass:mthd mclass selector:mthd selector
8086dadff648 added broese methods class
Claus Gittinger <cg@exept.de>
parents: 4106
diff changeset
  1599
!
8086dadff648 added broese methods class
Claus Gittinger <cg@exept.de>
parents: 4106
diff changeset
  1600
7975
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  1601
browseUpdateMethods
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  1602
    |deps methods|
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  1603
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  1604
    deps := self selection.
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  1605
    methods := Set new.
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  1606
    deps do:[:each | 
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  1607
        |implClass|
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  1608
8962
b0e0907c0bf7 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 8908
diff changeset
  1609
        implClass := each class whichClassIncludesSelector:#'update:with:from:'.
7975
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  1610
        implClass notNil ifTrue:[
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  1611
            methods add:(implClass compiledMethodAt:#'update:with:from:')
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  1612
        ]
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  1613
    ].
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  1614
    methods isEmpty ifTrue:[^ self].
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  1615
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  1616
    methods first mclass browserClass 
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  1617
        browseMethods:methods
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  1618
        title:'Update Method(s) of dependent(s)'
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  1619
!
39967da19bfe +browseUpdatemethods
Claus Gittinger <cg@exept.de>
parents: 7951
diff changeset
  1620
1895
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1621
doBack
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1622
    "user selected back-menu entry"
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1623
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1624
    |objectToInspect|
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1625
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1626
    inspectHistory size > 0 ifTrue:[
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1627
        objectToInspect := inspectHistory removeLast.
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1628
        inspectHistory size == 0 ifTrue:[
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1629
            inspectHistory := nil
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1630
        ].
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1631
        self inspect:objectToInspect.
1895
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1632
    ]
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1633
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1634
    "Created: / 22.9.1998 / 18:22:01 / cg"
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1635
    "Modified: / 22.9.1998 / 18:22:28 / cg"
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1636
!
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1637
1930
fc38f714f4ab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1895
diff changeset
  1638
doBasicInspect
fc38f714f4ab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1895
diff changeset
  1639
    "user selected inspect-menu entry"
fc38f714f4ab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1895
diff changeset
  1640
fc38f714f4ab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1895
diff changeset
  1641
    self doInspect:true 
fc38f714f4ab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1895
diff changeset
  1642
!
fc38f714f4ab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1895
diff changeset
  1643
1895
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1644
doFollow
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1645
    "user selected follow-menu entry"
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1646
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1647
    |objectToInspect|
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1648
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1649
    selectionIndex notNil ifTrue:[
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1650
        objectToInspect := self selection.
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1651
        inspectHistory isNil ifTrue:[
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1652
            inspectHistory := OrderedCollection new
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1653
        ].
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  1654
        inspectHistory addLast:object.
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1655
        self inspect:objectToInspect.
1895
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1656
    ]
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1657
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1658
    "Created: / 22.9.1998 / 18:21:08 / cg"
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1659
    "Modified: / 22.9.1998 / 18:22:23 / cg"
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1660
!
8b51d61d9c0a added follow & back menu items.
Claus Gittinger <cg@exept.de>
parents: 1873
diff changeset
  1661
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1662
doInspect
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1663
    "user selected inspect-menu entry"
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1664
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1665
    self doInspect:false
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1666
!
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1667
1365
4a98e9a59430 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1270
diff changeset
  1668
doNewInspect
4a98e9a59430 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1270
diff changeset
  1669
    self doInspect:#new
4a98e9a59430 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1270
diff changeset
  1670
4a98e9a59430 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1270
diff changeset
  1671
    "Created: / 31.10.1997 / 12:45:38 / cg"
4a98e9a59430 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1270
diff changeset
  1672
    "Modified: / 31.10.1997 / 12:47:11 / cg"
4a98e9a59430 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1270
diff changeset
  1673
!
4a98e9a59430 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1270
diff changeset
  1674
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1675
doStartMonitor
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1676
    "start a monitoring process"
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1677
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1678
    monitorProcess isNil ifTrue:[
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1679
        monitorProcess :=
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1680
            [
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1681
                |sel|
295
92bcaa9996ae minor changes for ContextInspector required
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  1682
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1683
                [true] whileTrue:[
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1684
                    (sel := selectionIndex) notNil ifTrue:[
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1685
                        self showSelection:sel 
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1686
                    ].
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1687
                    (Delay forSeconds:0.5) wait
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1688
                ]
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  1689
            ] forkAt:Processor userBackgroundPriority
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1690
    ]
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1691
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1692
    "Modified: 12.4.1996 / 14:20:06 / cg"
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1693
!
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1694
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1695
doStopMonitor
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1696
    "stop the monitor"
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1697
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1698
    monitorProcess terminate.
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1699
    monitorProcess := nil
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1700
!
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1701
2800
4e5792ade7aa menu fix
Claus Gittinger <cg@exept.de>
parents: 2724
diff changeset
  1702
doTraceAll
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1703
    "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
  1704
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  1705
    self topView withWaitCursorDo:[MessageTracer traceAll:object on:Transcript]
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1706
!
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1707
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1708
doTrap
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1709
    "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
  1710
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1711
    |string selector|
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1712
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1713
    string := Dialog request:'Selector to trap on:' onCancel:nil.
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1714
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1715
    string notNil ifTrue:[
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1716
        selector := string asSymbolIfInterned.
901
56fe927e0734 fix doTrap
ca
parents: 874
diff changeset
  1717
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1718
        selector isNil ifTrue:[
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1719
            self warn:'no such selector'
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1720
        ] ifFalse:[
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  1721
            self topView withWaitCursorDo:[MessageTracer trap:object 
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1722
                                                         selector:selector]
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1723
        ]
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1724
    ]
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1725
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1726
    "Modified: 12.4.1996 / 14:07:01 / cg"
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1727
!
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1728
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1729
doTrapAll
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1730
    "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
  1731
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  1732
    self topView withWaitCursorDo:[MessageTracer trapAll:object]
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1733
!
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1734
2850
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  1735
doTrapAnyInstVarChange
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  1736
    "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
  1737
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  1738
    self topView withWaitCursorDo:[
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  1739
        MessageTracer trapModificationsIn:object
2850
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  1740
    ]
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  1741
!
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  1742
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  1743
doTrapInstVarChange
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  1744
    "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
  1745
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  1746
    self topView withWaitCursorDo:[
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  1747
        |idx|
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  1748
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  1749
        "/ a named instVar ?
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  1750
        idx := self instVarIndexForLine:selectionIndex.
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  1751
        idx isNil ifTrue:[
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  1752
            self warn:'select an instance variable first.'.
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  1753
            ^ self.
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  1754
        ].
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  1755
        MessageTracer 
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  1756
                trapModificationsOf:(object class allInstVarNames at:idx)
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  1757
                in:object
2850
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  1758
    ]
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  1759
!
f05e61a40fe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2800
diff changeset
  1760
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1761
doUntrace
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1762
    "remove traps/traces"
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1763
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  1764
    MessageTracer untrace:object
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1765
!
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1766
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1767
inspectOwners
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1768
    "open an inspector on owners of the inspectedObject.
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1769
     (this is a secret function)"
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1770
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1771
    self withCursor:(Cursor questionMark) do:[
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1772
        |owners dict|
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1773
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  1774
        owners := (ObjectMemory whoReferences:object) asOrderedCollection.
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1775
        owners size > 500 ifTrue:[
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1776
            (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
  1777
            ifFalse:[^ self]
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1778
        ].
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1779
        dict := IdentityDictionary new.
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1780
        owners do:[:owner |
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1781
            |set names oClass|
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1782
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1783
            owner ~~ self ifTrue:[
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1784
                set := Set new.
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1785
                names := owner class allInstVarNames.
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1786
                oClass := owner class.
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1787
                1 to:oClass instSize do:[:i |
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  1788
                    (owner instVarAt:i) == object ifTrue:[
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1789
                        set add:(names at:i).
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1790
                    ].
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1791
                ].
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1792
                oClass isVariable ifTrue:[
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1793
                    oClass isPointers ifTrue:[
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1794
                        1 to:owner basicSize do:[:i |
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  1795
                            (owner basicAt:i) == object ifTrue:[
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1796
                                 set add:i
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1797
                            ]
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1798
                        ]
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1799
                    ]
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1800
                ].
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1801
                dict at:owner put:set
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1802
            ].
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1803
        ].
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  1804
        dict inspect
472
7e2d83585ed7 category rename; menu order changed
Claus Gittinger <cg@exept.de>
parents: 446
diff changeset
  1805
    ]
2587
b6838cdb1f14 added show-stream-contents menu item
Claus Gittinger <cg@exept.de>
parents: 2580
diff changeset
  1806
!
b6838cdb1f14 added show-stream-contents menu item
Claus Gittinger <cg@exept.de>
parents: 2580
diff changeset
  1807
8993
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1808
letSelectedObjectPerform:aSelector
9574
d2a1b8074d35 changed:
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
  1809
    |sel argString|
8993
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1810
11702
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1811
    sel := self selectedField.
8993
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1812
    aSelector numArgs == 0 ifTrue:[
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1813
        (sel perform:aSelector) inspect.
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1814
        ^ self.
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1815
    ].
9574
d2a1b8074d35 changed:
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
  1816
    aSelector numArgs == 1 ifTrue:[
d2a1b8074d35 changed:
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
  1817
        argString := Dialog request:'Argument (Smalltalk Object)'.
d2a1b8074d35 changed:
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
  1818
        argString isEmptyOrNil ifTrue:[^ self].
d2a1b8074d35 changed:
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
  1819
        (sel perform:aSelector with:(Object readFrom:argString)) inspect.
d2a1b8074d35 changed:
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
  1820
        ^ self.
d2a1b8074d35 changed:
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
  1821
    ].
8993
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1822
self halt.
9574
d2a1b8074d35 changed:
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
  1823
11702
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  1824
    "Modified: / 27-07-2012 / 22:43:37 / cg"
8993
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1825
!
ddf4fc887179 experimental protocol menu...
Claus Gittinger <cg@exept.de>
parents: 8962
diff changeset
  1826
6283
7fa17d36a91c +openFileBrowser (when inspeting a filename)
Claus Gittinger <cg@exept.de>
parents: 6130
diff changeset
  1827
openFileBrowser
7fa17d36a91c +openFileBrowser (when inspeting a filename)
Claus Gittinger <cg@exept.de>
parents: 6130
diff changeset
  1828
    |fn|
7fa17d36a91c +openFileBrowser (when inspeting a filename)
Claus Gittinger <cg@exept.de>
parents: 6130
diff changeset
  1829
7fa17d36a91c +openFileBrowser (when inspeting a filename)
Claus Gittinger <cg@exept.de>
parents: 6130
diff changeset
  1830
    fn := self selection.
9615
6fc22155a4f6 changed: #openFileBrowser
Claus Gittinger <cg@exept.de>
parents: 9574
diff changeset
  1831
    fn isNil ifTrue:[ fn := inspectedObject ].
8155
018dcb4973bf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8090
diff changeset
  1832
    fn isStream ifTrue:[
018dcb4973bf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8090
diff changeset
  1833
        fn := fn pathName asFilename
018dcb4973bf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8090
diff changeset
  1834
    ].
9794
6aa5341140a7 changed: #openFileBrowser
Claus Gittinger <cg@exept.de>
parents: 9737
diff changeset
  1835
    (UserPreferences current fileBrowserClass) openOnFileNamed:fn asFilename.
6aa5341140a7 changed: #openFileBrowser
Claus Gittinger <cg@exept.de>
parents: 9737
diff changeset
  1836
6aa5341140a7 changed: #openFileBrowser
Claus Gittinger <cg@exept.de>
parents: 9737
diff changeset
  1837
    "Modified: / 22-03-2011 / 18:05:22 / cg"
6283
7fa17d36a91c +openFileBrowser (when inspeting a filename)
Claus Gittinger <cg@exept.de>
parents: 6130
diff changeset
  1838
!
7fa17d36a91c +openFileBrowser (when inspeting a filename)
Claus Gittinger <cg@exept.de>
parents: 6130
diff changeset
  1839
8799
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1840
openWidgetHierarchy
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1841
    |view|
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1842
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1843
    view := self selection.
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1844
    view isView ifFalse:[^ self].
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1845
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1846
    WindowTreeView openOn:view
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1847
!
1d12c3d835ba +showWidgetHierarchy
Claus Gittinger <cg@exept.de>
parents: 8726
diff changeset
  1848
9700
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  1849
saveBytesToFile
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  1850
    |fn|
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  1851
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  1852
    fn := Dialog requestFileName:'Save bytes into:'.
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  1853
    fn isEmptyOrNil ifTrue:[^ self].
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  1854
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  1855
    fn asFilename contents:inspectedObject.
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  1856
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  1857
    "Modified: / 25-01-2011 / 17:23:38 / cg"
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  1858
!
Claus Gittinger <cg@exept.de>
parents: 9693
diff changeset
  1859
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1860
setDisplayRadixTo10
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1861
    self setDisplayRadixTo:10
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1862
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1863
    "Created: / 24-08-2010 / 17:26:12 / cg"
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1864
!
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1865
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1866
setDisplayRadixTo16
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1867
    self setDisplayRadixTo:16
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1868
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1869
    "Created: / 24-08-2010 / 17:26:22 / cg"
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1870
!
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1871
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1872
setDisplayRadixTo2
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1873
    self setDisplayRadixTo:2
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1874
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1875
    "Created: / 24-08-2010 / 17:26:18 / cg"
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1876
!
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1877
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1878
setDisplayRadixTo:radix
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1879
    |sel|
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1880
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1881
    integerDisplayRadix := DefaultIntegerDisplayRadix := radix.
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1882
    self reinspect.
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1883
    sel := listView selection.
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1884
    sel notNil ifTrue:[
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1885
        self showSelection:sel
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1886
    ]
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1887
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1888
    "Created: / 24-08-2010 / 17:26:54 / cg"
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1889
!
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1890
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1891
setSortOrderTo:aSymbol
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1892
    sortOrder := aSymbol.
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1893
    self reinspect.
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1894
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1895
    "Created: / 20-07-2012 / 10:59:30 / cg"
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1896
!
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1897
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1898
setSortOrderToAlphabetical
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1899
    self setSortOrderTo:#alphabetical
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1900
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1901
    "Created: / 20-07-2012 / 10:59:52 / cg"
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1902
!
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1903
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1904
setSortOrderToInstvarOrder
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1905
    self setSortOrderTo:#instvarOrder
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1906
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1907
    "Created: / 20-07-2012 / 10:59:59 / cg"
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1908
!
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  1909
11576
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1910
showAll
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1911
    |o|
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1912
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1913
    hasMore ifTrue:[
11578
f750a9c9fb7a +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11576
diff changeset
  1914
        nShown := self numIndexedFields.
11576
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1915
        "/ force update (which is otherwise ignored)
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1916
        o := object.
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1917
        inspectedObject := object := nil.
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1918
        self inspect:o
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1919
    ]
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1920
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1921
    "Created: / 13-06-2012 / 09:27:45 / cg"
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1922
!
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1923
9737
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1924
showInWindowsExplorer
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1925
    "show in explorer"
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1926
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1927
    |fn dir|
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1928
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1929
    fn := self selection.
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1930
    fn isNil ifTrue:[ fn := inspectedObject ].
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1931
    fn isStream ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1932
        fn := fn pathName asFilename
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1933
    ].
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1934
    dir := fn isDirectory
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1935
            ifTrue:[ fn ]
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1936
            ifFalse:[ fn directory ].
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1937
11641
17b6078ca84a changed: #showInWindowsExplorer
Claus Gittinger <cg@exept.de>
parents: 11634
diff changeset
  1938
    dir asFilename openExplorer
9737
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1939
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1940
    "Created: / 05-02-2011 / 15:49:33 / cg"
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1941
!
Claus Gittinger <cg@exept.de>
parents: 9736
diff changeset
  1942
11576
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1943
showMore
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1944
    |o|
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1945
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1946
    hasMore ifTrue:[
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1947
        nShown := nShown * 2.
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1948
        "/ force update (which is otherwise ignored)
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1949
        o := object.
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1950
        inspectedObject := object := nil.
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1951
        self inspect:o
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1952
    ]
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1953
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1954
    "Modified: / 26.8.1998 / 19:05:25 / cg"
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1955
!
e5361052ab2f +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11565
diff changeset
  1956
7951
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1957
showOwners
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1958
    |o|
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1959
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1960
    o := self selection.
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1961
    self withCursor:(Cursor questionMark) do:[
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1962
        |owners dict|
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1963
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1964
        owners := (ObjectMemory whoReferences:o).
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1965
        owners isEmptyOrNil ifTrue:[
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1966
            self information:'No owners found.'.
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1967
            ^ self
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1968
        ].
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1969
        owners := owners asOrderedCollection.
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1970
        "
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1971
         skip weakArrays ... (they dont count)
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1972
        "
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1973
        owners := owners reject:[:owner | owner isMemberOf:WeakArray].
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1974
        owners inspect.
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1975
"/        inspector := DictionaryInspectorView openOn:dict.
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1976
"/        inspector listView doubleClickAction:[:lineNr | inspector doInspectKey].
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1977
    ]
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1978
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1979
    "Modified: 15.10.1996 / 22:09:38 / cg"
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1980
!
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1981
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1982
showReferences
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1983
    "user selected references-menu entry"
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1984
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1985
    self selection class hasImmediateInstances ifTrue:[
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1986
        ^ self warn:'Sorry - cannot show references to immediate objects'
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1987
    ].
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1988
    ObjectMemory displayRefChainTo:(self selection)
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1989
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1990
    "Modified: / 30.7.1998 / 14:03:16 / cg"
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1991
!
ebebf170a28c changed #fieldMenu
Claus Gittinger <cg@exept.de>
parents: 7904
diff changeset
  1992
2587
b6838cdb1f14 added show-stream-contents menu item
Claus Gittinger <cg@exept.de>
parents: 2580
diff changeset
  1993
showStreamContents
b6838cdb1f14 added show-stream-contents menu item
Claus Gittinger <cg@exept.de>
parents: 2580
diff changeset
  1994
    |sel|
b6838cdb1f14 added show-stream-contents menu item
Claus Gittinger <cg@exept.de>
parents: 2580
diff changeset
  1995
b6838cdb1f14 added show-stream-contents menu item
Claus Gittinger <cg@exept.de>
parents: 2580
diff changeset
  1996
    sel := self selection.
b6838cdb1f14 added show-stream-contents menu item
Claus Gittinger <cg@exept.de>
parents: 2580
diff changeset
  1997
    (sel isStream and:[sel isExternalStream not]) ifTrue:[
b6838cdb1f14 added show-stream-contents menu item
Claus Gittinger <cg@exept.de>
parents: 2580
diff changeset
  1998
        workspace replace:(sel contents printString)
b6838cdb1f14 added show-stream-contents menu item
Claus Gittinger <cg@exept.de>
parents: 2580
diff changeset
  1999
    ].
b6838cdb1f14 added show-stream-contents menu item
Claus Gittinger <cg@exept.de>
parents: 2580
diff changeset
  2000
b6838cdb1f14 added show-stream-contents menu item
Claus Gittinger <cg@exept.de>
parents: 2580
diff changeset
  2001
    "Created: / 6.2.2000 / 13:46:37 / cg"
b6838cdb1f14 added show-stream-contents menu item
Claus Gittinger <cg@exept.de>
parents: 2580
diff changeset
  2002
    "Modified: / 6.2.2000 / 13:47:37 / cg"
73
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  2003
! !
e332d9c71624 *** empty log message ***
claus
parents: 71
diff changeset
  2004
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2005
!InspectorView methodsFor:'presentation'!
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2006
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2007
appendDisplayStringForElementsOf:val indent:lvl pad:padding to:aStream
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2008
    val doWithIndex:[:el :idx |
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2009
        |elValString|
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2010
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2011
        aStream spaces:lvl.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2012
        aStream nextPutAll:(' ' paddedTo:padding with:$.).
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2013
        aStream nextPutAll:(' [',(idx printString leftPaddedTo:2),']').
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2014
        aStream nextPutAll:' : '.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2015
        elValString := self basicDisplayStringForValue:el.                
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2016
        aStream nextPutAll:elValString.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2017
        aStream cr.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2018
        "/ s nextPutAll:(self stringWithAllInstVarValuesFor:el level:lvl+4)
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2019
    ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2020
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2021
    "Created: / 12-02-2012 / 09:55:53 / cg"
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2022
!
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2023
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2024
basicDisplayStringForValue:someValue 
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2025
    "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
  2026
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2027
    |s|
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2028
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2029
    Error handle:[:ex |
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2030
        s := someValue classNameWithArticle.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2031
        displayStringMessage == #displayString ifTrue:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2032
            s := s , ' "error in displayString: ' , ex description , '"'
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2033
        ] ifFalse:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2034
            s := s , ' "error in displayString (' , displayStringMessage , '): ' , ex description , '"'
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2035
        ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2036
        ^ s
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2037
    ] do:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2038
        integerDisplayRadix ~= 10 ifTrue:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2039
            "/ not everything can be shown in HEX/Binary
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2040
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2041
            someValue isInteger ifTrue:[
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2042
                (someValue < integerDisplayRadix) ifTrue:[  
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2043
                    ^ someValue printString.
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2044
                ].
11276
d966f9687b59 changed: #basicDisplayStringForValue:
Claus Gittinger <cg@exept.de>
parents: 11251
diff changeset
  2045
                s := someValue radixPrintStringRadix:integerDisplayRadix.
d966f9687b59 changed: #basicDisplayStringForValue:
Claus Gittinger <cg@exept.de>
parents: 11251
diff changeset
  2046
                s := s , ' "',(someValue printString),'"'.
d966f9687b59 changed: #basicDisplayStringForValue:
Claus Gittinger <cg@exept.de>
parents: 11251
diff changeset
  2047
                ^ s
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2048
            ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2049
            (someValue isMemberOf:ByteArray) ifTrue:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2050
                s := WriteStream on:(String new:10).
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2051
                s writeLimit:100000.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2052
                someValue printOn:s base:integerDisplayRadix showRadix:true.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2053
                ^ s contents
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2054
            ]
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2055
        ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2056
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2057
        "/ displayStringMessage := #classNameWithArticle
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2058
        "/ displayStringMessage := #displayString
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2059
        "/ displayStringMessage := #printString
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2060
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2061
        s := CharacterWriteStream on:(String new:10).
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2062
        s writeLimit:100000.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2063
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2064
        someValue isLazyValue ifTrue:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2065
            s nextPutAll:someValue class nameWithArticle    
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2066
        ] ifFalse:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2067
            "/ 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
  2068
            displayStringMessage == #displayString ifTrue:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2069
                someValue displayOn:s.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2070
                "/ s := someValue displayString.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2071
            ] ifFalse:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2072
                displayStringMessage == #printString ifTrue:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2073
                    someValue printOn:s.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2074
                    "/ s := someValue printString.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2075
                ] ifFalse:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2076
                    displayStringMessage == #storeString ifTrue:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2077
                        someValue storeOn:s.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2078
                        "/ s := someValue storeString.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2079
                    ] ifFalse:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2080
                        ^ someValue perform:displayStringMessage.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2081
                    ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2082
                ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2083
            ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2084
        ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2085
        ^ s contents
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2086
    ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2087
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2088
    "Modified: / 20-07-2012 / 10:54:05 / cg"
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2089
!
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2090
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2091
displayStringForValue:someValue
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2092
    "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
  2093
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2094
    |idx sel extraAttributes|
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2095
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2096
    idx := self theSingleSelectionIndex.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2097
    idx notNil ifTrue:[
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2098
        sel := self listEntryAt:idx.
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2099
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2100
        extraAttributes := object inspectorExtraAttributes.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2101
        (extraAttributes notNil and:[extraAttributes includesKey:sel]) ifTrue:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2102
            ^ someValue "(extraAttributes at:sel) value" printString
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2103
        ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2104
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2105
        (sel startsWith:'-all inst vars') ifTrue:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2106
            ^ self stringWithAllInstVarValues
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2107
        ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2108
        (sel startsWith:'-all indexed vars') ifTrue:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2109
            ^ self stringWithAllIndexedVarValues
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2110
        ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2111
        (sel startsWith:'-all messages') ifTrue:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2112
            ^ self stringWithMessages:#all
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2113
        ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2114
        (sel startsWith:'-local messages') ifTrue:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2115
            ^ self stringWithMessages:#local
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2116
        ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2117
        (sel startsWith:'-inherited messages') ifTrue:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2118
            ^ self stringWithMessages:#inherited
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2119
        ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2120
    ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2121
    ^ self basicDisplayStringForValue:someValue
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2122
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2123
    "Modified: / 16-05-2012 / 17:55:05 / cg"
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2124
!
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2125
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2126
iconForValue: anObject
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2127
    anObject isNil ifTrue:[
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2128
        ^ self class imageFor_nil
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2129
    ].
11835
ce6eddec9960 Do not block an lazy values (e.g. Futures)
Stefan Vogel <sv@exept.de>
parents: 11823
diff changeset
  2130
    anObject isLazyValue ifTrue:[
ce6eddec9960 Do not block an lazy values (e.g. Futures)
Stefan Vogel <sv@exept.de>
parents: 11823
diff changeset
  2131
        ^ self class imageFor_others
ce6eddec9960 Do not block an lazy values (e.g. Futures)
Stefan Vogel <sv@exept.de>
parents: 11823
diff changeset
  2132
    ].
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2133
    anObject isNumber ifTrue:[
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2134
        anObject isInteger ifTrue:[
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2135
            ^ self class imageFor_integers
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2136
        ].
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2137
        anObject isFloat ifTrue:[
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2138
            ^ self class imageFor_floats
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2139
        ].
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2140
        anObject isFraction ifTrue:[
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2141
            ^ self class imageFor_fractions
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2142
        ].
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2143
    ].
11514
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
  2144
    anObject isCollection ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
  2145
        anObject isString ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
  2146
            anObject isSymbol ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
  2147
                ^ self class imageFor_symbols
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
  2148
            ].
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
  2149
            ^ self class imageFor_strings
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2150
        ].
11514
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
  2151
        (anObject isKindOf:Dictionary) ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
  2152
            ^ self class imageFor_dictionaries
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
  2153
        ].
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
  2154
        (anObject isArray) ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
  2155
            ^ self class imageFor_arrays
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
  2156
        ].
11521
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
  2157
        (anObject isSequenceable) ifTrue:[
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
  2158
            ^ self class imageFor_sequenceableCollections
edf68f0ed11c added: #imageFor_sequenceableCollections
Claus Gittinger <cg@exept.de>
parents: 11519
diff changeset
  2159
        ].
11514
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
  2160
        ^ self class imageFor_collections
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2161
    ].
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2162
    anObject == true ifTrue:[
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2163
        ^ self class imageFor_true
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2164
    ].
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2165
    anObject == false ifTrue:[
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2166
        ^ self class imageFor_false
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2167
    ].
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2168
    anObject isCharacter ifTrue:[
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2169
        ^ self class imageFor_characters
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2170
    ].
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2171
    anObject isBehavior ifTrue:[
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2172
        ^ self class imageFor_classes
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2173
    ].
11768
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
  2174
    anObject isColor ifTrue:[
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
  2175
        ^ self class imageFor_colors
40f68c94ef97 added: #imageFor_colors
Claus Gittinger <cg@exept.de>
parents: 11763
diff changeset
  2176
    ].
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2177
    ^ self class imageFor_others
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2178
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2179
    "Created: / 16-05-2012 / 17:58:20 / cg"
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2180
!
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2181
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2182
listEntryForName:nameString value:value
11579
0c14b5d9c07f added: #valueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11578
diff changeset
  2183
    |entryString|
11517
bf056eb85f41 changed:
Claus Gittinger <cg@exept.de>
parents: 11514
diff changeset
  2184
bf056eb85f41 changed:
Claus Gittinger <cg@exept.de>
parents: 11514
diff changeset
  2185
    UserPreferences current showTypeIndicatorInInspector ifFalse:[
bf056eb85f41 changed:
Claus Gittinger <cg@exept.de>
parents: 11514
diff changeset
  2186
        ^ nameString
bf056eb85f41 changed:
Claus Gittinger <cg@exept.de>
parents: 11514
diff changeset
  2187
    ].
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2188
11749
213908da088d changed: #listEntryForName:value:
Claus Gittinger <cg@exept.de>
parents: 11748
diff changeset
  2189
    Error handle:[:ex |
213908da088d changed: #listEntryForName:value:
Claus Gittinger <cg@exept.de>
parents: 11748
diff changeset
  2190
        ^ nameString
213908da088d changed: #listEntryForName:value:
Claus Gittinger <cg@exept.de>
parents: 11748
diff changeset
  2191
    ] do:[
213908da088d changed: #listEntryForName:value:
Claus Gittinger <cg@exept.de>
parents: 11748
diff changeset
  2192
        entryString := nameString allBold,(self valueStringInListEntryForValue:value).
11835
ce6eddec9960 Do not block an lazy values (e.g. Futures)
Stefan Vogel <sv@exept.de>
parents: 11823
diff changeset
  2193
        (value isLazyValue not and:[value isColor and:[value red notNil]]) ifTrue:[
11749
213908da088d changed: #listEntryForName:value:
Claus Gittinger <cg@exept.de>
parents: 11748
diff changeset
  2194
            entryString := entryString
213908da088d changed: #listEntryForName:value:
Claus Gittinger <cg@exept.de>
parents: 11748
diff changeset
  2195
                         , '  ' , ('   '
213908da088d changed: #listEntryForName:value:
Claus Gittinger <cg@exept.de>
parents: 11748
diff changeset
  2196
                            colorizeAllWith:((value brightness < 0.5)
213908da088d changed: #listEntryForName:value:
Claus Gittinger <cg@exept.de>
parents: 11748
diff changeset
  2197
                                    ifTrue:[ Color white ]
213908da088d changed: #listEntryForName:value:
Claus Gittinger <cg@exept.de>
parents: 11748
diff changeset
  2198
                                    ifFalse:[ Color black ])
213908da088d changed: #listEntryForName:value:
Claus Gittinger <cg@exept.de>
parents: 11748
diff changeset
  2199
                            on:value).
213908da088d changed: #listEntryForName:value:
Claus Gittinger <cg@exept.de>
parents: 11748
diff changeset
  2200
        ].
213908da088d changed: #listEntryForName:value:
Claus Gittinger <cg@exept.de>
parents: 11748
diff changeset
  2201
213908da088d changed: #listEntryForName:value:
Claus Gittinger <cg@exept.de>
parents: 11748
diff changeset
  2202
        ^ LabelAndIcon string:entryString image:(self iconForValue:value)
11547
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
  2203
    ].
ebc7b2190f54 comment/format in: #reinspect
Claus Gittinger <cg@exept.de>
parents: 11521
diff changeset
  2204
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2205
    "Created: / 16-05-2012 / 18:42:28 / cg"
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2206
!
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2207
11580
0bcaed8e460b added: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11579
diff changeset
  2208
plainValueStringInListEntryForValue:value
0bcaed8e460b added: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11579
diff changeset
  2209
    "returns nil or a string to show in angle brackets"
0bcaed8e460b added: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11579
diff changeset
  2210
11587
916e12f6b843 changed: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11580
diff changeset
  2211
    |s|
916e12f6b843 changed: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11580
diff changeset
  2212
11580
0bcaed8e460b added: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11579
diff changeset
  2213
    UserPreferences current showTypeIndicatorInInspector ifFalse:[^ nil].
0bcaed8e460b added: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11579
diff changeset
  2214
11587
916e12f6b843 changed: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11580
diff changeset
  2215
    value class == ValueHolder ifTrue:[
916e12f6b843 changed: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11580
diff changeset
  2216
        s := self plainValueStringInListEntryForValue:value value.
916e12f6b843 changed: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11580
diff changeset
  2217
        s notNil ifTrue:[
916e12f6b843 changed: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11580
diff changeset
  2218
            ^ '[[' , s , ']]'
916e12f6b843 changed: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11580
diff changeset
  2219
        ].
916e12f6b843 changed: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11580
diff changeset
  2220
        ^ nil
916e12f6b843 changed: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11580
diff changeset
  2221
    ].
11835
ce6eddec9960 Do not block an lazy values (e.g. Futures)
Stefan Vogel <sv@exept.de>
parents: 11823
diff changeset
  2222
    value isLazyValue ifTrue:[
ce6eddec9960 Do not block an lazy values (e.g. Futures)
Stefan Vogel <sv@exept.de>
parents: 11823
diff changeset
  2223
        "do not block on not yet finished Futures et al"
ce6eddec9960 Do not block an lazy values (e.g. Futures)
Stefan Vogel <sv@exept.de>
parents: 11823
diff changeset
  2224
        ^ '>>Lazy value<<'
ce6eddec9960 Do not block an lazy values (e.g. Futures)
Stefan Vogel <sv@exept.de>
parents: 11823
diff changeset
  2225
    ].
11580
0bcaed8e460b added: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11579
diff changeset
  2226
    (value isNumber or:[value isBoolean]) ifTrue:[
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2227
        ^ self basicDisplayStringForValue:value "value printString"
11580
0bcaed8e460b added: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11579
diff changeset
  2228
    ].
11810
320b379eaedb changed: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11808
diff changeset
  2229
    ^ value inspectorValueStringInListFor:self
11580
0bcaed8e460b added: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11579
diff changeset
  2230
0bcaed8e460b added: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11579
diff changeset
  2231
    "Created: / 13-06-2012 / 12:50:26 / cg"
0bcaed8e460b added: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11579
diff changeset
  2232
!
0bcaed8e460b added: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11579
diff changeset
  2233
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2234
stringWithAllIndexedVarValues
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2235
    |nIdx s names maxLen varString padLeft|
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2236
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2237
    nIdx := object size.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2238
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2239
    s := CharacterWriteStream on:''.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2240
    names := self indexList.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2241
    names size > 0 ifTrue:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2242
        maxLen := (names collect:[:eachName | eachName printString size]) max.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2243
        padLeft := names conform:[:eachIdx | eachIdx isInteger].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2244
        
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2245
        names do:[:eachIdx |
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2246
            |val|
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2247
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2248
            padLeft ifTrue:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2249
                s nextPutAll:(eachIdx printStringLeftPaddedTo:maxLen).
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2250
            ] ifFalse:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2251
                s nextPutAll:((eachIdx printString , ' ') paddedTo:maxLen+1 with:$.).
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2252
            ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2253
            s nextPutAll:' : '.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2254
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2255
            val := self indexedValueAtKey:eachIdx.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2256
11251
00baec48d015 changed:
Claus Gittinger <cg@exept.de>
parents: 11250
diff changeset
  2257
            ((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
  2258
                s cr.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2259
                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
  2260
            ] ifFalse:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2261
                varString := self basicDisplayStringForValue:val.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2262
                (varString includes:Character cr) ifTrue:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2263
                    varString := varString copyTo:(varString indexOf:Character cr)-1.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2264
                    varString := varString , '...'.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2265
                ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2266
                s nextPutLine:varString.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2267
            ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2268
        ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2269
    ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2270
    nShown < nIdx ifTrue:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2271
        s nextPutLine:' ...'.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2272
    ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2273
    ^ s contents
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2274
11251
00baec48d015 changed:
Claus Gittinger <cg@exept.de>
parents: 11250
diff changeset
  2275
    "Modified: / 12-02-2012 / 10:52:04 / cg"
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2276
!
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2277
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2278
stringWithAllInstVarValues
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2279
    ^ self stringWithAllInstVarValuesFor:object level:0
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2280
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2281
    "Modified: / 31-01-2012 / 18:23:11 / cg"
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2282
!
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2283
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2284
stringWithAllInstVarValuesFor:anObject level:lvl
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2285
    |s names maxLen|
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2286
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2287
    s := CharacterWriteStream on:''.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2288
    names := anObject class allInstVarNames.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2289
    maxLen := (names collect:[:eachName | eachName size]) max.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2290
    names keysAndValuesDo:[:eachInstVarIndex :eachInstVarName |
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2291
        |val valString|
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2292
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2293
        val := anObject instVarAt:eachInstVarIndex.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2294
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2295
        s spaces:lvl.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2296
        s nextPutAll:((eachInstVarName , ' ') paddedTo:maxLen+1 with:$.).
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2297
        s nextPutAll:' : '.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2298
11251
00baec48d015 changed:
Claus Gittinger <cg@exept.de>
parents: 11250
diff changeset
  2299
        ((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
  2300
            s cr.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2301
            self appendDisplayStringForElementsOf:val indent:lvl pad:maxLen+1+1 to:s.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2302
        ] ifFalse:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2303
            valString := self basicDisplayStringForValue:val.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2304
            (valString includes:Character cr) ifTrue:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2305
                valString := valString copyTo:(valString indexOf:Character cr)-1.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2306
                valString := valString , '...'.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2307
            ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2308
            s nextPutAll:valString.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2309
            s cr.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2310
        ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2311
    ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2312
    ^ s contents
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2313
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2314
    "Created: / 31-01-2012 / 18:23:15 / cg"
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2315
!
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2316
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2317
stringWithMessages:which
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2318
    |cls s messages |
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2319
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2320
    s := CharacterWriteStream on:''.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2321
    cls := object class.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2322
    which == #local ifTrue:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2323
        messages := cls selectors.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2324
    ] ifFalse:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2325
        which == #all ifTrue:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2326
            messages := cls allSelectors.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2327
        ] ifFalse:[
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2328
            messages := cls allSelectors copy asSet removeAll:cls selectors; yourself.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2329
        ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2330
    ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2331
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2332
    messages asOrderedCollection sort do:[:eachSelector |
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2333
        s nextPutAll:eachSelector.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2334
        s cr.
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2335
    ].
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2336
    ^ s contents
11579
0c14b5d9c07f added: #valueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11578
diff changeset
  2337
!
0c14b5d9c07f added: #valueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11578
diff changeset
  2338
0c14b5d9c07f added: #valueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11578
diff changeset
  2339
valueStringInListEntryForValue:value
0c14b5d9c07f added: #valueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11578
diff changeset
  2340
    "returns something to append to the name"
0c14b5d9c07f added: #valueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11578
diff changeset
  2341
0c14b5d9c07f added: #valueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11578
diff changeset
  2342
    |valString|
0c14b5d9c07f added: #valueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11578
diff changeset
  2343
11580
0bcaed8e460b added: #plainValueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11579
diff changeset
  2344
    valString := self plainValueStringInListEntryForValue:value.
11579
0c14b5d9c07f added: #valueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11578
diff changeset
  2345
    valString isNil ifTrue:[^ ''].
0c14b5d9c07f added: #valueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11578
diff changeset
  2346
    ^ ' <',valString,'>'
0c14b5d9c07f added: #valueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11578
diff changeset
  2347
0c14b5d9c07f added: #valueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11578
diff changeset
  2348
    "Created: / 13-06-2012 / 12:04:31 / cg"
11250
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2349
! !
a7ed642b37fa added: #appendDisplayStringForElementsOf:indent:pad:to:
Claus Gittinger <cg@exept.de>
parents: 11247
diff changeset
  2350
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  2351
!InspectorView methodsFor:'private'!
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  2352
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2353
baseInspectedObjectClass
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2354
    ^ Object
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2355
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2356
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2357
!
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2358
647
1791ceddf2ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 644
diff changeset
  2359
defaultLabel
9736
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
  2360
    ^ 'InstVars & Pseudo Slots'
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
  2361
94b7fca09158 class definition
Claus Gittinger <cg@exept.de>
parents: 9703
diff changeset
  2362
    "Modified: / 05-02-2011 / 14:06:26 / cg"
647
1791ceddf2ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 644
diff changeset
  2363
!
1791ceddf2ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 644
diff changeset
  2364
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2365
derivedFieldNames
9701
c8c52d6b74e3 changed: #derivedFieldNames
Claus Gittinger <cg@exept.de>
parents: 9700
diff changeset
  2366
    |d actionItems valueItems otherItems|
7297
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  2367
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  2368
    d := self derivedFields.
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  2369
    (d isKindOf:Dictionary) ifTrue:[
9701
c8c52d6b74e3 changed: #derivedFieldNames
Claus Gittinger <cg@exept.de>
parents: 9700
diff changeset
  2370
        actionItems := d keys select:[:k | k startsWith:'!!'] as:OrderedCollection .
c8c52d6b74e3 changed: #derivedFieldNames
Claus Gittinger <cg@exept.de>
parents: 9700
diff changeset
  2371
        valueItems := d keys select:[:k | k startsWith:'-'] as:OrderedCollection.
c8c52d6b74e3 changed: #derivedFieldNames
Claus Gittinger <cg@exept.de>
parents: 9700
diff changeset
  2372
        otherItems := d keys select:[:k | (k startsWithAnyOf:#('!!' '-')) not] as:OrderedCollection.
c8c52d6b74e3 changed: #derivedFieldNames
Claus Gittinger <cg@exept.de>
parents: 9700
diff changeset
  2373
        ^ ((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
  2374
          ,
c8c52d6b74e3 changed: #derivedFieldNames
Claus Gittinger <cg@exept.de>
parents: 9700
diff changeset
  2375
          otherItems sort
7297
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  2376
    ].
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  2377
    ^ d collect:[:eachEntry |
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2378
            |nm|
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2379
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2380
            nm := (eachEntry isAssociation) 
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2381
                    ifTrue:[ eachEntry key ] 
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2382
                    ifFalse:[ eachEntry first ].
8699
c15ffeafbe35 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8689
diff changeset
  2383
            '-',nm allItalic
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2384
        ]
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2385
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2386
    "Created: / 03-08-2006 / 15:02:54 / cg"
9701
c8c52d6b74e3 changed: #derivedFieldNames
Claus Gittinger <cg@exept.de>
parents: 9700
diff changeset
  2387
    "Modified: / 27-01-2011 / 11:45:17 / cg"
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2388
!
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2389
6823
40d460dee8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6491
diff changeset
  2390
derivedFields
7054
89bf9a75fb79 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6940
diff changeset
  2391
    "the check below is not sufficient - if someone catches messages, for example.
89bf9a75fb79 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6940
diff changeset
  2392
     Therefore, we do a manual lookup here:"
8962
b0e0907c0bf7 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 8908
diff changeset
  2393
b0e0907c0bf7 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 8908
diff changeset
  2394
    (object class whichClassIncludesSelector:#inspectorExtraAttributes) isNil ifTrue:[
7054
89bf9a75fb79 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6940
diff changeset
  2395
        ^ #()
89bf9a75fb79 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6940
diff changeset
  2396
    ].
6823
40d460dee8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6491
diff changeset
  2397
    ^ [object inspectorExtraAttributes]
40d460dee8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6491
diff changeset
  2398
                on: MessageNotUnderstood
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2399
                do: [:ex | ex return: #() ]
6823
40d460dee8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6491
diff changeset
  2400
40d460dee8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6491
diff changeset
  2401
    "Created: / 17-07-2006 / 11:02:32 / cg"
7054
89bf9a75fb79 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6940
diff changeset
  2402
    "Modified: / 29-08-2006 / 13:03:31 / cg"
6823
40d460dee8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6491
diff changeset
  2403
!
40d460dee8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6491
diff changeset
  2404
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2405
extraNamedFieldNames
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2406
    ^ self extraNamedFields 
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2407
        collect:[:eachEntry |
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2408
            |nm|
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2409
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2410
            nm := (eachEntry isAssociation) 
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2411
                    ifTrue:[ eachEntry key ] 
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2412
                    ifFalse:[ eachEntry first ].
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2413
            '`',nm
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2414
        ]
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2415
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2416
    "Modified: / 03-08-2006 / 15:17:19 / cg"
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2417
!
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2418
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2419
extraNamedFields
6940
c95880ea4d17 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6851
diff changeset
  2420
    "by redefining inspectorExtraNamedFields to return an array of
c95880ea4d17 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6851
diff changeset
  2421
     pseudo-fieldName->value associations, the inspectors left list can be extended"
c95880ea4d17 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6851
diff changeset
  2422
7054
89bf9a75fb79 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6940
diff changeset
  2423
    "the check below is not sufficient - if someone catches messages, for example.
89bf9a75fb79 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6940
diff changeset
  2424
     Therefore, we do a manual lookup here:"
8962
b0e0907c0bf7 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 8908
diff changeset
  2425
b0e0907c0bf7 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 8908
diff changeset
  2426
    (object class whichClassIncludesSelector:#inspectorExtraNamedFields) isNil ifTrue:[
7054
89bf9a75fb79 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6940
diff changeset
  2427
        ^ #()
89bf9a75fb79 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6940
diff changeset
  2428
    ].
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2429
    ^ [object inspectorExtraNamedFields]
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2430
                on: MessageNotUnderstood
6940
c95880ea4d17 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6851
diff changeset
  2431
                do: [:ex | ex return: #() ]
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2432
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2433
    "Created: / 03-08-2006 / 13:34:18 / cg"
7054
89bf9a75fb79 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6940
diff changeset
  2434
    "Modified: / 29-08-2006 / 13:03:57 / cg"
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2435
!
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2436
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2437
extraNamedVarIndexForLine:lineNr
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2438
    "helper - return the index for a named instVar;
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2439
     nil, if self or a keyed instvar is selected."
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2440
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2441
    |idx nNamedInstvarsShown nExtraNamedInstvarsShown cls baseCls firstRealIndex line|
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2442
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2443
    lineNr isNil ifTrue:[^ nil].
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2444
    firstRealIndex := 1.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2445
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2446
    idx := lineNr.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2447
    self hasSelfEntry ifTrue:[
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2448
        (lineNr == 1 or:[lineNr isNil]) ifTrue:[
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2449
            ^ nil "/ self selected
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2450
        ].
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2451
        idx := idx - 1.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2452
        firstRealIndex := 2.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2453
    ].
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2454
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2455
    [line := self listEntryAt:firstRealIndex. 
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2456
     (line startsWith:'-') and:[line size < 2 or:[line second isDigit not]]] whileTrue:[
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2457
        firstRealIndex := firstRealIndex + 1.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2458
        idx := idx - 1.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2459
    ].
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2460
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2461
    cls := object class.
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2462
    baseCls := self baseInspectedObjectClass.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2463
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2464
    nNamedInstvarsShown := cls instSize.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2465
    "/ only the namedInstvars below baseInspectedObjectClass
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2466
    "/ are shown ...
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2467
    (cls == baseCls or:[cls isSubclassOf:baseCls]) ifTrue:[
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2468
        nNamedInstvarsShown := nNamedInstvarsShown - baseCls instSize.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2469
    ].
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2470
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2471
    idx := idx - nNamedInstvarsShown.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2472
    idx < 1 ifTrue:[
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2473
        ^ nil.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2474
    ].
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2475
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2476
    nExtraNamedInstvarsShown := self extraNamedFields size.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2477
    idx <= nExtraNamedInstvarsShown ifTrue:[
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2478
        ^ idx.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2479
    ].
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2480
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2481
    ^ nil "/ indexed instvar or other selected
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2482
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2483
    "Created: / 03-08-2006 / 13:45:14 / cg"
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2484
    "Modified: / 16-05-2012 / 17:54:52 / cg"
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  2485
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  2486
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  2487
fieldList 
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  2488
    "return a list of names to show in the selectionList.
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  2489
     Leave hasMore as true, if a '...' entry should be added."
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  2490
6840
52d3f2cbf130 extraNamedField support
Claus Gittinger <cg@exept.de>
parents: 6823
diff changeset
  2491
    |derivedFieldList namedFieldList fieldList cls indexedList extraNamedFieldList|
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  2492
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2493
    object isNil ifTrue:[
4095
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  2494
        ^ self hasSelfEntry ifFalse:[ #() ] ifTrue:[ #('-self') ]
3338
c2691e356f51 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3318
diff changeset
  2495
    ].
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2496
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2497
    cls := object class.
7297
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  2498
2275
b402f5173c79 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2271
diff changeset
  2499
    self topView withWaitCursorDo:[
6823
40d460dee8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6491
diff changeset
  2500
        namedFieldList := self namedFieldList.
3868
77040d8d3526 all indexed vars
Claus Gittinger <cg@exept.de>
parents: 3657
diff changeset
  2501
        indexedList := self indexedFieldList.
6840
52d3f2cbf130 extraNamedField support
Claus Gittinger <cg@exept.de>
parents: 6823
diff changeset
  2502
        extraNamedFieldList := OrderedCollection new.
3349
b9a9138f8017 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3338
diff changeset
  2503
4095
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  2504
        self hasSelfEntry ifTrue:[
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  2505
            self suppressPseudoSlots ifFalse:[
6823
40d460dee8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6491
diff changeset
  2506
                derivedFieldList := OrderedCollection new.
9370
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2507
                derivedFieldList addAll:(self pseudoFieldNamesWithIndexed:(indexedList notEmptyOrNil)).
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2508
                derivedFieldList addAll:(self derivedFieldNames).
7297
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  2509
                extraNamedFieldList addAll:(self extraNamedFieldNames).
3608
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  2510
            ].
3525
761785907491 checkin from browser
martin
parents: 3432
diff changeset
  2511
        ].
531
4b079a4e85b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 527
diff changeset
  2512
6823
40d460dee8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6491
diff changeset
  2513
        fieldList := OrderedCollection new.
40d460dee8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6491
diff changeset
  2514
        derivedFieldList notNil ifTrue:[fieldList addAll:derivedFieldList].
40d460dee8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6491
diff changeset
  2515
        namedFieldList notNil ifTrue:[fieldList addAll:namedFieldList].
6840
52d3f2cbf130 extraNamedField support
Claus Gittinger <cg@exept.de>
parents: 6823
diff changeset
  2516
        extraNamedFieldList notNil ifTrue:[fieldList addAll:extraNamedFieldList].
6823
40d460dee8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6491
diff changeset
  2517
        indexedList notNil ifTrue:[fieldList addAll:indexedList].
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  2518
    ].
6823
40d460dee8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6491
diff changeset
  2519
    ^ fieldList
531
4b079a4e85b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 527
diff changeset
  2520
7297
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  2521
    "Modified: / 18-09-2006 / 21:16:03 / cg"
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  2522
!
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  2523
295
92bcaa9996ae minor changes for ContextInspector required
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  2524
hasSelfEntry
4095
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  2525
    ^ hideReceiver not and:[self suppressPseudoSlots not]
295
92bcaa9996ae minor changes for ContextInspector required
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  2526
92bcaa9996ae minor changes for ContextInspector required
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  2527
    "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
  2528
    "Modified: 28.6.1996 / 15:13:41 / cg"
295
92bcaa9996ae minor changes for ContextInspector required
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  2529
!
92bcaa9996ae minor changes for ContextInspector required
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  2530
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  2531
indexList 
9557
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  2532
    "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
  2533
     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
  2534
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2535
    |objSz n cls list|
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2536
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2537
    cls := object class.
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2538
3868
77040d8d3526 all indexed vars
Claus Gittinger <cg@exept.de>
parents: 3657
diff changeset
  2539
    cls isVariable ifFalse:[^ nil ].
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2540
11578
f750a9c9fb7a +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11576
diff changeset
  2541
    n := objSz := self numIndexedFields.
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2542
    (n > nShown) ifTrue:[
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2543
        n := nShown.
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2544
        hasMore := true.
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2545
    ].
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2546
    list := (1 to:n).
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2547
    ^ list 
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2548
"/        keysAndValuesCollect:[:idx :nm |
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2549
"/            LabelAndIcon string:nm image:(self iconForValue:(object basicAt:idx))
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2550
"/        ].
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2551
11578
f750a9c9fb7a +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11576
diff changeset
  2552
    "Modified: / 13-06-2012 / 10:14:13 / cg"
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  2553
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  2554
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2555
indexOfFirstNamedInstvarInList
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2556
    "helper - return the index for the first named instVar;
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2557
     nil, if self or a keyed instvar is selected."
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2558
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2559
    |firstRealIndex|
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2560
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2561
    firstRealIndex := 1.
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2562
    self hasSelfEntry ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2563
        firstRealIndex := 2.
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2564
    ].
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2565
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2566
    [
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2567
        |line|
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2568
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2569
        line := self listEntryAt:firstRealIndex. 
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2570
        (line startsWith:'-') and:[line size < 2 or:[line second isDigit not]]
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2571
    ] whileTrue:[
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2572
        firstRealIndex := firstRealIndex + 1.
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2573
    ].
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2574
    ^ firstRealIndex
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2575
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2576
    "Modified: / 16-05-2012 / 17:54:46 / cg"
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2577
!
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2578
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  2579
indexedFieldList 
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  2580
    "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
  2581
     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
  2582
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2583
    |l maxIndex sz list|
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  2584
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  2585
    l := self indexList.
10858
6a95213e591a changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 10846
diff changeset
  2586
    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
  2587
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  2588
    integerDisplayRadix ~~ 10 ifTrue:[
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  2589
        maxIndex := l last.
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  2590
        maxIndex isInteger ifTrue:[
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  2591
            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
  2592
        ] ifFalse:[
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  2593
            sz := 0
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  2594
        ].
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2595
        list := l collect:
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2596
            [:i | 
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2597
                i isInteger ifTrue:[
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2598
                    (i printStringRadix:integerDisplayRadix size:sz fill:$0) 
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2599
                ] ifFalse:[
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2600
                    i printString
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2601
                ]
9557
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  2602
            ]
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  2603
    ] ifFalse:[
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2604
        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
  2605
    ].
14b8fe98a8ed can now display values and indices in binary and hex.
Claus Gittinger <cg@exept.de>
parents: 9504
diff changeset
  2606
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2607
    ^ list
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2608
        keysAndValuesCollect:[:idx :nm |
11808
3180e01a7b5e changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11768
diff changeset
  2609
            |val|
3180e01a7b5e changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11768
diff changeset
  2610
3180e01a7b5e changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11768
diff changeset
  2611
            [
11823
67a370901574 changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11810
diff changeset
  2612
                val := self indexedValueAtIndex:idx.
11808
3180e01a7b5e changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11768
diff changeset
  2613
            ] on:Error do:[
11823
67a370901574 changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11810
diff changeset
  2614
                val := ''
11808
3180e01a7b5e changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11768
diff changeset
  2615
            ].
11823
67a370901574 changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11810
diff changeset
  2616
"/            [
67a370901574 changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11810
diff changeset
  2617
"/                val := object at:idx.
67a370901574 changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11810
diff changeset
  2618
"/            ] on:Error do:[
67a370901574 changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11810
diff changeset
  2619
"/                [
67a370901574 changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11810
diff changeset
  2620
"/                    val := object basicAt:idx
67a370901574 changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11810
diff changeset
  2621
"/                ] on:Error do:[
67a370901574 changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11810
diff changeset
  2622
"/                    val := ''
67a370901574 changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11810
diff changeset
  2623
"/                ]
67a370901574 changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11810
diff changeset
  2624
"/            ].
11808
3180e01a7b5e changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11768
diff changeset
  2625
            self listEntryForName:nm value:val
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2626
        ].
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2627
11808
3180e01a7b5e changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11768
diff changeset
  2628
"/    ^ list.
3180e01a7b5e changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11768
diff changeset
  2629
11823
67a370901574 changed: #indexedFieldList
Claus Gittinger <cg@exept.de>
parents: 11810
diff changeset
  2630
    "Modified: / 27-09-2012 / 21:51:58 / cg"
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  2631
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  2632
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  2633
indexedValueAtIndex:idx
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2634
    ^ object basicAt:idx
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  2635
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  2636
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  2637
indexedValueAtIndex:idx put:newValue
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2638
    object basicAt:idx put:newValue
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2639
!
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2640
3884
4329e6c615a5 dont crash in set showing all indexed vars
james
parents: 3874
diff changeset
  2641
indexedValueAtKey:key
4314
7dbc212d0cd2 kludge to show Float bytes
Claus Gittinger <cg@exept.de>
parents: 4268
diff changeset
  2642
    "/ kludge
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2643
    object isLimitedPrecisionReal ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2644
        ^ object basicAt:key
4314
7dbc212d0cd2 kludge to show Float bytes
Claus Gittinger <cg@exept.de>
parents: 4268
diff changeset
  2645
    ].
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2646
    ^ object at:key
3884
4329e6c615a5 dont crash in set showing all indexed vars
james
parents: 3874
diff changeset
  2647
!
4329e6c615a5 dont crash in set showing all indexed vars
james
parents: 3874
diff changeset
  2648
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2649
instVarIndexForLine:lineNr
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2650
    "helper - return the index for a named instVar;
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2651
     nil, if self or a keyed instvar is selected."
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2652
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2653
    |idx nNamedInstvarsShown cls baseCls firstRealIndex line nm|
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2654
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2655
    lineNr isNil ifTrue:[^ nil].
3349
b9a9138f8017 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3338
diff changeset
  2656
    firstRealIndex := 1.
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2657
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2658
    line := (self listEntryAt:lineNr) string. 
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2659
    ((line startsWith:'-') and:[line size < 2 or:[line second isDigit not]])
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2660
    ifTrue:[^ nil].
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2661
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2662
    nm := line asCollectionOfWords first.
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2663
    idx := object class allInstVarNames indexOf:nm.
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2664
    idx == 0 ifTrue:[^ nil].
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2665
    ^ idx.    
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2666
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2667
    [
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2668
        line := self listEntryAt:firstRealIndex. 
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2669
        (line startsWith:'-') and:[line size < 2 or:[line second isDigit not]]
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2670
    ] whileTrue:[
3349
b9a9138f8017 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3338
diff changeset
  2671
        firstRealIndex := firstRealIndex + 1.
b9a9138f8017 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3338
diff changeset
  2672
        idx := idx - 1.
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2673
    ].
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2674
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2675
    cls := object class.
2447
95055cf58b2e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2446
diff changeset
  2676
    baseCls := self baseInspectedObjectClass.
95055cf58b2e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2446
diff changeset
  2677
95055cf58b2e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2446
diff changeset
  2678
    nNamedInstvarsShown := cls instSize.
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2679
    "/ only the namedInstvars below baseInspectedObjectClass
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2680
    "/ are shown ...
8962
b0e0907c0bf7 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 8908
diff changeset
  2681
    (cls includesBehavior:baseCls) ifTrue:[
2447
95055cf58b2e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2446
diff changeset
  2682
        nNamedInstvarsShown := nNamedInstvarsShown - baseCls instSize.
95055cf58b2e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2446
diff changeset
  2683
    ].
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2684
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2685
    idx <= nNamedInstvarsShown ifTrue:[
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2686
        ^ idx + self baseInspectedObjectClass instSize.
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2687
    ].
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2688
    ^ nil "/ indexed instvar or other selected
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2689
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2690
    "Modified: / 20-07-2012 / 11:11:10 / cg"
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2691
!
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2692
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2693
keyIndexForLine:lineNr
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2694
    "helper - return the index of the key-list;
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2695
     nil, if self or a namedInstVar is selected."
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2696
6840
52d3f2cbf130 extraNamedField support
Claus Gittinger <cg@exept.de>
parents: 6823
diff changeset
  2697
    |idx nNamedInstvarsShown nExtraNamedInstvarsShown cls baseCls firstRealIndex line|
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2698
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2699
    lineNr isNil ifTrue:[^ nil].
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2700
3349
b9a9138f8017 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3338
diff changeset
  2701
    firstRealIndex := 1.
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2702
    idx := lineNr.
4095
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  2703
    self hasSelfEntry ifTrue:[
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2704
        (lineNr == 1 or:[lineNr isNil]) ifTrue:[
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2705
            ^ nil "/ self selected
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2706
        ].
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2707
        idx := idx - 1.
3349
b9a9138f8017 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3338
diff changeset
  2708
        firstRealIndex := firstRealIndex + 1.
b9a9138f8017 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3338
diff changeset
  2709
    ].
b9a9138f8017 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3338
diff changeset
  2710
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2711
    [line := self listEntryAt:firstRealIndex. 
5881
ef6791c315ab oops - out of bounds error fixed
Claus Gittinger <cg@exept.de>
parents: 5845
diff changeset
  2712
     line notNil
ef6791c315ab oops - out of bounds error fixed
Claus Gittinger <cg@exept.de>
parents: 5845
diff changeset
  2713
     and:[(line startsWith:'-') and:[line size < 2 or:[line second isDigit not]]]
ef6791c315ab oops - out of bounds error fixed
Claus Gittinger <cg@exept.de>
parents: 5845
diff changeset
  2714
    ] whileTrue:[
3349
b9a9138f8017 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3338
diff changeset
  2715
        firstRealIndex := firstRealIndex + 1.
b9a9138f8017 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3338
diff changeset
  2716
        idx := idx - 1.
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2717
    ].
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2718
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2719
    cls := object class.
2447
95055cf58b2e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2446
diff changeset
  2720
    baseCls := self baseInspectedObjectClass.
95055cf58b2e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2446
diff changeset
  2721
95055cf58b2e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2446
diff changeset
  2722
    nNamedInstvarsShown := cls instSize.
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2723
    "/ only the namedInstvars below baseInspectedObjectClass
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2724
    "/ are shown ...
8962
b0e0907c0bf7 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 8908
diff changeset
  2725
    (cls includesBehavior:baseCls) ifTrue:[
2447
95055cf58b2e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2446
diff changeset
  2726
        nNamedInstvarsShown := nNamedInstvarsShown - baseCls instSize.
95055cf58b2e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2446
diff changeset
  2727
    ].
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2728
    nExtraNamedInstvarsShown := self extraNamedFields size.
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2729
6840
52d3f2cbf130 extraNamedField support
Claus Gittinger <cg@exept.de>
parents: 6823
diff changeset
  2730
    idx <= (nNamedInstvarsShown+nExtraNamedInstvarsShown) ifTrue:[
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2731
        ^ nil "/ named instVar selected.
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2732
    ].
6840
52d3f2cbf130 extraNamedField support
Claus Gittinger <cg@exept.de>
parents: 6823
diff changeset
  2733
    ^ idx - (nNamedInstvarsShown+nExtraNamedInstvarsShown).
2193
3d7b1044e8c8 fixed access to namedInstvars
Claus Gittinger <cg@exept.de>
parents: 2188
diff changeset
  2734
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2735
    "Modified: / 16-05-2012 / 17:54:34 / cg"
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2736
!
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2737
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2738
listEntryAt:lineNr
11514
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
  2739
    |entry|
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
  2740
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
  2741
    entry := listView at:lineNr.
Claus Gittinger <cg@exept.de>
parents: 11511
diff changeset
  2742
    entry isNil ifTrue:[^ entry].
11763
f3f1b32db84b changed: #listEntryAt:
Claus Gittinger <cg@exept.de>
parents: 11749
diff changeset
  2743
    ^ entry perform:#string ifNotUnderstood:[ entry printString ].
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2744
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2745
    "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
  2746
!
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2747
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2748
namedFieldAt:idx
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2749
    ^ object instVarAt:idx
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2750
!
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2751
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2752
namedFieldAt:idx put:newValue
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2753
    ^ object instVarAt:idx put:newValue
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2754
!
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2755
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2756
namedFieldList 
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2757
    "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
  2758
11715
efa49c4a4f56 changed: #namedFieldList
Claus Gittinger <cg@exept.de>
parents: 11702
diff changeset
  2759
    |aList cls baseCls offset|
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2760
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2761
    cls := object class.
2447
95055cf58b2e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2446
diff changeset
  2762
    baseCls := self baseInspectedObjectClass.
95055cf58b2e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2446
diff changeset
  2763
3351
64cdbec2dd8e text display
Claus Gittinger <cg@exept.de>
parents: 3349
diff changeset
  2764
    aList := OrderedCollection new.
3338
c2691e356f51 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3318
diff changeset
  2765
3351
64cdbec2dd8e text display
Claus Gittinger <cg@exept.de>
parents: 3349
diff changeset
  2766
    aList addAll:(cls allInstVarNames).
11715
efa49c4a4f56 changed: #namedFieldList
Claus Gittinger <cg@exept.de>
parents: 11702
diff changeset
  2767
    offset := 0.
8962
b0e0907c0bf7 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 8908
diff changeset
  2768
    (cls includesBehavior:baseCls) ifTrue:[
3351
64cdbec2dd8e text display
Claus Gittinger <cg@exept.de>
parents: 3349
diff changeset
  2769
        "/ hide some stuff
11715
efa49c4a4f56 changed: #namedFieldList
Claus Gittinger <cg@exept.de>
parents: 11702
diff changeset
  2770
        offset := self baseInspectedObjectClass instSize.
efa49c4a4f56 changed: #namedFieldList
Claus Gittinger <cg@exept.de>
parents: 11702
diff changeset
  2771
        aList := aList copyFrom:(offset + 1).
3351
64cdbec2dd8e text display
Claus Gittinger <cg@exept.de>
parents: 3349
diff changeset
  2772
    ].
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2773
    aList := aList 
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2774
                keysAndValuesCollect:[:idx :nm |
11846
1e96f0c3ccb1 changed: #namedFieldList
Stefan Vogel <sv@exept.de>
parents: 11839
diff changeset
  2775
                    self listEntryForName:nm value:(object isLazyValue ifTrue:['Lazy value'] ifFalse:[object instVarAt:idx+offset])
11629
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2776
                ].
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2777
    sortOrder == #alphabetical ifTrue:[
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2778
        aList sort:[:a :b | a string < b string].
b45b48667096 changed: #editMenu
Claus Gittinger <cg@exept.de>
parents: 11603
diff changeset
  2779
    ].
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2780
    ^ aList
3349
b9a9138f8017 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3338
diff changeset
  2781
11715
efa49c4a4f56 changed: #namedFieldList
Claus Gittinger <cg@exept.de>
parents: 11702
diff changeset
  2782
    "Modified: / 29-07-2012 / 12:11:06 / cg"
6372
d59bab947578 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6283
diff changeset
  2783
!
d59bab947578 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6283
diff changeset
  2784
11578
f750a9c9fb7a +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11576
diff changeset
  2785
numIndexedFields
f750a9c9fb7a +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11576
diff changeset
  2786
    ^ inspectedObject basicSize
f750a9c9fb7a +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11576
diff changeset
  2787
f750a9c9fb7a +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11576
diff changeset
  2788
    "Created: / 13-06-2012 / 10:13:24 / cg"
f750a9c9fb7a +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11576
diff changeset
  2789
!
f750a9c9fb7a +show all (menu)
Claus Gittinger <cg@exept.de>
parents: 11576
diff changeset
  2790
9370
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2791
pseudoFieldNames
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2792
    "return a list of names to show in the selectionList.
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2793
     Leave hasMore as true, if a '...' entry should be added."
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2794
11565
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  2795
    ^ self pseudoFieldNamesWithIndexed: object class isVariable
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  2796
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  2797
    "Modified: / 06-06-2012 / 11:56:56 / cg"
9370
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2798
!
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2799
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2800
pseudoFieldNamesWithIndexed:withIndexed
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2801
    "return a list of names to show in the selectionList.
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2802
     Leave hasMore as true, if a '...' entry should be added."
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2803
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2804
    |list cls|
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2805
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2806
    cls := object class.
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2807
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2808
    list := OrderedCollection new.
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2809
    list add:'-' , 'self' allItalic.
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2810
    list add:'-' , 'local messages' allItalic.
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2811
    "/ list add:'-' , 'inherited messages' allItalic.
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2812
    list add:'-' , 'all messages' allItalic.
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2813
    list add:'-' , 'hash' allItalic.
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2814
    list add:'-' , 'identityHash' allItalic.
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2815
11565
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  2816
    withIndexed ifTrue:[
11579
0c14b5d9c07f added: #valueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11578
diff changeset
  2817
        list add:'-' , 'basicSize' allItalic, (self valueStringInListEntryForValue:object basicSize).
11565
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  2818
    ].
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  2819
    object isCollection ifTrue:[
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  2820
        (cls whichClassImplements:#size) == (cls whichClassImplements:#basicSize) ifFalse:[
11579
0c14b5d9c07f added: #valueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11578
diff changeset
  2821
            list add:'-' , 'size' allItalic , (self valueStringInListEntryForValue:object size).
11565
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  2822
        ]
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  2823
    ].
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  2824
9370
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2825
    cls hasImmediateInstances ifFalse:[
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2826
        object dependents notEmptyOrNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2827
            list add:'-' , 'dependents' allItalic.
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2828
        ].
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2829
    ].
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2830
    cls instSize > 0 ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2831
        list add:'-' , 'all inst vars' allItalic.
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2832
    ].
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2833
    (withIndexed and:[self showAllIndexedVarsInFieldList]) ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2834
        list add:'-' , 'all indexed vars' allItalic.
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2835
    ].
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2836
    ^ list
11565
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  2837
11579
0c14b5d9c07f added: #valueStringInListEntryForValue:
Claus Gittinger <cg@exept.de>
parents: 11578
diff changeset
  2838
    "Modified: / 13-06-2012 / 12:10:16 / cg"
9370
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2839
!
Claus Gittinger <cg@exept.de>
parents: 9367
diff changeset
  2840
3608
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  2841
setAcceptAction
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  2842
    "set the codeViews accept action"
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  2843
9375
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  2844
    |idx acceptAction sel|
3608
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  2845
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  2846
    acceptAction := [:theText | self doAccept:theText asString].
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  2847
9375
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  2848
    idx := self theSingleSelectionIndex.
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  2849
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  2850
    (idx isNil 
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2851
    or:[ object class hasImmediateInstances])
3608
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  2852
    ifTrue:[
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  2853
        acceptAction := nil.
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  2854
    ] ifFalse:[
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2855
        sel := self listEntryAt:idx.
3608
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  2856
3868
77040d8d3526 all indexed vars
Claus Gittinger <cg@exept.de>
parents: 3657
diff changeset
  2857
        (sel startsWith:'-all') ifTrue:[
3608
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  2858
            acceptAction := nil.
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  2859
        ].
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  2860
        (sel startsWith:'-hash') ifTrue:[
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  2861
            acceptAction := nil.
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  2862
        ].
11565
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  2863
        (sel startsWith:'-basicSize') ifTrue:[
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  2864
            acceptAction := nil.
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  2865
        ].
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  2866
        (sel startsWith:'-size') ifTrue:[
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  2867
            acceptAction := nil.
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  2868
        ].
3608
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  2869
        (sel startsWith:'-identityHash') ifTrue:[
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  2870
            acceptAction := nil.
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  2871
        ].
3634
db094dd598f7 -dependents
Claus Gittinger <cg@exept.de>
parents: 3608
diff changeset
  2872
        (sel startsWith:'-dependents') ifTrue:[
db094dd598f7 -dependents
Claus Gittinger <cg@exept.de>
parents: 3608
diff changeset
  2873
            acceptAction := nil.
db094dd598f7 -dependents
Claus Gittinger <cg@exept.de>
parents: 3608
diff changeset
  2874
        ].
5134
536fbfead179 source field for methods
Claus Gittinger <cg@exept.de>
parents: 4999
diff changeset
  2875
        (sel startsWith:'-source') ifTrue:[
536fbfead179 source field for methods
Claus Gittinger <cg@exept.de>
parents: 4999
diff changeset
  2876
            acceptAction := nil.
536fbfead179 source field for methods
Claus Gittinger <cg@exept.de>
parents: 4999
diff changeset
  2877
        ].
3608
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  2878
    ].
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  2879
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  2880
    workspace acceptAction:acceptAction.
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2881
11565
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  2882
    "Modified: / 06-06-2012 / 11:57:27 / cg"
3608
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  2883
!
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  2884
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  2885
setDoItAction
542
12d3bf714076 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 531
diff changeset
  2886
    "set the codeViews doit action"
12d3bf714076 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 531
diff changeset
  2887
12d3bf714076 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 531
diff changeset
  2888
    workspace 
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2889
        doItAction:[:theCode |
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2890
            |evaluator|
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  2891
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2892
            (evaluator := object class evaluatorClass)
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2893
            notNil ifTrue:[
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2894
                evaluator
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2895
                    evaluate:theCode 
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2896
                    in:nil 
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2897
                    receiver:object 
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2898
                    notifying:workspace 
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2899
                    logged:true 
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2900
                    ifFail:nil
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2901
            ] ifFalse:[
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2902
                'objects class provides no evaluator'
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2903
            ]
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2904
        ].
542
12d3bf714076 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 531
diff changeset
  2905
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2906
    object class evaluatorClass isNil ifTrue:[
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2907
        workspace doItAction:nil.
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  2908
        workspace acceptAction:nil.
1270
3dc841708edd disable accept/doIt, if instances class provides no evaluator
Claus Gittinger <cg@exept.de>
parents: 1235
diff changeset
  2909
    ]
3dc841708edd disable accept/doIt, if instances class provides no evaluator
Claus Gittinger <cg@exept.de>
parents: 1235
diff changeset
  2910
3dc841708edd disable accept/doIt, if instances class provides no evaluator
Claus Gittinger <cg@exept.de>
parents: 1235
diff changeset
  2911
    "Modified: 1.8.1997 / 21:47:09 / cg"
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  2912
!
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  2913
3884
4329e6c615a5 dont crash in set showing all indexed vars
james
parents: 3874
diff changeset
  2914
showAllIndexedVarsInFieldList
4329e6c615a5 dont crash in set showing all indexed vars
james
parents: 3874
diff changeset
  2915
    ^ true
4329e6c615a5 dont crash in set showing all indexed vars
james
parents: 3874
diff changeset
  2916
!
4329e6c615a5 dont crash in set showing all indexed vars
james
parents: 3874
diff changeset
  2917
9375
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  2918
theSingleSelectionIndex
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  2919
    "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
  2920
     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
  2921
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  2922
    |idx|
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  2923
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  2924
    idx := selectionIndex.
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  2925
    idx isCollection ifTrue:[
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  2926
        selectionIndex size == 1 ifTrue:[
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  2927
            ^ selectionIndex first
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  2928
        ].
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  2929
        ^ nil
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  2930
    ].
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  2931
    ^ selectionIndex
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  2932
!
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  2933
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  2934
valueAtLine:lineNr
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  2935
    "helper - return the value of the selected entry"
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  2936
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2937
    |idx l val|
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  2938
4095
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  2939
    (self hasSelfEntry
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2940
    and:[lineNr == 1 or:[lineNr isNil]]) ifTrue:[
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2941
        ^ object
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2942
    ].
2235
ce49947e61f7 migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents: 2193
diff changeset
  2943
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2944
    ((l := self listEntryAt:lineNr) startsWith:$-) ifTrue:[
11839
8eda3c0dda51 changed: #valueAtLine:
Claus Gittinger <cg@exept.de>
parents: 11835
diff changeset
  2945
        (l ~= '-' 
8eda3c0dda51 changed: #valueAtLine:
Claus Gittinger <cg@exept.de>
parents: 11835
diff changeset
  2946
        and:[(l at:2) isSeparator not
8eda3c0dda51 changed: #valueAtLine:
Claus Gittinger <cg@exept.de>
parents: 11835
diff changeset
  2947
        and:[(l at:2) isDigit not "negative number"]]) ifTrue:[
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2948
            ^ self valueForSpecialLine:l
3645
d88ce5dea1ce *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3639
diff changeset
  2949
        ].
3338
c2691e356f51 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3318
diff changeset
  2950
    ].
c2691e356f51 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3318
diff changeset
  2951
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2952
    "/ a named instVar ?
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2953
    idx := self instVarIndexForLine:lineNr.
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2954
    idx notNil ifTrue:[
3432
087493c18c74 class based exceptions - no longer need to send #breakPointSígnal
Claus Gittinger <cg@exept.de>
parents: 3428
diff changeset
  2955
        BreakPointInterrupt catch:[
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2956
            ^ self namedFieldAt:idx
2800
4e5792ade7aa menu fix
Claus Gittinger <cg@exept.de>
parents: 2724
diff changeset
  2957
        ]
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2958
    ].
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2959
6840
52d3f2cbf130 extraNamedField support
Claus Gittinger <cg@exept.de>
parents: 6823
diff changeset
  2960
    "/ an extra named field ?
52d3f2cbf130 extraNamedField support
Claus Gittinger <cg@exept.de>
parents: 6823
diff changeset
  2961
    idx := self extraNamedVarIndexForLine:lineNr.
52d3f2cbf130 extraNamedField support
Claus Gittinger <cg@exept.de>
parents: 6823
diff changeset
  2962
    idx notNil ifTrue:[
52d3f2cbf130 extraNamedField support
Claus Gittinger <cg@exept.de>
parents: 6823
diff changeset
  2963
        BreakPointInterrupt catch:[
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2964
            val := ((self extraNamedFields) at:idx) value.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2965
            val isBlock ifTrue:[ val := val value ].
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  2966
            ^ val
6840
52d3f2cbf130 extraNamedField support
Claus Gittinger <cg@exept.de>
parents: 6823
diff changeset
  2967
        ]
52d3f2cbf130 extraNamedField support
Claus Gittinger <cg@exept.de>
parents: 6823
diff changeset
  2968
    ].
52d3f2cbf130 extraNamedField support
Claus Gittinger <cg@exept.de>
parents: 6823
diff changeset
  2969
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2970
    "/ an indexed instVar ?
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2971
    idx := self keyIndexForLine:lineNr.
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2972
    idx notNil ifTrue:[
3432
087493c18c74 class based exceptions - no longer need to send #breakPointSígnal
Claus Gittinger <cg@exept.de>
parents: 3428
diff changeset
  2973
        BreakPointInterrupt catch:[
2800
4e5792ade7aa menu fix
Claus Gittinger <cg@exept.de>
parents: 2724
diff changeset
  2974
            ^ self indexedValueAtIndex:idx.
4e5792ade7aa menu fix
Claus Gittinger <cg@exept.de>
parents: 2724
diff changeset
  2975
        ]
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  2976
    ].
644
aab7d4f7c8c3 allow hiding self; added a label
Claus Gittinger <cg@exept.de>
parents: 621
diff changeset
  2977
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2978
    "/ nope
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2979
    ^ nil
613
048942111c7b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 593
diff changeset
  2980
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  2981
    "Modified: / 16-05-2012 / 17:54:06 / cg"
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2982
!
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2983
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2984
valueAtLine:lineNr put:newValue
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2985
    |idx|
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2986
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2987
    idx := self instVarIndexForLine:selectionIndex.
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2988
    idx notNil ifTrue:[
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2989
        self namedFieldAt:idx put:newValue.
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2990
        ^ self.
2271
0cf238543cb1 fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents: 2235
diff changeset
  2991
    ].
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2992
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2993
    idx := self keyIndexForLine:selectionIndex.
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2994
    idx notNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2995
        self indexedValueAtIndex:idx put:newValue.
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2996
        ^ self
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2997
    ].
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2998
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  2999
    ^ self "/ self selected - dont store
3349
b9a9138f8017 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3338
diff changeset
  3000
!
b9a9138f8017 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3338
diff changeset
  3001
b9a9138f8017 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3338
diff changeset
  3002
valueForSpecialLine:line
11419
a96a34326a6a changed: #valueForSpecialLine:
Claus Gittinger <cg@exept.de>
parents: 11276
diff changeset
  3003
    |idx fieldEntry extraAttributes fields|
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3004
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3005
    extraAttributes := object inspectorExtraAttributes.
8664
c6afed1e4bfa changed #valueForSpecialLine:
Claus Gittinger <cg@exept.de>
parents: 8653
diff changeset
  3006
    (extraAttributes notNil and:[ extraAttributes includesKey:line ]) ifTrue:[
7297
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  3007
        ^ (extraAttributes at:line) value 
ea3614b585e4 drag & drop;
Claus Gittinger <cg@exept.de>
parents: 7054
diff changeset
  3008
    ].
6823
40d460dee8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6491
diff changeset
  3009
11419
a96a34326a6a changed: #valueForSpecialLine:
Claus Gittinger <cg@exept.de>
parents: 11276
diff changeset
  3010
    idx := self derivedFieldNames findFirst:[:l | l string = line string ].
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3011
    idx ~~ 0 ifTrue:[
11419
a96a34326a6a changed: #valueForSpecialLine:
Claus Gittinger <cg@exept.de>
parents: 11276
diff changeset
  3012
        "a lot of backward compatibility crab which has to go away..."
a96a34326a6a changed: #valueForSpecialLine:
Claus Gittinger <cg@exept.de>
parents: 11276
diff changeset
  3013
        fields := self derivedFields.
a96a34326a6a changed: #valueForSpecialLine:
Claus Gittinger <cg@exept.de>
parents: 11276
diff changeset
  3014
        (fields isKindOf:Dictionary) ifTrue:[
a96a34326a6a changed: #valueForSpecialLine:
Claus Gittinger <cg@exept.de>
parents: 11276
diff changeset
  3015
            fieldEntry := fields associationAt:line string "idx".
a96a34326a6a changed: #valueForSpecialLine:
Claus Gittinger <cg@exept.de>
parents: 11276
diff changeset
  3016
        ] ifFalse:[
a96a34326a6a changed: #valueForSpecialLine:
Claus Gittinger <cg@exept.de>
parents: 11276
diff changeset
  3017
            fieldEntry := fields associationAt:idx.
a96a34326a6a changed: #valueForSpecialLine:
Claus Gittinger <cg@exept.de>
parents: 11276
diff changeset
  3018
        ].
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3019
    ] ifFalse:[
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3020
        idx := self extraNamedFieldNames indexOf:line.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3021
        idx ~~ 0 ifTrue:[
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3022
            fieldEntry := self extraNamedFields at:idx.
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3023
        ].
6840
52d3f2cbf130 extraNamedField support
Claus Gittinger <cg@exept.de>
parents: 6823
diff changeset
  3024
    ].
6823
40d460dee8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6491
diff changeset
  3025
    fieldEntry notNil ifTrue:[
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3026
        fieldEntry isAssociation ifTrue:[
11419
a96a34326a6a changed: #valueForSpecialLine:
Claus Gittinger <cg@exept.de>
parents: 11276
diff changeset
  3027
            ^ fieldEntry value value
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3028
        ].
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3029
        ^ fieldEntry at:2.
6823
40d460dee8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6491
diff changeset
  3030
    ].
40d460dee8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6491
diff changeset
  3031
3525
761785907491 checkin from browser
martin
parents: 3432
diff changeset
  3032
    (line startsWith:'-self') ifTrue:[
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3033
        ^ object
3525
761785907491 checkin from browser
martin
parents: 3432
diff changeset
  3034
    ].
11565
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  3035
    (line startsWith:'-basicSize') ifTrue:[
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  3036
        ^ object basicSize
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  3037
    ].
9504
196c6f7d3cc4 changed: #valueForSpecialLine:
Stefan Vogel <sv@exept.de>
parents: 9396
diff changeset
  3038
    (line startsWith:'-size') ifTrue:[
196c6f7d3cc4 changed: #valueForSpecialLine:
Stefan Vogel <sv@exept.de>
parents: 9396
diff changeset
  3039
        ^ object size
196c6f7d3cc4 changed: #valueForSpecialLine:
Stefan Vogel <sv@exept.de>
parents: 9396
diff changeset
  3040
    ].
3525
761785907491 checkin from browser
martin
parents: 3432
diff changeset
  3041
    (line startsWith:'-hash') ifTrue:[
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3042
        ^ object hash
3525
761785907491 checkin from browser
martin
parents: 3432
diff changeset
  3043
    ].
761785907491 checkin from browser
martin
parents: 3432
diff changeset
  3044
    (line startsWith:'-identityHash') ifTrue:[
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3045
        ^ object identityHash
3525
761785907491 checkin from browser
martin
parents: 3432
diff changeset
  3046
    ].
3634
db094dd598f7 -dependents
Claus Gittinger <cg@exept.de>
parents: 3608
diff changeset
  3047
    (line startsWith:'-dependents') ifTrue:[
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3048
        ^ object dependents
3634
db094dd598f7 -dependents
Claus Gittinger <cg@exept.de>
parents: 3608
diff changeset
  3049
    ].
3868
77040d8d3526 all indexed vars
Claus Gittinger <cg@exept.de>
parents: 3657
diff changeset
  3050
    (line startsWith:'-all') ifTrue:[
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3051
        ^ object
3608
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  3052
    ].
8726
f0230df32944 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8699
diff changeset
  3053
    (line startsWith:'-local messages') ifTrue:[
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3054
        ^ object
8726
f0230df32944 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8699
diff changeset
  3055
    ].
f0230df32944 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8699
diff changeset
  3056
    (line startsWith:'-inherited messages') ifTrue:[
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3057
        ^ object
8726
f0230df32944 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8699
diff changeset
  3058
    ].
f0230df32944 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8699
diff changeset
  3059
    (line startsWith:'-all messages') ifTrue:[
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3060
        ^ object
8726
f0230df32944 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8699
diff changeset
  3061
    ].
3608
aebf9f1eb30e all inst vars
Claus Gittinger <cg@exept.de>
parents: 3567
diff changeset
  3062
3526
d8f3082ea1d7 Remove unused vars
Stefan Vogel <sv@exept.de>
parents: 3525
diff changeset
  3063
    self error:'unknown special line'.
3349
b9a9138f8017 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3338
diff changeset
  3064
6823
40d460dee8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6491
diff changeset
  3065
    "Created: / 31-10-2001 / 09:17:45 / cg"
11565
7ad4468defb7 changed:
Claus Gittinger <cg@exept.de>
parents: 11551
diff changeset
  3066
    "Modified: / 06-06-2012 / 11:57:54 / cg"
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  3067
! !
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  3068
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3069
!InspectorView methodsFor:'queries'!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3070
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3071
canInspect:anObject
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3072
    ^ anObject inspectorClass == self class
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3073
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3074
5925
6502b73091ab *** empty log message ***
ca
parents: 5913
diff changeset
  3075
compilerClass
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3076
    ^ object class compilerClass
5925
6502b73091ab *** empty log message ***
ca
parents: 5913
diff changeset
  3077
!
6502b73091ab *** empty log message ***
ca
parents: 5913
diff changeset
  3078
4095
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  3079
dereferenceValueHolders
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  3080
    ^ dereferenceValueHolders ? false
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  3081
!
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  3082
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3083
labelFor:anObject
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3084
    "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
  3085
10321
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
  3086
    |lbl|
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3087
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3088
    (self class == InspectorView
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3089
    and:[anObject inspectorClass ~~ InspectorView]) ifTrue:[
6130
8f6c6203e608 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6034
diff changeset
  3090
        lbl := 'BasicInspector on: '
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3091
    ] ifFalse:[
6130
8f6c6203e608 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6034
diff changeset
  3092
        lbl := 'Inspector on: '
5958
751d314f92c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5925
diff changeset
  3093
    ].
10321
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
  3094
    ^ (self class classResources string:lbl)
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
  3095
    , (self class commonLabelFor:anObject)
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
  3096
Claus Gittinger <cg@exept.de>
parents: 10207
diff changeset
  3097
    "Modified: / 15-07-2011 / 16:22:05 / cg"
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3098
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3099
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3100
labelNameFor:anObject
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3101
    "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
  3102
     Simply returns the className or name of anObjects class"
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3103
11658
b431692d3cba comment/format in: #labelFor:
Claus Gittinger <cg@exept.de>
parents: 11644
diff changeset
  3104
    ^ self class labelNameFor:anObject
5958
751d314f92c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5925
diff changeset
  3105
751d314f92c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5925
diff changeset
  3106
    "
751d314f92c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5925
diff changeset
  3107
     1234 inspect
751d314f92c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5925
diff changeset
  3108
     true inspect
751d314f92c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5925
diff changeset
  3109
     $a inspect
751d314f92c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5925
diff changeset
  3110
    "
11658
b431692d3cba comment/format in: #labelFor:
Claus Gittinger <cg@exept.de>
parents: 11644
diff changeset
  3111
b431692d3cba comment/format in: #labelFor:
Claus Gittinger <cg@exept.de>
parents: 11644
diff changeset
  3112
    "Modified: / 25-07-2012 / 10:15:06 / cg"
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3113
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3114
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3115
selectedKeyName
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3116
    selectionIndex notNil ifTrue:[
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3117
        ^ listView listAt:selectionIndex.
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3118
    ].
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3119
    ^ nil
4095
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  3120
!
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  3121
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  3122
suppressPseudoSlots
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  3123
    ^ suppressPseudoSlots ? false
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3124
! !
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3125
8653
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3126
!InspectorView methodsFor:'selection'!
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3127
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3128
selection:lineNr
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3129
    self showSelection:lineNr
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3130
!
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3131
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3132
showSelection:lineNr
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3133
    "user clicked on an instvar - show value in workspace"
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3134
9672
bad886ee0f07 changed: #showSelection:
Claus Gittinger <cg@exept.de>
parents: 9651
diff changeset
  3135
    |listSize val|
bad886ee0f07 changed: #showSelection:
Claus Gittinger <cg@exept.de>
parents: 9651
diff changeset
  3136
bad886ee0f07 changed: #showSelection:
Claus Gittinger <cg@exept.de>
parents: 9651
diff changeset
  3137
    listSize := listView list size.
bad886ee0f07 changed: #showSelection:
Claus Gittinger <cg@exept.de>
parents: 9651
diff changeset
  3138
    listSize == 0 ifTrue:[^ self].
bad886ee0f07 changed: #showSelection:
Claus Gittinger <cg@exept.de>
parents: 9651
diff changeset
  3139
bad886ee0f07 changed: #showSelection:
Claus Gittinger <cg@exept.de>
parents: 9651
diff changeset
  3140
    (hasMore and:[lineNr == listSize]) ifTrue:[
8653
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3141
        "clicked on the '...' entry"
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3142
        self showMore.
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3143
        listView setSelection:lineNr.
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3144
    ].
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3145
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3146
    self hasSelfEntry ifTrue:[
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3147
        (self hasSelfEntry and:[lineNr == 1]) ifTrue:[
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3148
            "selecting self also does a re-set, this allows updating the list"
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3149
            self reinspect.
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3150
        ].
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3151
    ].
10521
9218a2f4a6d1 Oops, fixes previous (messed) revision (changed: #showSelection:)
vrany
parents: 10520
diff changeset
  3152
    selectionIndex := selectedLine := lineNr.
8653
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3153
    val := self selection.
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3154
    self showValue:val.
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3155
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3156
    self setAcceptAction.
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3157
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3158
    "Modified: / 03-08-2006 / 14:26:22 / cg"
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3159
!
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3160
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3161
showValue:someValue 
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3162
    "user clicked on an entry - show value in workspace"
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3163
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3164
    |s|
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3165
9651
cca26b954d45 changed:
Claus Gittinger <cg@exept.de>
parents: 9648
diff changeset
  3166
    self "topView" withWaitCursorDo:[
8653
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3167
        s := self displayStringForValue:someValue.
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3168
        s = workspace selectionAsString ifFalse:[
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3169
            workspace replace:s.
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3170
        ].
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3171
    ].
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3172
9651
cca26b954d45 changed:
Claus Gittinger <cg@exept.de>
parents: 9648
diff changeset
  3173
    "Modified: / 30-11-2010 / 18:56:55 / cg"
8653
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3174
! !
72f9c682ba3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8635
diff changeset
  3175
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3176
!InspectorView methodsFor:'user interaction'!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3177
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3178
doAccept:theText
11551
5d6cd56f9dcf changed: #doAccept:
Claus Gittinger <cg@exept.de>
parents: 11548
diff changeset
  3179
    |sel newValue fieldNameList|
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3180
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3181
    sel := self listEntryAt:(self theSingleSelectionIndex).
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3182
    (sel startsWith:'-all') ifTrue:[
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3183
        workspace flash.
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3184
        ^ self.
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3185
    ].
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3186
4642
ee63c37d9d3c Convert Object>>errorSignal -> Error
Stefan Vogel <sv@exept.de>
parents: 4314
diff changeset
  3187
    Error handle:[:ex |
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3188
        workspace flash
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3189
    ] do:[
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3190
        newValue := object class evaluatorClass 
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3191
                       evaluate:theText
9367
Claus Gittinger <cg@exept.de>
parents: 9349
diff changeset
  3192
                       receiver:object 
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3193
                       notifying:workspace.
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3194
4095
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  3195
        self dereferenceValueHolders ifTrue:[
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  3196
            (self valueAtLine:selectionIndex) value:newValue
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  3197
        ] ifFalse:[
5bd36b14723d labels; added suppressPseudoVars & dereferenceValueHolders
Claus Gittinger <cg@exept.de>
parents: 3884
diff changeset
  3198
            self valueAtLine:selectionIndex put:newValue.
11551
5d6cd56f9dcf changed: #doAccept:
Claus Gittinger <cg@exept.de>
parents: 11548
diff changeset
  3199
        ].
5d6cd56f9dcf changed: #doAccept:
Claus Gittinger <cg@exept.de>
parents: 11548
diff changeset
  3200
        "/ update the fieldList...
5d6cd56f9dcf changed: #doAccept:
Claus Gittinger <cg@exept.de>
parents: 11548
diff changeset
  3201
        fieldNameList := self fieldList.                               
5d6cd56f9dcf changed: #doAccept:
Claus Gittinger <cg@exept.de>
parents: 11548
diff changeset
  3202
        hasMore ifTrue:[
5d6cd56f9dcf changed: #doAccept:
Claus Gittinger <cg@exept.de>
parents: 11548
diff changeset
  3203
            fieldNameList add:' ... '
5d6cd56f9dcf changed: #doAccept:
Claus Gittinger <cg@exept.de>
parents: 11548
diff changeset
  3204
        ].
5d6cd56f9dcf changed: #doAccept:
Claus Gittinger <cg@exept.de>
parents: 11548
diff changeset
  3205
        listView contents:fieldNameList.
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3206
    ]
11511
95cda90d64c8 nice name list
Claus Gittinger <cg@exept.de>
parents: 11419
diff changeset
  3207
11551
5d6cd56f9dcf changed: #doAccept:
Claus Gittinger <cg@exept.de>
parents: 11548
diff changeset
  3208
    "Modified: / 04-06-2012 / 18:16:29 / cg"
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3209
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3210
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3211
doCopyKey
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3212
    "put the instVar-name into the text-copy-buffer"
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3213
9378
07c0ca7444b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9375
diff changeset
  3214
    |nm selIdx|
07c0ca7444b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9375
diff changeset
  3215
07c0ca7444b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9375
diff changeset
  3216
    (selIdx := self theSingleSelectionIndex) notNil ifTrue:[
07c0ca7444b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9375
diff changeset
  3217
        nm := listView listAt:selIdx.
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3218
        nm notNil ifTrue:[
6034
7f7d4b7362dd set selection interface changed
ca
parents: 5958
diff changeset
  3219
            self setClipboardText:(nm asString)
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3220
        ]
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3221
    ]
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3222
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3223
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3224
doInspect:basic
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3225
    "user selected inspect-menu entry"
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3226
10207
e2968eb0d08e changed: #doInspect: to open instvars within same Inspector2 window
vrany
parents: 9794
diff changeset
  3227
    |objectToInspect app |
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3228
11702
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  3229
    objectToInspect := self selectedField.
8025
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  3230
    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
  3231
        (basic == #new and:[NewInspector::NewInspectorView notNil]) ifTrue:[
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3232
            NewInspector::NewInspectorView inspect:objectToInspect
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3233
        ] ifFalse:[
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3234
            basic ifTrue:[
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3235
                objectToInspect basicInspect
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3236
            ] ifFalse:[
10424
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
  3237
                "/ 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
  3238
                "/ 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
  3239
                "/ 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
  3240
"/                "HACK"
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
  3241
"/                app := (self topView perform:#application ifNotUnderstood: [nil]).
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
  3242
"/                (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
  3243
"/                    app inspect: objectToInspect
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
  3244
"/                ] ifFalse:[
10207
e2968eb0d08e changed: #doInspect: to open instvars within same Inspector2 window
vrany
parents: 9794
diff changeset
  3245
                    objectToInspect inspect
10424
9d7d0c28f504 only follow (dive in) with double click;
Claus Gittinger <cg@exept.de>
parents: 10321
diff changeset
  3246
"/                ]
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3247
            ]
8025
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  3248
        ].
33e306c26e0f Handle keys: Ctrl-i, Ctrl-B
Stefan Vogel <sv@exept.de>
parents: 7975
diff changeset
  3249
    ].
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3250
10207
e2968eb0d08e changed: #doInspect: to open instvars within same Inspector2 window
vrany
parents: 9794
diff changeset
  3251
    "Modified: / 06-07-2011 / 15:58:55 / jv"
11702
d67763d80c24 added: #selectedField
Claus Gittinger <cg@exept.de>
parents: 11660
diff changeset
  3252
    "Modified: / 27-07-2012 / 22:43:11 / cg"
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3253
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3254
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3255
doUpdate
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3256
    self reinspect
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3257
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3258
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3259
monitor:anInstVarName
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3260
    "start a monitoring process, showing the given instVar
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3261
     in regular intervals."
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3262
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3263
    |ivName|
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3264
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3265
    (ivName := anInstVarName) isInteger ifTrue:[
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3266
        ivName := anInstVarName printString
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3267
    ].
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3268
    listView selectElement:ivName.
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3269
    self doStartMonitor
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3270
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3271
    "Created: / 1.3.1996 / 19:31:45 / cg"
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3272
    "Modified: / 12.2.1999 / 16:05:47 / cg"
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3273
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3274
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3275
selection
9375
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  3276
    "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
  3277
     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
  3278
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  3279
    |idx val|
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  3280
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  3281
    idx := self theSingleSelectionIndex.
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  3282
    idx isNil ifTrue:[^ nil].
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  3283
f885ea13e694 allow multiSelect in dictionary inspector (for removeKey)
Claus Gittinger <cg@exept.de>
parents: 9370
diff changeset
  3284
    val := self valueAtLine:idx.
6850
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3285
    self dereferenceValueHolders ifTrue:[
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3286
        "workspace-variable-inspection"
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3287
        val := val value
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3288
    ].
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3289
    ^ val
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3290
1dd4d6518d91 extra field support
Claus Gittinger <cg@exept.de>
parents: 6840
diff changeset
  3291
    "Modified: / 03-08-2006 / 14:27:02 / cg"
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3292
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3293
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3294
showLast
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3295
    "user clicked on an instvar - show value in workspace"
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3296
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3297
    |lastIdx|
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3298
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3299
    lastIdx := listView list size.
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3300
    lastIdx ~~ 0 ifTrue:[
8908
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  3301
        self showSelection:lastIdx.
04406d5f9acd *** empty log message ***
Michael Beyl <mb@exept.de>
parents: 8907
diff changeset
  3302
        listView selection:lastIdx.
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3303
    ]
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3304
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3305
    "Created: 28.6.1996 / 15:06:38 / cg"
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3306
    "Modified: 18.3.1997 / 18:22:54 / cg"
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3307
!
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3308
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3309
tryToSelectKeyNamed:aString
11599
06b7c6cce561 changed: #tryToSelectKeyNamed:
Claus Gittinger <cg@exept.de>
parents: 11594
diff changeset
  3310
    |list idx aStringWithSpace|
06b7c6cce561 changed: #tryToSelectKeyNamed:
Claus Gittinger <cg@exept.de>
parents: 11594
diff changeset
  3311
06b7c6cce561 changed: #tryToSelectKeyNamed:
Claus Gittinger <cg@exept.de>
parents: 11594
diff changeset
  3312
    aString isEmptyOrNil ifTrue:[^ self].
06b7c6cce561 changed: #tryToSelectKeyNamed:
Claus Gittinger <cg@exept.de>
parents: 11594
diff changeset
  3313
11603
6f7540a1e057 changed: #tryToSelectKeyNamed:
Claus Gittinger <cg@exept.de>
parents: 11599
diff changeset
  3314
    aStringWithSpace := aString string,' '.
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3315
5558
8b9d99f714d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5498
diff changeset
  3316
    list := listView list.
8b9d99f714d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5498
diff changeset
  3317
    list notNil ifTrue:[
11603
6f7540a1e057 changed: #tryToSelectKeyNamed:
Claus Gittinger <cg@exept.de>
parents: 11599
diff changeset
  3318
        (idx := list findFirst:[:line | line = aString or:[line string startsWith:aStringWithSpace]]) ~= 0 ifTrue:[
5558
8b9d99f714d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5498
diff changeset
  3319
            listView selection:idx
8b9d99f714d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5498
diff changeset
  3320
        ].
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3321
    ].
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3322
11599
06b7c6cce561 changed: #tryToSelectKeyNamed:
Claus Gittinger <cg@exept.de>
parents: 11594
diff changeset
  3323
    "Created: / 16-11-2001 / 13:48:51 / cg"
3874
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3324
! !
ed3a652e5ce0 all indexed vars for dictionaries
Claus Gittinger <cg@exept.de>
parents: 3869
diff changeset
  3325
4268
0fe3e4a82ddf more textView protocol (for Workspace)
Claus Gittinger <cg@exept.de>
parents: 4197
diff changeset
  3326
!InspectorView methodsFor:'workspace protocol'!
0fe3e4a82ddf more textView protocol (for Workspace)
Claus Gittinger <cg@exept.de>
parents: 4197
diff changeset
  3327
0fe3e4a82ddf more textView protocol (for Workspace)
Claus Gittinger <cg@exept.de>
parents: 4197
diff changeset
  3328
modified:aBoolean
0fe3e4a82ddf more textView protocol (for Workspace)
Claus Gittinger <cg@exept.de>
parents: 4197
diff changeset
  3329
    ^ workspace modified:aBoolean
0fe3e4a82ddf more textView protocol (for Workspace)
Claus Gittinger <cg@exept.de>
parents: 4197
diff changeset
  3330
!
0fe3e4a82ddf more textView protocol (for Workspace)
Claus Gittinger <cg@exept.de>
parents: 4197
diff changeset
  3331
0fe3e4a82ddf more textView protocol (for Workspace)
Claus Gittinger <cg@exept.de>
parents: 4197
diff changeset
  3332
saveAs:file doAppend:doAppend
0fe3e4a82ddf more textView protocol (for Workspace)
Claus Gittinger <cg@exept.de>
parents: 4197
diff changeset
  3333
    workspace saveAs:file doAppend:doAppend
0fe3e4a82ddf more textView protocol (for Workspace)
Claus Gittinger <cg@exept.de>
parents: 4197
diff changeset
  3334
! !
0fe3e4a82ddf more textView protocol (for Workspace)
Claus Gittinger <cg@exept.de>
parents: 4197
diff changeset
  3335
871
a29021918ec5 fixed openOn:monitor:
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  3336
!InspectorView class methodsFor:'documentation'!
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  3337
10521
9218a2f4a6d1 Oops, fixes previous (messed) revision (changed: #showSelection:)
vrany
parents: 10520
diff changeset
  3338
version
11846
1e96f0c3ccb1 changed: #namedFieldList
Stefan Vogel <sv@exept.de>
parents: 11839
diff changeset
  3339
    ^ '$Header: /cvs/stx/stx/libtool/InspectorView.st,v 1.284 2012-10-16 12:26:17 stefan Exp $'
10521
9218a2f4a6d1 Oops, fixes previous (messed) revision (changed: #showSelection:)
vrany
parents: 10520
diff changeset
  3340
!
9218a2f4a6d1 Oops, fixes previous (messed) revision (changed: #showSelection:)
vrany
parents: 10520
diff changeset
  3341
8868
1fd94adeda59 changed: #setInitialSelection
Claus Gittinger <cg@exept.de>
parents: 8800
diff changeset
  3342
version_CVS
11846
1e96f0c3ccb1 changed: #namedFieldList
Stefan Vogel <sv@exept.de>
parents: 11839
diff changeset
  3343
    ^ '$Header: /cvs/stx/stx/libtool/InspectorView.st,v 1.284 2012-10-16 12:26:17 stefan Exp $'
200
01ce3d3636d5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 188
diff changeset
  3344
! !