extensions.st
author Claus Gittinger <cg@exept.de>
Sat, 21 Mar 2020 11:42:38 +0100
changeset 19570 e8daa52b91b1
parent 19464 1d35e5885ed5
permissions -rw-r--r--
fix (menu in JSON tab)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8970
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
     1
"{ Package: 'stx:libtool' }"!
7299
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
     2
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
     3
!AbstractSyntaxHighlighter class methodsFor:'api highlighting'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
     4
10749
4b121ee1c5de comment/format in: #formatExpression:in:elementsInto:
Claus Gittinger <cg@exept.de>
parents: 10724
diff changeset
     5
formatExpression:aString in:aClass elementsInto:elementsCollection
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
     6
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
     7
    ^self formatExpression:aString in:aClass
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
     8
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
     9
    "Created: / 25-07-2010 / 08:57:34 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10749
4b121ee1c5de comment/format in: #formatExpression:in:elementsInto:
Claus Gittinger <cg@exept.de>
parents: 10724
diff changeset
    10
    "Modified (format): / 04-10-2011 / 19:47:20 / cg"
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
    11
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
    12
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
    13
!AbstractSyntaxHighlighter class methodsFor:'api highlighting'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
    14
18047
bbb55b1c4634 class: SmallSense::SmalltalkSyntaxHighlighter class
Stefan Vogel <sv@exept.de>
parents: 18044
diff changeset
    15
formatFileContents:aString elementsInto:elementsCollection
bbb55b1c4634 class: SmallSense::SmalltalkSyntaxHighlighter class
Stefan Vogel <sv@exept.de>
parents: 18044
diff changeset
    16
    "format (recolor) a file's contents.
bbb55b1c4634 class: SmallSense::SmalltalkSyntaxHighlighter class
Stefan Vogel <sv@exept.de>
parents: 18044
diff changeset
    17
     Return the text containing font changes and color information.
bbb55b1c4634 class: SmallSense::SmalltalkSyntaxHighlighter class
Stefan Vogel <sv@exept.de>
parents: 18044
diff changeset
    18
     Here, nothing is done ,just for protocol completeness"
bbb55b1c4634 class: SmallSense::SmalltalkSyntaxHighlighter class
Stefan Vogel <sv@exept.de>
parents: 18044
diff changeset
    19
bbb55b1c4634 class: SmallSense::SmalltalkSyntaxHighlighter class
Stefan Vogel <sv@exept.de>
parents: 18044
diff changeset
    20
    ^ aString
bbb55b1c4634 class: SmallSense::SmalltalkSyntaxHighlighter class
Stefan Vogel <sv@exept.de>
parents: 18044
diff changeset
    21
bbb55b1c4634 class: SmallSense::SmalltalkSyntaxHighlighter class
Stefan Vogel <sv@exept.de>
parents: 18044
diff changeset
    22
    "Created: / 21-10-2017 / 13:28:35 / cg"
bbb55b1c4634 class: SmallSense::SmalltalkSyntaxHighlighter class
Stefan Vogel <sv@exept.de>
parents: 18044
diff changeset
    23
! !
bbb55b1c4634 class: SmallSense::SmalltalkSyntaxHighlighter class
Stefan Vogel <sv@exept.de>
parents: 18044
diff changeset
    24
bbb55b1c4634 class: SmallSense::SmalltalkSyntaxHighlighter class
Stefan Vogel <sv@exept.de>
parents: 18044
diff changeset
    25
!AbstractSyntaxHighlighter class methodsFor:'api highlighting'!
bbb55b1c4634 class: SmallSense::SmalltalkSyntaxHighlighter class
Stefan Vogel <sv@exept.de>
parents: 18044
diff changeset
    26
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
    27
formatMethod:aString in:aClass using:preferencesOrNil elementsInto: elements
18047
bbb55b1c4634 class: SmallSense::SmalltalkSyntaxHighlighter class
Stefan Vogel <sv@exept.de>
parents: 18044
diff changeset
    28
    <resource: #obsolete>
bbb55b1c4634 class: SmallSense::SmalltalkSyntaxHighlighter class
Stefan Vogel <sv@exept.de>
parents: 18044
diff changeset
    29
    self obsoleteMethodWarning.
bbb55b1c4634 class: SmallSense::SmalltalkSyntaxHighlighter class
Stefan Vogel <sv@exept.de>
parents: 18044
diff changeset
    30
    ^ self formatMethodSource:aString in:aClass using:preferencesOrNil
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
    31
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
    32
    "Created: / 25-07-2010 / 08:58:00 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
    33
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
    34
18047
bbb55b1c4634 class: SmallSense::SmalltalkSyntaxHighlighter class
Stefan Vogel <sv@exept.de>
parents: 18044
diff changeset
    35
!AbstractSyntaxHighlighter class methodsFor:'api highlighting'!
bbb55b1c4634 class: SmallSense::SmalltalkSyntaxHighlighter class
Stefan Vogel <sv@exept.de>
parents: 18044
diff changeset
    36
bbb55b1c4634 class: SmallSense::SmalltalkSyntaxHighlighter class
Stefan Vogel <sv@exept.de>
parents: 18044
diff changeset
    37
formatMethod:aMethodOrNil source:aString in:aClass using:preferencesOrNil elementsInto: elements
bbb55b1c4634 class: SmallSense::SmalltalkSyntaxHighlighter class
Stefan Vogel <sv@exept.de>
parents: 18044
diff changeset
    38
bbb55b1c4634 class: SmallSense::SmalltalkSyntaxHighlighter class
Stefan Vogel <sv@exept.de>
parents: 18044
diff changeset
    39
    ^ self formatMethod:aMethodOrNil source:aString in:aClass using:preferencesOrNil
bbb55b1c4634 class: SmallSense::SmalltalkSyntaxHighlighter class
Stefan Vogel <sv@exept.de>
parents: 18044
diff changeset
    40
bbb55b1c4634 class: SmallSense::SmalltalkSyntaxHighlighter class
Stefan Vogel <sv@exept.de>
parents: 18044
diff changeset
    41
    "Created: / 05-07-2011 / 10:41:14 / cg"
bbb55b1c4634 class: SmallSense::SmalltalkSyntaxHighlighter class
Stefan Vogel <sv@exept.de>
parents: 18044
diff changeset
    42
    "Modified: / 20-07-2011 / 16:29:57 / Jan Vrany <jan.vrany@fit.cvut.cz>"
bbb55b1c4634 class: SmallSense::SmalltalkSyntaxHighlighter class
Stefan Vogel <sv@exept.de>
parents: 18044
diff changeset
    43
! !
bbb55b1c4634 class: SmallSense::SmalltalkSyntaxHighlighter class
Stefan Vogel <sv@exept.de>
parents: 18044
diff changeset
    44
18540
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
    45
!AbstractTime methodsFor:'inspecting'!
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
    46
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
    47
inspectorValueListIconFor:anInspector
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
    48
    "returns the icon to be shown alongside the value list of an inspector"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
    49
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
    50
    ^ anInspector imageFor_timeAndDate
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
    51
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
    52
    "Created: / 12-12-2018 / 16:32:37 / Claus Gittinger"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
    53
! !
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
    54
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
    55
!AbstractTime class methodsFor:'misc ui support'!
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
    56
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
    57
iconInBrowserSymbol
16117
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
    58
    "the browser will use this as index into the toolbariconlibrary"
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
    59
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
    60
    <resource: #programImage>
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
    61
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
    62
    ^ #timeClassBrowserIcon
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
    63
! !
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
    64
18928
3315ec41aa81 category change
Claus Gittinger <cg@exept.de>
parents: 18888
diff changeset
    65
!ApplicationModel methodsFor:'inspecting'!
16254
e728446e20a0 show named components and aspects of appmodels in inspector
Claus Gittinger <cg@exept.de>
parents: 16234
diff changeset
    66
e728446e20a0 show named components and aspects of appmodels in inspector
Claus Gittinger <cg@exept.de>
parents: 16234
diff changeset
    67
inspectorExtraAttributes
16346
4ba95a2ce3a9 class: ApplicationModel
Claus Gittinger <cg@exept.de>
parents: 16311
diff changeset
    68
    |atts nameDict bindingDict|
16254
e728446e20a0 show named components and aspects of appmodels in inspector
Claus Gittinger <cg@exept.de>
parents: 16234
diff changeset
    69
e728446e20a0 show named components and aspects of appmodels in inspector
Claus Gittinger <cg@exept.de>
parents: 16234
diff changeset
    70
    atts := super inspectorExtraAttributes.
e728446e20a0 show named components and aspects of appmodels in inspector
Claus Gittinger <cg@exept.de>
parents: 16234
diff changeset
    71
    builder notNil ifTrue:[
18305
0a918ffa75f3 class: ApplicationModel
Claus Gittinger <cg@exept.de>
parents: 18241
diff changeset
    72
"/        (nameDict := builder namedComponents) notNil ifTrue:[
0a918ffa75f3 class: ApplicationModel
Claus Gittinger <cg@exept.de>
parents: 18241
diff changeset
    73
"/            nameDict keysAndValuesDo:[:eachName :eachWidget |
0a918ffa75f3 class: ApplicationModel
Claus Gittinger <cg@exept.de>
parents: 18241
diff changeset
    74
"/                atts add:('-[: ',eachName,' :]') -> [ nameDict at:eachName ].
0a918ffa75f3 class: ApplicationModel
Claus Gittinger <cg@exept.de>
parents: 18241
diff changeset
    75
"/            ].
0a918ffa75f3 class: ApplicationModel
Claus Gittinger <cg@exept.de>
parents: 18241
diff changeset
    76
"/        ].
0a918ffa75f3 class: ApplicationModel
Claus Gittinger <cg@exept.de>
parents: 18241
diff changeset
    77
        (bindingDict := builder bindings) notNil ifTrue:[
0a918ffa75f3 class: ApplicationModel
Claus Gittinger <cg@exept.de>
parents: 18241
diff changeset
    78
            bindingDict keysAndValuesDo:[:eachName :eachAspect |
0a918ffa75f3 class: ApplicationModel
Claus Gittinger <cg@exept.de>
parents: 18241
diff changeset
    79
                atts add:('[',eachName allItalic,']') -> [ bindingDict at:eachName ].
16295
2891112a6454 class: ApplicationModel
Claus Gittinger <cg@exept.de>
parents: 16283
diff changeset
    80
            ].
16254
e728446e20a0 show named components and aspects of appmodels in inspector
Claus Gittinger <cg@exept.de>
parents: 16234
diff changeset
    81
        ].
18305
0a918ffa75f3 class: ApplicationModel
Claus Gittinger <cg@exept.de>
parents: 18241
diff changeset
    82
        atts add:('-- window automationID') -> [ builder window isNil
0a918ffa75f3 class: ApplicationModel
Claus Gittinger <cg@exept.de>
parents: 18241
diff changeset
    83
                                                ifTrue:['«no window»']
0a918ffa75f3 class: ApplicationModel
Claus Gittinger <cg@exept.de>
parents: 18241
diff changeset
    84
                                                ifFalse:[builder window uuid] ].
16254
e728446e20a0 show named components and aspects of appmodels in inspector
Claus Gittinger <cg@exept.de>
parents: 16234
diff changeset
    85
    ].
e728446e20a0 show named components and aspects of appmodels in inspector
Claus Gittinger <cg@exept.de>
parents: 16234
diff changeset
    86
    ^ atts
18305
0a918ffa75f3 class: ApplicationModel
Claus Gittinger <cg@exept.de>
parents: 18241
diff changeset
    87
0a918ffa75f3 class: ApplicationModel
Claus Gittinger <cg@exept.de>
parents: 18241
diff changeset
    88
    "Modified: / 29-07-2018 / 13:38:11 / Claus Gittinger"
16254
e728446e20a0 show named components and aspects of appmodels in inspector
Claus Gittinger <cg@exept.de>
parents: 16234
diff changeset
    89
! !
e728446e20a0 show named components and aspects of appmodels in inspector
Claus Gittinger <cg@exept.de>
parents: 16234
diff changeset
    90
17068
5fb10da2bf01 Array>>#inspectprValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 17061
diff changeset
    91
!Array methodsFor:'inspecting'!
5fb10da2bf01 Array>>#inspectprValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 17061
diff changeset
    92
5fb10da2bf01 Array>>#inspectprValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 17061
diff changeset
    93
inspectorValueStringInListFor:anInspector
17621
Claus Gittinger <cg@exept.de>
parents: 17592
diff changeset
    94
    "returns a string to be shown in the inspector's selection list"
17068
5fb10da2bf01 Array>>#inspectprValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 17061
diff changeset
    95
18725
cfe4ef22344c class: Array
Claus Gittinger <cg@exept.de>
parents: 18690
diff changeset
    96
    (self class == Array and:[self size == 0]) ifTrue:[
17068
5fb10da2bf01 Array>>#inspectprValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 17061
diff changeset
    97
        ^ '#()'
5fb10da2bf01 Array>>#inspectprValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 17061
diff changeset
    98
    ].
5fb10da2bf01 Array>>#inspectprValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 17061
diff changeset
    99
    ^ super inspectorValueStringInListFor:anInspector
17621
Claus Gittinger <cg@exept.de>
parents: 17592
diff changeset
   100
Claus Gittinger <cg@exept.de>
parents: 17592
diff changeset
   101
    "Modified (comment): / 16-08-2017 / 20:52:01 / cg"
18725
cfe4ef22344c class: Array
Claus Gittinger <cg@exept.de>
parents: 18690
diff changeset
   102
    "Modified: / 29-03-2019 / 11:47:58 / Claus Gittinger"
17068
5fb10da2bf01 Array>>#inspectprValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 17061
diff changeset
   103
! !
5fb10da2bf01 Array>>#inspectprValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 17061
diff changeset
   104
11283
Claus Gittinger <cg@exept.de>
parents: 11282
diff changeset
   105
!ArrayedCollection methodsFor:'inspecting'!
Claus Gittinger <cg@exept.de>
parents: 11282
diff changeset
   106
Claus Gittinger <cg@exept.de>
parents: 11282
diff changeset
   107
inspector2TabForHexDump
11401
a228326e3eee changed: #inspector2TabForHexDump
Claus Gittinger <cg@exept.de>
parents: 11400
diff changeset
   108
    "a tab, showing a hex dump; defined here, so that both byteArrays and other bulk data
a228326e3eee changed: #inspector2TabForHexDump
Claus Gittinger <cg@exept.de>
parents: 11400
diff changeset
   109
     containers can define it in their inspector2Tabs methods."
a228326e3eee changed: #inspector2TabForHexDump
Claus Gittinger <cg@exept.de>
parents: 11400
diff changeset
   110
19185
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   111
    ^ self class inspector2TabForHexDumpFor:self
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   112
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   113
    "
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   114
     (ByteArray new:1000) inspect
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   115
     (0 to:255) asByteArray inspect
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   116
    "
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   117
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   118
    "Created: / 13-02-2012 / 15:08:42 / cg"
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   119
    "Modified: / 11-11-2018 / 12:20:02 / Claus Gittinger"
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   120
    "Modified (comment): / 12-03-2019 / 16:42:24 / Claus Gittinger"
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   121
! !
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   122
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   123
!ArrayedCollection methodsFor:'inspecting'!
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   124
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   125
inspectorValueListIconFor:anInspector
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   126
    "returns the icon to be shown alongside the value list of an inspector"
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   127
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   128
    self isEmpty ifTrue:[
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   129
        ^ anInspector imageFor_collections_empty
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   130
    ].    
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   131
    ^ anInspector imageFor_arrays
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   132
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   133
    "Created: / 12-12-2018 / 16:20:08 / Claus Gittinger"
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   134
! !
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   135
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   136
!ArrayedCollection class methodsFor:'inspecting - helpers'!
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   137
19189
39d98e426492 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19187
diff changeset
   138
hexDumpViewFor:instOrHolder
19185
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   139
    "a tab, showing a hex dump; defined here, so that both byteArrays and other bulk data
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   140
     containers can define it in their inspector2Tabs methods."
fe7e4f355012 hexDumpTab refactored for reusability
Claus Gittinger <cg@exept.de>
parents: 18996
diff changeset
   141
19201
f0388a240865 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19199
diff changeset
   142
    |getByteSize wrapper hv v genDump baseAddressHolder 
f0388a240865 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19199
diff changeset
   143
     highlightRangeHolder baseHolder|
19189
39d98e426492 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19187
diff changeset
   144
39d98e426492 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19187
diff changeset
   145
    getByteSize := [ instOrHolder value size * instOrHolder value class elementByteSize ].
11283
Claus Gittinger <cg@exept.de>
parents: 11282
diff changeset
   146
Claus Gittinger <cg@exept.de>
parents: 11282
diff changeset
   147
    wrapper := Plug new.
19189
39d98e426492 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19187
diff changeset
   148
    wrapper respondTo:#size with:[ getByteSize value ].
39d98e426492 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19187
diff changeset
   149
    wrapper respondTo:#at: with:[:byteIdx | instOrHolder value byteAt:byteIdx ].
39d98e426492 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19187
diff changeset
   150
    wrapper respondTo:#do: with:[:aBlock |
39d98e426492 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19187
diff changeset
   151
                                    |sz|
39d98e426492 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19187
diff changeset
   152
                                    sz := getByteSize value.
39d98e426492 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19187
diff changeset
   153
                                    1 to:sz do:[:i |
39d98e426492 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19187
diff changeset
   154
                                        aBlock value:(instOrHolder value byteAt:i) 
39d98e426492 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19187
diff changeset
   155
                                    ].
11283
Claus Gittinger <cg@exept.de>
parents: 11282
diff changeset
   156
                                ].
Claus Gittinger <cg@exept.de>
parents: 11282
diff changeset
   157
19198
cdaab19788cd class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19189
diff changeset
   158
    highlightRangeHolder := (nil asValue).
19199
8880dbb596d8 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19198
diff changeset
   159
    baseHolder := 16 asValue.
19201
f0388a240865 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19199
diff changeset
   160
    "/ instOrHolder isExternalBytes ifTrue:[
f0388a240865 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19199
diff changeset
   161
    "/     baseAddressHolder := instOrHolder address asValue.
f0388a240865 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19199
diff changeset
   162
    "/ ] ifFalse:[
f0388a240865 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19199
diff changeset
   163
        baseAddressHolder := 0 asValue.
f0388a240865 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19199
diff changeset
   164
    "/ ].
f0388a240865 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19199
diff changeset
   165
11401
a228326e3eee changed: #inspector2TabForHexDump
Claus Gittinger <cg@exept.de>
parents: 11400
diff changeset
   166
    genDump := [
a228326e3eee changed: #inspector2TabForHexDump
Claus Gittinger <cg@exept.de>
parents: 11400
diff changeset
   167
                    |dump|
a228326e3eee changed: #inspector2TabForHexDump
Claus Gittinger <cg@exept.de>
parents: 11400
diff changeset
   168
a228326e3eee changed: #inspector2TabForHexDump
Claus Gittinger <cg@exept.de>
parents: 11400
diff changeset
   169
                    v topView withWaitCursorDo:[
a228326e3eee changed: #inspector2TabForHexDump
Claus Gittinger <cg@exept.de>
parents: 11400
diff changeset
   170
                        dump := AbstractFileBrowser 
19199
8880dbb596d8 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19198
diff changeset
   171
                            contentsOfBytesAsDump:wrapper base:baseHolder
19189
39d98e426492 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19187
diff changeset
   172
                            numberOfAddressDigits:(getByteSize value hexPrintString size) 
19201
f0388a240865 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19199
diff changeset
   173
                            addressStart:baseAddressHolder
19198
cdaab19788cd class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19189
diff changeset
   174
                            characterEncoding:#'iso8859-1'
cdaab19788cd class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19189
diff changeset
   175
                            highlightRangeHolder:highlightRangeHolder.
11401
a228326e3eee changed: #inspector2TabForHexDump
Claus Gittinger <cg@exept.de>
parents: 11400
diff changeset
   176
                        v list:dump expandTabs:false scanForNonStrings:false includesNonStrings:false.
a228326e3eee changed: #inspector2TabForHexDump
Claus Gittinger <cg@exept.de>
parents: 11400
diff changeset
   177
                    ].
a228326e3eee changed: #inspector2TabForHexDump
Claus Gittinger <cg@exept.de>
parents: 11400
diff changeset
   178
               ].
a228326e3eee changed: #inspector2TabForHexDump
Claus Gittinger <cg@exept.de>
parents: 11400
diff changeset
   179
19199
8880dbb596d8 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19198
diff changeset
   180
    hv := HVScrollableView for:TextView. 
8880dbb596d8 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19198
diff changeset
   181
    hv autoHideScrollBars:true.
8880dbb596d8 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19198
diff changeset
   182
    v := hv scrolledView.
19198
cdaab19788cd class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19189
diff changeset
   183
    v objectAttributeAt:#highlightRangeHolder put:highlightRangeHolder.
11401
a228326e3eee changed: #inspector2TabForHexDump
Claus Gittinger <cg@exept.de>
parents: 11400
diff changeset
   184
    genDump value.
19189
39d98e426492 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19187
diff changeset
   185
    instOrHolder onChangeEvaluate:genDump.
11401
a228326e3eee changed: #inspector2TabForHexDump
Claus Gittinger <cg@exept.de>
parents: 11400
diff changeset
   186
19199
8880dbb596d8 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19198
diff changeset
   187
    v 
11401
a228326e3eee changed: #inspector2TabForHexDump
Claus Gittinger <cg@exept.de>
parents: 11400
diff changeset
   188
        menuHolder:
a228326e3eee changed: #inspector2TabForHexDump
Claus Gittinger <cg@exept.de>
parents: 11400
diff changeset
   189
            [    
19199
8880dbb596d8 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19198
diff changeset
   190
                |m changeBase| 
8880dbb596d8 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19198
diff changeset
   191
8880dbb596d8 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19198
diff changeset
   192
                changeBase := 
8880dbb596d8 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19198
diff changeset
   193
                    [:b |
8880dbb596d8 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19198
diff changeset
   194
                        baseHolder value:b.
8880dbb596d8 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19198
diff changeset
   195
                        v flushCachedWidthOfWidestLine.
8880dbb596d8 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19198
diff changeset
   196
                        v contentsChanged. 
8880dbb596d8 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19198
diff changeset
   197
                        v invalidate
8880dbb596d8 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19198
diff changeset
   198
                    ].
8880dbb596d8 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19198
diff changeset
   199
8880dbb596d8 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19198
diff changeset
   200
                m := v editMenu.
8880dbb596d8 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19198
diff changeset
   201
                m addSeparator.  "/ m addLabel:'-' selector:nil.
8880dbb596d8 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19198
diff changeset
   202
                m addLabel:'Hex' selector:#changeToHex action:[ changeBase value:16 ].
8880dbb596d8 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19198
diff changeset
   203
                m addLabel:'Decimal' selector:#changeToDecimal action:[ changeBase value:10 ].
8880dbb596d8 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19198
diff changeset
   204
                m addLabel:'Binary' selector:#changeToBinary action:[ changeBase value:2 ].
8880dbb596d8 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19198
diff changeset
   205
                m addLabel:'Octal' selector:#changeToOctal action:[ changeBase value:8 ].
8880dbb596d8 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19198
diff changeset
   206
18100
8be69d996009 more values
Claus Gittinger <cg@exept.de>
parents: 18089
diff changeset
   207
                m addSeparator.  "/ m addLabel:'-' selector:nil.
8be69d996009 more values
Claus Gittinger <cg@exept.de>
parents: 18089
diff changeset
   208
                m addLabel:'Change Base Address...' 
8be69d996009 more values
Claus Gittinger <cg@exept.de>
parents: 18089
diff changeset
   209
                  selector:#changeBase
8be69d996009 more values
Claus Gittinger <cg@exept.de>
parents: 18089
diff changeset
   210
                  action:[ 
11401
a228326e3eee changed: #inspector2TabForHexDump
Claus Gittinger <cg@exept.de>
parents: 11400
diff changeset
   211
                        |s b|
a228326e3eee changed: #inspector2TabForHexDump
Claus Gittinger <cg@exept.de>
parents: 11400
diff changeset
   212
19201
f0388a240865 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19199
diff changeset
   213
                        s := Dialog request:'Base address (hex):' initialAnswer:(baseAddressHolder value printStringRadix:16).
11401
a228326e3eee changed: #inspector2TabForHexDump
Claus Gittinger <cg@exept.de>
parents: 11400
diff changeset
   214
                        s notEmptyOrNil ifTrue:[
a228326e3eee changed: #inspector2TabForHexDump
Claus Gittinger <cg@exept.de>
parents: 11400
diff changeset
   215
                            b := Integer readFrom:s radix:16 onError:nil.
a228326e3eee changed: #inspector2TabForHexDump
Claus Gittinger <cg@exept.de>
parents: 11400
diff changeset
   216
                            b notNil ifTrue:[
19201
f0388a240865 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19199
diff changeset
   217
                                baseAddressHolder value:b. 
f0388a240865 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19199
diff changeset
   218
                                "/ genDump value.
f0388a240865 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19199
diff changeset
   219
                                v flushCachedWidthOfWidestLine.
f0388a240865 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19199
diff changeset
   220
                                v contentsChanged. 
f0388a240865 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19199
diff changeset
   221
                                v invalidate
11401
a228326e3eee changed: #inspector2TabForHexDump
Claus Gittinger <cg@exept.de>
parents: 11400
diff changeset
   222
                            ].
a228326e3eee changed: #inspector2TabForHexDump
Claus Gittinger <cg@exept.de>
parents: 11400
diff changeset
   223
                        ].
a228326e3eee changed: #inspector2TabForHexDump
Claus Gittinger <cg@exept.de>
parents: 11400
diff changeset
   224
                    ].
a228326e3eee changed: #inspector2TabForHexDump
Claus Gittinger <cg@exept.de>
parents: 11400
diff changeset
   225
                m.
a228326e3eee changed: #inspector2TabForHexDump
Claus Gittinger <cg@exept.de>
parents: 11400
diff changeset
   226
            ];
a228326e3eee changed: #inspector2TabForHexDump
Claus Gittinger <cg@exept.de>
parents: 11400
diff changeset
   227
        menuMessage: #value.
a228326e3eee changed: #inspector2TabForHexDump
Claus Gittinger <cg@exept.de>
parents: 11400
diff changeset
   228
19199
8880dbb596d8 class: ArrayedCollection class
Claus Gittinger <cg@exept.de>
parents: 19198
diff changeset
   229
    ^ hv
19187
24f98c6b1c90 class: stx_libtool class
Claus Gittinger <cg@exept.de>
parents: 19185
diff changeset
   230
24f98c6b1c90 class: stx_libtool class
Claus Gittinger <cg@exept.de>
parents: 19185
diff changeset
   231
    "
24f98c6b1c90 class: stx_libtool class
Claus Gittinger <cg@exept.de>
parents: 19185
diff changeset
   232
     (ByteArray new:1000) inspect
24f98c6b1c90 class: stx_libtool class
Claus Gittinger <cg@exept.de>
parents: 19185
diff changeset
   233
     (0 to:255) asByteArray inspect
24f98c6b1c90 class: stx_libtool class
Claus Gittinger <cg@exept.de>
parents: 19185
diff changeset
   234
    "
24f98c6b1c90 class: stx_libtool class
Claus Gittinger <cg@exept.de>
parents: 19185
diff changeset
   235
24f98c6b1c90 class: stx_libtool class
Claus Gittinger <cg@exept.de>
parents: 19185
diff changeset
   236
    "Created: / 13-02-2012 / 15:08:42 / cg"
24f98c6b1c90 class: stx_libtool class
Claus Gittinger <cg@exept.de>
parents: 19185
diff changeset
   237
    "Modified: / 11-11-2018 / 12:20:02 / Claus Gittinger"
24f98c6b1c90 class: stx_libtool class
Claus Gittinger <cg@exept.de>
parents: 19185
diff changeset
   238
    "Modified (comment): / 12-03-2019 / 16:42:24 / Claus Gittinger"
24f98c6b1c90 class: stx_libtool class
Claus Gittinger <cg@exept.de>
parents: 19185
diff changeset
   239
! !
24f98c6b1c90 class: stx_libtool class
Claus Gittinger <cg@exept.de>
parents: 19185
diff changeset
   240
24f98c6b1c90 class: stx_libtool class
Claus Gittinger <cg@exept.de>
parents: 19185
diff changeset
   241
!ArrayedCollection class methodsFor:'inspecting - helpers'!
24f98c6b1c90 class: stx_libtool class
Claus Gittinger <cg@exept.de>
parents: 19185
diff changeset
   242
24f98c6b1c90 class: stx_libtool class
Claus Gittinger <cg@exept.de>
parents: 19185
diff changeset
   243
inspector2TabForHexDumpFor:anInstance
24f98c6b1c90 class: stx_libtool class
Claus Gittinger <cg@exept.de>
parents: 19185
diff changeset
   244
    "a tab, showing a hex dump; defined here, so that both byteArrays and other bulk data
24f98c6b1c90 class: stx_libtool class
Claus Gittinger <cg@exept.de>
parents: 19185
diff changeset
   245
     containers can define it in their inspector2Tabs methods."
24f98c6b1c90 class: stx_libtool class
Claus Gittinger <cg@exept.de>
parents: 19185
diff changeset
   246
11283
Claus Gittinger <cg@exept.de>
parents: 11282
diff changeset
   247
    ^ Tools::Inspector2Tab new
Claus Gittinger <cg@exept.de>
parents: 11282
diff changeset
   248
            priority: 40;
Claus Gittinger <cg@exept.de>
parents: 11282
diff changeset
   249
            label:'Hexdump';
19187
24f98c6b1c90 class: stx_libtool class
Claus Gittinger <cg@exept.de>
parents: 19185
diff changeset
   250
            view:(self hexDumpViewFor:anInstance);
11283
Claus Gittinger <cg@exept.de>
parents: 11282
diff changeset
   251
            yourself
Claus Gittinger <cg@exept.de>
parents: 11282
diff changeset
   252
18665
Claus Gittinger <cg@exept.de>
parents: 18657
diff changeset
   253
    "
Claus Gittinger <cg@exept.de>
parents: 18657
diff changeset
   254
     (ByteArray new:1000) inspect
19187
24f98c6b1c90 class: stx_libtool class
Claus Gittinger <cg@exept.de>
parents: 19185
diff changeset
   255
     (0 to:255) asByteArray inspect
18665
Claus Gittinger <cg@exept.de>
parents: 18657
diff changeset
   256
    "
Claus Gittinger <cg@exept.de>
parents: 18657
diff changeset
   257
11283
Claus Gittinger <cg@exept.de>
parents: 11282
diff changeset
   258
    "Created: / 13-02-2012 / 15:08:42 / cg"
18523
c6718fc416d8 changed: #inspector2Tabs
Claus Gittinger <cg@exept.de>
parents: 18462
diff changeset
   259
    "Modified: / 11-11-2018 / 12:20:02 / Claus Gittinger"
18665
Claus Gittinger <cg@exept.de>
parents: 18657
diff changeset
   260
    "Modified (comment): / 12-03-2019 / 16:42:24 / Claus Gittinger"
11283
Claus Gittinger <cg@exept.de>
parents: 11282
diff changeset
   261
! !
Claus Gittinger <cg@exept.de>
parents: 11282
diff changeset
   262
13639
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
   263
!Autoload class methodsFor:'message catching'!
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
   264
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
   265
inspectorExtraAttributes
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
   266
    "extra (pseudo instvar) entries to be shown in an inspector."
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
   267
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
   268
    ^ #()
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
   269
! !
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
   270
14641
429daeba4b8b Bag inspector-extra: histogram
Claus Gittinger <cg@exept.de>
parents: 14636
diff changeset
   271
!Bag methodsFor:'inspecting'!
429daeba4b8b Bag inspector-extra: histogram
Claus Gittinger <cg@exept.de>
parents: 14636
diff changeset
   272
429daeba4b8b Bag inspector-extra: histogram
Claus Gittinger <cg@exept.de>
parents: 14636
diff changeset
   273
inspectorExtraAttributes
429daeba4b8b Bag inspector-extra: histogram
Claus Gittinger <cg@exept.de>
parents: 14636
diff changeset
   274
    "extra (pseudo instvar) entries to be shown in an inspector."
429daeba4b8b Bag inspector-extra: histogram
Claus Gittinger <cg@exept.de>
parents: 14636
diff changeset
   275
429daeba4b8b Bag inspector-extra: histogram
Claus Gittinger <cg@exept.de>
parents: 14636
diff changeset
   276
    ^ super inspectorExtraAttributes
429daeba4b8b Bag inspector-extra: histogram
Claus Gittinger <cg@exept.de>
parents: 14636
diff changeset
   277
        add:('-histogram' -> [ (self sortedCounts collect:[:e| e displayString]) asStringCollection asString ]);
429daeba4b8b Bag inspector-extra: histogram
Claus Gittinger <cg@exept.de>
parents: 14636
diff changeset
   278
        yourself
429daeba4b8b Bag inspector-extra: histogram
Claus Gittinger <cg@exept.de>
parents: 14636
diff changeset
   279
! !
429daeba4b8b Bag inspector-extra: histogram
Claus Gittinger <cg@exept.de>
parents: 14636
diff changeset
   280
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   281
!Behavior methodsFor:'misc ui support'!
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   282
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   283
iconInBrowserSymbol
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   284
    "can be redefined for a private icon in the browser (for me and my subclasses).
16117
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
   285
     The returned symbol must be a selector of the ToolbarIconLibrary.
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
   286
     The browser will use this as index into the toolbariconlibrary"
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   287
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   288
    <resource: #programImage>
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   289
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   290
    self isLoaded ifFalse:[
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   291
        ^ #autoloadedClassBrowserIcon
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   292
    ].
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   293
    (self isBrowserStartable) ifTrue:[
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   294
        self isVisualStartable ifTrue:[
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   295
            ^ #visualStartableClassBrowserIcon
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   296
        ].
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   297
        ^ #startableClassBrowserIcon
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   298
    ].
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   299
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   300
    "/ give ruby and other special metaclasses a chance to provide their own icon...
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   301
    ^ self class iconInBrowserSymbol
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   302
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   303
    "Created: / 20-07-2007 / 08:52:17 / cg"
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   304
! !
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   305
11838
f0b57bc138d4 meta/nonmeta in class inspection
Claus Gittinger <cg@exept.de>
parents: 11827
diff changeset
   306
!Behavior methodsFor:'inspecting'!
f0b57bc138d4 meta/nonmeta in class inspection
Claus Gittinger <cg@exept.de>
parents: 11827
diff changeset
   307
f0b57bc138d4 meta/nonmeta in class inspection
Claus Gittinger <cg@exept.de>
parents: 11827
diff changeset
   308
inspectorExtraAttributes
f0b57bc138d4 meta/nonmeta in class inspection
Claus Gittinger <cg@exept.de>
parents: 11827
diff changeset
   309
    "extra (pseudo instvar) entries to be shown in an inspector."
f0b57bc138d4 meta/nonmeta in class inspection
Claus Gittinger <cg@exept.de>
parents: 11827
diff changeset
   310
13639
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
   311
    ^ super inspectorExtraAttributes
11838
f0b57bc138d4 meta/nonmeta in class inspection
Claus Gittinger <cg@exept.de>
parents: 11827
diff changeset
   312
        add:(self isMeta
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
   313
                ifFalse:[ '-meta'   -> self theMetaclass ]
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
   314
                ifTrue:[ '-nonMeta' -> self theNonMetaclass ]);
15448
Claus Gittinger <cg@exept.de>
parents: 15417
diff changeset
   315
        add:( '-project definition class' -> [ self theNonMetaclass projectDefinitionClass ] );
11838
f0b57bc138d4 meta/nonmeta in class inspection
Claus Gittinger <cg@exept.de>
parents: 11827
diff changeset
   316
        yourself
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
   317
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
   318
    "Modified (format): / 18-07-2017 / 19:56:35 / cg"
11838
f0b57bc138d4 meta/nonmeta in class inspection
Claus Gittinger <cg@exept.de>
parents: 11827
diff changeset
   319
! !
f0b57bc138d4 meta/nonmeta in class inspection
Claus Gittinger <cg@exept.de>
parents: 11827
diff changeset
   320
11852
532a96275343 changed: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 11838
diff changeset
   321
!Behavior methodsFor:'inspecting'!
532a96275343 changed: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 11838
diff changeset
   322
18540
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   323
inspectorValueListIconFor:anInspector
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   324
    "returns the icon to be shown alongside the value list of an inspector"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   325
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   326
    ^ anInspector imageFor_classes
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   327
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   328
    "Created: / 12-12-2018 / 16:21:16 / Claus Gittinger"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   329
! !
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   330
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   331
!Behavior methodsFor:'inspecting'!
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   332
11852
532a96275343 changed: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 11838
diff changeset
   333
inspectorValueStringInListFor:anInspector
17621
Claus Gittinger <cg@exept.de>
parents: 17592
diff changeset
   334
    "returns a string to be shown in the inspector's selection list"
11852
532a96275343 changed: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 11838
diff changeset
   335
532a96275343 changed: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 11838
diff changeset
   336
    |nm|
532a96275343 changed: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 11838
diff changeset
   337
532a96275343 changed: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 11838
diff changeset
   338
    (nm := self name) notEmptyOrNil ifTrue:[
532a96275343 changed: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 11838
diff changeset
   339
        ^ nm
532a96275343 changed: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 11838
diff changeset
   340
    ].
532a96275343 changed: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 11838
diff changeset
   341
    ^ super inspectorValueStringInListFor:anInspector
17621
Claus Gittinger <cg@exept.de>
parents: 17592
diff changeset
   342
Claus Gittinger <cg@exept.de>
parents: 17592
diff changeset
   343
    "Modified (comment): / 16-08-2017 / 20:52:05 / cg"
11852
532a96275343 changed: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 11838
diff changeset
   344
! !
532a96275343 changed: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 11838
diff changeset
   345
15417
b016646da2a3 Added Behaviour>>methodsCount to avoid direct methodDictionary access.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15415
diff changeset
   346
!Behavior methodsFor:'queries'!
b016646da2a3 Added Behaviour>>methodsCount to avoid direct methodDictionary access.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15415
diff changeset
   347
b016646da2a3 Added Behaviour>>methodsCount to avoid direct methodDictionary access.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15415
diff changeset
   348
methodsCount
b016646da2a3 Added Behaviour>>methodsCount to avoid direct methodDictionary access.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15415
diff changeset
   349
    "Return a number of methods or nil if number of methods
b016646da2a3 Added Behaviour>>methodsCount to avoid direct methodDictionary access.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15415
diff changeset
   350
     is not known (such as for lazy-loaded classes)"
b016646da2a3 Added Behaviour>>methodsCount to avoid direct methodDictionary access.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15415
diff changeset
   351
b016646da2a3 Added Behaviour>>methodsCount to avoid direct methodDictionary access.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15415
diff changeset
   352
    ^ methodDictionary size
b016646da2a3 Added Behaviour>>methodsCount to avoid direct methodDictionary access.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15415
diff changeset
   353
b016646da2a3 Added Behaviour>>methodsCount to avoid direct methodDictionary access.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15415
diff changeset
   354
    "Created: / 25-02-2015 / 16:14:17 / Jan Vrany <jan.vrany@fit.cvut.cz>"
b016646da2a3 Added Behaviour>>methodsCount to avoid direct methodDictionary access.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15415
diff changeset
   355
! !
b016646da2a3 Added Behaviour>>methodsCount to avoid direct methodDictionary access.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15415
diff changeset
   356
10859
38ebf3f1299e block decompile in inspector
Claus Gittinger <cg@exept.de>
parents: 10851
diff changeset
   357
!Block methodsFor:'inspecting'!
38ebf3f1299e block decompile in inspector
Claus Gittinger <cg@exept.de>
parents: 10851
diff changeset
   358
18381
4cdb2e523391 class: Tools::Inspector2::NavigationState
Claus Gittinger <cg@exept.de>
parents: 18349
diff changeset
   359
inspector2TabClassOfHome
18383
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
   360
    "another tab browsing the block's home method"
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
   361
    
18381
4cdb2e523391 class: Tools::Inspector2::NavigationState
Claus Gittinger <cg@exept.de>
parents: 18349
diff changeset
   362
    <inspector2Tab>
4cdb2e523391 class: Tools::Inspector2::NavigationState
Claus Gittinger <cg@exept.de>
parents: 18349
diff changeset
   363
4cdb2e523391 class: Tools::Inspector2::NavigationState
Claus Gittinger <cg@exept.de>
parents: 18349
diff changeset
   364
    |homeMethod mclass|
4cdb2e523391 class: Tools::Inspector2::NavigationState
Claus Gittinger <cg@exept.de>
parents: 18349
diff changeset
   365
    
4cdb2e523391 class: Tools::Inspector2::NavigationState
Claus Gittinger <cg@exept.de>
parents: 18349
diff changeset
   366
    (homeMethod := self homeMethod) notNil ifTrue:[
4cdb2e523391 class: Tools::Inspector2::NavigationState
Claus Gittinger <cg@exept.de>
parents: 18349
diff changeset
   367
        (mclass := homeMethod mclass) notNil ifTrue:[
4cdb2e523391 class: Tools::Inspector2::NavigationState
Claus Gittinger <cg@exept.de>
parents: 18349
diff changeset
   368
            ^ Tools::Inspector2Tab 
4cdb2e523391 class: Tools::Inspector2::NavigationState
Claus Gittinger <cg@exept.de>
parents: 18349
diff changeset
   369
                toBrowseClass:mclass 
4cdb2e523391 class: Tools::Inspector2::NavigationState
Claus Gittinger <cg@exept.de>
parents: 18349
diff changeset
   370
                selector:(homeMethod selector) 
4cdb2e523391 class: Tools::Inspector2::NavigationState
Claus Gittinger <cg@exept.de>
parents: 18349
diff changeset
   371
                label:'Block''s Home Class'
4cdb2e523391 class: Tools::Inspector2::NavigationState
Claus Gittinger <cg@exept.de>
parents: 18349
diff changeset
   372
        ].
4cdb2e523391 class: Tools::Inspector2::NavigationState
Claus Gittinger <cg@exept.de>
parents: 18349
diff changeset
   373
    ].
4cdb2e523391 class: Tools::Inspector2::NavigationState
Claus Gittinger <cg@exept.de>
parents: 18349
diff changeset
   374
    ^ nil
4cdb2e523391 class: Tools::Inspector2::NavigationState
Claus Gittinger <cg@exept.de>
parents: 18349
diff changeset
   375
4cdb2e523391 class: Tools::Inspector2::NavigationState
Claus Gittinger <cg@exept.de>
parents: 18349
diff changeset
   376
    "Created: / 14-09-2018 / 18:21:52 / Claus Gittinger"
18383
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
   377
    "Modified (comment): / 14-09-2018 / 21:34:01 / Claus Gittinger"
18381
4cdb2e523391 class: Tools::Inspector2::NavigationState
Claus Gittinger <cg@exept.de>
parents: 18349
diff changeset
   378
! !
4cdb2e523391 class: Tools::Inspector2::NavigationState
Claus Gittinger <cg@exept.de>
parents: 18349
diff changeset
   379
4cdb2e523391 class: Tools::Inspector2::NavigationState
Claus Gittinger <cg@exept.de>
parents: 18349
diff changeset
   380
!Block methodsFor:'inspecting'!
4cdb2e523391 class: Tools::Inspector2::NavigationState
Claus Gittinger <cg@exept.de>
parents: 18349
diff changeset
   381
10859
38ebf3f1299e block decompile in inspector
Claus Gittinger <cg@exept.de>
parents: 10851
diff changeset
   382
inspectorExtraAttributes
38ebf3f1299e block decompile in inspector
Claus Gittinger <cg@exept.de>
parents: 10851
diff changeset
   383
    "extra (pseudo instvar) entries to be shown in an inspector."
38ebf3f1299e block decompile in inspector
Claus Gittinger <cg@exept.de>
parents: 10851
diff changeset
   384
13639
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
   385
    |d|
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
   386
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
   387
    d := super inspectorExtraAttributes.
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
   388
10859
38ebf3f1299e block decompile in inspector
Claus Gittinger <cg@exept.de>
parents: 10851
diff changeset
   389
    self homeMethod isNil ifTrue:[
13639
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
   390
        d
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
   391
            add:'-code'   -> 'no home method';
13639
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
   392
            add:'-source' -> 'no home method'.
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
   393
    ] ifFalse:[
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
   394
        d    
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
   395
            add:'-code'   -> [ String streamContents:[:s | self homeMethod decompileTo:s]];
13639
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
   396
            add:'-source' -> [ self homeMethod source].
10859
38ebf3f1299e block decompile in inspector
Claus Gittinger <cg@exept.de>
parents: 10851
diff changeset
   397
    ].
13639
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
   398
    ^ d
10859
38ebf3f1299e block decompile in inspector
Claus Gittinger <cg@exept.de>
parents: 10851
diff changeset
   399
38ebf3f1299e block decompile in inspector
Claus Gittinger <cg@exept.de>
parents: 10851
diff changeset
   400
    "Created: / 15-11-2011 / 14:24:10 / cg"
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
   401
    "Modified (format): / 18-07-2017 / 19:56:44 / cg"
10859
38ebf3f1299e block decompile in inspector
Claus Gittinger <cg@exept.de>
parents: 10851
diff changeset
   402
! !
38ebf3f1299e block decompile in inspector
Claus Gittinger <cg@exept.de>
parents: 10851
diff changeset
   403
13423
792b998bcc1a class: MessageNode
Claus Gittinger <cg@exept.de>
parents: 13067
diff changeset
   404
!Boolean methodsFor:'inspecting'!
792b998bcc1a class: MessageNode
Claus Gittinger <cg@exept.de>
parents: 13067
diff changeset
   405
792b998bcc1a class: MessageNode
Claus Gittinger <cg@exept.de>
parents: 13067
diff changeset
   406
inspectorValueStringInListFor:anInspector
17621
Claus Gittinger <cg@exept.de>
parents: 17592
diff changeset
   407
    "returns a string to be shown in the inspector's selection list"
13423
792b998bcc1a class: MessageNode
Claus Gittinger <cg@exept.de>
parents: 13067
diff changeset
   408
792b998bcc1a class: MessageNode
Claus Gittinger <cg@exept.de>
parents: 13067
diff changeset
   409
    ^ self printString
17621
Claus Gittinger <cg@exept.de>
parents: 17592
diff changeset
   410
Claus Gittinger <cg@exept.de>
parents: 17592
diff changeset
   411
    "Modified (comment): / 16-08-2017 / 20:52:09 / cg"
13423
792b998bcc1a class: MessageNode
Claus Gittinger <cg@exept.de>
parents: 13067
diff changeset
   412
! !
792b998bcc1a class: MessageNode
Claus Gittinger <cg@exept.de>
parents: 13067
diff changeset
   413
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   414
!Breakpoint methodsFor:'accessing'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   415
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   416
icon
10310
cf3cfd80f443 #icon moved to stx:libtool
vrany
parents: 10240
diff changeset
   417
cf3cfd80f443 #icon moved to stx:libtool
vrany
parents: 10240
diff changeset
   418
    ^description icon
cf3cfd80f443 #icon moved to stx:libtool
vrany
parents: 10240
diff changeset
   419
cf3cfd80f443 #icon moved to stx:libtool
vrany
parents: 10240
diff changeset
   420
    "Created: / 11-07-2011 / 18:21:57 / Jan Vrany <jan.vrany@fit.cvut.cz>"
cf3cfd80f443 #icon moved to stx:libtool
vrany
parents: 10240
diff changeset
   421
! !
cf3cfd80f443 #icon moved to stx:libtool
vrany
parents: 10240
diff changeset
   422
cf3cfd80f443 #icon moved to stx:libtool
vrany
parents: 10240
diff changeset
   423
!BreakpointDescription methodsFor:'accessing'!
cf3cfd80f443 #icon moved to stx:libtool
vrany
parents: 10240
diff changeset
   424
cf3cfd80f443 #icon moved to stx:libtool
vrany
parents: 10240
diff changeset
   425
icon
10202
34f07f3a4f8a comment/format in: #toggle
Claus Gittinger <cg@exept.de>
parents: 10164
diff changeset
   426
    "do not use abbreviations like bpnt or brp or similar;
34f07f3a4f8a comment/format in: #toggle
Claus Gittinger <cg@exept.de>
parents: 10164
diff changeset
   427
     when I do not know the exact name, I tend to search for implementors/senders
34f07f3a4f8a comment/format in: #toggle
Claus Gittinger <cg@exept.de>
parents: 10164
diff changeset
   428
     of '*break*' or '*disabled*'.
34f07f3a4f8a comment/format in: #toggle
Claus Gittinger <cg@exept.de>
parents: 10164
diff changeset
   429
     I will not find anything useful and have to single step if methods are named
34f07f3a4f8a comment/format in: #toggle
Claus Gittinger <cg@exept.de>
parents: 10164
diff changeset
   430
     cryptically."
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   431
14488
006f6d5298c7 class: BreakpointDescription
Claus Gittinger <cg@exept.de>
parents: 14243
diff changeset
   432
    icon notNil ifTrue:[^ icon].
006f6d5298c7 class: BreakpointDescription
Claus Gittinger <cg@exept.de>
parents: 14243
diff changeset
   433
10202
34f07f3a4f8a comment/format in: #toggle
Claus Gittinger <cg@exept.de>
parents: 10164
diff changeset
   434
    condition isNil ifTrue:[
12821
a8bd435271a0 class: ObjectFileLoader
Claus Gittinger <cg@exept.de>
parents: 12814
diff changeset
   435
        state == #enabled ifTrue:[^ ToolbarIconLibrary breakpointRedEnabled].
a8bd435271a0 class: ObjectFileLoader
Claus Gittinger <cg@exept.de>
parents: 12814
diff changeset
   436
        state == #disabled ifTrue:[^ ToolbarIconLibrary breakpointRedDisabled].
a8bd435271a0 class: ObjectFileLoader
Claus Gittinger <cg@exept.de>
parents: 12814
diff changeset
   437
        state == #tracing ifTrue:[^ ToolbarIconLibrary tracepointBlue].
10202
34f07f3a4f8a comment/format in: #toggle
Claus Gittinger <cg@exept.de>
parents: 10164
diff changeset
   438
    ] ifFalse:[
12821
a8bd435271a0 class: ObjectFileLoader
Claus Gittinger <cg@exept.de>
parents: 12814
diff changeset
   439
        state == #enabled ifTrue:[^ ToolbarIconLibrary breakpointBlueEnabled].
a8bd435271a0 class: ObjectFileLoader
Claus Gittinger <cg@exept.de>
parents: 12814
diff changeset
   440
        state == #disabled ifTrue:[^ ToolbarIconLibrary breakpointBlueDisabled].
10202
34f07f3a4f8a comment/format in: #toggle
Claus Gittinger <cg@exept.de>
parents: 10164
diff changeset
   441
    ].
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   442
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   443
    ^nil
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   444
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   445
    "Created: / 28-06-2011 / 08:29:12 / Jan Vrany <jan.vrany@fit.cvut.cz>"
11222
225353236163 changed: #icon
Claus Gittinger <cg@exept.de>
parents: 10859
diff changeset
   446
    "Modified: / 27-01-2012 / 13:46:23 / cg"
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   447
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   448
7299
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
   449
!ByteArray methodsFor:'inspecting'!
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
   450
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
   451
inspectorExtraAttributes
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
   452
    "extra (pseudo instvar) entries to be shown in an inspector."
8839
792607726eb6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8838
diff changeset
   453
12768
c88af8fef47e class: ByteArray
Claus Gittinger <cg@exept.de>
parents: 12661
diff changeset
   454
    |basePrinter|
c88af8fef47e class: ByteArray
Claus Gittinger <cg@exept.de>
parents: 12661
diff changeset
   455
c88af8fef47e class: ByteArray
Claus Gittinger <cg@exept.de>
parents: 12661
diff changeset
   456
    basePrinter := 
c88af8fef47e class: ByteArray
Claus Gittinger <cg@exept.de>
parents: 12661
diff changeset
   457
        [:arr :b |
c88af8fef47e class: ByteArray
Claus Gittinger <cg@exept.de>
parents: 12661
diff changeset
   458
            String
c88af8fef47e class: ByteArray
Claus Gittinger <cg@exept.de>
parents: 12661
diff changeset
   459
                streamContents:[:s |
c88af8fef47e class: ByteArray
Claus Gittinger <cg@exept.de>
parents: 12661
diff changeset
   460
                    arr class isWords ifTrue:[
c88af8fef47e class: ByteArray
Claus Gittinger <cg@exept.de>
parents: 12661
diff changeset
   461
                        arr asWordArray printOn:s base:b showRadix:true
c88af8fef47e class: ByteArray
Claus Gittinger <cg@exept.de>
parents: 12661
diff changeset
   462
                    ] ifFalse:[
c88af8fef47e class: ByteArray
Claus Gittinger <cg@exept.de>
parents: 12661
diff changeset
   463
                        arr class isLongs ifTrue:[
c88af8fef47e class: ByteArray
Claus Gittinger <cg@exept.de>
parents: 12661
diff changeset
   464
                            arr asLongIntegerArray printOn:s base:b showRadix:true
c88af8fef47e class: ByteArray
Claus Gittinger <cg@exept.de>
parents: 12661
diff changeset
   465
                        ] ifFalse:[
c88af8fef47e class: ByteArray
Claus Gittinger <cg@exept.de>
parents: 12661
diff changeset
   466
                            arr asByteArray printOn:s base:b showRadix:true
c88af8fef47e class: ByteArray
Claus Gittinger <cg@exept.de>
parents: 12661
diff changeset
   467
                        ]
c88af8fef47e class: ByteArray
Claus Gittinger <cg@exept.de>
parents: 12661
diff changeset
   468
                    ]
c88af8fef47e class: ByteArray
Claus Gittinger <cg@exept.de>
parents: 12661
diff changeset
   469
                ]
c88af8fef47e class: ByteArray
Claus Gittinger <cg@exept.de>
parents: 12661
diff changeset
   470
        ].
c88af8fef47e class: ByteArray
Claus Gittinger <cg@exept.de>
parents: 12661
diff changeset
   471
13639
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
   472
    ^ super inspectorExtraAttributes
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
   473
        add:'-hexstring'   -> [ self hexPrintString "WithSeparator:Character space" ];
12768
c88af8fef47e class: ByteArray
Claus Gittinger <cg@exept.de>
parents: 12661
diff changeset
   474
        add:'-hexadecimal' -> [ basePrinter value:self value:16 ];
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
   475
        add:'-binary'      -> [ basePrinter value:self value:2 ];
18995
0757b688a56f base64 in inspector
Claus Gittinger <cg@exept.de>
parents: 18976
diff changeset
   476
        add:'-base64'      -> [ self base64Encoded ];
16846
9aeeaa40f968 inspector attribute: asciiString
Claus Gittinger <cg@exept.de>
parents: 16837
diff changeset
   477
        add:'-asciiString' -> [ self asString ];
18393
Claus Gittinger <cg@exept.de>
parents: 18385
diff changeset
   478
        add:'-cString'     -> [ '{',(String streamContents:[:s | self do:[:b | s printf:'0x%02x' with:b ] separatedBy:[s nextPutAll:', ']]), '}' ];
9324
86307b0d7c57 hexString in inspector for ByteArrays
Claus Gittinger <cg@exept.de>
parents: 9050
diff changeset
   479
        yourself
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
   480
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
   481
    "Modified (format): / 18-07-2017 / 19:56:54 / cg"
18393
Claus Gittinger <cg@exept.de>
parents: 18385
diff changeset
   482
    "Modified: / 19-09-2018 / 12:08:42 / Claus Gittinger"
7365
20fe515d3a34 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7356
diff changeset
   483
! !
20fe515d3a34 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7356
diff changeset
   484
17673
8ebaecbbbbd8 inspecting
Claus Gittinger <cg@exept.de>
parents: 17670
diff changeset
   485
!ByteArray methodsFor:'inspecting'!
8ebaecbbbbd8 inspecting
Claus Gittinger <cg@exept.de>
parents: 17670
diff changeset
   486
8ebaecbbbbd8 inspecting
Claus Gittinger <cg@exept.de>
parents: 17670
diff changeset
   487
inspectorValueStringInListFor:anInspector
8ebaecbbbbd8 inspecting
Claus Gittinger <cg@exept.de>
parents: 17670
diff changeset
   488
    "returns a string to be shown in the inspector's list"
8ebaecbbbbd8 inspecting
Claus Gittinger <cg@exept.de>
parents: 17670
diff changeset
   489
8ebaecbbbbd8 inspecting
Claus Gittinger <cg@exept.de>
parents: 17670
diff changeset
   490
    |sz|
8ebaecbbbbd8 inspecting
Claus Gittinger <cg@exept.de>
parents: 17670
diff changeset
   491
8ebaecbbbbd8 inspecting
Claus Gittinger <cg@exept.de>
parents: 17670
diff changeset
   492
    (sz := self size) <= 5 ifTrue:[
8ebaecbbbbd8 inspecting
Claus Gittinger <cg@exept.de>
parents: 17670
diff changeset
   493
        ^ self printString
8ebaecbbbbd8 inspecting
Claus Gittinger <cg@exept.de>
parents: 17670
diff changeset
   494
    ].
8ebaecbbbbd8 inspecting
Claus Gittinger <cg@exept.de>
parents: 17670
diff changeset
   495
    ^ (super inspectorValueStringInListFor:anInspector)
8ebaecbbbbd8 inspecting
Claus Gittinger <cg@exept.de>
parents: 17670
diff changeset
   496
8ebaecbbbbd8 inspecting
Claus Gittinger <cg@exept.de>
parents: 17670
diff changeset
   497
    "Created: / 05-09-2017 / 10:55:27 / cg"
8ebaecbbbbd8 inspecting
Claus Gittinger <cg@exept.de>
parents: 17670
diff changeset
   498
! !
8ebaecbbbbd8 inspecting
Claus Gittinger <cg@exept.de>
parents: 17670
diff changeset
   499
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   500
!Change methodsFor:'private'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   501
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   502
flattenOnto: aCollection 
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   503
	aCollection add: self
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   504
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   505
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   506
!Change methodsFor:'private'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   507
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   508
flattenedChanges
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   509
	| changes |
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   510
	changes := OrderedCollection new.
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   511
	self flattenOnto: changes.
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   512
	^changes
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   513
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   514
17421
1c4a5842450e change has extra attribs: source
Claus Gittinger <cg@exept.de>
parents: 17415
diff changeset
   515
!Change methodsFor:'inspecting'!
1c4a5842450e change has extra attribs: source
Claus Gittinger <cg@exept.de>
parents: 17415
diff changeset
   516
1c4a5842450e change has extra attribs: source
Claus Gittinger <cg@exept.de>
parents: 17415
diff changeset
   517
inspectorExtraAttributes
18044
c9957a145a7b inspecting change
Claus Gittinger <cg@exept.de>
parents: 17673
diff changeset
   518
    |attrs|
c9957a145a7b inspecting change
Claus Gittinger <cg@exept.de>
parents: 17673
diff changeset
   519
c9957a145a7b inspecting change
Claus Gittinger <cg@exept.de>
parents: 17673
diff changeset
   520
    attrs := super inspectorExtraAttributes.
c9957a145a7b inspecting change
Claus Gittinger <cg@exept.de>
parents: 17673
diff changeset
   521
    attrs add:'-source' -> [ self source ].
c9957a145a7b inspecting change
Claus Gittinger <cg@exept.de>
parents: 17673
diff changeset
   522
    ^ attrs
17421
1c4a5842450e change has extra attribs: source
Claus Gittinger <cg@exept.de>
parents: 17415
diff changeset
   523
1c4a5842450e change has extra attribs: source
Claus Gittinger <cg@exept.de>
parents: 17415
diff changeset
   524
    "Created: / 20-02-2017 / 16:34:26 / cg"
1c4a5842450e change has extra attribs: source
Claus Gittinger <cg@exept.de>
parents: 17415
diff changeset
   525
! !
1c4a5842450e change has extra attribs: source
Claus Gittinger <cg@exept.de>
parents: 17415
diff changeset
   526
19464
1d35e5885ed5 nicer entry in inspector
Claus Gittinger <cg@exept.de>
parents: 19458
diff changeset
   527
!Change methodsFor:'inspecting'!
1d35e5885ed5 nicer entry in inspector
Claus Gittinger <cg@exept.de>
parents: 19458
diff changeset
   528
1d35e5885ed5 nicer entry in inspector
Claus Gittinger <cg@exept.de>
parents: 19458
diff changeset
   529
inspectorValueStringInListFor:anInspector
1d35e5885ed5 nicer entry in inspector
Claus Gittinger <cg@exept.de>
parents: 19458
diff changeset
   530
    ^ self class name,'(',self displayString,')'
1d35e5885ed5 nicer entry in inspector
Claus Gittinger <cg@exept.de>
parents: 19458
diff changeset
   531
! !
1d35e5885ed5 nicer entry in inspector
Claus Gittinger <cg@exept.de>
parents: 19458
diff changeset
   532
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   533
!Change methodsFor:'accessing'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   534
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   535
removed
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   536
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   537
    ^(self objectAttributeAt: #removed) ? false
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   538
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   539
    "Created: / 24-10-2009 / 21:10:57 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   540
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   541
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   542
!Change methodsFor:'accessing'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   543
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   544
removed: aBoolean
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   545
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   546
    ^self objectAttributeAt: #removed put: aBoolean
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   547
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   548
    "Created: / 24-10-2009 / 21:11:09 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   549
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   550
11773
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   551
!ChangeSet methodsFor:'utilities'!
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   552
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   553
condenseChangesForRemoved
11971
69a53e6321ec comment/format in: #condenseChangesForRemoved
Claus Gittinger <cg@exept.de>
parents: 11897
diff changeset
   554
    "remove all changes which have been removed 
69a53e6321ec comment/format in: #condenseChangesForRemoved
Claus Gittinger <cg@exept.de>
parents: 11897
diff changeset
   555
     (marked for removal by aChange removed: true)"
11773
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   556
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   557
    |changesToRemove|
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   558
11971
69a53e6321ec comment/format in: #condenseChangesForRemoved
Claus Gittinger <cg@exept.de>
parents: 11897
diff changeset
   559
    changesToRemove := 
69a53e6321ec comment/format in: #condenseChangesForRemoved
Claus Gittinger <cg@exept.de>
parents: 11897
diff changeset
   560
        self select:[:aChange | 
69a53e6321ec comment/format in: #condenseChangesForRemoved
Claus Gittinger <cg@exept.de>
parents: 11897
diff changeset
   561
            aChange isCompositeChange ifTrue:[
69a53e6321ec comment/format in: #condenseChangesForRemoved
Claus Gittinger <cg@exept.de>
parents: 11897
diff changeset
   562
                aChange condenseChangesForRemoved
69a53e6321ec comment/format in: #condenseChangesForRemoved
Claus Gittinger <cg@exept.de>
parents: 11897
diff changeset
   563
            ].        
69a53e6321ec comment/format in: #condenseChangesForRemoved
Claus Gittinger <cg@exept.de>
parents: 11897
diff changeset
   564
            aChange removed
69a53e6321ec comment/format in: #condenseChangesForRemoved
Claus Gittinger <cg@exept.de>
parents: 11897
diff changeset
   565
        ].
11773
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   566
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   567
    self condenseChanges:changesToRemove
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   568
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   569
    "Created: / 05-11-2001 / 14:21:17 / cg"
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   570
    "Modified: / 12-10-2006 / 16:51:27 / cg"
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   571
! !
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   572
13887
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
   573
!ChangeSet methodsFor:'private'!
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
   574
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
   575
flattenOnto: aCollection
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
   576
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
   577
    self do:[:change|change flattenOnto: aCollection]
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
   578
! !
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
   579
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
   580
!ChangeSet methodsFor:'private'!
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
   581
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
   582
flattenedChanges
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
   583
	| changes |
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
   584
	changes := OrderedCollection new.
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
   585
	self flattenOnto: changes.
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
   586
	^changes
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
   587
! !
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
   588
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
   589
!ChangeSet methodsFor:'inspecting'!
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
   590
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
   591
inspector2TabBrowser
18383
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
   592
    "another tab browsing the changeset"
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
   593
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
   594
    <inspector2Tab>
13887
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
   595
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
   596
    ^self newInspector2Tab
18383
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
   597
        label: 'Changes';
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
   598
        priority: 35;
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
   599
        "JV@2011-08-06: Cannot do 'UserPreferences current changeSetBrowserClass'
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
   600
         here since ChangeSetBrowser has no #on: and it is not an application model.
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
   601
         Thus, enforce Tools::ChangeSetBrowser2 here..."
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
   602
        application: ((Tools::ChangeSetBrowser2 on: self) beOneColumn; yourself)
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
   603
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
   604
    "
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
   605
     ChangeSet current inspect
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
   606
    "
13887
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
   607
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
   608
    "Modified: / 25-07-2011 / 12:22:07 / sr"
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
   609
    "Modified: / 06-08-2011 / 21:22:46 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
   610
    "Modified: / 13-09-2011 / 11:55:53 / cg"
18383
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
   611
    "Modified (comment): / 14-09-2018 / 21:34:47 / Claus Gittinger"
13887
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
   612
! !
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
   613
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
   614
!Character methodsFor:'inspecting'!
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
   615
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
   616
inspectorExtraAttributes
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
   617
    "extra (pseudo instvar) entries to be shown in an inspector."
8677
Claus Gittinger <cg@exept.de>
parents: 8417
diff changeset
   618
15149
caec9aaa1869 class: Character
Claus Gittinger <cg@exept.de>
parents: 15148
diff changeset
   619
    |atts|
caec9aaa1869 class: Character
Claus Gittinger <cg@exept.de>
parents: 15148
diff changeset
   620
caec9aaa1869 class: Character
Claus Gittinger <cg@exept.de>
parents: 15148
diff changeset
   621
    atts := super inspectorExtraAttributes.
caec9aaa1869 class: Character
Claus Gittinger <cg@exept.de>
parents: 15148
diff changeset
   622
    atts
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
   623
        add:'-hexValue'   -> [ self codePoint radixPrintStringRadix:16 ];
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
   624
        add:'-string'     -> [ self stringSpecies with:self ];
19227
Claus Gittinger <cg@exept.de>
parents: 19203
diff changeset
   625
        add:'-unicodeBlock' -> [ self unicodeBlock];
13639
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
   626
        add:'-utf8String' -> [ self utf8Encoded ];
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
   627
        add:'-utf8'       -> [ self utf8Encoded asByteArray hexPrintStringWithSeparator:Character space ].
15149
caec9aaa1869 class: Character
Claus Gittinger <cg@exept.de>
parents: 15148
diff changeset
   628
caec9aaa1869 class: Character
Claus Gittinger <cg@exept.de>
parents: 15148
diff changeset
   629
    HTMLUtilities notNil ifTrue:[
caec9aaa1869 class: Character
Claus Gittinger <cg@exept.de>
parents: 15148
diff changeset
   630
        atts add:'-html' -> [ HTMLUtilities escapeCharacterEntities:self asString ]
caec9aaa1869 class: Character
Claus Gittinger <cg@exept.de>
parents: 15148
diff changeset
   631
    ].
caec9aaa1869 class: Character
Claus Gittinger <cg@exept.de>
parents: 15148
diff changeset
   632
    ^ atts
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
   633
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
   634
    "
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
   635
     $a inspect
15149
caec9aaa1869 class: Character
Claus Gittinger <cg@exept.de>
parents: 15148
diff changeset
   636
     $> inspect
caec9aaa1869 class: Character
Claus Gittinger <cg@exept.de>
parents: 15148
diff changeset
   637
     (Character value:16r3124) inspect
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
   638
    "
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
   639
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
   640
    "Created: / 22-10-2006 / 03:52:20 / cg"
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
   641
    "Modified (format): / 18-07-2017 / 19:57:07 / cg"
7447
744eea8ff31c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7371
diff changeset
   642
! !
744eea8ff31c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7371
diff changeset
   643
11773
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   644
!Character methodsFor:'inspecting'!
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   645
18540
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   646
inspectorValueListIconFor:anInspector
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   647
    "returns the icon to be shown alongside the value list of an inspector"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   648
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   649
    ^ anInspector imageFor_characters
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   650
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   651
    "Created: / 12-12-2018 / 16:20:58 / Claus Gittinger"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   652
! !
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   653
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   654
!Character methodsFor:'inspecting'!
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   655
11773
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   656
inspectorValueStringInListFor:anInspector
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   657
    "returns a string to be shown in the inspector's list"
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   658
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   659
    (asciivalue <= 16r7f) ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   660
        ^ self storeString,(' "16r%1 %2"' bindWith:(asciivalue hexPrintString) with:asciivalue)
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   661
    ].
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   662
    ^ self storeString,(' "%1"' bindWith:asciivalue)
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   663
! !
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   664
10313
a2f4e3f74efe category
Claus Gittinger <cg@exept.de>
parents: 10310
diff changeset
   665
!CharacterArray methodsFor:'inspecting'!
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   666
10355
82ee4e550517 Added missing CharacterArray>>inspector2TabBytes
vrany
parents: 10336
diff changeset
   667
inspector2TabBytes
16283
a0933d5dc2c1 hexdump (in inspector) for 2-byte chars fixed
Claus Gittinger <cg@exept.de>
parents: 16282
diff changeset
   668
    |bytesShown|
a0933d5dc2c1 hexdump (in inspector) for 2-byte chars fixed
Claus Gittinger <cg@exept.de>
parents: 16282
diff changeset
   669
    
a0933d5dc2c1 hexdump (in inspector) for 2-byte chars fixed
Claus Gittinger <cg@exept.de>
parents: 16282
diff changeset
   670
    "/ ouch - ever tried to inspect a 5Mb string?
a0933d5dc2c1 hexdump (in inspector) for 2-byte chars fixed
Claus Gittinger <cg@exept.de>
parents: 16282
diff changeset
   671
    self size < 10000 ifTrue:[
17171
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
   672
        bytesShown := self asByteArray hexPrintStringWithSeparator:Character space
16283
a0933d5dc2c1 hexdump (in inspector) for 2-byte chars fixed
Claus Gittinger <cg@exept.de>
parents: 16282
diff changeset
   673
    ] ifFalse:[
17171
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
   674
        bytesShown := ((self copyTo:10000) asByteArray hexPrintStringWithSeparator:Character space),
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
   675
                      Character cr,
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
   676
                      '... (only the first 10000 bytes are shown)'
16283
a0933d5dc2c1 hexdump (in inspector) for 2-byte chars fixed
Claus Gittinger <cg@exept.de>
parents: 16282
diff changeset
   677
    ].
a0933d5dc2c1 hexdump (in inspector) for 2-byte chars fixed
Claus Gittinger <cg@exept.de>
parents: 16282
diff changeset
   678
    
a0933d5dc2c1 hexdump (in inspector) for 2-byte chars fixed
Claus Gittinger <cg@exept.de>
parents: 16282
diff changeset
   679
    ^ self newInspector2Tab
10355
82ee4e550517 Added missing CharacterArray>>inspector2TabBytes
vrany
parents: 10336
diff changeset
   680
        label: 'Bytes';
15860
36337d6ff223 class: CharacterArray
Claus Gittinger <cg@exept.de>
parents: 15798
diff changeset
   681
        priority: 39;
15316
Claus Gittinger <cg@exept.de>
parents: 15286
diff changeset
   682
        view: ((HVScrollableView for:EditTextView) 
Claus Gittinger <cg@exept.de>
parents: 15286
diff changeset
   683
                autoHideVerticalScrollBar:true;        
17171
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
   684
                contents:bytesShown; 
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
   685
                yourself);
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
   686
        yourself        
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
   687
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
   688
    "
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
   689
     (String new:100000) inspect
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
   690
    "
10355
82ee4e550517 Added missing CharacterArray>>inspector2TabBytes
vrany
parents: 10336
diff changeset
   691
82ee4e550517 Added missing CharacterArray>>inspector2TabBytes
vrany
parents: 10336
diff changeset
   692
    "Created: / 17-02-2008 / 10:10:50 / janfrog"
82ee4e550517 Added missing CharacterArray>>inspector2TabBytes
vrany
parents: 10336
diff changeset
   693
    "Created: / 20-07-2011 / 16:36:52 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10637
1114ddcf69f7 variable renamed in: #inspector2TabBytes
Claus Gittinger <cg@exept.de>
parents: 10527
diff changeset
   694
    "Modified: / 21-08-2011 / 07:32:57 / cg"
10355
82ee4e550517 Added missing CharacterArray>>inspector2TabBytes
vrany
parents: 10336
diff changeset
   695
! !
82ee4e550517 Added missing CharacterArray>>inspector2TabBytes
vrany
parents: 10336
diff changeset
   696
82ee4e550517 Added missing CharacterArray>>inspector2TabBytes
vrany
parents: 10336
diff changeset
   697
!CharacterArray methodsFor:'inspecting'!
82ee4e550517 Added missing CharacterArray>>inspector2TabBytes
vrany
parents: 10336
diff changeset
   698
14071
1920eb29e7b5 Added diff inspector tab for String-like objects
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14013
diff changeset
   699
inspector2TabDiff
1920eb29e7b5 Added diff inspector tab for String-like objects
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14013
diff changeset
   700
    | diffApp |
1920eb29e7b5 Added diff inspector tab for String-like objects
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14013
diff changeset
   701
1920eb29e7b5 Added diff inspector tab for String-like objects
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14013
diff changeset
   702
    diffApp := Tools::TextDiff2Tool new.
1920eb29e7b5 Added diff inspector tab for String-like objects
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14013
diff changeset
   703
    diffApp labelA: 'self'; textA: self.
1920eb29e7b5 Added diff inspector tab for String-like objects
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14013
diff changeset
   704
    diffApp labelB: 'pasted'; textB: 'Paste some text here'.
1920eb29e7b5 Added diff inspector tab for String-like objects
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14013
diff changeset
   705
    diffApp diffView leftTextView readOnly: true.
17171
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
   706
    diffApp diffView rightTextView 
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
   707
        acceptAction:[:contents |
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
   708
            diffApp textBHolder value: contents asString.
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
   709
            diffApp updateViews.   
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
   710
        ].
10851
26a08a701fde string: inspector \"knows\" about html
Claus Gittinger <cg@exept.de>
parents: 10839
diff changeset
   711
26a08a701fde string: inspector \"knows\" about html
Claus Gittinger <cg@exept.de>
parents: 10839
diff changeset
   712
    ^self newInspector2Tab
14071
1920eb29e7b5 Added diff inspector tab for String-like objects
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14013
diff changeset
   713
        label: 'Diff';
1920eb29e7b5 Added diff inspector tab for String-like objects
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14013
diff changeset
   714
        priority: 33;
1920eb29e7b5 Added diff inspector tab for String-like objects
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14013
diff changeset
   715
        application: diffApp;
1920eb29e7b5 Added diff inspector tab for String-like objects
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14013
diff changeset
   716
        yourself
1920eb29e7b5 Added diff inspector tab for String-like objects
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14013
diff changeset
   717
1920eb29e7b5 Added diff inspector tab for String-like objects
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14013
diff changeset
   718
    "Created: / 27-02-2014 / 16:05:32 / Jan Vrany <jan.vrany@fit.cvut.cz>"
1920eb29e7b5 Added diff inspector tab for String-like objects
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14013
diff changeset
   719
! !
1920eb29e7b5 Added diff inspector tab for String-like objects
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14013
diff changeset
   720
1920eb29e7b5 Added diff inspector tab for String-like objects
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14013
diff changeset
   721
!CharacterArray methodsFor:'inspecting'!
1920eb29e7b5 Added diff inspector tab for String-like objects
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14013
diff changeset
   722
1920eb29e7b5 Added diff inspector tab for String-like objects
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14013
diff changeset
   723
inspector2TabHTML
17173
8a29e40204a3 html tab - doctype and html tags are caseless
Claus Gittinger <cg@exept.de>
parents: 17171
diff changeset
   724
    |lcString|
8a29e40204a3 html tab - doctype and html tags are caseless
Claus Gittinger <cg@exept.de>
parents: 17171
diff changeset
   725
    
8a29e40204a3 html tab - doctype and html tags are caseless
Claus Gittinger <cg@exept.de>
parents: 17171
diff changeset
   726
    "/ use Smalltalk >> at:, to prevent HTMLDocumentView becoming a prereq of libbasic
17171
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
   727
    (Smalltalk at:#HTMLDocumentView) notNil ifTrue:[
17173
8a29e40204a3 html tab - doctype and html tags are caseless
Claus Gittinger <cg@exept.de>
parents: 17171
diff changeset
   728
        lcString := self asLowercase.
8a29e40204a3 html tab - doctype and html tags are caseless
Claus Gittinger <cg@exept.de>
parents: 17171
diff changeset
   729
        ((lcString startsWith:'<!!doctype html' ) or:[ (lcString startsWith:'<html>') ]) ifTrue:[
17171
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
   730
            ^self newInspector2Tab
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
   731
                label: 'HTML';
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
   732
                priority: 35;
18523
c6718fc416d8 changed: #inspector2Tabs
Claus Gittinger <cg@exept.de>
parents: 18462
diff changeset
   733
                view: ((HVScrollableView for:(Smalltalk at:#HTMLDocumentView)) 
c6718fc416d8 changed: #inspector2Tabs
Claus Gittinger <cg@exept.de>
parents: 18462
diff changeset
   734
                            autoHideScrollBars:true;        
c6718fc416d8 changed: #inspector2Tabs
Claus Gittinger <cg@exept.de>
parents: 18462
diff changeset
   735
                            setText: self; 
c6718fc416d8 changed: #inspector2Tabs
Claus Gittinger <cg@exept.de>
parents: 18462
diff changeset
   736
                            yourself);
17171
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
   737
                yourself
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
   738
        ].
14071
1920eb29e7b5 Added diff inspector tab for String-like objects
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14013
diff changeset
   739
    ].
17173
8a29e40204a3 html tab - doctype and html tags are caseless
Claus Gittinger <cg@exept.de>
parents: 17171
diff changeset
   740
    "/ If nil is returned, the HTML tab is not shown...
14071
1920eb29e7b5 Added diff inspector tab for String-like objects
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14013
diff changeset
   741
    ^ nil
10851
26a08a701fde string: inspector \"knows\" about html
Claus Gittinger <cg@exept.de>
parents: 10839
diff changeset
   742
26a08a701fde string: inspector \"knows\" about html
Claus Gittinger <cg@exept.de>
parents: 10839
diff changeset
   743
    "Created: / 17-02-2008 / 10:10:50 / janfrog"
26a08a701fde string: inspector \"knows\" about html
Claus Gittinger <cg@exept.de>
parents: 10839
diff changeset
   744
    "Created: / 07-11-2011 / 12:35:15 / cg"
14071
1920eb29e7b5 Added diff inspector tab for String-like objects
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14013
diff changeset
   745
    "Modified: / 27-02-2014 / 16:08:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
18523
c6718fc416d8 changed: #inspector2Tabs
Claus Gittinger <cg@exept.de>
parents: 18462
diff changeset
   746
    "Modified: / 11-11-2018 / 12:15:17 / Claus Gittinger"
10851
26a08a701fde string: inspector \"knows\" about html
Claus Gittinger <cg@exept.de>
parents: 10839
diff changeset
   747
! !
26a08a701fde string: inspector \"knows\" about html
Claus Gittinger <cg@exept.de>
parents: 10839
diff changeset
   748
26a08a701fde string: inspector \"knows\" about html
Claus Gittinger <cg@exept.de>
parents: 10839
diff changeset
   749
!CharacterArray methodsFor:'inspecting'!
26a08a701fde string: inspector \"knows\" about html
Claus Gittinger <cg@exept.de>
parents: 10839
diff changeset
   750
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   751
inspector2TabText
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   752
17171
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
   753
    ^ self newInspector2Tab
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   754
        label: 'String';
10637
1114ddcf69f7 variable renamed in: #inspector2TabBytes
Claus Gittinger <cg@exept.de>
parents: 10527
diff changeset
   755
        priority: 50;
18523
c6718fc416d8 changed: #inspector2Tabs
Claus Gittinger <cg@exept.de>
parents: 18462
diff changeset
   756
        view: ((HVScrollableView for:EditTextView) 
c6718fc416d8 changed: #inspector2Tabs
Claus Gittinger <cg@exept.de>
parents: 18462
diff changeset
   757
                    autoHideScrollBars:true;        
15316
Claus Gittinger <cg@exept.de>
parents: 15286
diff changeset
   758
                    contents: self; 
17171
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
   759
                    yourself);
18523
c6718fc416d8 changed: #inspector2Tabs
Claus Gittinger <cg@exept.de>
parents: 18462
diff changeset
   760
        yourself
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   761
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   762
    "Created: / 17-02-2008 / 10:10:50 / janfrog"
10637
1114ddcf69f7 variable renamed in: #inspector2TabBytes
Claus Gittinger <cg@exept.de>
parents: 10527
diff changeset
   763
    "Modified: / 21-08-2011 / 08:02:57 / cg"
18523
c6718fc416d8 changed: #inspector2Tabs
Claus Gittinger <cg@exept.de>
parents: 18462
diff changeset
   764
    "Modified: / 11-11-2018 / 12:15:22 / Claus Gittinger"
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   765
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   766
10313
a2f4e3f74efe category
Claus Gittinger <cg@exept.de>
parents: 10310
diff changeset
   767
!CharacterArray methodsFor:'inspecting'!
10164
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
   768
15860
36337d6ff223 class: CharacterArray
Claus Gittinger <cg@exept.de>
parents: 15798
diff changeset
   769
inspector2TabXMLTree
36337d6ff223 class: CharacterArray
Claus Gittinger <cg@exept.de>
parents: 15798
diff changeset
   770
    "extra tab to be shown in an inspector2."
36337d6ff223 class: CharacterArray
Claus Gittinger <cg@exept.de>
parents: 15798
diff changeset
   771
36337d6ff223 class: CharacterArray
Claus Gittinger <cg@exept.de>
parents: 15798
diff changeset
   772
    |tabClass tab sub xmlInspectorClass xmlParserClass|
36337d6ff223 class: CharacterArray
Claus Gittinger <cg@exept.de>
parents: 15798
diff changeset
   773
17174
c79ff7f30185 xml tab - xml? is caseless
Claus Gittinger <cg@exept.de>
parents: 17173
diff changeset
   774
    (self asLowercase startsWith:'<?xml') ifFalse:[^ nil].
15860
36337d6ff223 class: CharacterArray
Claus Gittinger <cg@exept.de>
parents: 15798
diff changeset
   775
    
36337d6ff223 class: CharacterArray
Claus Gittinger <cg@exept.de>
parents: 15798
diff changeset
   776
    "return an extra XML-dom tab to be used inside an inspector"
36337d6ff223 class: CharacterArray
Claus Gittinger <cg@exept.de>
parents: 15798
diff changeset
   777
36337d6ff223 class: CharacterArray
Claus Gittinger <cg@exept.de>
parents: 15798
diff changeset
   778
    "/ avoid generating a dependency here
36337d6ff223 class: CharacterArray
Claus Gittinger <cg@exept.de>
parents: 15798
diff changeset
   779
    (tabClass := Smalltalk at: #'Tools::Inspector2Tab') isNil ifTrue:[^ nil].
36337d6ff223 class: CharacterArray
Claus Gittinger <cg@exept.de>
parents: 15798
diff changeset
   780
    tab := tabClass new.
36337d6ff223 class: CharacterArray
Claus Gittinger <cg@exept.de>
parents: 15798
diff changeset
   781
36337d6ff223 class: CharacterArray
Claus Gittinger <cg@exept.de>
parents: 15798
diff changeset
   782
    "/ to prevent the dependcy walker from adding libtool2 to the package:
36337d6ff223 class: CharacterArray
Claus Gittinger <cg@exept.de>
parents: 15798
diff changeset
   783
    (xmlInspectorClass := Smalltalk at:#'XML::XMLInspector') isNil ifTrue:[^ nil ].
36337d6ff223 class: CharacterArray
Claus Gittinger <cg@exept.de>
parents: 15798
diff changeset
   784
    (xmlParserClass := Smalltalk at:#'XML::XMLParser') isNil ifTrue:[^ nil ].
36337d6ff223 class: CharacterArray
Claus Gittinger <cg@exept.de>
parents: 15798
diff changeset
   785
36337d6ff223 class: CharacterArray
Claus Gittinger <cg@exept.de>
parents: 15798
diff changeset
   786
    sub := xmlInspectorClass embeddableInspectorApplicationFor:(xmlParserClass parse:self).
36337d6ff223 class: CharacterArray
Claus Gittinger <cg@exept.de>
parents: 15798
diff changeset
   787
36337d6ff223 class: CharacterArray
Claus Gittinger <cg@exept.de>
parents: 15798
diff changeset
   788
    ^ tab
36337d6ff223 class: CharacterArray
Claus Gittinger <cg@exept.de>
parents: 15798
diff changeset
   789
        label: 'XML DOM';
36337d6ff223 class: CharacterArray
Claus Gittinger <cg@exept.de>
parents: 15798
diff changeset
   790
        priority: 45;
17171
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
   791
        view: sub;
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
   792
        yourself
15860
36337d6ff223 class: CharacterArray
Claus Gittinger <cg@exept.de>
parents: 15798
diff changeset
   793
! !
36337d6ff223 class: CharacterArray
Claus Gittinger <cg@exept.de>
parents: 15798
diff changeset
   794
36337d6ff223 class: CharacterArray
Claus Gittinger <cg@exept.de>
parents: 15798
diff changeset
   795
!CharacterArray methodsFor:'inspecting'!
36337d6ff223 class: CharacterArray
Claus Gittinger <cg@exept.de>
parents: 15798
diff changeset
   796
10164
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
   797
inspector2Tabs
15317
59d820a28567 comment/format
Claus Gittinger <cg@exept.de>
parents: 15316
diff changeset
   798
    ^ super inspector2Tabs 
59d820a28567 comment/format
Claus Gittinger <cg@exept.de>
parents: 15316
diff changeset
   799
        , #( 
59d820a28567 comment/format
Claus Gittinger <cg@exept.de>
parents: 15316
diff changeset
   800
            inspector2TabText 
59d820a28567 comment/format
Claus Gittinger <cg@exept.de>
parents: 15316
diff changeset
   801
            inspector2TabBytes 
59d820a28567 comment/format
Claus Gittinger <cg@exept.de>
parents: 15316
diff changeset
   802
            inspector2TabDiff 
15860
36337d6ff223 class: CharacterArray
Claus Gittinger <cg@exept.de>
parents: 15798
diff changeset
   803
            inspector2TabHTML
36337d6ff223 class: CharacterArray
Claus Gittinger <cg@exept.de>
parents: 15798
diff changeset
   804
            inspector2TabXMLTree
15317
59d820a28567 comment/format
Claus Gittinger <cg@exept.de>
parents: 15316
diff changeset
   805
           )
10164
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
   806
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
   807
    "Created: / 05-07-2011 / 13:40:27 / cg"
15285
292d95b373b7 Fixed #inspector2Tabs method: always call 'super inspector2Tabs'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15271
diff changeset
   808
    "Modified: / 13-02-2015 / 21:03:44 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10164
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
   809
! !
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
   810
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
   811
!CharacterArray methodsFor:'inspecting'!
8417
7ba7a8ebe38c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8406
diff changeset
   812
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
   813
inspectorExtraAttributes
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
   814
    "extra (pseudo instvar) entries to be shown in an inspector."
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
   815
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
   816
    |d|
8417
7ba7a8ebe38c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8406
diff changeset
   817
13639
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
   818
    d := super inspectorExtraAttributes
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
   819
        add:'-hex'        -> [ self asByteArray hexPrintStringWithSeparator:Character space ];
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
   820
        add:'-bytes'      -> [ self asByteArray ];
13639
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
   821
        add:'-utf8String' -> [ self utf8Encoded ];
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
   822
        add:'-utf8Bytes'  -> [ self utf8Encoded asByteArray ];
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
   823
        add:'-utf8'       -> [ self utf8Encoded asByteArray hexPrintStringWithSeparator:Character space ];
18976
9d31b6c99b43 class: Character
Claus Gittinger <cg@exept.de>
parents: 18972
diff changeset
   824
        add:'-C/Java/JS'  -> [ '"',self withCEscapes,'"' ];
9d31b6c99b43 class: Character
Claus Gittinger <cg@exept.de>
parents: 18972
diff changeset
   825
        add:'-xml'        -> [ self xmlQuotedPrintString ];
13639
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
   826
        yourself.
8839
792607726eb6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8838
diff changeset
   827
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
   828
    HTMLUtilities notNil ifTrue:[
13639
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
   829
        d add:'-html' -> [ HTMLUtilities escapeCharacterEntities:self ].
8417
7ba7a8ebe38c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8406
diff changeset
   830
    ].
7ba7a8ebe38c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8406
diff changeset
   831
    ^ d
7ba7a8ebe38c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8406
diff changeset
   832
7ba7a8ebe38c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8406
diff changeset
   833
    "
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
   834
     'aou' inspect
8417
7ba7a8ebe38c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8406
diff changeset
   835
    "
7ba7a8ebe38c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8406
diff changeset
   836
7ba7a8ebe38c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8406
diff changeset
   837
    "Created: / 22-10-2006 / 03:52:20 / cg"
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
   838
    "Modified (format): / 18-07-2017 / 19:57:21 / cg"
8417
7ba7a8ebe38c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8406
diff changeset
   839
! !
7ba7a8ebe38c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8406
diff changeset
   840
11773
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   841
!CharacterArray methodsFor:'inspecting'!
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   842
18540
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   843
inspectorValueListIconFor:anInspector
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   844
    "returns the icon to be shown alongside the value list of an inspector"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   845
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   846
    ^ anInspector imageFor_strings
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   847
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   848
    "Created: / 12-12-2018 / 16:17:19 / Claus Gittinger"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   849
! !
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   850
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   851
!CharacterArray methodsFor:'inspecting'!
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   852
11773
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   853
inspectorValueStringInListFor:anInspector
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   854
    "returns a string to be shown in the inspector's list"
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   855
12092
5d54707918dc class: CharacterArray
Stefan Vogel <sv@exept.de>
parents: 12051
diff changeset
   856
    ^ self basicStoreString contractTo:30.
11773
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   857
! !
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   858
18417
69f41a854b21 class: Class
Claus Gittinger <cg@exept.de>
parents: 18393
diff changeset
   859
!Class methodsFor:'inspecting'!
69f41a854b21 class: Class
Claus Gittinger <cg@exept.de>
parents: 18393
diff changeset
   860
69f41a854b21 class: Class
Claus Gittinger <cg@exept.de>
parents: 18393
diff changeset
   861
inspector2TabDocumentation
69f41a854b21 class: Class
Claus Gittinger <cg@exept.de>
parents: 18393
diff changeset
   862
    <inspector2Tab>
69f41a854b21 class: Class
Claus Gittinger <cg@exept.de>
parents: 18393
diff changeset
   863
69f41a854b21 class: Class
Claus Gittinger <cg@exept.de>
parents: 18393
diff changeset
   864
    ^ self newInspector2Tab
69f41a854b21 class: Class
Claus Gittinger <cg@exept.de>
parents: 18393
diff changeset
   865
        label: 'Documentation';
69f41a854b21 class: Class
Claus Gittinger <cg@exept.de>
parents: 18393
diff changeset
   866
        priority: 5;
18523
c6718fc416d8 changed: #inspector2Tabs
Claus Gittinger <cg@exept.de>
parents: 18462
diff changeset
   867
        view: ((HVScrollableView for:EditTextView) 
c6718fc416d8 changed: #inspector2Tabs
Claus Gittinger <cg@exept.de>
parents: 18462
diff changeset
   868
                    autoHideScrollBars:true;        
18417
69f41a854b21 class: Class
Claus Gittinger <cg@exept.de>
parents: 18393
diff changeset
   869
                    contents: (self commentOrDocumentationString); 
69f41a854b21 class: Class
Claus Gittinger <cg@exept.de>
parents: 18393
diff changeset
   870
                    yourself);
69f41a854b21 class: Class
Claus Gittinger <cg@exept.de>
parents: 18393
diff changeset
   871
        yourself
69f41a854b21 class: Class
Claus Gittinger <cg@exept.de>
parents: 18393
diff changeset
   872
69f41a854b21 class: Class
Claus Gittinger <cg@exept.de>
parents: 18393
diff changeset
   873
    "
69f41a854b21 class: Class
Claus Gittinger <cg@exept.de>
parents: 18393
diff changeset
   874
     Array inspect
69f41a854b21 class: Class
Claus Gittinger <cg@exept.de>
parents: 18393
diff changeset
   875
    "
69f41a854b21 class: Class
Claus Gittinger <cg@exept.de>
parents: 18393
diff changeset
   876
69f41a854b21 class: Class
Claus Gittinger <cg@exept.de>
parents: 18393
diff changeset
   877
    "Created: / 22-09-2018 / 10:56:07 / Claus Gittinger"
18523
c6718fc416d8 changed: #inspector2Tabs
Claus Gittinger <cg@exept.de>
parents: 18462
diff changeset
   878
    "Modified: / 11-11-2018 / 12:15:37 / Claus Gittinger"
18417
69f41a854b21 class: Class
Claus Gittinger <cg@exept.de>
parents: 18393
diff changeset
   879
! !
69f41a854b21 class: Class
Claus Gittinger <cg@exept.de>
parents: 18393
diff changeset
   880
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   881
!Class methodsFor:'misc ui support'!
12361
dc6575e4dcfa inspectorClass methods moved to libtool package
Claus Gittinger <cg@exept.de>
parents: 12356
diff changeset
   882
dc6575e4dcfa inspectorClass methods moved to libtool package
Claus Gittinger <cg@exept.de>
parents: 12356
diff changeset
   883
inspectorClass
dc6575e4dcfa inspectorClass methods moved to libtool package
Claus Gittinger <cg@exept.de>
parents: 12356
diff changeset
   884
    "redefined to launch a ClassInspector, which knows about classVariables
dc6575e4dcfa inspectorClass methods moved to libtool package
Claus Gittinger <cg@exept.de>
parents: 12356
diff changeset
   885
     (instead of the default InspectorView)."
dc6575e4dcfa inspectorClass methods moved to libtool package
Claus Gittinger <cg@exept.de>
parents: 12356
diff changeset
   886
dc6575e4dcfa inspectorClass methods moved to libtool package
Claus Gittinger <cg@exept.de>
parents: 12356
diff changeset
   887
    ClassInspectorView notNil ifTrue:[
dc6575e4dcfa inspectorClass methods moved to libtool package
Claus Gittinger <cg@exept.de>
parents: 12356
diff changeset
   888
        ^ ClassInspectorView
dc6575e4dcfa inspectorClass methods moved to libtool package
Claus Gittinger <cg@exept.de>
parents: 12356
diff changeset
   889
    ].
dc6575e4dcfa inspectorClass methods moved to libtool package
Claus Gittinger <cg@exept.de>
parents: 12356
diff changeset
   890
    ^ super inspectorClass
dc6575e4dcfa inspectorClass methods moved to libtool package
Claus Gittinger <cg@exept.de>
parents: 12356
diff changeset
   891
! !
dc6575e4dcfa inspectorClass methods moved to libtool package
Claus Gittinger <cg@exept.de>
parents: 12356
diff changeset
   892
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   893
!ClassDescription methodsFor:'misc ui support'!
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   894
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   895
iconInBrowserForVariableNamed: varName
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   896
    "variables for which an entry is found in the xml-spec (if any) are marked
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   897
     with an <xml>-icon. 
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   898
     For now, this is expecco-specific, but should be somehow lifted to the base system"
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   899
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   900
    (Expecco::ExpeccoXMLDecoder notNil 
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   901
    and:[self canUnderstand: #xmlSpecFor:]) ifTrue:[
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   902
        Error handle:[:ex |
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   903
        ] do:[
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   904
            (Expecco::ExpeccoXMLDecoder xmlSpecForObject:self basicNew)
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   905
                do:[:spec | 
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   906
                    spec getter = varName ifTrue:[
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   907
                        ^ SystemBrowser instVarOverlayXmlSpec
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   908
                    ]
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   909
                ].
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   910
        ].
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   911
    ].
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   912
    ^ nil
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   913
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   914
    "Created: / 12-04-2011 / 16:04:56 / Jan Vrany <jan.vrany@fit.cvut.cz>"
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   915
    "Modified: / 13-07-2011 / 15:31:38 / cg"
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   916
! !
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   917
11827
7fc67c9afc32 collection
Claus Gittinger <cg@exept.de>
parents: 11792
diff changeset
   918
!Collection methodsFor:'inspecting'!
7fc67c9afc32 collection
Claus Gittinger <cg@exept.de>
parents: 11792
diff changeset
   919
18540
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   920
inspectorValueListIconFor:anInspector
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   921
    "returns the icon to be shown alongside the value list of an inspector"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   922
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   923
    self isEmpty ifTrue:[
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   924
        ^ anInspector imageFor_collections_empty
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   925
    ].    
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   926
    ^ anInspector imageFor_collections
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   927
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   928
    "Created: / 12-12-2018 / 16:10:07 / Claus Gittinger"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   929
! !
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   930
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   931
!Collection methodsFor:'inspecting'!
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   932
11827
7fc67c9afc32 collection
Claus Gittinger <cg@exept.de>
parents: 11792
diff changeset
   933
inspectorValueStringInListFor:anInspector
7fc67c9afc32 collection
Claus Gittinger <cg@exept.de>
parents: 11792
diff changeset
   934
    "returns a string to be shown in the inspector's list"
7fc67c9afc32 collection
Claus Gittinger <cg@exept.de>
parents: 11792
diff changeset
   935
11891
85e5a231ffeb collection shows size in inspector
Claus Gittinger <cg@exept.de>
parents: 11852
diff changeset
   936
    |sz|
85e5a231ffeb collection shows size in inspector
Claus Gittinger <cg@exept.de>
parents: 11852
diff changeset
   937
85e5a231ffeb collection shows size in inspector
Claus Gittinger <cg@exept.de>
parents: 11852
diff changeset
   938
    (sz := self size) == 0 ifTrue:[
11827
7fc67c9afc32 collection
Claus Gittinger <cg@exept.de>
parents: 11792
diff changeset
   939
        ^ 'empty ' , self className
7fc67c9afc32 collection
Claus Gittinger <cg@exept.de>
parents: 11792
diff changeset
   940
    ].
11891
85e5a231ffeb collection shows size in inspector
Claus Gittinger <cg@exept.de>
parents: 11852
diff changeset
   941
    ^ (super inspectorValueStringInListFor:anInspector),' size=',sz printString
11827
7fc67c9afc32 collection
Claus Gittinger <cg@exept.de>
parents: 11792
diff changeset
   942
! !
7fc67c9afc32 collection
Claus Gittinger <cg@exept.de>
parents: 11792
diff changeset
   943
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   944
!Collection class methodsFor:'misc ui support'!
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   945
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   946
iconInBrowserSymbol
16117
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
   947
    "the browser will use this as index into the toolbariconlibrary"
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
   948
    
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   949
    <resource: #programImage>
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   950
16117
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
   951
    self isAbstract ifTrue:[
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
   952
        ^ #abstractContainerClassBrowserIcon
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
   953
    ].    
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   954
    ^ #containerClassBrowserIcon
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   955
! !
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   956
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
   957
!Color methodsFor:'misc ui support'!
7299
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
   958
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
   959
inspectorClass
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
   960
    "return the class of an appropriate inspector.
7299
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
   961
     ST/X has a specialized ColorInspectorView for that"
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
   962
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
   963
    ^ ColorInspectorView
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
   964
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
   965
    "Modified: 23.4.1996 / 13:39:50 / cg"
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
   966
! !
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
   967
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
   968
!Color methodsFor:'inspecting'!
8406
445174a4db22 #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 7754
diff changeset
   969
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
   970
inspectorExtraAttributes
8677
Claus Gittinger <cg@exept.de>
parents: 8417
diff changeset
   971
    "extra (pseudo instvar) entries to be shown in an inspector."
Claus Gittinger <cg@exept.de>
parents: 8417
diff changeset
   972
13639
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
   973
    ^ super inspectorExtraAttributes
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
   974
        add:'-rgb'  -> [ self rgbValue hexPrintString ];
18064
67fe6351156c color inspection
Claus Gittinger <cg@exept.de>
parents: 18047
diff changeset
   975
        add:'-hls'  -> [ { self hue . self light . self saturation} ];
13639
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
   976
        add:'-html' -> [ self htmlPrintString ];
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
   977
        yourself
8417
7ba7a8ebe38c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8406
diff changeset
   978
7ba7a8ebe38c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8406
diff changeset
   979
    "
7ba7a8ebe38c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8406
diff changeset
   980
     Color red inspect
7ba7a8ebe38c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8406
diff changeset
   981
    "
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
   982
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
   983
    "Modified (format): / 18-07-2017 / 19:57:26 / cg"
8406
445174a4db22 #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 7754
diff changeset
   984
! !
445174a4db22 #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 7754
diff changeset
   985
11773
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   986
!Color methodsFor:'inspecting'!
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   987
18540
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   988
inspectorValueListIconFor:anInspector
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   989
    "returns the icon to be shown alongside the value list of an inspector"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   990
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   991
    ^ anInspector imageFor_colors
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   992
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   993
    "Created: / 12-12-2018 / 16:21:32 / Claus Gittinger"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   994
! !
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   995
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   996
!Color methodsFor:'inspecting'!
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
   997
11773
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   998
inspectorValueStringInListFor:anInspector
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
   999
    "returns a string to be shown in the inspector's list"
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  1000
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  1001
    ^ self htmlPrintString
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  1002
! !
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  1003
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1004
!CompositeChange methodsFor:'utilities'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1005
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1006
condenseChangesForRemoved
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1007
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1008
    self changes condenseChangesForRemoved
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1009
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1010
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1011
!CompositeChange methodsFor:'private'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1012
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1013
flattenOnto: aCollection
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1014
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1015
    changes do:[:change|change flattenOnto: aCollection]
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1016
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1017
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1018
!CompositeChange methodsFor:'accessing'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1019
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1020
removed
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1021
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1022
    ^changes allSatisfy: [:e|e removed]
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1023
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1024
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1025
!CompositeChange methodsFor:'accessing'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1026
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1027
removed: aBoolean
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1028
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1029
    changes do:[:e|e removed: aBoolean]
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1030
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1031
9691
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  1032
!Date methodsFor:'inspecting'!
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  1033
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  1034
inspectorExtraAttributes
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  1035
    "extra (pseudo instvar) entries to be shown in an inspector."
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  1036
13639
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
  1037
    ^ super inspectorExtraAttributes
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
  1038
        add:'-day'   -> [ self day printString ];
15739
b8fb58295131 class: Date
Claus Gittinger <cg@exept.de>
parents: 15691
diff changeset
  1039
        add:'-month' -> [ self month printString ];
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
  1040
        add:'-year'  -> [ self year printString ];
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
  1041
        add:'-dayInWeek'   -> [ self dayInWeek printString , ' "', self dayOfWeekName , '"' ];
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
  1042
        add:'-dayInYear'   -> [ self dayInYear ];
9691
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  1043
        add:'-daysInMonth' -> [ self daysInMonth ];
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
  1044
        add:'-monthName'   -> [ self monthName ];
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
  1045
        add:'-weekNr'      -> [ self weekInYear ];
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
  1046
        add:'-leapYear'    -> [ self isLeapYear ];
14817
056ec74bde0a naming ISO vs. Iso - made all ISO stuff obsolete;
Claus Gittinger <cg@exept.de>
parents: 14816
diff changeset
  1047
        add:'-iso8601(utc)' -> [ self asUtcTimestamp printStringIso8601 ];
9691
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  1048
        yourself
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  1049
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  1050
    "
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  1051
     Date today inspect
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  1052
    "
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  1053
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  1054
    "Created: / 20-01-2011 / 12:19:05 / cg"
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
  1055
    "Modified (format): / 18-07-2017 / 19:57:44 / cg"
9691
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  1056
! !
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  1057
16122
a90902eb132b Date >> #inspectorValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 16117
diff changeset
  1058
!Date methodsFor:'printing & storing'!
a90902eb132b Date >> #inspectorValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 16117
diff changeset
  1059
a90902eb132b Date >> #inspectorValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 16117
diff changeset
  1060
inspectorValueStringInListFor:anInspector
a90902eb132b Date >> #inspectorValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 16117
diff changeset
  1061
    "returns a string to be shown in the inspector's list"
a90902eb132b Date >> #inspectorValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 16117
diff changeset
  1062
a90902eb132b Date >> #inspectorValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 16117
diff changeset
  1063
    ^ self printString
a90902eb132b Date >> #inspectorValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 16117
diff changeset
  1064
! !
a90902eb132b Date >> #inspectorValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 16117
diff changeset
  1065
15555
91fe564d5a8f class: GenericToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  1066
!Date class methodsFor:'misc ui support'!
91fe564d5a8f class: GenericToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  1067
91fe564d5a8f class: GenericToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  1068
iconInBrowserSymbol
16117
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
  1069
    "the browser will use this as index into the toolbariconlibrary"
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
  1070
15555
91fe564d5a8f class: GenericToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  1071
    <resource: #programImage>
91fe564d5a8f class: GenericToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  1072
91fe564d5a8f class: GenericToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  1073
    ^ #timeClassBrowserIcon
91fe564d5a8f class: GenericToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  1074
! !
91fe564d5a8f class: GenericToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 15548
diff changeset
  1075
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1076
!Dictionary methodsFor:'inspecting'!
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1077
10316
11e7bcf8838c inspector label
Claus Gittinger <cg@exept.de>
parents: 10315
diff changeset
  1078
inspector2TabLabel
18788
715a1380a3ca class: NodeJSObjectInspectorView
Claus Gittinger <cg@exept.de>
parents: 18727
diff changeset
  1079
    "label of the main tab"
715a1380a3ca class: NodeJSObjectInspectorView
Claus Gittinger <cg@exept.de>
parents: 18727
diff changeset
  1080
10316
11e7bcf8838c inspector label
Claus Gittinger <cg@exept.de>
parents: 10315
diff changeset
  1081
    ^ 'Dictionary'
11e7bcf8838c inspector label
Claus Gittinger <cg@exept.de>
parents: 10315
diff changeset
  1082
11e7bcf8838c inspector label
Claus Gittinger <cg@exept.de>
parents: 10315
diff changeset
  1083
    "Created: / 14-07-2011 / 11:57:18 / cg"
18788
715a1380a3ca class: NodeJSObjectInspectorView
Claus Gittinger <cg@exept.de>
parents: 18727
diff changeset
  1084
    "Modified (comment): / 28-05-2019 / 20:47:32 / Claus Gittinger"
10316
11e7bcf8838c inspector label
Claus Gittinger <cg@exept.de>
parents: 10315
diff changeset
  1085
! !
11e7bcf8838c inspector label
Claus Gittinger <cg@exept.de>
parents: 10315
diff changeset
  1086
18972
0c9331c33cfc class: SmallDictionary
Claus Gittinger <cg@exept.de>
parents: 18967
diff changeset
  1087
!Dictionary methodsFor:'inspecting'!
10316
11e7bcf8838c inspector label
Claus Gittinger <cg@exept.de>
parents: 10315
diff changeset
  1088
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1089
inspectorClass
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1090
    "redefined to use DictionaryInspector
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1091
     (instead of the default Inspector)."
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1092
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1093
    ^ DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1094
! !
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1095
18195
963edd8d8cab inspector enhancements
Claus Gittinger <cg@exept.de>
parents: 18167
diff changeset
  1096
!Dictionary methodsFor:'inspecting'!
963edd8d8cab inspector enhancements
Claus Gittinger <cg@exept.de>
parents: 18167
diff changeset
  1097
963edd8d8cab inspector enhancements
Claus Gittinger <cg@exept.de>
parents: 18167
diff changeset
  1098
inspectorExtraAttributes
963edd8d8cab inspector enhancements
Claus Gittinger <cg@exept.de>
parents: 18167
diff changeset
  1099
    |attrs|
963edd8d8cab inspector enhancements
Claus Gittinger <cg@exept.de>
parents: 18167
diff changeset
  1100
963edd8d8cab inspector enhancements
Claus Gittinger <cg@exept.de>
parents: 18167
diff changeset
  1101
    attrs := super inspectorExtraAttributes.
963edd8d8cab inspector enhancements
Claus Gittinger <cg@exept.de>
parents: 18167
diff changeset
  1102
    JSONPrinter notNil ifTrue:[
19353
adface297050 JSONPrinter
Claus Gittinger <cg@exept.de>
parents: 19323
diff changeset
  1103
        attrs add:('-JSON' -> [ JSONPrinter encodePrettyPrinted:self printLimit:(JSONPrinter defaultPrettyPrintLimit) ])
18195
963edd8d8cab inspector enhancements
Claus Gittinger <cg@exept.de>
parents: 18167
diff changeset
  1104
    ].
963edd8d8cab inspector enhancements
Claus Gittinger <cg@exept.de>
parents: 18167
diff changeset
  1105
    ^ attrs
963edd8d8cab inspector enhancements
Claus Gittinger <cg@exept.de>
parents: 18167
diff changeset
  1106
963edd8d8cab inspector enhancements
Claus Gittinger <cg@exept.de>
parents: 18167
diff changeset
  1107
    "Created: / 12-06-2018 / 11:43:57 / Claus Gittinger"
963edd8d8cab inspector enhancements
Claus Gittinger <cg@exept.de>
parents: 18167
diff changeset
  1108
! !
963edd8d8cab inspector enhancements
Claus Gittinger <cg@exept.de>
parents: 18167
diff changeset
  1109
18540
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1110
!Dictionary methodsFor:'inspecting'!
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1111
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1112
inspectorValueListIconFor:anInspector
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1113
    "returns the icon to be shown alongside the value list of an inspector"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1114
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1115
    self isEmpty ifTrue:[
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1116
        ^ anInspector imageFor_collections_empty
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1117
    ].    
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1118
    ^ anInspector imageFor_dictionaries
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1119
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1120
    "Created: / 12-12-2018 / 16:19:13 / Claus Gittinger"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1121
! !
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1122
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1123
!EditTextView methodsFor:'accessing-dimensions'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1124
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1125
absoluteXOfPosition:positionInText 
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1126
    |accumulatedX container|
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1127
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1128
    accumulatedX := 0.
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1129
    container := self.
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1130
    [ container notNil ] whileTrue:[
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1131
        accumulatedX := accumulatedX + container origin x.
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1132
        container := container isTopView ifFalse:[
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1133
                    container container
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1134
                ] ifTrue:[ nil ].
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1135
    ].
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1136
    ^ (self xOfPosition:positionInText) + accumulatedX
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1137
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1138
    "Created: / 16-02-2010 / 10:05:19 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1139
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1140
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1141
!EditTextView methodsFor:'accessing-dimensions'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1142
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1143
absoluteYOfCursor
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1144
    | accumulatedY container |
14834
3831d50bf55f class: EditTextView
Claus Gittinger <cg@exept.de>
parents: 14817
diff changeset
  1145
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1146
    accumulatedY := 0.
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1147
    container := self.
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1148
    [ container notNil ] whileTrue:[
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1149
        accumulatedY := accumulatedY + container origin y.
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1150
        container := container isTopView 
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1151
            ifFalse:[container container]
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1152
            ifTrue:[nil].
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1153
    ].
14834
3831d50bf55f class: EditTextView
Claus Gittinger <cg@exept.de>
parents: 14817
diff changeset
  1154
    ^ (self yOfCursor) + accumulatedY
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1155
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1156
    "Created: / 27-05-2005 / 07:45:53 / janfrog"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1157
    "Modified: / 27-05-2005 / 23:03:40 / janfrog"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1158
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1159
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1160
!EditTextView methodsFor:'accessing-dimensions'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1161
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1162
xOfPosition: positionInText
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1163
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1164
    | line col |
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1165
    line := self lineOfCharacterPosition: positionInText.
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1166
    col  := positionInText - (self characterPositionOfLine:line col:1) + 1.
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1167
    ^
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1168
        (self xOfCol:col inVisibleLine:(self listLineToVisibleLine: line))
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1169
            - viewOrigin x.
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1170
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1171
    "Created: / 16-02-2010 / 10:04:27 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1172
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1173
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1174
!EditTextView methodsFor:'accessing-dimensions'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1175
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1176
yOfCursor
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1177
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1178
    ^self yOfVisibleLine:cursorVisibleLine.
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1179
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1180
    "Created: / 27-05-2005 / 07:43:41 / janfrog"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1181
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1182
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1183
!EditTextView methodsFor:'accessing-dimensions'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1184
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1185
yOfPosition: positionInText
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1186
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1187
    | line |
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1188
    line := self lineOfCharacterPosition: positionInText.
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1189
    ^self yOfVisibleLine:(self listLineToVisibleLine: line)
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1190
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1191
    "Created: / 16-02-2010 / 10:08:21 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1192
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1193
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1194
!Error class methodsFor:'misc ui support'!
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1195
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1196
iconInBrowserSymbol
16117
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
  1197
    "the browser will use this as index into the toolbariconlibrary"
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
  1198
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1199
    <resource: #programImage>
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1200
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1201
    ^ #errorClassBrowserIcon
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1202
! !
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1203
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1204
!ExecutableFunction methodsFor:'printing & storing'!
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1205
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1206
printStringForBrowserWithSelector:selector
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1207
    "return a printString to represent myself to the user in a browser."
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1208
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1209
    ^ self printStringForBrowserWithSelector:selector inClass:nil
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1210
! !
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1211
16704
Claus Gittinger <cg@exept.de>
parents: 16684
diff changeset
  1212
!ExternalLibraryFunction methodsFor:'inspecting'!
Claus Gittinger <cg@exept.de>
parents: 16684
diff changeset
  1213
Claus Gittinger <cg@exept.de>
parents: 16684
diff changeset
  1214
inspectorExtraAttributes
Claus Gittinger <cg@exept.de>
parents: 16684
diff changeset
  1215
    "extra (pseudo instvar) entries to be shown in an inspector."
Claus Gittinger <cg@exept.de>
parents: 16684
diff changeset
  1216
Claus Gittinger <cg@exept.de>
parents: 16684
diff changeset
  1217
    |atts|
Claus Gittinger <cg@exept.de>
parents: 16684
diff changeset
  1218
Claus Gittinger <cg@exept.de>
parents: 16684
diff changeset
  1219
    atts := super inspectorExtraAttributes.
Claus Gittinger <cg@exept.de>
parents: 16684
diff changeset
  1220
    atts
Claus Gittinger <cg@exept.de>
parents: 16684
diff changeset
  1221
        add:'-callType' -> [ self isCallTypeAPI 
Claus Gittinger <cg@exept.de>
parents: 16684
diff changeset
  1222
                                ifTrue:[ 'API' ]
Claus Gittinger <cg@exept.de>
parents: 16684
diff changeset
  1223
                                ifFalse:[ 'normal' ] 
17061
17e020091a74 class: ExternalLibraryFunction
Claus Gittinger <cg@exept.de>
parents: 17022
diff changeset
  1224
                           ];
17e020091a74 class: ExternalLibraryFunction
Claus Gittinger <cg@exept.de>
parents: 17022
diff changeset
  1225
        add:'-virtual' -> [ self isVirtualCPP ].
16704
Claus Gittinger <cg@exept.de>
parents: 16684
diff changeset
  1226
Claus Gittinger <cg@exept.de>
parents: 16684
diff changeset
  1227
    ^ atts
17061
17e020091a74 class: ExternalLibraryFunction
Claus Gittinger <cg@exept.de>
parents: 17022
diff changeset
  1228
17e020091a74 class: ExternalLibraryFunction
Claus Gittinger <cg@exept.de>
parents: 17022
diff changeset
  1229
    "Modified: / 12-11-2016 / 11:38:35 / cg"
16704
Claus Gittinger <cg@exept.de>
parents: 16684
diff changeset
  1230
! !
Claus Gittinger <cg@exept.de>
parents: 16684
diff changeset
  1231
18540
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1232
!False methodsFor:'inspecting'!
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1233
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1234
inspectorValueListIconFor:anInspector
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1235
    "returns the icon to be shown alongside the value list of an inspector"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1236
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1237
    ^ anInspector imageFor_false
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1238
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1239
    "Created: / 12-12-2018 / 16:06:24 / Claus Gittinger"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1240
! !
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1241
16837
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  1242
!FileStream methodsFor:'inspecting'!
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  1243
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  1244
inspectorExtraMenuOperations
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  1245
    "extra operation-menu entries to be shown in an inspector.
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  1246
     Answers a collection of pairs contining aString and action aBlock.
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  1247
     aString is the label of the menu item.
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  1248
     aBlock is evaluated when the menu item is selected.
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  1249
     To be redefined in objects which think that it makes sense to offer
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  1250
     often used operations in an inspector.
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  1251
     See SerialPort as an example."
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  1252
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  1253
    |superItems|
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  1254
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  1255
    superItems := super inspectorExtraMenuOperations.
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  1256
    ^ superItems , 
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  1257
            {
18089
325160f876f6 browse file added to inspector menu
Claus Gittinger <cg@exept.de>
parents: 18072
diff changeset
  1258
                { 'Close File' . [self close] } .
325160f876f6 browse file added to inspector menu
Claus Gittinger <cg@exept.de>
parents: 18072
diff changeset
  1259
                { '-' . nil }                   .
325160f876f6 browse file added to inspector menu
Claus Gittinger <cg@exept.de>
parents: 18072
diff changeset
  1260
                { 'Browse File' . [FileBrowser default openOn:self pathName] }
16837
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  1261
            }.
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  1262
! !
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  1263
18462
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  1264
!Filename methodsFor:'inspecting'!
15286
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1265
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1266
inspector2TabContentsView
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1267
    <inspector2Tab>      
16367
Claus Gittinger <cg@exept.de>
parents: 16359
diff changeset
  1268
    
Claus Gittinger <cg@exept.de>
parents: 16359
diff changeset
  1269
    "provide an additional tab, which presents the file's contents.
Claus Gittinger <cg@exept.de>
parents: 16359
diff changeset
  1270
        '.' asFilename inspect
Claus Gittinger <cg@exept.de>
parents: 16359
diff changeset
  1271
        'smalltalk.rc' asFilename inspect
Claus Gittinger <cg@exept.de>
parents: 16359
diff changeset
  1272
    "
15286
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1273
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1274
    | mimetype |
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1275
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1276
    self isDirectory ifTrue:[ 
16722
63b17ec548a5 Fix inspector2 inspecting of Filename directories
Stefan Vogel <sv@exept.de>
parents: 16704
diff changeset
  1277
        | tab |    
63b17ec548a5 Fix inspector2 inspecting of Filename directories
Stefan Vogel <sv@exept.de>
parents: 16704
diff changeset
  1278
63b17ec548a5 Fix inspector2 inspecting of Filename directories
Stefan Vogel <sv@exept.de>
parents: 16704
diff changeset
  1279
        ^ (tab := Tools::Inspector2Tab new)
63b17ec548a5 Fix inspector2 inspecting of Filename directories
Stefan Vogel <sv@exept.de>
parents: 16704
diff changeset
  1280
            label: 'Contents';
63b17ec548a5 Fix inspector2 inspecting of Filename directories
Stefan Vogel <sv@exept.de>
parents: 16704
diff changeset
  1281
            priority: 50;
63b17ec548a5 Fix inspector2 inspecting of Filename directories
Stefan Vogel <sv@exept.de>
parents: 16704
diff changeset
  1282
            applicationHolder: [   
63b17ec548a5 Fix inspector2 inspecting of Filename directories
Stefan Vogel <sv@exept.de>
parents: 16704
diff changeset
  1283
                | browser |
63b17ec548a5 Fix inspector2 inspecting of Filename directories
Stefan Vogel <sv@exept.de>
parents: 16704
diff changeset
  1284
63b17ec548a5 Fix inspector2 inspecting of Filename directories
Stefan Vogel <sv@exept.de>
parents: 16704
diff changeset
  1285
                browser := DirectoryContentsBrowser new.
63b17ec548a5 Fix inspector2 inspecting of Filename directories
Stefan Vogel <sv@exept.de>
parents: 16704
diff changeset
  1286
                browser
63b17ec548a5 Fix inspector2 inspecting of Filename directories
Stefan Vogel <sv@exept.de>
parents: 16704
diff changeset
  1287
                    initializeAspects;
63b17ec548a5 Fix inspector2 inspecting of Filename directories
Stefan Vogel <sv@exept.de>
parents: 16704
diff changeset
  1288
                    aspectFor:#currentFileNameHolder put:((OrderedCollection with:self) asValue);
63b17ec548a5 Fix inspector2 inspecting of Filename directories
Stefan Vogel <sv@exept.de>
parents: 16704
diff changeset
  1289
                    updateCurrentFileNameHolderWhenSelectionChanges:false.
63b17ec548a5 Fix inspector2 inspecting of Filename directories
Stefan Vogel <sv@exept.de>
parents: 16704
diff changeset
  1290
                browser viewDirsInContentsBrowser value:true.
63b17ec548a5 Fix inspector2 inspecting of Filename directories
Stefan Vogel <sv@exept.de>
parents: 16704
diff changeset
  1291
                browser enterActionBlock:[:item|
63b17ec548a5 Fix inspector2 inspecting of Filename directories
Stefan Vogel <sv@exept.de>
parents: 16704
diff changeset
  1292
                    | app |                        
63b17ec548a5 Fix inspector2 inspecting of Filename directories
Stefan Vogel <sv@exept.de>
parents: 16704
diff changeset
  1293
                    app := tab view topView application.
63b17ec548a5 Fix inspector2 inspecting of Filename directories
Stefan Vogel <sv@exept.de>
parents: 16704
diff changeset
  1294
                    app notNil ifTrue:[
63b17ec548a5 Fix inspector2 inspecting of Filename directories
Stefan Vogel <sv@exept.de>
parents: 16704
diff changeset
  1295
                        app inspect: item fileName.
15286
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1296
                    ].
16722
63b17ec548a5 Fix inspector2 inspecting of Filename directories
Stefan Vogel <sv@exept.de>
parents: 16704
diff changeset
  1297
                ].
63b17ec548a5 Fix inspector2 inspecting of Filename directories
Stefan Vogel <sv@exept.de>
parents: 16704
diff changeset
  1298
                browser
63b17ec548a5 Fix inspector2 inspecting of Filename directories
Stefan Vogel <sv@exept.de>
parents: 16704
diff changeset
  1299
            ];
63b17ec548a5 Fix inspector2 inspecting of Filename directories
Stefan Vogel <sv@exept.de>
parents: 16704
diff changeset
  1300
            yourself
15286
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1301
    ].
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1302
    mimetype := self mimeTypeFromName.
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1303
    (mimetype notNil and:[mimetype isTextType or:[ mimetype endsWith: '-source']]) ifTrue:[ 
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1304
        ^ Tools::Inspector2Tab new
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1305
            label: 'Contents';
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1306
            priority: 50;
18381
4cdb2e523391 class: Tools::Inspector2::NavigationState
Claus Gittinger <cg@exept.de>
parents: 18349
diff changeset
  1307
            view: [   
15286
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1308
                | view model |
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1309
15616
325be5f3e308 inspector extension for file
Claus Gittinger <cg@exept.de>
parents: 15587
diff changeset
  1310
                self exists ifTrue:[
325be5f3e308 inspector extension for file
Claus Gittinger <cg@exept.de>
parents: 15587
diff changeset
  1311
                    model := self contents asValue.
325be5f3e308 inspector extension for file
Claus Gittinger <cg@exept.de>
parents: 15587
diff changeset
  1312
                ] ifFalse:[
325be5f3e308 inspector extension for file
Claus Gittinger <cg@exept.de>
parents: 15587
diff changeset
  1313
                    model := 'File does not (no longer?) exist' asValue.
325be5f3e308 inspector extension for file
Claus Gittinger <cg@exept.de>
parents: 15587
diff changeset
  1314
                ].
15286
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1315
                view := Tools::CodeView2 new.
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1316
                view model: model.
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1317
                view acceptAction:[ :contents |
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1318
                    self writingFileDo:[:s|
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1319
                        contents do:[:line | s nextPutLine: line ].
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1320
                    ].
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1321
                    model value: contents.
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1322
                ].
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1323
                view
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1324
            ];
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1325
            yourself
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1326
    ].
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1327
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1328
    ^ nil
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1329
18381
4cdb2e523391 class: Tools::Inspector2::NavigationState
Claus Gittinger <cg@exept.de>
parents: 18349
diff changeset
  1330
    "
4cdb2e523391 class: Tools::Inspector2::NavigationState
Claus Gittinger <cg@exept.de>
parents: 18349
diff changeset
  1331
     '/tmp' asFilename inspect
4cdb2e523391 class: Tools::Inspector2::NavigationState
Claus Gittinger <cg@exept.de>
parents: 18349
diff changeset
  1332
    "
4cdb2e523391 class: Tools::Inspector2::NavigationState
Claus Gittinger <cg@exept.de>
parents: 18349
diff changeset
  1333
15286
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1334
    "Created: / 13-02-2015 / 15:08:43 / Jan Vrany <jan.vrany@fit.cvut.cz>"
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1335
    "Modified: / 13-02-2015 / 20:57:53 / Jan Vrany <jan.vrany@fit.cvut.cz>"
18381
4cdb2e523391 class: Tools::Inspector2::NavigationState
Claus Gittinger <cg@exept.de>
parents: 18349
diff changeset
  1336
    "Modified (comment): / 14-09-2018 / 18:27:06 / Claus Gittinger"
15286
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1337
! !
3a5dd497b5e3 Added "Contents" tab to Filename inspector.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15285
diff changeset
  1338
18383
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1339
!FontDescription methodsFor:'inspecting'!
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1340
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1341
inspector2TabCharacterSet
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1342
    "an extra tab showing the font"
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1343
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1344
    <inspector2Tab>
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1345
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1346
    |v|
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1347
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1348
    CharacterSetView 
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1349
            openOn:self 
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1350
            in:(v := View new) 
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1351
            label:'font' clickLabel:nil asInputFor:nil encoder:nil.
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1352
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1353
    ^ self newInspector2Tab
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1354
        label: 'Font';
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1355
        priority: 50;
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1356
        view: (HVScrollableView forView:v)
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1357
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1358
    "Modified: / 14-09-2018 / 21:35:45 / Claus Gittinger"
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1359
! !
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1360
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1361
!FontDescription methodsFor:'inspecting'!
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1362
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1363
inspector2TabPreview
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1364
    "an extra tab showing the quick brown fox"
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1365
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1366
    <inspector2Tab>
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1367
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1368
    ^ self newInspector2Tab
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1369
        label: 'Preview';
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1370
        priority: 50;
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1371
        view: (TextView new
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1372
                contents:'The quick brown fox jumps over the lazy dog';
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1373
                font:self;
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1374
                yourself)
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1375
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1376
    "Created: / 07-06-2018 / 18:34:32 / Claus Gittinger"
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1377
    "Modified: / 14-09-2018 / 21:35:39 / Claus Gittinger"
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1378
! !
Claus Gittinger <cg@exept.de>
parents: 18381
diff changeset
  1379
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1380
!Form methodsFor:'misc ui support'!
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1381
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1382
inspectorClass
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1383
    "redefined to launch an ImageInspector
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1384
     (instead of the default InspectorView)."
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1385
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1386
    ^ ImageInspectorView
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1387
! !
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1388
18100
8be69d996009 more values
Claus Gittinger <cg@exept.de>
parents: 18089
diff changeset
  1389
!Fraction methodsFor:'inspecting'!
8be69d996009 more values
Claus Gittinger <cg@exept.de>
parents: 18089
diff changeset
  1390
8be69d996009 more values
Claus Gittinger <cg@exept.de>
parents: 18089
diff changeset
  1391
inspectorExtraAttributes
8be69d996009 more values
Claus Gittinger <cg@exept.de>
parents: 18089
diff changeset
  1392
    "extra (pseudo instvar) entries to be shown in an inspector."
8be69d996009 more values
Claus Gittinger <cg@exept.de>
parents: 18089
diff changeset
  1393
8be69d996009 more values
Claus Gittinger <cg@exept.de>
parents: 18089
diff changeset
  1394
    ^ super inspectorExtraAttributes
8be69d996009 more values
Claus Gittinger <cg@exept.de>
parents: 18089
diff changeset
  1395
        add:( '-asFloat' -> [ self asLongFloat printString ] );
8be69d996009 more values
Claus Gittinger <cg@exept.de>
parents: 18089
diff changeset
  1396
        yourself
8be69d996009 more values
Claus Gittinger <cg@exept.de>
parents: 18089
diff changeset
  1397
! !
8be69d996009 more values
Claus Gittinger <cg@exept.de>
parents: 18089
diff changeset
  1398
18540
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1399
!Fraction methodsFor:'inspecting'!
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1400
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1401
inspectorValueListIconFor:anInspector
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1402
    "returns the icon to be shown alongside the value list of an inspector"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1403
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1404
    ^ anInspector imageFor_fractions
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1405
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1406
    "Created: / 12-12-2018 / 16:08:47 / Claus Gittinger"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1407
! !
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1408
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1409
!GenericException class methodsFor:'misc ui support'!
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1410
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1411
iconInBrowserSymbol
16117
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
  1412
    "the browser will use this as index into the toolbariconlibrary"
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
  1413
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1414
    <resource: #programImage>
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1415
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1416
    ^ #exceptionClassBrowserIcon
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1417
! !
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1418
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1419
!GenericToolbarIconLibrary class methodsFor:'image specs-22x22'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1420
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1421
bookmarks22x22
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1422
    "This resource specification was automatically generated
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1423
     by the ImageEditor of ST/X."
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1424
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1425
    "Do not manually edit this!! If it is corrupted,
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1426
     the ImageEditor may not be able to read the specification."
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1427
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1428
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1429
     self bookmarks22x22 inspect
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1430
     ImageEditor openOnClass:self andSelector:#bookmarks22x22
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1431
     Icon flushCachedIcons
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1432
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1433
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1434
    <resource: #image>
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1435
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1436
    ^Icon
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1437
        constantNamed:'GenericToolbarIconLibrary class bookmarks22x22'
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1438
        ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1439
????????????????????????????????????????????????????????????????????????LT;??????????????????????????6BAD/??????????????
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1440
?????????16L''"+???????????????????????<7''95Y????????????????????????YI2[_!!C?????????????????????GXZZ&Y\0????????????I$YF
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1441
Q$YFQUBX%)VRZ%YAO34=OR????=T#9RT$9FP#(6K"(VB_718]U0%????FC)9"X"G!!HN@_W]4\V=)YT@E????????J&Y;^''Y3\''A-ZFI_UR8A??????????<Q
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1442
SF9,Z6]#WU!!SQBW??????????????1YWXU9ZTT5IP2K???????????????<)V5IOR$\>NS (????????????????M$-HP#,3KB\ZE07?????????????GST<
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1443
MB4$GATNB0(]?????????????142J18[@O<RC0XCD?????????????<!!H1$G?????1@T@ $H????????????G2@D?????????14L????????????????????
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1444
?????????????????????????????????????????????0@a') ; colorMapFromArray:#[143 162 38 146 165 38 153 167 24 155 168 21 149 168 39 149 169 39 156 169 21 151 170 40 151 171 40 156 171 30 159 173 22 160 174 20 156 174 34 154 175 41 162 176 20 159 176 32 156 176 41 156 177 41 157 177 41 159 178 37 159 178 38 163 179 26 158 179 42 163 180 27 159 180 42 162 180 35 166 181 20 160 181 40 161 181 39 160 181 42 165 181 28 162 181 37 161 181 40 162 181 38 161 181 41 168 181 23 162 182 36 161 182 41 161 182 43 168 183 20 163 183 35 162 183 41 162 183 42 170 184 22 169 185 20 169 185 23 164 185 38 164 185 40 164 185 42 164 185 43 171 186 24 171 187 21 172 187 22 170 187 29 168 187 35 165 187 44 171 188 19 173 190 19 168 189 44 174 190 21 174 190 22 170 192 37 176 192 20 170 192 38 171 193 33 171 193 38 177 193 21 176 194 19 174 194 26 172 193 47 172 193 48 178 195 20 179 195 21 179 197 19 180 197 20 180 197 21 176 197 38 181 199 19 177 199 46 183 201 20 179 200 50 184 202 19 185 202 21 184 203 18 180 201 50 183 204 21 181 203 37 184 204 27 185 205 18 181 204 45 187 205 19 187 205 21 183 206 27 187 208 18 189 208 20 189 210 17 186 208 51 191 210 20 190 211 17 190 211 19 187 209 53 191 213 17 190 211 43 193 213 19 193 214 17 194 216 16 192 215 38 195 216 20 196 217 25 196 218 18 196 217 28 196 219 17 198 220 18 199 221 17 200 222 23 201 222 28 201 224 17 200 225 16 203 223 33 203 225 20 202 226 16 202 223 51 204 224 38 204 224 41 203 227 16 204 226 26 203 226 47 204 229 16 206 227 34 203 227 53 206 230 21 207 228 39 208 228 43 207 231 26 207 228 60 209 229 48 209 229 51 210 229 52 209 232 33 210 232 39 209 231 58 211 233 46 212 234 52 213 233 63 213 234 56 214 235 59 214 237 41 215 235 62 215 235 64 215 238 49 217 238 55 217 240 46 218 239 61 219 242 53 220 242 59 222 245 56 223 245 62 224 248 57 224 248 58 224 248 64 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@C@@@C @@G @@G @@G0@@O0@_??8O??8O??0C?? A?>@@?<@@?<@@?>@A?>@A>>@A8_@A0F@@@@@@@@@') ; yourself); yourself]
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1445
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1446
    "Modified: / 05-05-2011 / 12:45:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1447
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1448
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1449
!GenericToolbarIconLibrary class methodsFor:'image specs-16x16'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1450
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1451
bug16x16Icon
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1452
    "This resource specification was automatically generated
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1453
     by the ImageEditor of ST/X."
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1454
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1455
    "Do not manually edit this!! If it is corrupted,
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1456
     the ImageEditor may not be able to read the specification."
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1457
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1458
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1459
     self bug16x16Icon inspect
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1460
     ImageEditor openOnClass:self andSelector:#bug16x16Icon
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1461
     Icon flushCachedIcons
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1462
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1463
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1464
    <resource: #image>
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1465
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1466
    ^Icon
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1467
        constantNamed:'GenericToolbarIconLibrary class bug16x16Icon'
19458
03d0d43b52e8 class: GenericToolbarIconLibrary class
Claus Gittinger <cg@exept.de>
parents: 19414
diff changeset
  1468
        ifAbsentPut:[(Depth8Image width:16 height:16) bits:(ByteArray fromPackedString:'
03d0d43b52e8 class: GenericToolbarIconLibrary class
Claus Gittinger <cg@exept.de>
parents: 19414
diff changeset
  1469
???????????????????????????????????????????????????3R/??<???????????????O"_??_L@??????????????7=?/7=???????????=???=IBP$
03d0d43b52e8 class: GenericToolbarIconLibrary class
Claus Gittinger <cg@exept.de>
parents: 19414
diff changeset
  1470
?_????????????7=W5=_W5?=O/7???????>L?PLC@0LC?_????????7=/4S[7S 8TY/=?VC?????L#L.>JI3I+A%H C?????GA3_]U*/M3_;BPRL@O????7=
03d0d43b52e8 class: GenericToolbarIconLibrary class
Claus Gittinger <cg@exept.de>
parents: 19414
diff changeset
  1471
?_B@M>DE-04>?U/??????2_=HEXYQ7:R<PC???????4>G2$%Q9QEL?5_??????????<=?\;M??????????????????=-@O???????0@a')
03d0d43b52e8 class: GenericToolbarIconLibrary class
Claus Gittinger <cg@exept.de>
parents: 19414
diff changeset
  1472
            colorMapFromArray:#[205 205 205 227 35 35 106 106 106 98 98 98 135 135 135 163 34 34 101 5 5 124 124 124 48 2 2 227 11 11 173 173 173 218 54 54 241 241 241 235 19 19 225 225 225 219 18 18 245 58 58 214 214 214 249 46 46 90 90 90 254 61 61 36 36 36 176 176 176 233 233 233 114 114 114 255 78 78 212 33 33 230 57 57 61 61 61 94 94 94 76 76 76 19 19 19 255 57 57 161 161 161 83 83 83 217 217 217 249 249 249 255 65 65 139 2 2 27 27 27 169 169 169 253 53 53 210 28 28 251 251 251 154 154 154 117 117 117 195 1 1 245 245 245 145 145 145 218 5 5 230 230 230 69 2 2 181 181 181 11 11 11 141 141 141 249 61 61 205 21 21 165 165 165 157 157 157 241 28 28 223 223 223 109 109 109 2 2 2 245 45 45 146 0 0 69 69 69 137 137 137 140 40 40 188 1 1 206 24 24 219 33 33 255 76 76 249 49 49 249 56 56 236 236 236 121 121 121 248 53 53 171 1 1 111 40 40 237 41 41 178 21 21 205 16 16 129 129 129 163 1 1 155 18 18 85 4 4 243 68 68 73 73 73 45 45 45 202 51 51 241 40 40 86 86 86 114 1 1 210 4 4 246 41 41 148 148 148 189 189 189 209 209 209 210 17 17 158 28 28 213 5 5 205 1 1 53 53 53 217 9 9 69 40 40 187 10 10 255 74 74 218 28 28 146 11 11 65 65 65 232 37 37 101 101 101 196 26 26 245 53 53 188 26 26 213 10 10 184 184 184 206 5 5 249 65 65 172 21 21 206 34 34 195 195 195 237 32 32 131 12 12 233 29 29 179 36 36 241 37 37 139 13 13 245 49 49 180 1 1 168 37 37 198 198 198 202 202 202 228 21 21 206 10 10 206 29 29 229 30 30 255 80 80 188 20 20 245 37 37 57 57 57 252 50 50 87 42 42 172 10 10 209 13 13 155 4 4 164 11 11 242 44 44 255 70 70 225 25 25 222 14 14 237 24 24 240 49 49 205 13 13 202 44 44 201 0 0 225 17 17 186 42 42 255 72 72 122 1 1 40 40 40 157 10 10 209 8 8 222 8 8 195 41 41 223 21 21 180 11 11 255 68 68 162 28 28 194 11 11 232 25 25 131 1 1 241 32 32 246 246 246 49 49 49 224 44 44 208 2 2 227 227 227 239 239 239 239 46 46 162 20 20 245 33 33 219 219 219 238 29 29 237 37 37 171 29 29 36 46 46 250 68 68 147 16 16 182 26 26 187 187 187 24 1 1 185 32 32 229 24 24 232 33 33 150 150 150 122 12 12 229 17 17 204 27 27 242 52 52 213 2 2 200 15 15 191 191 191 217 43 43 217 12 12 115 10 10 140 16 16 200 28 28 202 6 6 215 13 13 182 41 41 57 46 46 40 46 46 233 40 40 252 70 70 173 40 40 226 28 28 46 54 54 202 22 22 203 18 18 245 72 72 191 17 17 200 37 37 10 0 0 50 52 52 252 74 74 252 72 72 247 38 38 160 40 40 231 14 14 252 68 68 200 10 10 15 15 15 211 47 47 254 254 254 253 76 76 23 23 23 237 69 69 7 7 7 144 7 7 196 8 7 32 32 32 59 59 59 90 93 93 67 67 67 70 28 28 50 56 56 232 15 16 208 4 4 237 35 35 220 12 11 232 20 20 223 62 62 0 0 0 255 255 255 255 255 255]
03d0d43b52e8 class: GenericToolbarIconLibrary class
Claus Gittinger <cg@exept.de>
parents: 19414
diff changeset
  1473
            mask:((ImageMask width:16 height:16) bits:(ByteArray fromPackedString:'@@@@@@L @6@C8AO C?0O<C?>G? ??C?>C? _?@O@@H@b'); yourself); yourself]
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1474
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1475
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1476
!GenericToolbarIconLibrary class methodsFor:'image specs-24x24'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1477
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1478
bug24x24Icon
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1479
    "This resource specification was automatically generated
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1480
     by the ImageEditor of ST/X."
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1481
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1482
    "Do not manually edit this!! If it is corrupted,
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1483
     the ImageEditor may not be able to read the specification."
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1484
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1485
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1486
     self bug24x24Icon inspect
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1487
     ImageEditor openOnClass:self andSelector:#bug24x24Icon
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1488
     Icon flushCachedIcons
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1489
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1490
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1491
    <resource: #image>
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1492
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1493
    ^Icon
14946
92c803d663d5 some iconkeys were wrong
Claus Gittinger <cg@exept.de>
parents: 14917
diff changeset
  1494
        constantNamed:'GenericToolbarIconLibrary bug24x24Icon'
92c803d663d5 some iconkeys were wrong
Claus Gittinger <cg@exept.de>
parents: 14917
diff changeset
  1495
        ifAbsentPut:[(Depth8Image new) width:24; height:24; bits:(ByteArray fromPackedString:'
92c803d663d5 some iconkeys were wrong
Claus Gittinger <cg@exept.de>
parents: 14917
diff changeset
  1496
??????????????????????????????????????????????????<@???????????????????????1??????<@<???????????????????????<4+????3????
92c803d663d5 some iconkeys were wrong
Claus Gittinger <cg@exept.de>
parents: 14917
diff changeset
  1497
????????????????????O"_???> ??????????????????????????5/[3;.?????????????????????????V<$?#K=,_????????????????7???=/[2P$
92c803d663d5 some iconkeys were wrong
Claus Gittinger <cg@exept.de>
parents: 14917
diff changeset
  1498
IBP$?_?????=????????MV?=???=L&<2L&<2?_7?XQW.??????????=/?_7=XVE!!XVE!!W?7=O#[?????????????[?4''@0L8NC C@?7=????????????????
92c803d663d5 some iconkeys were wrong
Claus Gittinger <cg@exept.de>
parents: 14917
diff changeset
  1499
?_6[NC 8NC 8NI/=?????????????_7=/4R[6=48NC!!"TY-M?_7=XO???????3H0L29%>JK/\2Z",FUDH#YJ????????????L9-$3N>%%ZW/YL!!D????????
92c803d663d5 some iconkeys were wrong
Claus Gittinger <cg@exept.de>
parents: 14917
diff changeset
  1500
????GA1W77W7V*<7M3\R>0%DAH0\D_???????SC=?_@M C_W8PTP-05MO/7=V???????@@@4MX>WRW7WFPVZ"?//?1XV??????????<XI?7]HEXYFT]Y_)K=
92c803d663d5 some iconkeys were wrong
Claus Gittinger <cg@exept.de>
parents: 14917
diff changeset
  1501
<Q_??????????3PXO!!?DJRU*Q9P%QSL5?U<@?????????3T5???=F$  EB@?L37?[3;=?????????6??????O_7D3,7=????@@A/??????????????????<(
92c803d663d5 some iconkeys were wrong
Claus Gittinger <cg@exept.de>
parents: 14917
diff changeset
  1502
JB#?????????????????????????????????????????????') ; colorMapFromArray:#[205 205 205 227 35 35 106 106 106 98 98 98 135 135 135 163 34 34 101 5 5 124 124 124 48 2 2 227 11 11 173 173 173 218 54 54 241 241 241 235 19 19 225 225 225 219 18 18 245 58 58 214 214 214 249 46 46 90 90 90 254 61 61 36 36 36 176 176 176 233 233 233 114 114 114 255 78 78 212 33 33 230 57 57 61 61 61 94 94 94 76 76 76 19 19 19 255 57 57 161 161 161 83 83 83 217 217 217 249 249 249 255 65 65 139 2 2 27 27 27 169 169 169 253 53 53 210 28 28 251 251 251 154 154 154 117 117 117 195 1 1 245 245 245 145 145 145 218 5 5 230 230 230 69 2 2 181 181 181 11 11 11 141 141 141 249 61 61 205 21 21 165 165 165 157 157 157 241 28 28 223 223 223 109 109 109 2 2 2 245 45 45 146 0 0 69 69 69 137 137 137 140 40 40 188 1 1 206 24 24 219 33 33 255 76 76 249 49 49 249 56 56 236 236 236 121 121 121 248 53 53 171 1 1 111 40 40 237 41 41 178 21 21 205 16 16 129 129 129 163 1 1 155 18 18 85 4 4 243 68 68 73 73 73 45 45 45 202 51 51 241 40 40 86 86 86 114 1 1 210 4 4 246 41 41 148 148 148 189 189 189 209 209 209 210 17 17 158 28 28 213 5 5 205 1 1 53 53 53 217 9 9 69 40 40 187 10 10 255 74 74 218 28 28 146 11 11 65 65 65 232 37 37 101 101 101 196 26 26 245 53 53 188 26 26 213 10 10 184 184 184 206 5 5 249 65 65 172 21 21 206 34 34 195 195 195 237 32 32 131 12 12 233 29 29 179 36 36 241 37 37 139 13 13 245 49 49 180 1 1 168 37 37 198 198 198 202 202 202 228 21 21 206 10 10 206 29 29 229 30 30 255 80 80 188 20 20 245 37 37 57 57 57 252 50 50 87 42 42 172 10 10 209 13 13 155 4 4 164 11 11 242 44 44 255 70 70 225 25 25 222 14 14 237 24 24 240 49 49 205 13 13 202 44 44 201 0 0 225 17 17 186 42 42 255 72 72 122 1 1 40 40 40 157 10 10 209 8 8 222 8 8 195 41 41 223 21 21 180 11 11 255 68 68 162 28 28 194 11 11 232 25 25 131 1 1 241 32 32 246 246 246 49 49 49 224 44 44 208 2 2 227 227 227 239 239 239 239 46 46 162 20 20 245 33 33 219 219 219 238 29 29 237 37 37 171 29 29 36 46 46 250 68 68 147 16 16 182 26 26 187 187 187 24 1 1 185 32 32 229 24 24 232 33 33 150 150 150 122 12 12 229 17 17 204 27 27 242 52 52 213 2 2 200 15 15 191 191 191 217 43 43 217 12 12 115 10 10 140 16 16 200 28 28 202 6 6 215 13 13 182 41 41 57 46 46 40 46 46 233 40 40 252 70 70 173 40 40 226 28 28 46 54 54 202 22 22 203 18 18 245 72 72 191 17 17 200 37 37 10 0 0 50 52 52 252 74 74 252 72 72 247 38 38 160 40 40 231 14 14 252 68 68 200 10 10 15 15 15 211 47 47 254 254 254 253 76 76 23 23 23 237 69 69 7 7 7 144 7 7 196 8 7 32 32 32 59 59 59 90 93 93 67 67 67 70 28 28 50 56 56 232 15 16 208 4 4 237 35 35 220 12 11 232 20 20 223 62 62 0 0 0 255 255 255 255 255 255]; mask:((ImageMask new) width:24; height:24; bits:(ByteArray fromPackedString:'@@@@@@@@@HD@@FH@@FH@@C8@@G<@BO<HGO>8A??0@??@@??@G??<C??8@??@G??<G??<A??XA??0C??0CO>8BG8H@A0@@@@@') ; yourself); yourself]
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1503
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1504
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1505
!GenericToolbarIconLibrary class methodsFor:'image specs-32x32'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1506
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1507
bug32x32Icon
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1508
    <resource: #image>
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1509
    "This resource specification was automatically generated
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1510
     by the ImageEditor of ST/X."
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1511
    "Do not manually edit this!! If it is corrupted,
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1512
     the ImageEditor may not be able to read the specification."
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1513
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1514
     self bug3232Icon inspect
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1515
     ImageEditor openOnClass:self andSelector:#bug3232Icon
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1516
     Icon flushCachedIcons"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1517
    
14946
92c803d663d5 some iconkeys were wrong
Claus Gittinger <cg@exept.de>
parents: 14917
diff changeset
  1518
    ^ Icon constantNamed:'GenericToolbarIconLibrary class bug32x32Icon'
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1519
        ifAbsentPut:[
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1520
            (Depth8Image new)
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1521
                width:32;
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1522
                height:32;
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1523
                photometric:(#palette);
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1524
                bitsPerSample:(#( 8 ));
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1525
                samplesPerPixel:((1));
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1526
                bits:(ByteArray 
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1527
                            fromPackedString:'
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1528
??????????????????????????????????????????????????????????????????>6@/?????????????????????????????1H_????????4-????????
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1529
???????????????????????=?_??????O!!???????????????????????????????3W3R/?????=I????????????????????????????????38''?????:C?
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1530
??????????????????????????????????7.??<>;/???????????????????????????????????_7=?_7=????????????????????????????????[?7=
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1531
IO;>L/7=,_?????????????????????=?????6?=?RP$IBP$IO7=???????=????????????MX3=?????_42L#H2L#H2L/7=??=!!E^8Q????????????O.9K
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1532
?_7=@G%9^W%9^W%9JO7=O%K=O/???????????????_7=?_5_W5=_W5=_W5=_?_7=O/7??????????????????83=I0LC@0LC@0LC@0O=?SK?????????????
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1533
?????????_6 PTEAPTEAPTEAPSW=M_??????????????JC(SI?7= S#WP49(ZF"NS$N$]UO=?QU/@6G???????<-?_7=?[=D&5G[7S 8NC!!"65F[S_7=?_4U
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1534
XO??????????L#C4L29%,O"";7M3I*K8,FUD?RH6R/????????????????<3&6Q''3N>%%YV%;6]$2DS=????????????????????(@#8(92*/KN3,4=T0YZ#
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1535
K/40?????????????0P\GE]X77W7*%*/M3\7M1K9>0%D?PRLGB\Q????????<_7=?S;=<@5> C_W8^DEDC>7CT7=O/7=<U/?????????B!!X4?3VO%59I_]\Y
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1536
FPVZSH/;;8O?E!!Y9????????????????I<SAD#^BFX&IFVMI86H3H/??????????????????FB4''?]5^HEXY"Q%GVR%>$/4^<Q_???????????????4X?S8_
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1537
1DX)IV)GQ9P%D$T3MS;=W27?????????????MST!!???=1A)HHBTTHC?FL37??1<>?_?????????????????????=A''KUO9M.]0# ?????1_?????????????
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1538
??????????<=?\SN3,7=H???????????????????????????????????JFY-H???????????????????????????????????????????????????????????
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1539
?????????????????????????????????????????????0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1540
@@@@@@@@@@@@');
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1541
                colorMapFromArray:#[ 205 205 205 227 35 35 106 106 106 98 98 98 135 135 135 163 34 34 101 5 5 124 124 124 48 2 2 227 11 11 173 173 173 218 54 54 241 241 241 235 19 19 225 225 225 219 18 18 245 58 58 214 214 214 249 46 46 90 90 90 254 61 61 36 36 36 176 176 176 233 233 233 114 114 114 255 78 78 212 33 33 230 57 57 61 61 61 94 94 94 76 76 76 19 19 19 255 57 57 161 161 161 83 83 83 217 217 217 249 249 249 255 65 65 139 2 2 27 27 27 169 169 169 253 53 53 210 28 28 251 251 251 154 154 154 117 117 117 195 1 1 245 245 245 145 145 145 218 5 5 230 230 230 69 2 2 181 181 181 11 11 11 141 141 141 249 61 61 205 21 21 165 165 165 157 157 157 241 28 28 223 223 223 109 109 109 2 2 2 245 45 45 146 0 0 69 69 69 137 137 137 140 40 40 188 1 1 206 24 24 219 33 33 255 76 76 249 49 49 249 56 56 236 236 236 121 121 121 248 53 53 171 1 1 111 40 40 237 41 41 178 21 21 205 16 16 129 129 129 163 1 1 155 18 18 85 4 4 243 68 68 73 73 73 45 45 45 202 51 51 241 40 40 86 86 86 114 1 1 210 4 4 246 41 41 148 148 148 189 189 189 209 209 209 210 17 17 158 28 28 213 5 5 205 1 1 53 53 53 217 9 9 69 40 40 187 10 10 255 74 74 218 28 28 146 11 11 65 65 65 232 37 37 101 101 101 196 26 26 245 53 53 188 26 26 213 10 10 184 184 184 206 5 5 249 65 65 172 21 21 206 34 34 195 195 195 237 32 32 131 12 12 233 29 29 179 36 36 241 37 37 139 13 13 245 49 49 180 1 1 168 37 37 198 198 198 202 202 202 228 21 21 206 10 10 206 29 29 229 30 30 255 80 80 188 20 20 245 37 37 57 57 57 252 50 50 87 42 42 172 10 10 209 13 13 155 4 4 164 11 11 242 44 44 255 70 70 225 25 25 222 14 14 237 24 24 240 49 49 205 13 13 202 44 44 201 0 0 225 17 17 186 42 42 255 72 72 122 1 1 40 40 40 157 10 10 209 8 8 222 8 8 195 41 41 223 21 21 180 11 11 255 68 68 162 28 28 194 11 11 232 25 25 131 1 1 241 32 32 246 246 246 49 49 49 224 44 44 208 2 2 227 227 227 239 239 239 239 46 46 162 20 20 245 33 33 219 219 219 238 29 29 237 37 37 171 29 29 36 46 46 250 68 68 147 16 16 182 26 26 187 187 187 24 1 1 185 32 32 229 24 24 232 33 33 150 150 150 122 12 12 229 17 17 204 27 27 242 52 52 213 2 2 200 15 15 191 191 191 217 43 43 217 12 12 115 10 10 140 16 16 200 28 28 202 6 6 215 13 13 182 41 41 57 46 46 40 46 46 233 40 40 252 70 70 173 40 40 226 28 28 46 54 54 202 22 22 203 18 18 245 72 72 191 17 17 200 37 37 10 0 0 50 52 52 252 74 74 252 72 72 247 38 38 160 40 40 231 14 14 252 68 68 200 10 10 15 15 15 211 47 47 254 254 254 253 76 76 23 23 23 237 69 69 7 7 7 144 7 7 196 8 7 32 32 32 59 59 59 90 93 93 67 67 67 70 28 28 50 56 56 232 15 16 208 4 4 237 35 35 220 12 11 232 20 20 223 62 62 0 0 0 255 255 255 255 255 255 ];
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1542
                mask:((ImageMask new)
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1543
                            width:32;
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1544
                            height:32;
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1545
                            photometric:(#blackIs0);
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1546
                            bitsPerSample:(#[ 1 ]);
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1547
                            samplesPerPixel:((1));
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1548
                            bits:(ByteArray 
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1549
                                        fromPackedString:'
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1550
@@@@@@@@L@@@LC@@@A 0@@@\L@@@CB@@@@Y @@@G8@@@G? @AC?8H@8??O@G??? @???0@C??0@@??<@G???>A???? G??? @O??@@G??8@_???8G???>@;?
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1551
?7@@??<@@???0@_??>@GO?3 @A?8P@@O<@@@@<@@@@@@@@@@@@@b');
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1552
                            yourself);
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1553
                yourself
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1554
        ]
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1555
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1556
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1557
!GenericToolbarIconLibrary class methodsFor:'image specs-16x16'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1558
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1559
lint16x16Icon
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1560
    "This resource specification was automatically generated
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1561
     by the ImageEditor of ST/X."
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1562
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1563
    "Do not manually edit this!! If it is corrupted,
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1564
     the ImageEditor may not be able to read the specification."
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1565
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1566
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1567
     self lint16x16Icon inspect
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1568
     ImageEditor openOnClass:self andSelector:#lint16x16Icon
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1569
     Icon flushCachedIcons
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1570
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1571
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1572
    <resource: #image>
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1573
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1574
    ^Icon
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1575
        constantNamed:'GenericToolbarIconLibrary class lint16x16Icon'
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1576
        ifAbsentPut:[(Depth8Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(8)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1577
??????????????????????????????????????????????????<4[_??????????????????A4W??????????????????2<A()BG??????????<A??<A1_;>
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1578
@XS??????????3<)-;^76.Z5A0O???????<P@W!!8>-3J<0+??????0\JI1,;7^?57-[;''T????<JS0P"PN3'':-V>8L??????V5@''G57.1,!!#X-''R_O???1(R
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1579
@RMW:Y*KY6+7*RW??????3P*ZU[;.:#!!/:7???????<A@6AV2?S:9+>5??????????< BC &?????;?Z??????????<XU_?????X<P@a') ; colorMapFromArray:#[0 1 0 0 2 0 1 4 0 3 6 2 30 1 0 6 9 5 34 2 2 10 12 8 43 4 2 13 15 12 15 17 13 77 0 0 16 18 15 35 14 12 17 19 16 67 6 1 19 20 18 75 7 10 21 23 20 86 9 4 25 27 24 111 4 7 103 7 10 96 10 12 32 29 28 29 30 28 31 33 30 153 2 0 33 35 33 35 36 34 110 16 16 173 0 1 36 38 35 41 37 36 165 4 0 155 7 7 128 15 14 39 41 39 157 12 16 51 42 42 207 0 4 43 45 42 58 41 39 141 19 15 199 4 0 210 3 0 221 1 4 48 49 47 231 0 12 211 7 8 172 19 10 172 19 18 52 54 51 53 55 53 234 5 23 59 54 53 176 24 21 56 57 55 57 59 56 204 19 22 195 22 24 103 47 48 227 16 9 60 61 59 198 25 19 216 20 21 61 63 60 119 48 45 228 20 20 63 65 62 211 30 27 68 69 67 69 71 68 212 32 34 242 25 29 72 74 71 74 76 74 191 45 50 245 31 38 76 78 75 77 79 76 79 80 78 138 66 66 248 36 40 240 41 43 83 85 82 216 50 52 241 43 50 195 58 61 86 88 85 244 46 46 87 89 86 89 91 88 214 58 58 193 65 67 92 93 91 248 51 49 109 90 87 185 68 87 194 67 80 87 95 125 250 54 57 173 74 96 202 67 84 159 78 103 253 56 52 188 72 90 87 99 135 129 89 121 99 101 98 73 104 148 255 59 60 159 83 106 175 81 94 94 102 132 187 78 98 215 71 85 255 61 67 169 84 104 251 66 66 104 106 103 90 106 147 151 92 119 200 81 93 107 108 106 140 99 131 162 94 119 255 72 76 144 100 128 96 112 153 228 80 83 159 97 120 111 113 110 191 90 111 206 87 104 113 115 112 87 118 163 115 117 114 83 122 166 179 100 117 118 120 117 199 99 101 231 91 88 138 113 147 120 122 119 196 101 119 123 125 122 115 123 167 213 100 113 119 123 162 180 109 128 127 129 126 208 108 109 115 131 173 185 115 140 158 122 154 173 119 144 131 133 130 130 130 163 178 122 124 181 119 147 106 139 178 136 138 135 120 139 175 126 138 175 204 121 132 132 139 172 113 146 186 136 143 176 144 146 143 121 149 184 153 142 173 135 150 181 148 150 147 125 153 188 130 153 182 179 140 167 150 152 149 205 136 148 181 145 146 136 159 189 155 157 154 140 163 193 159 161 158 161 163 160 143 166 196 162 164 161 148 167 192 164 166 163 165 165 187 197 159 173 167 169 166 152 171 196 191 163 180 157 172 191 169 171 168 216 159 166 171 173 170 208 163 179 187 169 190 217 162 175 174 176 173 159 178 203 186 173 174 207 167 175 163 178 198 213 166 176 179 181 178 198 176 192 169 185 204 183 185 182 216 175 184 209 177 189 212 180 192 204 183 198 208 183 193 188 190 187 180 192 206 194 196 193 215 191 201 187 199 213 204 198 197 211 196 210 199 201 198 190 202 216 191 203 217 201 202 212 202 204 201 208 203 201 219 201 210 205 207 203 217 203 217 206 208 205 213 207 206 223 205 214 203 211 220 211 213 210 211 212 222 214 216 213 221 215 227 217 219 216 219 221 218 228 218 224 217 222 225 221 223 220 231 221 227 216 225 233 220 226 228 224 226 223 221 229 238 231 233 230 228 234 236 233 235 232 235 238 234 249 251 248 255 255 255]; mask:((ImageMask new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@L@@0@C8AO0C?0O>C?>O?0??#?>C?0O?@OC@LLb') ; yourself); yourself]
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1580
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1581
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1582
!GenericToolbarIconLibrary class methodsFor:'image specs-24x24'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1583
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1584
lint24x24Icon
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1585
    "This resource specification was automatically generated
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1586
     by the ImageEditor of ST/X."
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1587
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1588
    "Do not manually edit this!! If it is corrupted,
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1589
     the ImageEditor may not be able to read the specification."
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1590
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1591
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1592
     self lint24x24Icon inspect
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1593
     ImageEditor openOnClass:self andSelector:#lint24x24Icon
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1594
     Icon flushCachedIcons
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1595
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1596
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1597
    <resource: #image>
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1598
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1599
    ^Icon
14946
92c803d663d5 some iconkeys were wrong
Claus Gittinger <cg@exept.de>
parents: 14917
diff changeset
  1600
        constantNamed:'GenericToolbarIconLibrary lint24x24Icon'
92c803d663d5 some iconkeys were wrong
Claus Gittinger <cg@exept.de>
parents: 14917
diff changeset
  1601
        ifAbsentPut:[(Depth8Image new) width:24; height:24; bits:(ByteArray fromPackedString:'
92c803d663d5 some iconkeys were wrong
Claus Gittinger <cg@exept.de>
parents: 14917
diff changeset
  1602
??????????????????????????????????????????????????????????????????????????=_W?????>-@:7?????????????????????MF7???<4+_??
92c803d663d5 some iconkeys were wrong
Claus Gittinger <cg@exept.de>
parents: 14917
diff changeset
  1603
????????????????????+TW???<L?????????????????????????2AG?4HY????????????????????????K65[()A-!!????????????????:7?????[\W>
92c803d663d5 some iconkeys were wrong
Claus Gittinger <cg@exept.de>
parents: 14917
diff changeset
  1604
?/;0[XS???<ZR???????JZ6-??=-0?3<?O3<F&7??0*-??????????<GO:5-6-+Z6-+,9+U-A:4@????????????+PE-^G!!<>-262/O1[_??????????????
92c803d663d5 some iconkeys were wrong
Claus Gittinger <cg@exept.de>
parents: 14917
diff changeset
  1605
+V4PR4/I):+J+8+Q,_??????????+P(]I1,,N=7J;?W27-ZO>94NS4??????B @@[RH(PN2#9>+%5[:@8L>D????????????[Q<-S_BU6=/W3)Y:.]??????
92c803d663d5 some iconkeys were wrong
Claus Gittinger <cg@exept.de>
parents: 14917
diff changeset
  1606
????@@AEI1<>W^:$1,"2X6I(6]IP_@C?????+QHN[RL0U>&6&(-1Y6)(=:$@@D??????N @@[QUDXKO;(HM6^7M,<G @@@AO????????MB(2ZUZX>;.&*NG:
92c803d663d5 some iconkeys were wrong
Claus Gittinger <cg@exept.de>
parents: 14917
diff changeset
  1607
/:6D??????????<)+V4SXEY?2?S<>.Y-/;V-?????????1&-??=-RU)/]8JMT&7?@K>5#O???????:7?????[RX+NBX&[_????>:/;T@?????????????65-
92c803d663d5 some iconkeys were wrong
Claus Gittinger <cg@exept.de>
parents: 14917
diff changeset
  1608
[V5-????????6OF5????????????????????????????@MK?') ; colorMapFromArray:#[0 1 0 0 2 0 1 4 0 3 6 2 30 1 0 6 9 5 34 2 2 10 12 8 43 4 2 13 15 12 15 17 13 77 0 0 16 18 15 35 14 12 17 19 16 67 6 1 19 20 18 75 7 10 21 23 20 86 9 4 25 27 24 111 4 7 103 7 10 96 10 12 32 29 28 29 30 28 31 33 30 153 2 0 33 35 33 35 36 34 110 16 16 173 0 1 36 38 35 41 37 36 165 4 0 155 7 7 128 15 14 39 41 39 157 12 16 51 42 42 207 0 4 43 45 42 58 41 39 141 19 15 199 4 0 210 3 0 221 1 4 48 49 47 231 0 12 211 7 8 172 19 10 172 19 18 52 54 51 53 55 53 234 5 23 59 54 53 176 24 21 56 57 55 57 59 56 204 19 22 195 22 24 103 47 48 227 16 9 60 61 59 198 25 19 216 20 21 61 63 60 119 48 45 228 20 20 63 65 62 211 30 27 68 69 67 69 71 68 212 32 34 242 25 29 72 74 71 74 76 74 191 45 50 245 31 38 76 78 75 77 79 76 79 80 78 138 66 66 248 36 40 240 41 43 83 85 82 216 50 52 241 43 50 195 58 61 86 88 85 244 46 46 87 89 86 89 91 88 214 58 58 193 65 67 92 93 91 248 51 49 109 90 87 185 68 87 194 67 80 87 95 125 250 54 57 173 74 96 202 67 84 159 78 103 253 56 52 188 72 90 87 99 135 129 89 121 99 101 98 73 104 148 255 59 60 159 83 106 175 81 94 94 102 132 187 78 98 215 71 85 255 61 67 169 84 104 251 66 66 104 106 103 90 106 147 151 92 119 200 81 93 107 108 106 140 99 131 162 94 119 255 72 76 144 100 128 96 112 153 228 80 83 159 97 120 111 113 110 191 90 111 206 87 104 113 115 112 87 118 163 115 117 114 83 122 166 179 100 117 118 120 117 199 99 101 231 91 88 138 113 147 120 122 119 196 101 119 123 125 122 115 123 167 213 100 113 119 123 162 180 109 128 127 129 126 208 108 109 115 131 173 185 115 140 158 122 154 173 119 144 131 133 130 130 130 163 178 122 124 181 119 147 106 139 178 136 138 135 120 139 175 126 138 175 204 121 132 132 139 172 113 146 186 136 143 176 144 146 143 121 149 184 153 142 173 135 150 181 148 150 147 125 153 188 130 153 182 179 140 167 150 152 149 205 136 148 181 145 146 136 159 189 155 157 154 140 163 193 159 161 158 161 163 160 143 166 196 162 164 161 148 167 192 164 166 163 165 165 187 197 159 173 167 169 166 152 171 196 191 163 180 157 172 191 169 171 168 216 159 166 171 173 170 208 163 179 187 169 190 217 162 175 174 176 173 159 178 203 186 173 174 207 167 175 163 178 198 213 166 176 179 181 178 198 176 192 169 185 204 183 185 182 216 175 184 209 177 189 212 180 192 204 183 198 208 183 193 188 190 187 180 192 206 194 196 193 215 191 201 187 199 213 204 198 197 211 196 210 199 201 198 190 202 216 191 203 217 201 202 212 202 204 201 208 203 201 219 201 210 205 207 203 217 203 217 206 208 205 213 207 206 223 205 214 203 211 220 211 213 210 211 212 222 214 216 213 221 215 227 217 219 216 219 221 218 228 218 224 217 222 225 221 223 220 231 221 227 216 225 233 220 226 228 224 226 223 221 229 238 231 233 230 228 234 236 233 235 232 235 238 234 249 251 248 255 255 255]; mask:((ImageMask new) width:24; height:24; bits:(ByteArray fromPackedString:'@@@@@@@@@LN@@FL@@FH@@CX@@G<@BG>LGO>XA??0@?? @?? G??>D??8@??0A??<G??2D??1@??8A??8CO>\BG<N@C8G@@@B') ; yourself); yourself]
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1609
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1610
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1611
!GenericToolbarIconLibrary class methodsFor:'image specs-32x32'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1612
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1613
lint32x32Icon
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1614
    "This resource specification was automatically generated
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1615
     by the ImageEditor of ST/X."
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1616
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1617
    "Do not manually edit this!! If it is corrupted,
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1618
     the ImageEditor may not be able to read the specification."
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1619
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1620
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1621
     self lint32x32Icon inspect
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1622
     ImageEditor openOnClass:self andSelector:#lint32x32Icon
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1623
     Icon flushCachedIcons
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1624
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1625
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1626
    <resource: #image>
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1627
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1628
    ^Icon
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1629
        constantNamed:'GenericToolbarIconLibrary class lint32x32Icon'
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1630
        ifAbsentPut:[(Depth8Image new) width: 32; height: 32; photometric:(#palette); bitsPerSample:(#(8)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1631
????????????????????????????????????????????????????????????????????!!O????????????????????????????=_JU???????2@4@???????
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1632
??????????????????????<AT_??????@Q*??????????????????????????????4H4[_????<4O????????????????????????????????0]E?????01K
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1633
?????????????????????????????????2AG??=BFX_?????????????????????????????????QQ$A@PDR?????????????????????????????????2<A
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1634
V96"$@(C!!?????????????????????<A??????<R@\W>?/;><CPA!!O????<Z????????????JUEK????K0GC?O3<?O3<>A(A????B$"G????????????@SQG
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1635
V0(ARNO#8>O#8>O_+PD9NS(%@P_?????????????A0\?JPFW-;^7-;_Z;OG&-Q5EA0MU????????????????QQ@AA718^G2?>-26+,+3<W0J????????????
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1636
????????@PDPR4-K2_^''*,+M+8+Q>+G??????????????4IHUV4)B19COVG:(\K9=.7"/XGY;E=HQZ''???????=\A0(]P"\[KC,;7\*+;?W2:-;V#8#;''P8%
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1637
S?????????<JS5D)ABH(LTC,(<_'':.W[5[:@^^CO!!@G???????????????<FG241S_BU4M/[5=ON%'')2.]???????????????????0P_K"9^=IOA5MOL1JU&
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1638
\FR47?????????????=[TDT:I1<>M%7.)KCF2KJTX6I(Z=''RTD-<????????EA(RC DAH3AJU>&6&9*K\WQ''Z&!!.=:$RMBW?????????N%%\C LUQD9 ,?.Y
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1639
(HM6!!''-3[LC0^E%_#O??????????????!!@=AS&UX9N.Y''G:Q!!W6,?]"L?????????????????4,4J#INZUZX9/.;)):(8_+0/:6D??????????????<)GPDC
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1640
D4Y U''>N2?S<?_+&[\N?-Z6I????????????FPD)??<GE$%Z[7U7 (6_T"_??;>?-Z6L????????????Q?????<AE31TXFAZRRPM?????;2<.J6R????????
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1641
??????????< BB,3NBXQM????????;*</=*L????????????????????NRDXUU???????????;#X<[W??????????????????????????????????????;WR
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1642
?????????????????????????????????????????????0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1643
@@@@@@@@@@@@') ; colorMapFromArray:#[0 1 0 0 2 0 1 4 0 3 6 2 30 1 0 6 9 5 34 2 2 10 12 8 43 4 2 13 15 12 15 17 13 77 0 0 16 18 15 35 14 12 17 19 16 67 6 1 19 20 18 75 7 10 21 23 20 86 9 4 25 27 24 111 4 7 103 7 10 96 10 12 32 29 28 29 30 28 31 33 30 153 2 0 33 35 33 35 36 34 110 16 16 173 0 1 36 38 35 41 37 36 165 4 0 155 7 7 128 15 14 39 41 39 157 12 16 51 42 42 207 0 4 43 45 42 58 41 39 141 19 15 199 4 0 210 3 0 221 1 4 48 49 47 231 0 12 211 7 8 172 19 10 172 19 18 52 54 51 53 55 53 234 5 23 59 54 53 176 24 21 56 57 55 57 59 56 204 19 22 195 22 24 103 47 48 227 16 9 60 61 59 198 25 19 216 20 21 61 63 60 119 48 45 228 20 20 63 65 62 211 30 27 68 69 67 69 71 68 212 32 34 242 25 29 72 74 71 74 76 74 191 45 50 245 31 38 76 78 75 77 79 76 79 80 78 138 66 66 248 36 40 240 41 43 83 85 82 216 50 52 241 43 50 195 58 61 86 88 85 244 46 46 87 89 86 89 91 88 214 58 58 193 65 67 92 93 91 248 51 49 109 90 87 185 68 87 194 67 80 87 95 125 250 54 57 173 74 96 202 67 84 159 78 103 253 56 52 188 72 90 87 99 135 129 89 121 99 101 98 73 104 148 255 59 60 159 83 106 175 81 94 94 102 132 187 78 98 215 71 85 255 61 67 169 84 104 251 66 66 104 106 103 90 106 147 151 92 119 200 81 93 107 108 106 140 99 131 162 94 119 255 72 76 144 100 128 96 112 153 228 80 83 159 97 120 111 113 110 191 90 111 206 87 104 113 115 112 87 118 163 115 117 114 83 122 166 179 100 117 118 120 117 199 99 101 231 91 88 138 113 147 120 122 119 196 101 119 123 125 122 115 123 167 213 100 113 119 123 162 180 109 128 127 129 126 208 108 109 115 131 173 185 115 140 158 122 154 173 119 144 131 133 130 130 130 163 178 122 124 181 119 147 106 139 178 136 138 135 120 139 175 126 138 175 204 121 132 132 139 172 113 146 186 136 143 176 144 146 143 121 149 184 153 142 173 135 150 181 148 150 147 125 153 188 130 153 182 179 140 167 150 152 149 205 136 148 181 145 146 136 159 189 155 157 154 140 163 193 159 161 158 161 163 160 143 166 196 162 164 161 148 167 192 164 166 163 165 165 187 197 159 173 167 169 166 152 171 196 191 163 180 157 172 191 169 171 168 216 159 166 171 173 170 208 163 179 187 169 190 217 162 175 174 176 173 159 178 203 186 173 174 207 167 175 163 178 198 213 166 176 179 181 178 198 176 192 169 185 204 183 185 182 216 175 184 209 177 189 212 180 192 204 183 198 208 183 193 188 190 187 180 192 206 194 196 193 215 191 201 187 199 213 204 198 197 211 196 210 199 201 198 190 202 216 191 203 217 201 202 212 202 204 201 208 203 201 219 201 210 205 207 203 217 203 217 206 208 205 213 207 206 223 205 214 203 211 220 211 213 210 211 212 222 214 216 213 221 215 227 217 219 216 219 221 218 228 218 224 217 222 225 221 223 220 231 221 227 216 225 233 220 226 228 224 226 223 221 229 238 231 233 230 228 234 236 233 235 232 235 238 234 249 251 248 255 255 255]; mask:((ImageMask new) width: 32; height: 32; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1644
@@@@@@@@D@@@NC @@A 8@@@\L@@@CC@@@@Y0@@@G8@@@C? @AA?<H@8??G@G???0@???8@G??8@@??>@C???>A???? O???0@O??0@C??<@O???8G???>@??
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1645
?? @???@@_??8@O???@GO?38@!!?8_@@O<C8@@>@^@@@@C@@@@@@b') ; yourself); yourself]
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1646
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  1647
13887
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1648
!GenericToolbarIconLibrary class methodsFor:'image specs-16x16'!
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1649
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1650
smalllintWarning16x16
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1651
    "This resource specification was automatically generated
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1652
     by the ImageEditor of ST/X."
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1653
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1654
    "Do not manually edit this!! If it is corrupted,
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1655
     the ImageEditor may not be able to read the specification."
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1656
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1657
    "
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1658
     self smalllintWarning16x16 inspect
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1659
     ImageEditor openOnClass:self andSelector:#smalllintWarning16x16
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1660
     Icon flushCachedIcons
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1661
    "
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1662
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1663
    <resource: #image>
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1664
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1665
    ^Icon
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1666
        constantNamed:'GenericToolbarIconLibrary smalllintWarning16x16'
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1667
        ifAbsentPut:[(Depth8Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1668
@@@@@@@@@@@@@@@@@@@@@@@@@@DA@PDA@@@@@@@@@@@@@@DB@0PC@ D@@@@@@@@@@@DBAPXFA TE@P@@@@@@@@@AA0XHA  FA0D@@@@@@@@@@P$JB0,KA 0A
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1669
@PD@@@@@@@DIB 4NCP(IC1@Q@P@@@@@@D!!LT@QPSD!!@UD@D@@@@@@@DVE0DXE <YF!!$O@P@@@@@@@Q,\GPDPFQ(YD@D@@@@@@@D^@Q< HQ$"FRD @P@@@@@A
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1670
H2P%DA$&F"XYD@D@@@@@@R\(JR(+KB4,J2(A@@@@@@@A@PD.J"(*J"(.@@@@@@@@@@@@@PDA@PDA@P@@@@@@@@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 255 248 248 240 184 96 239 168 56 239 168 64 240 192 96 255 232 176 239 176 56 255 232 168 240 184 56 255 240 176 255 240 200 239 184 56 255 248 240 255 248 224 239 192 136 224 160 88 239 200 160 255 216 136 240 200 64 255 240 184 255 248 208 255 224 128 255 208 96 255 200 88 255 216 128 80 40 0 191 168 120 207 208 240 176 168 120 128 168 208 80 104 136 224 176 120 239 192 96 208 152 56 128 160 184 176 176 184 95 112 136 239 192 120 176 192 200 79 96 120 207 200 208 207 128 48 255 224 144 240 216 136 176 144 80 224 200 160]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@_@C>@_<A?0G?0_? ?>C?<G?0_?!!?>G?8O?@G<@@@b') ; yourself); yourself]
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1671
! !
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1672
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1673
!GenericToolbarIconLibrary class methodsFor:'image specs-versions'!
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1674
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1675
versionMerged24x24
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1676
    "This resource specification was automatically generated
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1677
     by the ImageEditor of ST/X."
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1678
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1679
    "Do not manually edit this!! If it is corrupted,
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1680
     the ImageEditor may not be able to read the specification."
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1681
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1682
    "
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1683
     self versionMerged24x24 inspect
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1684
     ImageEditor openOnClass:self andSelector:#versionMerged24x24
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1685
     Icon flushCachedIcons
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1686
    "
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1687
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1688
    <resource: #image>
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1689
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1690
    ^Icon
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1691
	constantNamed:'GenericToolbarIconLibrary class versionMerged24x24'
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1692
	ifAbsentPut:[(Depth8Image new) width: 24; height: 24; photometric:(#palette); bitsPerSample:(#(8)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1693
@!!LNDADQE!!XVF!!0_H2D$H2@ H18"H!!8AO=SZ6]''\7^C"8.[&9.#*;N?2;_W6>]HXU^''.;.;.<OS4=OS4=?_8>O#;?O;=?>\RTMOM3L3K2<3M3<?Q5=/^8^W)
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1694
9.[1:=T]Q<N:.[&8.K?A/\GA1LSG1<+J5-#$7<8VR*:.,+N6-+&9.[2<0LC@0LC@0<#B4L$ON:J*****+:.+*;N1-[V5-;.;0LB=1+8VN*J\)JF!!)JR#*J"+
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1695
*:6-,[V5-+&9/;@MNIBQ$)JY$)JY''):^(:N#*J"/)+J/-I4LNXNK#H.N!!)JT$)JR%).[&Y.&)*J&*YLTM6&H"H"H"H.N#(:N#9BP$IZV&*JZ&8(UMU5,\8E9
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1696
 V=2^XRH"8.K"8:O#9*V%''4UMT%HV6I1\WE1\W9/^XNC (NH"H.K#G@YM$EAP45_W&11[7E1^GM8\7M: (M3"VLULDMCRDMAP45[V6I"X&I"[F1,X''91_5 K
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1697
LDMQUEEMRDMCPUQTW6!!+]&I,[HE5[D0KLU)ST5M(W5)TTT5MTUEQUE)SW6-SYC4JL65ST5MST5MST5MSS$9NS$9HQD9DRC8JLVI1[FI"X&I WE1ST5M[ZF!!_
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1698
UEQNS30GLFI,\V11\W!!,X&I"Y&I!!W%9^T5MSWS0HLH]:^&93[798[G9/\V1,X&I!!WFA\Y30EMIF,%9RK_G%9\&=/[6=1[&91[GV@]DHDJ9>6+)2P"8"A!!7=?
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1699
_7=?_7=?\7Q.^4@CA"X-I2\''I2</JR$)JR (JB (K"4,J"T@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[28 1 19 26 0 23 36 0 35 57 0 48 55 1 50 58 0 51 61 0 54 57 3 52 56 0 54 63 0 57 64 0 58 63 0 62 67 3 66 66 0 68 69 5 67 70 6 68 70 0 72 71 0 73 57 15 60 65 17 63 72 9 70 79 0 77 70 0 74 72 0 75 61 25 59 81 2 79 74 13 71 74 1 77 76 4 79 70 15 72 66 23 68 78 7 81 75 19 76 81 12 83 61 25 67 75 21 77 78 23 79 91 5 94 114 6 111 122 0 119 124 0 121 130 0 123 118 0 120 110 25 104 119 0 122 119 17 114 120 0 123 125 20 115 129 2 127 135 0 131 137 0 134 139 0 136 125 26 118 138 1 141 137 22 130 142 9 143 138 16 142 139 31 136 142 22 145 145 26 147 147 16 155 154 0 166 159 22 161 128 73 126 148 48 147 186 0 187 155 40 156 187 0 189 196 0 193 188 0 190 188 0 191 156 31 162 189 0 192 180 0 187 157 32 163 198 0 197 164 20 172 191 4 193 200 0 200 182 3 189 156 57 155 193 9 194 202 0 202 203 0 204 196 13 195 152 66 152 194 0 199 205 0 206 164 41 168 206 0 207 197 17 195 195 0 201 207 0 208 188 16 192 196 0 202 198 20 195 207 0 209 196 0 203 197 0 204 167 45 171 199 23 196 198 0 205 208 0 211 192 23 194 200 26 196 189 0 201 199 2 206 201 29 196 203 7 208 202 31 197 192 5 203 200 0 210 173 52 176 206 13 209 201 0 211 195 11 204 199 33 198 214 18 211 204 36 198 201 0 212 208 17 210 202 0 213 197 15 205 190 33 195 203 0 214 184 47 187 210 21 211 202 39 200 208 41 201 211 24 212 200 22 207 202 25 208 214 28 214 204 28 209 198 1 216 207 47 203 207 31 211 200 45 202 185 65 187 208 33 212 198 32 208 209 35 213 210 38 214 212 40 215 213 42 216 207 55 208 202 40 211 193 73 194 214 44 217 205 42 213 216 46 218 213 28 223 206 44 214 208 47 215 220 49 221 214 62 214 221 51 222 192 87 193 210 50 217 206 83 201 215 64 215 211 51 218 224 55 224 213 53 219 217 67 217 227 58 226 218 68 218 215 56 221 218 58 223 213 80 212 220 71 220 219 60 224 229 62 229 220 61 225 231 64 230 223 74 222 201 96 202 222 63 226 224 75 223 225 76 224 218 85 217 224 65 228 226 78 224 224 67 229 218 77 222 228 80 226 229 82 227 226 70 231 230 83 228 223 81 226 211 105 211 225 92 223 233 85 230 226 93 224 224 84 228 231 75 235 227 95 225 234 87 232 219 94 223 230 98 228 228 89 232 217 106 222 234 102 232 225 100 229 226 101 230 228 104 232 213 116 219 229 105 233 231 107 235 224 114 229 199 149 203 242 102 244 216 137 220 205 135 215 237 113 241 234 128 234 238 114 242 223 126 229 226 134 228 236 130 236 225 128 231 229 131 234 240 134 239 233 117 242 230 133 236 239 128 243 236 143 238 238 145 239 238 123 247 243 133 247 238 146 240 215 161 223 241 148 243 250 144 249 235 156 239 225 155 235 237 158 241 229 163 235 249 142 255 242 161 245 247 149 252 238 154 246 246 170 245 249 151 254 249 153 255 238 170 243 230 176 238 245 161 253 247 163 255 236 181 244 245 166 255 243 172 253 245 190 253 243 184 254 246 193 255 238 193 253]; yourself]
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1700
! !
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  1701
8839
792607726eb6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8838
diff changeset
  1702
!Image methodsFor:'inspecting'!
792607726eb6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8838
diff changeset
  1703
10807
Claus Gittinger <cg@exept.de>
parents: 10795
diff changeset
  1704
inspector2TabImage
17100
9b62a75af74f inspector tab prios
Claus Gittinger <cg@exept.de>
parents: 17068
diff changeset
  1705
    "an extra tab showing the image;
9b62a75af74f inspector tab prios
Claus Gittinger <cg@exept.de>
parents: 17068
diff changeset
  1706
     Q: is this needed? (the displayObject tab already shows this)"
9b62a75af74f inspector tab prios
Claus Gittinger <cg@exept.de>
parents: 17068
diff changeset
  1707
    
16789
a3f528d8797d DisplayView extension in Inspector2
Stefan Vogel <sv@exept.de>
parents: 16722
diff changeset
  1708
    ^ self newInspector2Tab
10807
Claus Gittinger <cg@exept.de>
parents: 10795
diff changeset
  1709
        label: 'Image';
Claus Gittinger <cg@exept.de>
parents: 10795
diff changeset
  1710
        priority: 50;
18160
3739b4556f30 smoothing images
Claus Gittinger <cg@exept.de>
parents: 18144
diff changeset
  1711
        view: ((HVScrollableView for:ImageView) 
3739b4556f30 smoothing images
Claus Gittinger <cg@exept.de>
parents: 18144
diff changeset
  1712
                    image: self;
3739b4556f30 smoothing images
Claus Gittinger <cg@exept.de>
parents: 18144
diff changeset
  1713
                    yourself)
10807
Claus Gittinger <cg@exept.de>
parents: 10795
diff changeset
  1714
Claus Gittinger <cg@exept.de>
parents: 10795
diff changeset
  1715
    "Created: / 11-10-2011 / 17:12:01 / cg"
18160
3739b4556f30 smoothing images
Claus Gittinger <cg@exept.de>
parents: 18144
diff changeset
  1716
    "Modified: / 28-05-2018 / 14:06:24 / Claus Gittinger"
10807
Claus Gittinger <cg@exept.de>
parents: 10795
diff changeset
  1717
! !
Claus Gittinger <cg@exept.de>
parents: 10795
diff changeset
  1718
Claus Gittinger <cg@exept.de>
parents: 10795
diff changeset
  1719
!Image methodsFor:'inspecting'!
Claus Gittinger <cg@exept.de>
parents: 10795
diff changeset
  1720
17257
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1721
inspector2TabImageCreatorClass
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1722
    <inspector2Tab>
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1723
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1724
    |name className s ownerClass ownerSelector |
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1725
    
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1726
    (name := Icon nameIfKnownIcon:self) isNil ifTrue:[^ nil].
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1727
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1728
    s := name readStream.
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1729
    className := s upToSeparator.
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1730
    (ownerClass := Smalltalk classNamed: className) isNil ifTrue:[^ nil].
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1731
    s skipSeparators.
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1732
    ownerSelector := s upToSeparator.
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1733
    ownerSelector = 'class' ifTrue:[
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1734
        ownerClass := ownerClass theMetaclass.
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1735
        ownerSelector := ''.
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1736
        s skipSeparators.
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1737
    ].    
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1738
    ownerSelector := ownerSelector , s upToEnd.
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1739
    ownerSelector knownAsSymbol ifFalse:[^ nil].
17267
417b4efdd40c class: Tools::Inspector2Tab
Claus Gittinger <cg@exept.de>
parents: 17257
diff changeset
  1740
    ownerSelector := ownerSelector asSymbol.
17257
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1741
    
17267
417b4efdd40c class: Tools::Inspector2Tab
Claus Gittinger <cg@exept.de>
parents: 17257
diff changeset
  1742
    (ownerClass implements:ownerSelector) ifFalse:[
417b4efdd40c class: Tools::Inspector2Tab
Claus Gittinger <cg@exept.de>
parents: 17257
diff changeset
  1743
        ownerClass := ownerClass isMeta ifTrue:[ ownerClass theNonMetaclass] ifFalse:[ ownerClass theMetaclass ].
417b4efdd40c class: Tools::Inspector2Tab
Claus Gittinger <cg@exept.de>
parents: 17257
diff changeset
  1744
        (ownerClass implements:ownerSelector) ifFalse:[
417b4efdd40c class: Tools::Inspector2Tab
Claus Gittinger <cg@exept.de>
parents: 17257
diff changeset
  1745
            ^ nil
417b4efdd40c class: Tools::Inspector2Tab
Claus Gittinger <cg@exept.de>
parents: 17257
diff changeset
  1746
        ].
417b4efdd40c class: Tools::Inspector2Tab
Claus Gittinger <cg@exept.de>
parents: 17257
diff changeset
  1747
    ].
417b4efdd40c class: Tools::Inspector2Tab
Claus Gittinger <cg@exept.de>
parents: 17257
diff changeset
  1748
17257
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1749
    ^ Tools::Inspector2Tab 
17267
417b4efdd40c class: Tools::Inspector2Tab
Claus Gittinger <cg@exept.de>
parents: 17257
diff changeset
  1750
        toBrowseClass:ownerClass selector:ownerSelector label:'Image Creator'
17257
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1751
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1752
    "
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1753
     ToolbarIconLibrary systemBrowserIcon inspect
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1754
    "
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1755
! !
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1756
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1757
!Image methodsFor:'inspecting'!
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1758
10807
Claus Gittinger <cg@exept.de>
parents: 10795
diff changeset
  1759
inspector2Tabs
17100
9b62a75af74f inspector tab prios
Claus Gittinger <cg@exept.de>
parents: 17068
diff changeset
  1760
    |tabs|
9b62a75af74f inspector tab prios
Claus Gittinger <cg@exept.de>
parents: 17068
diff changeset
  1761
    
9b62a75af74f inspector tab prios
Claus Gittinger <cg@exept.de>
parents: 17068
diff changeset
  1762
    tabs := super inspector2Tabs.
9b62a75af74f inspector tab prios
Claus Gittinger <cg@exept.de>
parents: 17068
diff changeset
  1763
    tabs := tabs copyWithout:#inspector2TabDisplayObject.
9b62a75af74f inspector tab prios
Claus Gittinger <cg@exept.de>
parents: 17068
diff changeset
  1764
    ^ tabs copyWith:#inspector2TabImage
10807
Claus Gittinger <cg@exept.de>
parents: 10795
diff changeset
  1765
Claus Gittinger <cg@exept.de>
parents: 10795
diff changeset
  1766
    "Created: / 11-10-2011 / 17:11:21 / cg"
15285
292d95b373b7 Fixed #inspector2Tabs method: always call 'super inspector2Tabs'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15271
diff changeset
  1767
    "Modified: / 13-02-2015 / 21:02:55 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10807
Claus Gittinger <cg@exept.de>
parents: 10795
diff changeset
  1768
! !
Claus Gittinger <cg@exept.de>
parents: 10795
diff changeset
  1769
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1770
!Image methodsFor:'misc ui support'!
10807
Claus Gittinger <cg@exept.de>
parents: 10795
diff changeset
  1771
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1772
inspectorClass
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1773
    "redefined to launch an ImageInspector
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1774
     (instead of the default InspectorView)."
7299
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  1775
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1776
    (width notNil and:[height notNil]) ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1777
	^ ImageInspectorView
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1778
    ].
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1779
    ^ super inspectorClass
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1780
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1781
    "Modified: 10.6.1996 / 18:23:55 / cg"
8839
792607726eb6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8838
diff changeset
  1782
! !
792607726eb6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8838
diff changeset
  1783
16822
dbed86627a32 class: stx_libtool
Claus Gittinger <cg@exept.de>
parents: 16789
diff changeset
  1784
!Image methodsFor:'inspecting'!
dbed86627a32 class: stx_libtool
Claus Gittinger <cg@exept.de>
parents: 16789
diff changeset
  1785
17190
5922dd39d1a6 extra name attribute in inspector.
Claus Gittinger <cg@exept.de>
parents: 17174
diff changeset
  1786
inspectorExtraAttributes
5922dd39d1a6 extra name attribute in inspector.
Claus Gittinger <cg@exept.de>
parents: 17174
diff changeset
  1787
    |d name|
5922dd39d1a6 extra name attribute in inspector.
Claus Gittinger <cg@exept.de>
parents: 17174
diff changeset
  1788
5922dd39d1a6 extra name attribute in inspector.
Claus Gittinger <cg@exept.de>
parents: 17174
diff changeset
  1789
    d := super inspectorExtraAttributes.
5922dd39d1a6 extra name attribute in inspector.
Claus Gittinger <cg@exept.de>
parents: 17174
diff changeset
  1790
    (name := Icon nameIfKnownIcon:self) notNil ifTrue:[
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
  1791
        d add:'-origin (comes from)' -> name
17190
5922dd39d1a6 extra name attribute in inspector.
Claus Gittinger <cg@exept.de>
parents: 17174
diff changeset
  1792
    ].    
5922dd39d1a6 extra name attribute in inspector.
Claus Gittinger <cg@exept.de>
parents: 17174
diff changeset
  1793
    ^ d
17257
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1794
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1795
    "
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1796
     ToolbarIconLibrary systemBrowserIcon inspect
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  1797
    "
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
  1798
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
  1799
    "Modified: / 18-07-2017 / 19:58:01 / cg"
17190
5922dd39d1a6 extra name attribute in inspector.
Claus Gittinger <cg@exept.de>
parents: 17174
diff changeset
  1800
! !
5922dd39d1a6 extra name attribute in inspector.
Claus Gittinger <cg@exept.de>
parents: 17174
diff changeset
  1801
5922dd39d1a6 extra name attribute in inspector.
Claus Gittinger <cg@exept.de>
parents: 17174
diff changeset
  1802
!Image methodsFor:'inspecting'!
5922dd39d1a6 extra name attribute in inspector.
Claus Gittinger <cg@exept.de>
parents: 17174
diff changeset
  1803
16822
dbed86627a32 class: stx_libtool
Claus Gittinger <cg@exept.de>
parents: 16789
diff changeset
  1804
inspectorExtraMenuOperations
dbed86627a32 class: stx_libtool
Claus Gittinger <cg@exept.de>
parents: 16789
diff changeset
  1805
    ^ super inspectorExtraMenuOperations,
dbed86627a32 class: stx_libtool
Claus Gittinger <cg@exept.de>
parents: 16789
diff changeset
  1806
    {
dbed86627a32 class: stx_libtool
Claus Gittinger <cg@exept.de>
parents: 16789
diff changeset
  1807
        { 'Edit Image' . [ ImageEditor openOnImage:self ] } .
dbed86627a32 class: stx_libtool
Claus Gittinger <cg@exept.de>
parents: 16789
diff changeset
  1808
        { '-' . nil } .
dbed86627a32 class: stx_libtool
Claus Gittinger <cg@exept.de>
parents: 16789
diff changeset
  1809
        { 'Save As...' . [ 
dbed86627a32 class: stx_libtool
Claus Gittinger <cg@exept.de>
parents: 16789
diff changeset
  1810
                            Dialog  
dbed86627a32 class: stx_libtool
Claus Gittinger <cg@exept.de>
parents: 16789
diff changeset
  1811
                                ask:[ Dialog requestFileNameForSave:'Save image as?' default:'newImage.png' ] 
dbed86627a32 class: stx_libtool
Claus Gittinger <cg@exept.de>
parents: 16789
diff changeset
  1812
                                ifNotNilOrEmptyDo:[:file | self saveOn: file ]
dbed86627a32 class: stx_libtool
Claus Gittinger <cg@exept.de>
parents: 16789
diff changeset
  1813
                         ] }
dbed86627a32 class: stx_libtool
Claus Gittinger <cg@exept.de>
parents: 16789
diff changeset
  1814
    }
dbed86627a32 class: stx_libtool
Claus Gittinger <cg@exept.de>
parents: 16789
diff changeset
  1815
! !
dbed86627a32 class: stx_libtool
Claus Gittinger <cg@exept.de>
parents: 16789
diff changeset
  1816
17068
5fb10da2bf01 Array>>#inspectprValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 17061
diff changeset
  1817
!ImmutableArray methodsFor:'inspecting'!
5fb10da2bf01 Array>>#inspectprValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 17061
diff changeset
  1818
5fb10da2bf01 Array>>#inspectprValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 17061
diff changeset
  1819
inspectorValueStringInListFor:anInspector
5fb10da2bf01 Array>>#inspectprValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 17061
diff changeset
  1820
    "returns a string to be shown in the inspector's list"
5fb10da2bf01 Array>>#inspectprValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 17061
diff changeset
  1821
5fb10da2bf01 Array>>#inspectprValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 17061
diff changeset
  1822
    self size == 0 ifTrue:[
18932
beced7369533 class: ImmutableByteArray
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  1823
        ^ '#()' "/ '#() immutable'
17068
5fb10da2bf01 Array>>#inspectprValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 17061
diff changeset
  1824
    ].
5fb10da2bf01 Array>>#inspectprValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 17061
diff changeset
  1825
    ^ super inspectorValueStringInListFor:anInspector
18932
beced7369533 class: ImmutableByteArray
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  1826
beced7369533 class: ImmutableByteArray
Claus Gittinger <cg@exept.de>
parents: 18928
diff changeset
  1827
    "Modified: / 21-07-2019 / 07:30:01 / Claus Gittinger"
17068
5fb10da2bf01 Array>>#inspectprValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 17061
diff changeset
  1828
! !
5fb10da2bf01 Array>>#inspectprValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 17061
diff changeset
  1829
8839
792607726eb6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8838
diff changeset
  1830
!Integer methodsFor:'inspecting'!
792607726eb6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8838
diff changeset
  1831
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1832
inspectorExtraAttributes
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1833
    "extra (pseudo instvar) entries to be shown in an inspector."
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1834
18435
4e1d51bd2fa5 unsigned ints
sr
parents: 18417
diff changeset
  1835
    |attr highBit absHighBit|
16050
e62e349957ba inspector: show unsigned->signed conversion
Claus Gittinger <cg@exept.de>
parents: 15964
diff changeset
  1836
e62e349957ba inspector: show unsigned->signed conversion
Claus Gittinger <cg@exept.de>
parents: 15964
diff changeset
  1837
    attr := super inspectorExtraAttributes.
e62e349957ba inspector: show unsigned->signed conversion
Claus Gittinger <cg@exept.de>
parents: 15964
diff changeset
  1838
    attr
13639
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
  1839
        add:'-hexadecimal' -> [ self radixPrintStringRadix:16 ];
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
  1840
        add:'-octal'       -> [ self radixPrintStringRadix:8 ];
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
  1841
        add:'-binary'      -> [ self radixPrintStringRadix:2 ].
16050
e62e349957ba inspector: show unsigned->signed conversion
Claus Gittinger <cg@exept.de>
parents: 15964
diff changeset
  1842
e62e349957ba inspector: show unsigned->signed conversion
Claus Gittinger <cg@exept.de>
parents: 15964
diff changeset
  1843
    highBit := self highBit.
e62e349957ba inspector: show unsigned->signed conversion
Claus Gittinger <cg@exept.de>
parents: 15964
diff changeset
  1844
    (#(8 16 32 64) includes:highBit) ifTrue:[
e62e349957ba inspector: show unsigned->signed conversion
Claus Gittinger <cg@exept.de>
parents: 15964
diff changeset
  1845
        attr
16131
186716a5e271 class: Integer
Claus Gittinger <cg@exept.de>
parents: 16122
diff changeset
  1846
            add:('-signed i%1' bindWith:highBit)
16050
e62e349957ba inspector: show unsigned->signed conversion
Claus Gittinger <cg@exept.de>
parents: 15964
diff changeset
  1847
                -> [ highBit == 8 ifTrue:[self signExtendedByteValue]
e62e349957ba inspector: show unsigned->signed conversion
Claus Gittinger <cg@exept.de>
parents: 15964
diff changeset
  1848
                     ifFalse:[ highBit == 16 ifTrue:[self signExtendedShortValue]
e62e349957ba inspector: show unsigned->signed conversion
Claus Gittinger <cg@exept.de>
parents: 15964
diff changeset
  1849
                     ifFalse:[ highBit == 32 ifTrue:[self signExtendedLongValue]
e62e349957ba inspector: show unsigned->signed conversion
Claus Gittinger <cg@exept.de>
parents: 15964
diff changeset
  1850
                     ifFalse:[ self signExtendedLongLongValue]]]].
18435
4e1d51bd2fa5 unsigned ints
sr
parents: 18417
diff changeset
  1851
    ].
4e1d51bd2fa5 unsigned ints
sr
parents: 18417
diff changeset
  1852
    self < 0 ifTrue:[
4e1d51bd2fa5 unsigned ints
sr
parents: 18417
diff changeset
  1853
        absHighBit := ((self abs + 1) highBit - 1) // 8 + 1 * 8.
4e1d51bd2fa5 unsigned ints
sr
parents: 18417
diff changeset
  1854
        (#(8 16 32 64) includes:absHighBit) ifTrue:[
4e1d51bd2fa5 unsigned ints
sr
parents: 18417
diff changeset
  1855
            attr
4e1d51bd2fa5 unsigned ints
sr
parents: 18417
diff changeset
  1856
                add:('-unsigned i%1' bindWith:absHighBit)
4e1d51bd2fa5 unsigned ints
sr
parents: 18417
diff changeset
  1857
                    -> [ absHighBit == 8 ifTrue:[self bitAnd:16rFF]
4e1d51bd2fa5 unsigned ints
sr
parents: 18417
diff changeset
  1858
                         ifFalse:[ absHighBit == 16 ifTrue:[self bitAnd:16rFFFF]
4e1d51bd2fa5 unsigned ints
sr
parents: 18417
diff changeset
  1859
                         ifFalse:[ absHighBit == 32 ifTrue:[self asUnsignedInt bitAnd:16rFFFFFFFF]
4e1d51bd2fa5 unsigned ints
sr
parents: 18417
diff changeset
  1860
                         ifFalse:[ self asUnsignedInt bitAnd:16rFFFFFFFFFFFFFFFF]]]].
4e1d51bd2fa5 unsigned ints
sr
parents: 18417
diff changeset
  1861
        ].
4e1d51bd2fa5 unsigned ints
sr
parents: 18417
diff changeset
  1862
    ].
4e1d51bd2fa5 unsigned ints
sr
parents: 18417
diff changeset
  1863
    
16050
e62e349957ba inspector: show unsigned->signed conversion
Claus Gittinger <cg@exept.de>
parents: 15964
diff changeset
  1864
    ^ attr    
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1865
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1866
    "
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1867
     123 inspect
16050
e62e349957ba inspector: show unsigned->signed conversion
Claus Gittinger <cg@exept.de>
parents: 15964
diff changeset
  1868
     128 inspect
e62e349957ba inspector: show unsigned->signed conversion
Claus Gittinger <cg@exept.de>
parents: 15964
diff changeset
  1869
     16r8000 inspect
e62e349957ba inspector: show unsigned->signed conversion
Claus Gittinger <cg@exept.de>
parents: 15964
diff changeset
  1870
     16r80000000 inspect
e62e349957ba inspector: show unsigned->signed conversion
Claus Gittinger <cg@exept.de>
parents: 15964
diff changeset
  1871
     16r8000000000000000 inspect
e62e349957ba inspector: show unsigned->signed conversion
Claus Gittinger <cg@exept.de>
parents: 15964
diff changeset
  1872
     16rAFFEAFFEAFFEAFFE inspect
18435
4e1d51bd2fa5 unsigned ints
sr
parents: 18417
diff changeset
  1873
     -127 negated highBit
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1874
    "
7299
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  1875
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1876
    "Created: / 18-09-2006 / 21:22:46 / cg"
16131
186716a5e271 class: Integer
Claus Gittinger <cg@exept.de>
parents: 16122
diff changeset
  1877
    "Modified: / 26-02-2016 / 19:36:15 / cg"
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
  1878
    "Modified (format): / 18-07-2017 / 19:58:09 / cg"
18435
4e1d51bd2fa5 unsigned ints
sr
parents: 18417
diff changeset
  1879
    "Modified: / 26-09-2018 / 20:19:58 / sr"
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1880
! !
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  1881
18540
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1882
!Integer methodsFor:'inspecting'!
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1883
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1884
inspectorValueListIconFor:anInspector
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1885
    "returns the icon to be shown alongside the value list of an inspector"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1886
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1887
    ^ anInspector imageFor_integers
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1888
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1889
    "Created: / 12-12-2018 / 16:08:11 / Claus Gittinger"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1890
! !
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  1891
13983
cfa7eff70b22 better listentry for intervals
Claus Gittinger <cg@exept.de>
parents: 13887
diff changeset
  1892
!Interval methodsFor:'inspecting'!
cfa7eff70b22 better listentry for intervals
Claus Gittinger <cg@exept.de>
parents: 13887
diff changeset
  1893
cfa7eff70b22 better listentry for intervals
Claus Gittinger <cg@exept.de>
parents: 13887
diff changeset
  1894
inspectorValueStringInListFor:anInspector
cfa7eff70b22 better listentry for intervals
Claus Gittinger <cg@exept.de>
parents: 13887
diff changeset
  1895
    "returns a string to be shown in the inspector's list"
cfa7eff70b22 better listentry for intervals
Claus Gittinger <cg@exept.de>
parents: 13887
diff changeset
  1896
cfa7eff70b22 better listentry for intervals
Claus Gittinger <cg@exept.de>
parents: 13887
diff changeset
  1897
    ^ self printString
cfa7eff70b22 better listentry for intervals
Claus Gittinger <cg@exept.de>
parents: 13887
diff changeset
  1898
! !
cfa7eff70b22 better listentry for intervals
Claus Gittinger <cg@exept.de>
parents: 13887
diff changeset
  1899
11897
01e18436daed iterator in inspector
Claus Gittinger <cg@exept.de>
parents: 11891
diff changeset
  1900
!Iterator methodsFor:'inspecting'!
01e18436daed iterator in inspector
Claus Gittinger <cg@exept.de>
parents: 11891
diff changeset
  1901
01e18436daed iterator in inspector
Claus Gittinger <cg@exept.de>
parents: 11891
diff changeset
  1902
inspectorValueStringInListFor:anInspector
01e18436daed iterator in inspector
Claus Gittinger <cg@exept.de>
parents: 11891
diff changeset
  1903
    "returns a string to be shown in the inspector's list. 
01e18436daed iterator in inspector
Claus Gittinger <cg@exept.de>
parents: 11891
diff changeset
  1904
     Redefined to avoid calling the iterator"
01e18436daed iterator in inspector
Claus Gittinger <cg@exept.de>
parents: 11891
diff changeset
  1905
01e18436daed iterator in inspector
Claus Gittinger <cg@exept.de>
parents: 11891
diff changeset
  1906
    ^ self classNameWithArticle
01e18436daed iterator in inspector
Claus Gittinger <cg@exept.de>
parents: 11891
diff changeset
  1907
! !
01e18436daed iterator in inspector
Claus Gittinger <cg@exept.de>
parents: 11891
diff changeset
  1908
17475
ab37d2065fe8 class: KeyedCollection
Stefan Vogel <sv@exept.de>
parents: 17465
diff changeset
  1909
!KeyedCollection methodsFor:'misc ui support'!
ab37d2065fe8 class: KeyedCollection
Stefan Vogel <sv@exept.de>
parents: 17465
diff changeset
  1910
ab37d2065fe8 class: KeyedCollection
Stefan Vogel <sv@exept.de>
parents: 17465
diff changeset
  1911
inspectorClass
ab37d2065fe8 class: KeyedCollection
Stefan Vogel <sv@exept.de>
parents: 17465
diff changeset
  1912
    "redefined to use DictionaryInspector
ab37d2065fe8 class: KeyedCollection
Stefan Vogel <sv@exept.de>
parents: 17465
diff changeset
  1913
     (instead of the default Inspector)."
ab37d2065fe8 class: KeyedCollection
Stefan Vogel <sv@exept.de>
parents: 17465
diff changeset
  1914
ab37d2065fe8 class: KeyedCollection
Stefan Vogel <sv@exept.de>
parents: 17465
diff changeset
  1915
    ^ DictionaryInspectorView
ab37d2065fe8 class: KeyedCollection
Stefan Vogel <sv@exept.de>
parents: 17465
diff changeset
  1916
ab37d2065fe8 class: KeyedCollection
Stefan Vogel <sv@exept.de>
parents: 17465
diff changeset
  1917
    "Created: 12.6.1996 / 12:29:13 / stefan"
ab37d2065fe8 class: KeyedCollection
Stefan Vogel <sv@exept.de>
parents: 17465
diff changeset
  1918
! !
ab37d2065fe8 class: KeyedCollection
Stefan Vogel <sv@exept.de>
parents: 17465
diff changeset
  1919
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1920
!LibraryDefinition class methodsFor:'misc ui support'!
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1921
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1922
iconInBrowserSymbol
16117
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
  1923
    "the browser will use this as index into the toolbariconlibrary"
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
  1924
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1925
    <resource: #programImage>
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1926
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1927
    self theNonMetaclass isLibraryDefinition ifTrue:[^ #libraryDefinitionClassIcon ].
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1928
    ^ super iconInBrowserSymbol
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1929
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1930
"/        (c == LibraryDefinition) ifTrue:[
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1931
"/            aClass ~~ LibraryDefinition ifTrue:[
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1932
"/                ^ self packageIconSmall
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1933
"/            ].
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1934
"/        ].
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1935
! !
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  1936
11450
e0692491f820 float inspecting hex bytes
Claus Gittinger <cg@exept.de>
parents: 11401
diff changeset
  1937
!LimitedPrecisionReal methodsFor:'inspecting'!
e0692491f820 float inspecting hex bytes
Claus Gittinger <cg@exept.de>
parents: 11401
diff changeset
  1938
e0692491f820 float inspecting hex bytes
Claus Gittinger <cg@exept.de>
parents: 11401
diff changeset
  1939
inspectorExtraAttributes
e0692491f820 float inspecting hex bytes
Claus Gittinger <cg@exept.de>
parents: 11401
diff changeset
  1940
    "extra (pseudo instvar) entries to be shown in an inspector."
e0692491f820 float inspecting hex bytes
Claus Gittinger <cg@exept.de>
parents: 11401
diff changeset
  1941
17587
254ec35296a1 class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17548
diff changeset
  1942
    |basePrinter|
254ec35296a1 class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17548
diff changeset
  1943
254ec35296a1 class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17548
diff changeset
  1944
    basePrinter := 
17591
89ff3d7b56cc class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17587
diff changeset
  1945
        [:base :padding :reverse|
17587
254ec35296a1 class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17548
diff changeset
  1946
            String 
254ec35296a1 class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17548
diff changeset
  1947
                streamContents:[:s |
17591
89ff3d7b56cc class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17587
diff changeset
  1948
                    |iv|
89ff3d7b56cc class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17587
diff changeset
  1949
                    
89ff3d7b56cc class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17587
diff changeset
  1950
                    iv := reverse 
89ff3d7b56cc class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17587
diff changeset
  1951
                            ifTrue:(self byteSize to:1 by:-1)
89ff3d7b56cc class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17587
diff changeset
  1952
                            ifFalse:(1 to:self byteSize).
89ff3d7b56cc class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17587
diff changeset
  1953
89ff3d7b56cc class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17587
diff changeset
  1954
                    iv do:[:i |
89ff3d7b56cc class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17587
diff changeset
  1955
                        (((self basicAt:i) printStringRadix:base) leftPaddedTo:padding with:$0)
17587
254ec35296a1 class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17548
diff changeset
  1956
                            printOn:s.
19317
bca8ae2c2286 float printing
Claus Gittinger <cg@exept.de>
parents: 19227
diff changeset
  1957
                    ] separatedBy:[
17587
254ec35296a1 class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17548
diff changeset
  1958
                        s space.    
254ec35296a1 class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17548
diff changeset
  1959
                    ]
254ec35296a1 class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17548
diff changeset
  1960
                ]
254ec35296a1 class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17548
diff changeset
  1961
        ] .
254ec35296a1 class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17548
diff changeset
  1962
        
13639
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
  1963
    ^ super inspectorExtraAttributes
17542
Claus Gittinger <cg@exept.de>
parents: 17475
diff changeset
  1964
        add:'-scientific (%e-format)' ->
Claus Gittinger <cg@exept.de>
parents: 17475
diff changeset
  1965
            [
19323
838aacfd95d0 inspecting
Claus Gittinger <cg@exept.de>
parents: 19319
diff changeset
  1966
                |s idx fmt|
838aacfd95d0 inspecting
Claus Gittinger <cg@exept.de>
parents: 19319
diff changeset
  1967
838aacfd95d0 inspecting
Claus Gittinger <cg@exept.de>
parents: 19319
diff changeset
  1968
                fmt := (self isFloat or:[self isShortFloat]) ifTrue:['%e'] ifFalse:['%le'].
838aacfd95d0 inspecting
Claus Gittinger <cg@exept.de>
parents: 19319
diff changeset
  1969
                s :=  self printfPrintString:fmt.
838aacfd95d0 inspecting
Claus Gittinger <cg@exept.de>
parents: 19319
diff changeset
  1970
                "/ s := PrintfScanf printf:'%e' argument:self.
17542
Claus Gittinger <cg@exept.de>
parents: 17475
diff changeset
  1971
                idx := s indexOfAny:'eE'.
17548
5bbc937cd94d class: PrintfScanf class
Claus Gittinger <cg@exept.de>
parents: 17542
diff changeset
  1972
                idx == 0 ifTrue:[
5bbc937cd94d class: PrintfScanf class
Claus Gittinger <cg@exept.de>
parents: 17542
diff changeset
  1973
                    s
5bbc937cd94d class: PrintfScanf class
Claus Gittinger <cg@exept.de>
parents: 17542
diff changeset
  1974
                ] ifFalse:[    
18444
3ce22a7c79df class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 18435
diff changeset
  1975
                    s , ' " ' , (self printStringScientific) ,' "' 
17548
5bbc937cd94d class: PrintfScanf class
Claus Gittinger <cg@exept.de>
parents: 17542
diff changeset
  1976
                ]
17542
Claus Gittinger <cg@exept.de>
parents: 17475
diff changeset
  1977
            ];
Claus Gittinger <cg@exept.de>
parents: 17475
diff changeset
  1978
        add:'-non-scientific (%f-format)' ->
19323
838aacfd95d0 inspecting
Claus Gittinger <cg@exept.de>
parents: 19319
diff changeset
  1979
            [   |fmt|
838aacfd95d0 inspecting
Claus Gittinger <cg@exept.de>
parents: 19319
diff changeset
  1980
                fmt := (self isFloat or:[self isShortFloat]) ifTrue:['%f'] ifFalse:['%lf'].
838aacfd95d0 inspecting
Claus Gittinger <cg@exept.de>
parents: 19319
diff changeset
  1981
                self printfPrintString:fmt.
838aacfd95d0 inspecting
Claus Gittinger <cg@exept.de>
parents: 19319
diff changeset
  1982
                "/ PrintfScanf printf:'%f' argument:self.
17542
Claus Gittinger <cg@exept.de>
parents: 17475
diff changeset
  1983
            ];
19323
838aacfd95d0 inspecting
Claus Gittinger <cg@exept.de>
parents: 19319
diff changeset
  1984
        add:('-precision digits (%%.%1g-format)' bindWith:self decimalPrecision) ->
838aacfd95d0 inspecting
Claus Gittinger <cg@exept.de>
parents: 19319
diff changeset
  1985
            [   |fmt|
838aacfd95d0 inspecting
Claus Gittinger <cg@exept.de>
parents: 19319
diff changeset
  1986
                fmt := (self isFloat or:[self isShortFloat]) ifTrue:['%%.%1g'] ifFalse:['%%.%lf'].
838aacfd95d0 inspecting
Claus Gittinger <cg@exept.de>
parents: 19319
diff changeset
  1987
                self printfPrintString:(fmt bindWith:self decimalPrecision).
838aacfd95d0 inspecting
Claus Gittinger <cg@exept.de>
parents: 19319
diff changeset
  1988
                "/ PrintfScanf printf:('%%.%1g' bindWith:self decimalPrecision) argument:self.
19317
bca8ae2c2286 float printing
Claus Gittinger <cg@exept.de>
parents: 19227
diff changeset
  1989
            ];
19318
3a083a653431 inspecting
Claus Gittinger <cg@exept.de>
parents: 19317
diff changeset
  1990
        when:[ self class isBytes and:[ UninterpretedBytes isBigEndian not]] add:'-MSB binary' ->
17591
89ff3d7b56cc class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17587
diff changeset
  1991
            [
89ff3d7b56cc class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17587
diff changeset
  1992
                basePrinter value:2 value:8 value:true
89ff3d7b56cc class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17587
diff changeset
  1993
            ];
19318
3a083a653431 inspecting
Claus Gittinger <cg@exept.de>
parents: 19317
diff changeset
  1994
        when:[ self class isBytes and:[ UninterpretedBytes isBigEndian not]] add:'-MSB hex' ->
17591
89ff3d7b56cc class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17587
diff changeset
  1995
            [
89ff3d7b56cc class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17587
diff changeset
  1996
                basePrinter value:16 value:2 value:true
89ff3d7b56cc class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17587
diff changeset
  1997
            ];
19318
3a083a653431 inspecting
Claus Gittinger <cg@exept.de>
parents: 19317
diff changeset
  1998
        when:[ self class isBytes ] add:'-binary' ->
16098
487be9ee1016 inspector
Claus Gittinger <cg@exept.de>
parents: 16050
diff changeset
  1999
            [
17591
89ff3d7b56cc class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17587
diff changeset
  2000
                basePrinter value:2 value:8 value:false
16098
487be9ee1016 inspector
Claus Gittinger <cg@exept.de>
parents: 16050
diff changeset
  2001
            ];
19318
3a083a653431 inspecting
Claus Gittinger <cg@exept.de>
parents: 19317
diff changeset
  2002
        when:[ self class isBytes ] add:'-hex' ->
11450
e0692491f820 float inspecting hex bytes
Claus Gittinger <cg@exept.de>
parents: 11401
diff changeset
  2003
            [
17591
89ff3d7b56cc class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17587
diff changeset
  2004
                basePrinter value:16 value:2 value:false
11450
e0692491f820 float inspecting hex bytes
Claus Gittinger <cg@exept.de>
parents: 11401
diff changeset
  2005
            ];
e0692491f820 float inspecting hex bytes
Claus Gittinger <cg@exept.de>
parents: 11401
diff changeset
  2006
        yourself
e0692491f820 float inspecting hex bytes
Claus Gittinger <cg@exept.de>
parents: 11401
diff changeset
  2007
17587
254ec35296a1 class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17548
diff changeset
  2008
    "
254ec35296a1 class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17548
diff changeset
  2009
     1.0 inspect
18444
3ce22a7c79df class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 18435
diff changeset
  2010
     1.23e14 inspect
17587
254ec35296a1 class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17548
diff changeset
  2011
     1.0 asShortFloat inspect
254ec35296a1 class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17548
diff changeset
  2012
     1.0 asLongFloat inspect
254ec35296a1 class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17548
diff changeset
  2013
     1.0 asQDouble inspect
254ec35296a1 class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17548
diff changeset
  2014
    "
254ec35296a1 class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17548
diff changeset
  2015
11450
e0692491f820 float inspecting hex bytes
Claus Gittinger <cg@exept.de>
parents: 11401
diff changeset
  2016
    "Created: / 20-03-2012 / 22:34:46 / cg"
17591
89ff3d7b56cc class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 17587
diff changeset
  2017
    "Modified: / 18-07-2017 / 15:17:43 / cg"
18444
3ce22a7c79df class: LimitedPrecisionReal
Claus Gittinger <cg@exept.de>
parents: 18435
diff changeset
  2018
    "Modified (comment): / 05-10-2018 / 13:41:41 / Claus Gittinger"
11450
e0692491f820 float inspecting hex bytes
Claus Gittinger <cg@exept.de>
parents: 11401
diff changeset
  2019
! !
e0692491f820 float inspecting hex bytes
Claus Gittinger <cg@exept.de>
parents: 11401
diff changeset
  2020
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2021
!MenuView methodsFor:'accessing-behavior'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2022
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2023
shortKeys
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2024
    ^ shortKeys
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2025
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2026
    "Created: / 18-10-2008 / 19:16:59 / Jan Vrany <vranyj1@fel.cvut.cz>"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2027
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2028
8839
792607726eb6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8838
diff changeset
  2029
!Method methodsFor:'inspecting'!
7735
a85329ee3b3a todo notification
Claus Gittinger <cg@exept.de>
parents: 7703
diff changeset
  2030
7299
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2031
inspectorExtraAttributes
8677
Claus Gittinger <cg@exept.de>
parents: 8417
diff changeset
  2032
    "extra (pseudo instvar) entries to be shown in an inspector."
Claus Gittinger <cg@exept.de>
parents: 8417
diff changeset
  2033
13639
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
  2034
    ^ super inspectorExtraAttributes
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
  2035
        add:'-code'   -> [ String streamContents:[:s | self decompileTo:s] ];
13639
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
  2036
        add:'-source' -> [ self source ];
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
  2037
        yourself
7299
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2038
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2039
    "
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2040
     (Method compiledMethodAt:#inspectorExtraAttributes) inspect
7299
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2041
    "
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2042
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2043
    "Created: / 18-09-2006 / 21:34:01 / cg"
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2044
    "Modified: / 06-10-2006 / 13:57:33 / cg"
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
  2045
    "Modified (format): / 18-07-2017 / 19:54:55 / cg"
7299
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2046
! !
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2047
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2048
!Method methodsFor:'printing & storing'!
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2049
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2050
printStringForBrowserWithSelector:selector inClass:aClass
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2051
    "return a printString to represent myself to the user in a browser.
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2052
     Defined here to allow for browsers to deal with nonStandard pseudoMethods"
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2053
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2054
    |s privInfo moreInfo p info n cls ns currentChangeSet isInChangeSet mthdPackage
12931
740a3b5712cb class: Method
Claus Gittinger <cg@exept.de>
parents: 12852
diff changeset
  2055
     userPreferences shownSelector suppressPackage timeRounded shadowsOrNot overAllCount|
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2056
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2057
    moreInfo := ''.
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2058
    privInfo := ''.
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2059
    userPreferences := UserPreferences current.
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2060
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2061
    ns := self nameSpace.
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2062
    (ns notNil and:[ns isNameSpace]) ifTrue:[
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2063
        moreInfo := moreInfo , 
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2064
            ((' < %1 >' bindWith: ns name) asText emphasisAllAdd:
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2065
                userPreferences emphasisForNamespacedCode)
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2066
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2067
    ].
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2068
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2069
    self isWrapped ifTrue:[
8970
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2070
        (MessageTracer isCounting:self) ifTrue:[
12931
740a3b5712cb class: Method
Claus Gittinger <cg@exept.de>
parents: 12852
diff changeset
  2071
            (MessageTracer isCountingByReceiverClass:self) ifTrue:[
740a3b5712cb class: Method
Claus Gittinger <cg@exept.de>
parents: 12852
diff changeset
  2072
                overAllCount := (MessageTracer executionCountOfMethod:self).
740a3b5712cb class: Method
Claus Gittinger <cg@exept.de>
parents: 12852
diff changeset
  2073
                moreInfo := moreInfo , (' (cnt: %1' bindWith:overAllCount printString allBold).
740a3b5712cb class: Method
Claus Gittinger <cg@exept.de>
parents: 12852
diff changeset
  2074
                overAllCount ~~ 0 ifTrue:[
740a3b5712cb class: Method
Claus Gittinger <cg@exept.de>
parents: 12852
diff changeset
  2075
                    (MessageTracer executionCountsByReceiverClassOfMethod:self) keysAndValuesDo:[:cls :cnt |
740a3b5712cb class: Method
Claus Gittinger <cg@exept.de>
parents: 12852
diff changeset
  2076
                        |clsName percentage|
740a3b5712cb class: Method
Claus Gittinger <cg@exept.de>
parents: 12852
diff changeset
  2077
740a3b5712cb class: Method
Claus Gittinger <cg@exept.de>
parents: 12852
diff changeset
  2078
                        clsName := cls name.
740a3b5712cb class: Method
Claus Gittinger <cg@exept.de>
parents: 12852
diff changeset
  2079
                        percentage := ((cnt / overAllCount) * 100) rounded.
740a3b5712cb class: Method
Claus Gittinger <cg@exept.de>
parents: 12852
diff changeset
  2080
                        moreInfo := moreInfo , ('; %1->%2%%' bindWith:clsName with:percentage).
740a3b5712cb class: Method
Claus Gittinger <cg@exept.de>
parents: 12852
diff changeset
  2081
                    ].
740a3b5712cb class: Method
Claus Gittinger <cg@exept.de>
parents: 12852
diff changeset
  2082
                ].
740a3b5712cb class: Method
Claus Gittinger <cg@exept.de>
parents: 12852
diff changeset
  2083
                moreInfo := moreInfo , ')'.
8970
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2084
            ] ifFalse:[
12931
740a3b5712cb class: Method
Claus Gittinger <cg@exept.de>
parents: 12852
diff changeset
  2085
                (MessageTracer isCountingMemoryUsage:self) ifTrue:[
740a3b5712cb class: Method
Claus Gittinger <cg@exept.de>
parents: 12852
diff changeset
  2086
                    moreInfo := moreInfo , (' (mem: %1 bytes avg)' bindWith:(MessageTracer memoryUsageOfMethod:self) printString allBold).
740a3b5712cb class: Method
Claus Gittinger <cg@exept.de>
parents: 12852
diff changeset
  2087
                ] ifFalse:[
740a3b5712cb class: Method
Claus Gittinger <cg@exept.de>
parents: 12852
diff changeset
  2088
                    moreInfo := moreInfo , (' (cnt: %1)' bindWith:(MessageTracer executionCountOfMethod:self) printString allBold).
740a3b5712cb class: Method
Claus Gittinger <cg@exept.de>
parents: 12852
diff changeset
  2089
                ]
740a3b5712cb class: Method
Claus Gittinger <cg@exept.de>
parents: 12852
diff changeset
  2090
            ].
8970
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2091
        ] ifFalse:[
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2092
            (MessageTracer isTiming:self) ifTrue:[
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2093
                info := MessageTracer executionTimesOfMethod:self.
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2094
                ((n := info count) == 0) ifTrue:[
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2095
                    moreInfo := moreInfo , (' (cnt: %1)' bindWith:n)
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2096
                ] ifFalse:[
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2097
                    timeRounded := [:millis |
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2098
                        |rnd|
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2099
                        rnd := (millis > 100)
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2100
                                 ifTrue:[ 1 ]
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2101
                                 ifFalse:[
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2102
                                     (millis > 10)
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2103
                                        ifTrue:[ 0.1 ]
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2104
                                        ifFalse:[
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2105
                                            (millis > 1)
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2106
                                                ifTrue:[ 0.01 ]
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2107
                                                ifFalse:[ 0.001 ]]].
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2108
                        millis roundTo:rnd
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2109
                    ].
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2110
8970
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2111
                    (n == 1 or:[ info avgTimeRounded = info minTimeRounded  ]) ifTrue:[
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2112
                        moreInfo := moreInfo ,
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2113
                                    (' (t: %1ms cnt: %2)'
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2114
                                        bindWith:((timeRounded value:info avgTimeRounded) printString allBold)
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2115
                                        with:n)
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2116
                    ] ifFalse:[
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2117
                        moreInfo := moreInfo ,
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2118
                                    (' (avg: %1ms min: %2 max: %3 cnt: %4)'
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2119
                                        bindWith:((timeRounded value:info avgTimeRounded) printString allBold)
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2120
                                        with:((timeRounded value:info minTimeRounded) printString)
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2121
                                        with:((timeRounded value:info maxTimeRounded) printString)
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2122
                                        with:n)
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2123
                    ].
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2124
                ].
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2125
            ] ifFalse:[
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2126
                moreInfo := ' !!'
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2127
            ]
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2128
        ].
7703
cfa8b91be77b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7657
diff changeset
  2129
    ].
7299
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2130
    p := self privacy.
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2131
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2132
    p ~~ #public ifTrue:[
9050
b9df3c89888d comment/format in: #colorizeAllWith:on:
Claus Gittinger <cg@exept.de>
parents: 8970
diff changeset
  2133
        privInfo := (' (* ' , p , ' *)') allItalic.
7299
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2134
    ].
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2135
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2136
"/    self isInvalid ifTrue:[
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2137
"/        moreInfo := ' (** not executable **)'.
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2138
"/    ].
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2139
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2140
    (self isLazyMethod not and:[self isUnloaded]) ifTrue:[
8970
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2141
        moreInfo := ' (** unloaded **)'
7299
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2142
    ].
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2143
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2144
    privInfo size ~~ 0 ifTrue:[
8970
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2145
        moreInfo := privInfo , ' ' , moreInfo
7299
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2146
    ].
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2147
7703
cfa8b91be77b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7657
diff changeset
  2148
    s := shownSelector := (self selectorPrintStringInBrowserFor:selector class:aClass).
cfa8b91be77b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7657
diff changeset
  2149
7299
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2150
    (cls := aClass) isNil ifTrue:[
8970
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2151
        cls := self containingClass
7299
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2152
    ].
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2153
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2154
    currentChangeSet := ChangeSet current.
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2155
    isInChangeSet := currentChangeSet includesChangeForClass:cls selector:selector.
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2156
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2157
    isInChangeSet ifTrue:[
8970
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2158
        s := s asText emphasisAllAdd:(userPreferences emphasisForChangedCode)
7299
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2159
    ].
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2160
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2161
    (cls isNil or:[(mthdPackage := self package) ~= cls package]) ifTrue:[
8970
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2162
        suppressPackage := false.
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2163
        mthdPackage = PackageId noProjectID ifTrue:[
13067
36e28077276f method printing for browser
Claus Gittinger <cg@exept.de>
parents: 12931
diff changeset
  2164
            mthdPackage := '?'.
8970
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2165
            "/ suppressPackage := true
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2166
        ].
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2167
        suppressPackage ifFalse:[
12661
4739a38172dc class: Method
Claus Gittinger <cg@exept.de>
parents: 12623
diff changeset
  2168
            shadowsOrNot := (self isShadowingExtension)
4739a38172dc class: Method
Claus Gittinger <cg@exept.de>
parents: 12623
diff changeset
  2169
                                ifTrue:[' shadowed' ]
12543
Claus Gittinger <cg@exept.de>
parents: 12361
diff changeset
  2170
                                ifFalse:[ '' ].
13067
36e28077276f method printing for browser
Claus Gittinger <cg@exept.de>
parents: 12931
diff changeset
  2171
            p := ' [' , (((mthdPackage ? '?'), shadowsOrNot allBold),' ') allItalic , '] '.
8970
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2172
            p := p asText emphasisAllAdd:(userPreferences emphasisForDifferentPackage).
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2173
            s := s , ' ' , p
7b17f7901516 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8919
diff changeset
  2174
        ].
7299
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2175
    ].
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2176
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2177
    moreInfo size == 0 ifTrue:[^ s].
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2178
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2179
    s := shownSelector , moreInfo.
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2180
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2181
    self isInvalid ifTrue:[
18690
62dd57dca797 class: Method
Claus Gittinger <cg@exept.de>
parents: 18665
diff changeset
  2182
        s := s emphasizeAllWith:(userPreferences emphasisForObsoleteCode).
7299
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2183
    ].
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2184
    ^ s
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2185
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2186
    "Modified: / 23-01-1998 / 13:15:15 / stefan"
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2187
    "Created: / 05-02-2000 / 22:55:56 / cg"
7703
cfa8b91be77b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7657
diff changeset
  2188
    "Modified: / 05-03-2007 / 16:18:53 / cg"
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2189
    "Modified: / 20-07-2010 / 15:39:06 / Jan Vrany <jan.vrany@fit.cvut.cz>"
18690
62dd57dca797 class: Method
Claus Gittinger <cg@exept.de>
parents: 18665
diff changeset
  2190
    "Modified: / 13-03-2019 / 21:58:13 / Claus Gittinger"
7299
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2191
! !
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2192
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2193
!Method methodsFor:'printing & storing'!
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2194
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2195
selectorPrintStringInBrowserFor:selector
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2196
    ^ selector
7735
a85329ee3b3a todo notification
Claus Gittinger <cg@exept.de>
parents: 7703
diff changeset
  2197
! !
a85329ee3b3a todo notification
Claus Gittinger <cg@exept.de>
parents: 7703
diff changeset
  2198
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2199
!Method methodsFor:'printing & storing'!
7703
cfa8b91be77b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7657
diff changeset
  2200
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2201
selectorPrintStringInBrowserFor:selector class:aClass
15345
42363a3322b8 class: Method
Claus Gittinger <cg@exept.de>
parents: 15320
diff changeset
  2202
    |selPart idx|
42363a3322b8 class: Method
Claus Gittinger <cg@exept.de>
parents: 15320
diff changeset
  2203
42363a3322b8 class: Method
Claus Gittinger <cg@exept.de>
parents: 15320
diff changeset
  2204
    (selector isSymbol and:[selector isNameSpaceSelector]) ifFalse:[^ selector].
42363a3322b8 class: Method
Claus Gittinger <cg@exept.de>
parents: 15320
diff changeset
  2205
42363a3322b8 class: Method
Claus Gittinger <cg@exept.de>
parents: 15320
diff changeset
  2206
    idx := selector indexOf:$: startingAt:3.
42363a3322b8 class: Method
Claus Gittinger <cg@exept.de>
parents: 15320
diff changeset
  2207
    "
42363a3322b8 class: Method
Claus Gittinger <cg@exept.de>
parents: 15320
diff changeset
  2208
    nsPart := selector copyFrom:2 to:idx-1.
42363a3322b8 class: Method
Claus Gittinger <cg@exept.de>
parents: 15320
diff changeset
  2209
    ns := Smalltalk at:nsPart asSymbol.
42363a3322b8 class: Method
Claus Gittinger <cg@exept.de>
parents: 15320
diff changeset
  2210
    "
42363a3322b8 class: Method
Claus Gittinger <cg@exept.de>
parents: 15320
diff changeset
  2211
    selPart := selector copyFrom:idx+2.
42363a3322b8 class: Method
Claus Gittinger <cg@exept.de>
parents: 15320
diff changeset
  2212
    ^ selPart ", ' {',nsPart,'}'."
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2213
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2214
    "Modified: / 20-07-2010 / 10:33:02 / Jan Vrany <jan.vrany@fit.cvut.cz>"
7299
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2215
! !
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  2216
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2217
!MultiImage methodsFor:'misc ui support'!
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2218
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2219
inspectorClass
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2220
    "redefined to launch an ImageInspector
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2221
     (instead of the default InspectorView)."
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2222
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2223
    (self width notNil and:[self height notNil]) ifTrue:[
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2224
        ^ ImageInspectorView
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2225
    ].
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2226
    ^ super inspectorClass
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2227
! !
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2228
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2229
!NameSpace class methodsFor:'misc ui support'!
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2230
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2231
inspectorClass
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2232
    "{ Pragma: +optSpace }"
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2233
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2234
    "redefined to launch a DictionaryInspector
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2235
     (instead of the default Inspector)."
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2236
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2237
    ^ DictionaryInspectorView
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2238
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2239
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2240
! !
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2241
16837
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  2242
!NonPositionableExternalStream methodsFor:'inspecting'!
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  2243
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  2244
inspectorExtraMenuOperations
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  2245
    "extra operation-menu entries to be shown in an inspector.
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  2246
     Answers a collection of pairs contining aString and action aBlock.
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  2247
     aString is the label of the menu item.
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  2248
     aBlock is evaluated when the menu item is selected.
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  2249
     To be redefined in objects which think that it makes sense to offer
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  2250
     often used operations in an inspector.
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  2251
     See SerialPort as an example."
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  2252
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  2253
    |superItems|
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  2254
    
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  2255
    superItems := super inspectorExtraMenuOperations.
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  2256
    (self == Stdin or:[self == Stdout or:[self == Stderr]]) ifTrue:[        
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  2257
        ^ superItems
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  2258
    ].
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  2259
    ^ superItems , 
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  2260
            {
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  2261
                { 'Close Stream' . [self close] }
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  2262
            }.
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  2263
! !
338852b221c5 class: NonPositionableExternalStream
Claus Gittinger <cg@exept.de>
parents: 16822
diff changeset
  2264
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2265
!Notification class methodsFor:'misc ui support'!
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2266
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2267
iconInBrowserSymbol
16117
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
  2268
    "the browser will use this as index into the toolbariconlibrary"
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
  2269
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2270
    <resource: #programImage>
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2271
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2272
    ^ #notificationClassBrowserIcon
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2273
! !
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2274
18540
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2275
!Number methodsFor:'inspecting'!
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2276
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2277
inspectorValueListIconFor:anInspector
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2278
    "returns the icon to be shown alongside the value list of an inspector"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2279
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2280
    ^ anInspector imageFor_floats
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2281
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2282
    "Created: / 12-12-2018 / 16:09:24 / Claus Gittinger"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2283
! !
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2284
18144
e89e3cf7acb3 inspector
Claus Gittinger <cg@exept.de>
parents: 18139
diff changeset
  2285
!OSProcess methodsFor:'inspecting'!
e89e3cf7acb3 inspector
Claus Gittinger <cg@exept.de>
parents: 18139
diff changeset
  2286
e89e3cf7acb3 inspector
Claus Gittinger <cg@exept.de>
parents: 18139
diff changeset
  2287
inspectorExtraMenuOperations
e89e3cf7acb3 inspector
Claus Gittinger <cg@exept.de>
parents: 18139
diff changeset
  2288
    "extra operation-menu entries to be shown in an inspector.
e89e3cf7acb3 inspector
Claus Gittinger <cg@exept.de>
parents: 18139
diff changeset
  2289
     Answers a collection of pairs contining aString and action aBlock.
e89e3cf7acb3 inspector
Claus Gittinger <cg@exept.de>
parents: 18139
diff changeset
  2290
     aString is the label of the menu item.
e89e3cf7acb3 inspector
Claus Gittinger <cg@exept.de>
parents: 18139
diff changeset
  2291
     aBlock is evaluated when the menu item is selected.
e89e3cf7acb3 inspector
Claus Gittinger <cg@exept.de>
parents: 18139
diff changeset
  2292
     To be redefined in objects which think that it makes sense to offer
e89e3cf7acb3 inspector
Claus Gittinger <cg@exept.de>
parents: 18139
diff changeset
  2293
     often used operations in an inspector.
e89e3cf7acb3 inspector
Claus Gittinger <cg@exept.de>
parents: 18139
diff changeset
  2294
     See SerialPort as an example."
e89e3cf7acb3 inspector
Claus Gittinger <cg@exept.de>
parents: 18139
diff changeset
  2295
e89e3cf7acb3 inspector
Claus Gittinger <cg@exept.de>
parents: 18139
diff changeset
  2296
    |superItems|
e89e3cf7acb3 inspector
Claus Gittinger <cg@exept.de>
parents: 18139
diff changeset
  2297
e89e3cf7acb3 inspector
Claus Gittinger <cg@exept.de>
parents: 18139
diff changeset
  2298
    superItems := super inspectorExtraMenuOperations.
e89e3cf7acb3 inspector
Claus Gittinger <cg@exept.de>
parents: 18139
diff changeset
  2299
    ^ superItems , 
e89e3cf7acb3 inspector
Claus Gittinger <cg@exept.de>
parents: 18139
diff changeset
  2300
            {
18569
c8401ce55915 class: OSProcess
Claus Gittinger <cg@exept.de>
parents: 18540
diff changeset
  2301
                { 'Terminate'       . [self terminate] } .
18144
e89e3cf7acb3 inspector
Claus Gittinger <cg@exept.de>
parents: 18139
diff changeset
  2302
                { 'Terminate Group' . [self terminateGroup ] } .
e89e3cf7acb3 inspector
Claus Gittinger <cg@exept.de>
parents: 18139
diff changeset
  2303
            }.
e89e3cf7acb3 inspector
Claus Gittinger <cg@exept.de>
parents: 18139
diff changeset
  2304
e89e3cf7acb3 inspector
Claus Gittinger <cg@exept.de>
parents: 18139
diff changeset
  2305
    "Created: / 23-05-2018 / 07:53:35 / Claus Gittinger"
18569
c8401ce55915 class: OSProcess
Claus Gittinger <cg@exept.de>
parents: 18540
diff changeset
  2306
    "Modified: / 28-01-2019 / 19:57:47 / Claus Gittinger"
18144
e89e3cf7acb3 inspector
Claus Gittinger <cg@exept.de>
parents: 18139
diff changeset
  2307
! !
e89e3cf7acb3 inspector
Claus Gittinger <cg@exept.de>
parents: 18139
diff changeset
  2308
10702
90cc3aeccac5 inspector2: for consistency: the object view is always the first tab
Claus Gittinger <cg@exept.de>
parents: 10700
diff changeset
  2309
!Object methodsFor:'inspecting'!
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2310
15177
28ce238b8a47 Inspector2 refactoring: do add some tabs automagically and unconditionally.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15149
diff changeset
  2311
inspector2TabClass
18788
715a1380a3ca class: NodeJSObjectInspectorView
Claus Gittinger <cg@exept.de>
parents: 18727
diff changeset
  2312
    "a tab, showing a class browser;
715a1380a3ca class: NodeJSObjectInspectorView
Claus Gittinger <cg@exept.de>
parents: 18727
diff changeset
  2313
     by default, the Tools::Inspector2Tab chooses one"
715a1380a3ca class: NodeJSObjectInspectorView
Claus Gittinger <cg@exept.de>
parents: 18727
diff changeset
  2314
15177
28ce238b8a47 Inspector2 refactoring: do add some tabs automagically and unconditionally.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15149
diff changeset
  2315
    <inspector2Tab>
28ce238b8a47 Inspector2 refactoring: do add some tabs automagically and unconditionally.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15149
diff changeset
  2316
18888
6be9100c0568 show JSON in inspector
Claus Gittinger <cg@exept.de>
parents: 18812
diff changeset
  2317
    ^ Tools::Inspector2Tab 
6be9100c0568 show JSON in inspector
Claus Gittinger <cg@exept.de>
parents: 18812
diff changeset
  2318
        toBrowseClass:(self class theNonMetaclass) selector:nil 
6be9100c0568 show JSON in inspector
Claus Gittinger <cg@exept.de>
parents: 18812
diff changeset
  2319
        label:'Class'
17257
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2320
    
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2321
"/    |makeView|
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2322
"/
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2323
"/    makeView := [
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2324
"/        |spec view browser navigationState cls canvas|
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2325
"/
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2326
"/
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2327
"/        view isNil ifTrue:[
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2328
"/            "/ spec := #singleClassBrowserSpec.
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2329
"/            spec := #multipleClassBrowserSpec.
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2330
"/
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2331
"/            browser := Tools::NewSystemBrowser new
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2332
"/                           isEmbeddedBrowser:true;
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2333
"/                           createBuilder.
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2334
"/
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2335
"/            navigationState := browser navigationState.
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2336
"/            navigationState canvasType:spec.
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2337
"/            browser browserCanvasType:spec.
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2338
"/
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2339
"/            canvas := browser browserCanvas value.
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2340
"/            canvas builder:(browser builder).
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2341
"/            navigationState canvas:canvas.
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2342
"/            "/ browser switchToClassHierarchyView.
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2343
"/            "/ browser showInheritedMethods.
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2344
"/
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2345
"/            cls := self class theNonMetaclass.
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2346
"/            browser classListGenerator value:(cls withAllSuperclasses).
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2347
"/            browser sortByNameAndInheritance value:true.
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2348
"/            browser
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2349
"/                selectClass:cls;
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2350
"/                selectProtocol: (Tools::BrowserList nameListEntryForALL).  
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2351
"/            view := ApplicationSubView new client: browser spec: spec.
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2352
"/            navigationState classListApplication addOwnerClasses value:false.
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2353
"/        ].
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2354
"/        view
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2355
"/    ].
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2356
"/
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2357
"/    ^  Tools::Inspector2Tab new
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2358
"/            priority: 0;
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2359
"/            label:'Class';
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2360
"/            viewHolder: makeView;
4f93c9ff29e5 image inspector shows new tab
Claus Gittinger <cg@exept.de>
parents: 17190
diff changeset
  2361
"/            yourself
15177
28ce238b8a47 Inspector2 refactoring: do add some tabs automagically and unconditionally.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15149
diff changeset
  2362
28ce238b8a47 Inspector2 refactoring: do add some tabs automagically and unconditionally.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15149
diff changeset
  2363
    "Created: / 03-02-2015 / 11:00:01 / Jan Vrany <jan.vrany@fit.cvut.cz>"
18788
715a1380a3ca class: NodeJSObjectInspectorView
Claus Gittinger <cg@exept.de>
parents: 18727
diff changeset
  2364
    "Modified (comment): / 28-05-2019 / 20:46:41 / Claus Gittinger"
15177
28ce238b8a47 Inspector2 refactoring: do add some tabs automagically and unconditionally.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15149
diff changeset
  2365
! !
28ce238b8a47 Inspector2 refactoring: do add some tabs automagically and unconditionally.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15149
diff changeset
  2366
28ce238b8a47 Inspector2 refactoring: do add some tabs automagically and unconditionally.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15149
diff changeset
  2367
!Object methodsFor:'inspecting'!
28ce238b8a47 Inspector2 refactoring: do add some tabs automagically and unconditionally.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15149
diff changeset
  2368
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2369
inspector2TabCommon
10164
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2370
    "a tab, showing the old inspector"
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2371
10164
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2372
    ^ self inspector2TabForInspectorClass
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2373
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2374
    "Created: / 24-05-2011 / 14:56:49 / Jan Vrany <jan.vrany@fit.cvut.cz>"
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2375
    "Modified: / 05-07-2011 / 14:06:28 / cg"
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2376
! !
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2377
10702
90cc3aeccac5 inspector2: for consistency: the object view is always the first tab
Claus Gittinger <cg@exept.de>
parents: 10700
diff changeset
  2378
!Object methodsFor:'inspecting'!
10164
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2379
16789
a3f528d8797d DisplayView extension in Inspector2
Stefan Vogel <sv@exept.de>
parents: 16722
diff changeset
  2380
inspector2TabDisplayObject
18788
715a1380a3ca class: NodeJSObjectInspectorView
Claus Gittinger <cg@exept.de>
parents: 18727
diff changeset
  2381
    "a tab, showing the receiver as display object"
715a1380a3ca class: NodeJSObjectInspectorView
Claus Gittinger <cg@exept.de>
parents: 18727
diff changeset
  2382
16789
a3f528d8797d DisplayView extension in Inspector2
Stefan Vogel <sv@exept.de>
parents: 16722
diff changeset
  2383
    ^ self newInspector2Tab
a3f528d8797d DisplayView extension in Inspector2
Stefan Vogel <sv@exept.de>
parents: 16722
diff changeset
  2384
        label: 'DisplayObject';
a3f528d8797d DisplayView extension in Inspector2
Stefan Vogel <sv@exept.de>
parents: 16722
diff changeset
  2385
        priority: 50;
a3f528d8797d DisplayView extension in Inspector2
Stefan Vogel <sv@exept.de>
parents: 16722
diff changeset
  2386
        view: ((HVScrollableView for:DisplayObjectView) model: self; yourself)
a3f528d8797d DisplayView extension in Inspector2
Stefan Vogel <sv@exept.de>
parents: 16722
diff changeset
  2387
a3f528d8797d DisplayView extension in Inspector2
Stefan Vogel <sv@exept.de>
parents: 16722
diff changeset
  2388
    "Created: / 11-10-2011 / 17:12:01 / cg"
18788
715a1380a3ca class: NodeJSObjectInspectorView
Claus Gittinger <cg@exept.de>
parents: 18727
diff changeset
  2389
    "Modified (comment): / 28-05-2019 / 20:47:17 / Claus Gittinger"
16789
a3f528d8797d DisplayView extension in Inspector2
Stefan Vogel <sv@exept.de>
parents: 16722
diff changeset
  2390
! !
a3f528d8797d DisplayView extension in Inspector2
Stefan Vogel <sv@exept.de>
parents: 16722
diff changeset
  2391
a3f528d8797d DisplayView extension in Inspector2
Stefan Vogel <sv@exept.de>
parents: 16722
diff changeset
  2392
!Object methodsFor:'inspecting'!
a3f528d8797d DisplayView extension in Inspector2
Stefan Vogel <sv@exept.de>
parents: 16722
diff changeset
  2393
10164
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2394
inspector2TabForBasicInspect
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2395
    "a tab, showing the old basic inspector"
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2396
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2397
    ^ Tools::Inspector2Tab new
17100
9b62a75af74f inspector tab prios
Claus Gittinger <cg@exept.de>
parents: 17068
diff changeset
  2398
            priority: 90;
10164
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2399
            label:'Basic';
11400
a9ad41342a52 inspector2TabForBasicInspect
Claus Gittinger <cg@exept.de>
parents: 11399
diff changeset
  2400
            view: (InspectorView new inspect:self);
10164
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2401
            yourself
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2402
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2403
    "Created: / 05-07-2011 / 13:59:59 / cg"
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2404
! !
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2405
10702
90cc3aeccac5 inspector2: for consistency: the object view is always the first tab
Claus Gittinger <cg@exept.de>
parents: 10700
diff changeset
  2406
!Object methodsFor:'inspecting'!
10164
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2407
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2408
inspector2TabForInspectorClass
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2409
    "a tab, showing the old inspector"
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2410
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2411
    ^ Tools::Inspector2Tab new
10702
90cc3aeccac5 inspector2: for consistency: the object view is always the first tab
Claus Gittinger <cg@exept.de>
parents: 10700
diff changeset
  2412
            priority: 100;
10316
11e7bcf8838c inspector label
Claus Gittinger <cg@exept.de>
parents: 10315
diff changeset
  2413
            label:(self inspector2TabLabel);
10164
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2414
            view: (self inspectorClass new inspect:self);
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2415
            yourself
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2416
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2417
    "Created: / 05-07-2011 / 14:06:16 / cg"
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2418
! !
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2419
10702
90cc3aeccac5 inspector2: for consistency: the object view is always the first tab
Claus Gittinger <cg@exept.de>
parents: 10700
diff changeset
  2420
!Object methodsFor:'inspecting'!
10316
11e7bcf8838c inspector label
Claus Gittinger <cg@exept.de>
parents: 10315
diff changeset
  2421
18888
6be9100c0568 show JSON in inspector
Claus Gittinger <cg@exept.de>
parents: 18812
diff changeset
  2422
inspector2TabJSON
6be9100c0568 show JSON in inspector
Claus Gittinger <cg@exept.de>
parents: 18812
diff changeset
  2423
    <inspector2Tab>
6be9100c0568 show JSON in inspector
Claus Gittinger <cg@exept.de>
parents: 18812
diff changeset
  2424
19570
e8daa52b91b1 fix (menu in JSON tab)
Claus Gittinger <cg@exept.de>
parents: 19464
diff changeset
  2425
    |generateJSON jsonPrinter jsonString countRecursive v|
18888
6be9100c0568 show JSON in inspector
Claus Gittinger <cg@exept.de>
parents: 18812
diff changeset
  2426
6be9100c0568 show JSON in inspector
Claus Gittinger <cg@exept.de>
parents: 18812
diff changeset
  2427
    (jsonPrinter := Smalltalk classNamed:'JSONPrinter') isNil ifTrue:[^ nil].
6be9100c0568 show JSON in inspector
Claus Gittinger <cg@exept.de>
parents: 18812
diff changeset
  2428
19570
e8daa52b91b1 fix (menu in JSON tab)
Claus Gittinger <cg@exept.de>
parents: 19464
diff changeset
  2429
    "/ because JSON generation may take a long time, only do it when the tab's view is mapped.
e8daa52b91b1 fix (menu in JSON tab)
Claus Gittinger <cg@exept.de>
parents: 19464
diff changeset
  2430
    generateJSON := 
19406
7248d8fd0b95 class: Object
Claus Gittinger <cg@exept.de>
parents: 19353
diff changeset
  2431
        [
7248d8fd0b95 class: Object
Claus Gittinger <cg@exept.de>
parents: 19353
diff changeset
  2432
            jsonString isNil ifTrue:[
7248d8fd0b95 class: Object
Claus Gittinger <cg@exept.de>
parents: 19353
diff changeset
  2433
                countRecursive := 0.
7248d8fd0b95 class: Object
Claus Gittinger <cg@exept.de>
parents: 19353
diff changeset
  2434
                [
7248d8fd0b95 class: Object
Claus Gittinger <cg@exept.de>
parents: 19353
diff changeset
  2435
                    jsonString := jsonPrinter encodePrettyPrinted:self printLimit:(JSONPrinter defaultPrettyPrintLimit).
7248d8fd0b95 class: Object
Claus Gittinger <cg@exept.de>
parents: 19353
diff changeset
  2436
                ] on:Error do:[:ex |
7248d8fd0b95 class: Object
Claus Gittinger <cg@exept.de>
parents: 19353
diff changeset
  2437
                    (ex isKindOf:RecursionError) ifTrue:[
7248d8fd0b95 class: Object
Claus Gittinger <cg@exept.de>
parents: 19353
diff changeset
  2438
                        ex originator == JSONPrinter ifTrue:[
7248d8fd0b95 class: Object
Claus Gittinger <cg@exept.de>
parents: 19353
diff changeset
  2439
                            countRecursive := countRecursive + 1.
7248d8fd0b95 class: Object
Claus Gittinger <cg@exept.de>
parents: 19353
diff changeset
  2440
                            countRecursive < 10 ifTrue:[
7248d8fd0b95 class: Object
Claus Gittinger <cg@exept.de>
parents: 19353
diff changeset
  2441
                                ex proceed.
7248d8fd0b95 class: Object
Claus Gittinger <cg@exept.de>
parents: 19353
diff changeset
  2442
                            ].
7248d8fd0b95 class: Object
Claus Gittinger <cg@exept.de>
parents: 19353
diff changeset
  2443
                        ].
7248d8fd0b95 class: Object
Claus Gittinger <cg@exept.de>
parents: 19353
diff changeset
  2444
                    ].
7248d8fd0b95 class: Object
Claus Gittinger <cg@exept.de>
parents: 19353
diff changeset
  2445
                    jsonString := '%1\(an instance of %2)\cannot be represented as JSON because:\\%3' withCRs
7248d8fd0b95 class: Object
Claus Gittinger <cg@exept.de>
parents: 19353
diff changeset
  2446
                                    bindWith:self displayString
7248d8fd0b95 class: Object
Claus Gittinger <cg@exept.de>
parents: 19353
diff changeset
  2447
                                    with:self class className
7248d8fd0b95 class: Object
Claus Gittinger <cg@exept.de>
parents: 19353
diff changeset
  2448
                                    with:ex description
19203
456663c8a476 better recursion handling in JSON generator
Claus Gittinger <cg@exept.de>
parents: 19201
diff changeset
  2449
                ].
456663c8a476 better recursion handling in JSON generator
Claus Gittinger <cg@exept.de>
parents: 19201
diff changeset
  2450
            ].
19406
7248d8fd0b95 class: Object
Claus Gittinger <cg@exept.de>
parents: 19353
diff changeset
  2451
            jsonString
19203
456663c8a476 better recursion handling in JSON generator
Claus Gittinger <cg@exept.de>
parents: 19201
diff changeset
  2452
        ].
19406
7248d8fd0b95 class: Object
Claus Gittinger <cg@exept.de>
parents: 19353
diff changeset
  2453
7248d8fd0b95 class: Object
Claus Gittinger <cg@exept.de>
parents: 19353
diff changeset
  2454
    v := HVScrollableView for:TextView.
7248d8fd0b95 class: Object
Claus Gittinger <cg@exept.de>
parents: 19353
diff changeset
  2455
    v autoHideScrollBars:true.
19414
122250f80be9 leftover halt.
Claus Gittinger <cg@exept.de>
parents: 19411
diff changeset
  2456
    v scrolledView 
122250f80be9 leftover halt.
Claus Gittinger <cg@exept.de>
parents: 19411
diff changeset
  2457
        onChange:#visibility 
122250f80be9 leftover halt.
Claus Gittinger <cg@exept.de>
parents: 19411
diff changeset
  2458
        evaluate:[
19570
e8daa52b91b1 fix (menu in JSON tab)
Claus Gittinger <cg@exept.de>
parents: 19464
diff changeset
  2459
            v scrolledView contents:(generateJSON value)
e8daa52b91b1 fix (menu in JSON tab)
Claus Gittinger <cg@exept.de>
parents: 19464
diff changeset
  2460
                "/ v scrolledView model isNil ifTrue:[v scrolledView model: holder]
19414
122250f80be9 leftover halt.
Claus Gittinger <cg@exept.de>
parents: 19411
diff changeset
  2461
        ].
19570
e8daa52b91b1 fix (menu in JSON tab)
Claus Gittinger <cg@exept.de>
parents: 19464
diff changeset
  2462
19203
456663c8a476 better recursion handling in JSON generator
Claus Gittinger <cg@exept.de>
parents: 19201
diff changeset
  2463
    ^ self newInspector2Tab
18888
6be9100c0568 show JSON in inspector
Claus Gittinger <cg@exept.de>
parents: 18812
diff changeset
  2464
        label: 'JSON';
6be9100c0568 show JSON in inspector
Claus Gittinger <cg@exept.de>
parents: 18812
diff changeset
  2465
        priority: 15;
19406
7248d8fd0b95 class: Object
Claus Gittinger <cg@exept.de>
parents: 19353
diff changeset
  2466
        view: v
18888
6be9100c0568 show JSON in inspector
Claus Gittinger <cg@exept.de>
parents: 18812
diff changeset
  2467
6be9100c0568 show JSON in inspector
Claus Gittinger <cg@exept.de>
parents: 18812
diff changeset
  2468
    "Created: / 17-02-2008 / 10:13:07 / janfrog"
6be9100c0568 show JSON in inspector
Claus Gittinger <cg@exept.de>
parents: 18812
diff changeset
  2469
    "Modified: / 11-11-2018 / 12:16:07 / Claus Gittinger"
6be9100c0568 show JSON in inspector
Claus Gittinger <cg@exept.de>
parents: 18812
diff changeset
  2470
! !
6be9100c0568 show JSON in inspector
Claus Gittinger <cg@exept.de>
parents: 18812
diff changeset
  2471
6be9100c0568 show JSON in inspector
Claus Gittinger <cg@exept.de>
parents: 18812
diff changeset
  2472
!Object methodsFor:'inspecting'!
6be9100c0568 show JSON in inspector
Claus Gittinger <cg@exept.de>
parents: 18812
diff changeset
  2473
10316
11e7bcf8838c inspector label
Claus Gittinger <cg@exept.de>
parents: 10315
diff changeset
  2474
inspector2TabLabel
11e7bcf8838c inspector label
Claus Gittinger <cg@exept.de>
parents: 10315
diff changeset
  2475
    "label of the main tab"
11e7bcf8838c inspector label
Claus Gittinger <cg@exept.de>
parents: 10315
diff changeset
  2476
11e7bcf8838c inspector label
Claus Gittinger <cg@exept.de>
parents: 10315
diff changeset
  2477
    ^ 'Object'
11e7bcf8838c inspector label
Claus Gittinger <cg@exept.de>
parents: 10315
diff changeset
  2478
11e7bcf8838c inspector label
Claus Gittinger <cg@exept.de>
parents: 10315
diff changeset
  2479
    "Created: / 14-07-2011 / 11:56:23 / cg"
11e7bcf8838c inspector label
Claus Gittinger <cg@exept.de>
parents: 10315
diff changeset
  2480
! !
11e7bcf8838c inspector label
Claus Gittinger <cg@exept.de>
parents: 10315
diff changeset
  2481
10313
a2f4e3f74efe category
Claus Gittinger <cg@exept.de>
parents: 10310
diff changeset
  2482
!Object methodsFor:'inspecting'!
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2483
10164
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2484
inspector2Tabs
18788
715a1380a3ca class: NodeJSObjectInspectorView
Claus Gittinger <cg@exept.de>
parents: 18727
diff changeset
  2485
    "a collection of tabs to show in the new inspector;
715a1380a3ca class: NodeJSObjectInspectorView
Claus Gittinger <cg@exept.de>
parents: 18727
diff changeset
  2486
     redefined by many to add more tabs (bitmap, hexDump, color, etc.)"
715a1380a3ca class: NodeJSObjectInspectorView
Claus Gittinger <cg@exept.de>
parents: 18727
diff changeset
  2487
15183
0ae565404b9a Workaround for stc bug.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15177
diff changeset
  2488
    | tabs |
0ae565404b9a Workaround for stc bug.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15177
diff changeset
  2489
0ae565404b9a Workaround for stc bug.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15177
diff changeset
  2490
    tabs := self inspectorClass ~~ Inspector 
0ae565404b9a Workaround for stc bug.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15177
diff changeset
  2491
                ifTrue:[#( inspector2TabCommon inspector2TabForBasicInspect )]
0ae565404b9a Workaround for stc bug.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15177
diff changeset
  2492
                ifFalse:[#( inspector2TabCommon )].
0ae565404b9a Workaround for stc bug.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15177
diff changeset
  2493
17171
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
  2494
    (self isString not
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
  2495
     and:[ (self class whichClassIncludesSelector:#displayOn:x:y:) ~~ Object
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
  2496
           or:[(self class whichClassIncludesSelector:#displayOn:x:y:opaque:) ~~ Object
e74741ba46ba no displayObject tab for strings.
Claus Gittinger <cg@exept.de>
parents: 17145
diff changeset
  2497
           or:[(self class whichClassIncludesSelector:#displayOpaqueOn:x:y:) ~~ Object]]]) ifTrue:[
16789
a3f528d8797d DisplayView extension in Inspector2
Stefan Vogel <sv@exept.de>
parents: 16722
diff changeset
  2498
        tabs := tabs copyWith:#inspector2TabDisplayObject.
a3f528d8797d DisplayView extension in Inspector2
Stefan Vogel <sv@exept.de>
parents: 16722
diff changeset
  2499
    ].
a3f528d8797d DisplayView extension in Inspector2
Stefan Vogel <sv@exept.de>
parents: 16722
diff changeset
  2500
15183
0ae565404b9a Workaround for stc bug.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15177
diff changeset
  2501
    "/ Workaround for stc bug
15185
a6fe90f74c11 Oops, fixed stupid bug in Object>>inspector2Tabs workaround.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15183
diff changeset
  2502
    ((self class lookupMethodFor: #inspector2TabClass) annotationAt: #inspector2Tab) isNil ifTrue:[ 
15183
0ae565404b9a Workaround for stc bug.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15177
diff changeset
  2503
        tabs := tabs copyWith:#inspector2TabClass
10164
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2504
    ].
15183
0ae565404b9a Workaround for stc bug.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15177
diff changeset
  2505
    ^ tabs
0ae565404b9a Workaround for stc bug.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15177
diff changeset
  2506
0ae565404b9a Workaround for stc bug.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15177
diff changeset
  2507
    "
0ae565404b9a Workaround for stc bug.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15177
diff changeset
  2508
    1 inspect
0ae565404b9a Workaround for stc bug.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15177
diff changeset
  2509
    self inspect
0ae565404b9a Workaround for stc bug.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15177
diff changeset
  2510
    "
10164
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2511
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  2512
    "Created: / 05-07-2011 / 13:39:24 / cg"
15185
a6fe90f74c11 Oops, fixed stupid bug in Object>>inspector2Tabs workaround.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15183
diff changeset
  2513
    "Modified: / 04-02-2015 / 15:12:04 / Jan Vrany <jan.vrany@fit.cvut.cz>"
18788
715a1380a3ca class: NodeJSObjectInspectorView
Claus Gittinger <cg@exept.de>
parents: 18727
diff changeset
  2514
    "Modified (comment): / 28-05-2019 / 20:48:25 / Claus Gittinger"
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2515
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2516
15691
e39ed47363ff category of inspectorExtraAttributes
Claus Gittinger <cg@exept.de>
parents: 15616
diff changeset
  2517
!Object methodsFor:'inspecting'!
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2518
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2519
inspectorExtraAttributes
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2520
    "extra (pseudo instvar) entries to be shown in an inspector.
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2521
     Answers a dictionary of aString -> aBlock.
18812
a846e717bd52 tz inspetor fields
Claus Gittinger <cg@exept.de>
parents: 18809
diff changeset
  2522
       aString is name of extra attribute and MUST start with minus ($-).
a846e717bd52 tz inspetor fields
Claus Gittinger <cg@exept.de>
parents: 18809
diff changeset
  2523
       aBlock returns the object representing extra attribute"
a846e717bd52 tz inspetor fields
Claus Gittinger <cg@exept.de>
parents: 18809
diff changeset
  2524
a846e717bd52 tz inspetor fields
Claus Gittinger <cg@exept.de>
parents: 18809
diff changeset
  2525
    ^ OrderedDictionary new.
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2526
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2527
    " Try to uncomment following and inspect any object "
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2528
13639
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
  2529
"/    ^ Dictionary new
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
  2530
"/        add:'-now' -> ['Now: ' , Time now printString];
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2531
"/        yourself
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2532
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2533
    "Created: / 16-08-2005 / 20:43:33 / janfrog"
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2534
    "Modified: / 02-09-2005 / 19:00:01 / janfrog"
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2535
    "Modified: / 04-10-2006 / 14:33:34 / cg"
18812
a846e717bd52 tz inspetor fields
Claus Gittinger <cg@exept.de>
parents: 18809
diff changeset
  2536
    "Modified (comment): / 07-06-2019 / 12:25:22 / Claus Gittinger"
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2537
! !
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2538
11773
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  2539
!Object methodsFor:'inspecting'!
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  2540
18801
679f988b9f7e inspector window label
Claus Gittinger <cg@exept.de>
parents: 18788
diff changeset
  2541
inspectorLabelInWindowTitle
679f988b9f7e inspector window label
Claus Gittinger <cg@exept.de>
parents: 18788
diff changeset
  2542
    "what is the inspector showing for me in the title.
679f988b9f7e inspector window label
Claus Gittinger <cg@exept.de>
parents: 18788
diff changeset
  2543
     Moved out of he inspector to allow redefinition for eg. remote objects"
679f988b9f7e inspector window label
Claus Gittinger <cg@exept.de>
parents: 18788
diff changeset
  2544
    
679f988b9f7e inspector window label
Claus Gittinger <cg@exept.de>
parents: 18788
diff changeset
  2545
    self isClass ifTrue:[
679f988b9f7e inspector window label
Claus Gittinger <cg@exept.de>
parents: 18788
diff changeset
  2546
        ^ self displayString
679f988b9f7e inspector window label
Claus Gittinger <cg@exept.de>
parents: 18788
diff changeset
  2547
    ].
679f988b9f7e inspector window label
Claus Gittinger <cg@exept.de>
parents: 18788
diff changeset
  2548
    (self isImmediate or:[self isBoolean]) ifTrue:[
679f988b9f7e inspector window label
Claus Gittinger <cg@exept.de>
parents: 18788
diff changeset
  2549
        ^ self printString , ', ' , self classNameWithArticle
679f988b9f7e inspector window label
Claus Gittinger <cg@exept.de>
parents: 18788
diff changeset
  2550
    ].
679f988b9f7e inspector window label
Claus Gittinger <cg@exept.de>
parents: 18788
diff changeset
  2551
    ^ self classNameWithArticle
679f988b9f7e inspector window label
Claus Gittinger <cg@exept.de>
parents: 18788
diff changeset
  2552
679f988b9f7e inspector window label
Claus Gittinger <cg@exept.de>
parents: 18788
diff changeset
  2553
    "Created: / 05-06-2019 / 11:14:49 / Claus Gittinger"
679f988b9f7e inspector window label
Claus Gittinger <cg@exept.de>
parents: 18788
diff changeset
  2554
! !
679f988b9f7e inspector window label
Claus Gittinger <cg@exept.de>
parents: 18788
diff changeset
  2555
679f988b9f7e inspector window label
Claus Gittinger <cg@exept.de>
parents: 18788
diff changeset
  2556
!Object methodsFor:'inspecting'!
679f988b9f7e inspector window label
Claus Gittinger <cg@exept.de>
parents: 18788
diff changeset
  2557
18540
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2558
inspectorValueListIconFor:anInspector
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2559
    "returns the icon to be shown alongside the value list of an inspector"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2560
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2561
    ^ anInspector imageFor_others
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2562
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2563
    "Created: / 12-12-2018 / 16:03:58 / Claus Gittinger"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2564
! !
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2565
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2566
!Object methodsFor:'inspecting'!
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2567
11773
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  2568
inspectorValueStringInListFor:anInspector
13423
792b998bcc1a class: MessageNode
Claus Gittinger <cg@exept.de>
parents: 13067
diff changeset
  2569
    "returns a string to be shown in the inspector's list.
792b998bcc1a class: MessageNode
Claus Gittinger <cg@exept.de>
parents: 13067
diff changeset
  2570
     Only to be redefined where it is guaranteed, that the returned string is short."
11773
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  2571
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  2572
    ^ self classNameWithArticle
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  2573
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  2574
    "Created: / 13-06-2012 / 12:50:26 / cg"
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  2575
! !
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  2576
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2577
!Object methodsFor:'testing'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2578
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2579
isTestCaseLike
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2580
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2581
    ^false
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2582
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2583
    "Created: / 28-02-2011 / 21:30:24 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2584
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2585
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2586
!Object methodsFor:'debugging'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2587
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2588
newInspector2Tab
15587
75291f910f79 class: YAXO::XeXMLNodeAbstract
Claus Gittinger <cg@exept.de>
parents: 15555
diff changeset
  2589
    "return an extra tab to be used inside an inspector"
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2590
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2591
    "Use Smalltalk>>at: to trick the dependency detector"
17145
9be52f4dd057 class: Object
Claus Gittinger <cg@exept.de>
parents: 17128
diff changeset
  2592
     ^ (Smalltalk at: #'Tools::Inspector2Tab') new.
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2593
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2594
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2595
!OrderedCollection methodsFor:'misc ui support'!
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2596
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2597
inspectorClass
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2598
    "redefined to launch an OrderedCollectionInspector
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2599
     (instead of the default InspectorView)."
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2600
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2601
    ^ OrderedCollectionInspectorView
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2602
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2603
    "
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2604
     (OrderedCollection withAll:#(3 2 1)) inspect
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2605
     (OrderedCollection withAll:#(3 2 1)) removeFirst; yourself; inspect
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2606
     #(0 8 15 3 99 2) asSortedCollection inspect
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2607
    "
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2608
! !
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2609
13423
792b998bcc1a class: MessageNode
Claus Gittinger <cg@exept.de>
parents: 13067
diff changeset
  2610
!Point methodsFor:'inspecting'!
792b998bcc1a class: MessageNode
Claus Gittinger <cg@exept.de>
parents: 13067
diff changeset
  2611
792b998bcc1a class: MessageNode
Claus Gittinger <cg@exept.de>
parents: 13067
diff changeset
  2612
inspectorValueStringInListFor:anInspector
792b998bcc1a class: MessageNode
Claus Gittinger <cg@exept.de>
parents: 13067
diff changeset
  2613
    "returns a string to be shown in the inspector's list"
792b998bcc1a class: MessageNode
Claus Gittinger <cg@exept.de>
parents: 13067
diff changeset
  2614
792b998bcc1a class: MessageNode
Claus Gittinger <cg@exept.de>
parents: 13067
diff changeset
  2615
    ^ self printString
792b998bcc1a class: MessageNode
Claus Gittinger <cg@exept.de>
parents: 13067
diff changeset
  2616
! !
792b998bcc1a class: MessageNode
Claus Gittinger <cg@exept.de>
parents: 13067
diff changeset
  2617
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2618
!PopUpMenu methodsFor:'converting'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2619
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2620
asMenu
12780
c2adddc0328e popupMenu - asMenu
Claus Gittinger <cg@exept.de>
parents: 12768
diff changeset
  2621
    "convert myself into a newStyle Menu instance, from which a MenuPanel is created.
17465
Claus Gittinger <cg@exept.de>
parents: 17421
diff changeset
  2622
     The old PopUpMenu and MenuView is going to be obsoleted 
Claus Gittinger <cg@exept.de>
parents: 17421
diff changeset
  2623
     (but still supported for backward compatibility)"
12780
c2adddc0328e popupMenu - asMenu
Claus Gittinger <cg@exept.de>
parents: 12768
diff changeset
  2624
11399
529c80f3220b changed: #asMenu
Claus Gittinger <cg@exept.de>
parents: 11283
diff changeset
  2625
    | menu  |
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2626
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2627
    menu := Menu new receiver: menuView receiver.
11399
529c80f3220b changed: #asMenu
Claus Gittinger <cg@exept.de>
parents: 11283
diff changeset
  2628
    1 to: self numberOfItems do:[:i| 
12780
c2adddc0328e popupMenu - asMenu
Claus Gittinger <cg@exept.de>
parents: 12768
diff changeset
  2629
        | menuItem subMenu lbl checkHolder|
c2adddc0328e popupMenu - asMenu
Claus Gittinger <cg@exept.de>
parents: 12768
diff changeset
  2630
c2adddc0328e popupMenu - asMenu
Claus Gittinger <cg@exept.de>
parents: 12768
diff changeset
  2631
        lbl := (self labels at: i).
c2adddc0328e popupMenu - asMenu
Claus Gittinger <cg@exept.de>
parents: 12768
diff changeset
  2632
        (lbl includesString:'\c') ifTrue:[
c2adddc0328e popupMenu - asMenu
Claus Gittinger <cg@exept.de>
parents: 12768
diff changeset
  2633
            lbl := lbl copyReplaceString:'\c' withString:''.
15271
Claus Gittinger <cg@exept.de>
parents: 15185
diff changeset
  2634
            checkHolder := ValueHolder with:(menuView checkToggleAt:i).
12780
c2adddc0328e popupMenu - asMenu
Claus Gittinger <cg@exept.de>
parents: 12768
diff changeset
  2635
        ].
11399
529c80f3220b changed: #asMenu
Claus Gittinger <cg@exept.de>
parents: 11283
diff changeset
  2636
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2637
        menuItem := MenuItem new
14601
c4086f21addb class: PopUpMenu
Claus Gittinger <cg@exept.de>
parents: 14488
diff changeset
  2638
                        label: lbl
c4086f21addb class: PopUpMenu
Claus Gittinger <cg@exept.de>
parents: 14488
diff changeset
  2639
                        itemValue: (menuView selectors at: i)
14626
Claus Gittinger <cg@exept.de>
parents: 14601
diff changeset
  2640
                        enabled: (menuView isEnabled: i).
Claus Gittinger <cg@exept.de>
parents: 14601
diff changeset
  2641
        menuItem shortcutKey: (menuView shortKeys at: i).
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2642
11399
529c80f3220b changed: #asMenu
Claus Gittinger <cg@exept.de>
parents: 11283
diff changeset
  2643
        (subMenu := self subMenuAt: i) notNil ifTrue:[
529c80f3220b changed: #asMenu
Claus Gittinger <cg@exept.de>
parents: 11283
diff changeset
  2644
            menuItem submenu: subMenu asMenu
529c80f3220b changed: #asMenu
Claus Gittinger <cg@exept.de>
parents: 11283
diff changeset
  2645
        ].
12780
c2adddc0328e popupMenu - asMenu
Claus Gittinger <cg@exept.de>
parents: 12768
diff changeset
  2646
        checkHolder notNil ifTrue:[
c2adddc0328e popupMenu - asMenu
Claus Gittinger <cg@exept.de>
parents: 12768
diff changeset
  2647
            checkHolder onChangeEvaluate:[ 
c2adddc0328e popupMenu - asMenu
Claus Gittinger <cg@exept.de>
parents: 12768
diff changeset
  2648
                menuView receiver perform:(menuView selectors at: i) with:checkHolder value 
c2adddc0328e popupMenu - asMenu
Claus Gittinger <cg@exept.de>
parents: 12768
diff changeset
  2649
            ].
c2adddc0328e popupMenu - asMenu
Claus Gittinger <cg@exept.de>
parents: 12768
diff changeset
  2650
            menuItem indication:checkHolder.
12781
b1ebd8f71447 class: ComboView
Claus Gittinger <cg@exept.de>
parents: 12780
diff changeset
  2651
            menuItem hideMenuOnActivated:false.
12780
c2adddc0328e popupMenu - asMenu
Claus Gittinger <cg@exept.de>
parents: 12768
diff changeset
  2652
        ].
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2653
        menu addItem: menuItem.
11399
529c80f3220b changed: #asMenu
Claus Gittinger <cg@exept.de>
parents: 11283
diff changeset
  2654
    ].
529c80f3220b changed: #asMenu
Claus Gittinger <cg@exept.de>
parents: 11283
diff changeset
  2655
    ^ menu.
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2656
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2657
    "Created: / 18-10-2008 / 19:01:32 / Jan Vrany <vranyj1@fel.cvut.cz>"
11792
1d9eb5a2ac82 menuitem protocol
Claus Gittinger <cg@exept.de>
parents: 11773
diff changeset
  2658
    "Modified: / 09-09-2012 / 13:10:25 / cg"
17465
Claus Gittinger <cg@exept.de>
parents: 17421
diff changeset
  2659
    "Modified (comment): / 14-03-2017 / 16:07:58 / cg"
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2660
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2661
18349
32f650b47753 inspecting processes
Claus Gittinger <cg@exept.de>
parents: 18305
diff changeset
  2662
!Process methodsFor:'inspecting'!
32f650b47753 inspecting processes
Claus Gittinger <cg@exept.de>
parents: 18305
diff changeset
  2663
32f650b47753 inspecting processes
Claus Gittinger <cg@exept.de>
parents: 18305
diff changeset
  2664
inspectorExtraMenuOperations
32f650b47753 inspecting processes
Claus Gittinger <cg@exept.de>
parents: 18305
diff changeset
  2665
    "extra operation-menu entries to be shown in an inspector.
32f650b47753 inspecting processes
Claus Gittinger <cg@exept.de>
parents: 18305
diff changeset
  2666
     Answers a collection of pairs contining aString and action aBlock.
32f650b47753 inspecting processes
Claus Gittinger <cg@exept.de>
parents: 18305
diff changeset
  2667
     aString is the label of the menu item.
32f650b47753 inspecting processes
Claus Gittinger <cg@exept.de>
parents: 18305
diff changeset
  2668
     aBlock is evaluated when the menu item is selected.
32f650b47753 inspecting processes
Claus Gittinger <cg@exept.de>
parents: 18305
diff changeset
  2669
     To be redefined in objects which think that it makes sense to offer
32f650b47753 inspecting processes
Claus Gittinger <cg@exept.de>
parents: 18305
diff changeset
  2670
     often used operations in an inspector.
32f650b47753 inspecting processes
Claus Gittinger <cg@exept.de>
parents: 18305
diff changeset
  2671
     See SerialPort as an example."
32f650b47753 inspecting processes
Claus Gittinger <cg@exept.de>
parents: 18305
diff changeset
  2672
32f650b47753 inspecting processes
Claus Gittinger <cg@exept.de>
parents: 18305
diff changeset
  2673
    ^ super inspectorExtraMenuOperations
32f650b47753 inspecting processes
Claus Gittinger <cg@exept.de>
parents: 18305
diff changeset
  2674
    , {
32f650b47753 inspecting processes
Claus Gittinger <cg@exept.de>
parents: 18305
diff changeset
  2675
        { 'Debug' . [Debugger openOn: self ] } .
32f650b47753 inspecting processes
Claus Gittinger <cg@exept.de>
parents: 18305
diff changeset
  2676
        { '-' . [ ] } .
32f650b47753 inspecting processes
Claus Gittinger <cg@exept.de>
parents: 18305
diff changeset
  2677
        { 'Terminate' . [self terminate ] } .
32f650b47753 inspecting processes
Claus Gittinger <cg@exept.de>
parents: 18305
diff changeset
  2678
        { 'Terminate Group' . [self terminateGroup ] }
32f650b47753 inspecting processes
Claus Gittinger <cg@exept.de>
parents: 18305
diff changeset
  2679
    }
32f650b47753 inspecting processes
Claus Gittinger <cg@exept.de>
parents: 18305
diff changeset
  2680
32f650b47753 inspecting processes
Claus Gittinger <cg@exept.de>
parents: 18305
diff changeset
  2681
    "Created: / 23-08-2018 / 21:39:50 / Claus Gittinger"
32f650b47753 inspecting processes
Claus Gittinger <cg@exept.de>
parents: 18305
diff changeset
  2682
! !
32f650b47753 inspecting processes
Claus Gittinger <cg@exept.de>
parents: 18305
diff changeset
  2683
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2684
!ProfileTree methodsFor:'accessing'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2685
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2686
method
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2687
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2688
    class ifNil:[^nil].
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2689
    ^class >> selector
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2690
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2691
    "Created: / 01-12-2007 / 22:50:16 / janfrog"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2692
    "Modified: / 07-11-2008 / 08:40:35 / Jan Vrany <vranyj1@fel.cvut.cz>"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2693
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2694
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2695
!ProfileTree methodsFor:'accessing'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2696
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2697
package
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2698
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2699
    self method ifNil:[^nil].
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2700
    ^self method package
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2701
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2702
    "Created: / 01-12-2007 / 22:50:28 / janfrog"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2703
    "Modified: / 07-11-2008 / 08:40:35 / Jan Vrany <vranyj1@fel.cvut.cz>"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2704
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2705
13887
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  2706
!ProgrammingLanguage methodsFor:'displaying'!
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  2707
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  2708
displayString
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  2709
    ^ self name
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  2710
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  2711
    "Created: / 26-10-2013 / 00:52:58 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  2712
! !
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  2713
13504
2c37f59ad97b Added ProgrammingLanguage>>toolbox(Class)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13423
diff changeset
  2714
!ProgrammingLanguage methodsFor:'accessing'!
2c37f59ad97b Added ProgrammingLanguage>>toolbox(Class)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13423
diff changeset
  2715
2c37f59ad97b Added ProgrammingLanguage>>toolbox(Class)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13423
diff changeset
  2716
toolbox
2c37f59ad97b Added ProgrammingLanguage>>toolbox(Class)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13423
diff changeset
  2717
    "Answer a toolbox for receiver. A toolbox is used by language-agnostic tools (such as
2c37f59ad97b Added ProgrammingLanguage>>toolbox(Class)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13423
diff changeset
  2718
     class browser) to perform language-specific tasks (search for implementors,
2c37f59ad97b Added ProgrammingLanguage>>toolbox(Class)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13423
diff changeset
  2719
     build implementor menu and so on. If nil is returned, no toolbox available"
2c37f59ad97b Added ProgrammingLanguage>>toolbox(Class)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13423
diff changeset
  2720
14013
edf1f9887d03 Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13983
diff changeset
  2721
    ^ self toolboxClass new.
13504
2c37f59ad97b Added ProgrammingLanguage>>toolbox(Class)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13423
diff changeset
  2722
2c37f59ad97b Added ProgrammingLanguage>>toolbox(Class)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13423
diff changeset
  2723
    "Created: / 31-08-2013 / 10:15:01 / Jan Vrany <jan.vrany@fit.cvut.cz>"
14013
edf1f9887d03 Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13983
diff changeset
  2724
    "Modified: / 24-02-2014 / 16:32:17 / Jan Vrany <jan.vrany@fit.cvut.cz>"
13504
2c37f59ad97b Added ProgrammingLanguage>>toolbox(Class)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13423
diff changeset
  2725
! !
2c37f59ad97b Added ProgrammingLanguage>>toolbox(Class)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13423
diff changeset
  2726
16357
73d4d7a9a109 class: CodeGeneratorTool
Claus Gittinger <cg@exept.de>
parents: 16346
diff changeset
  2727
!ProgrammingLanguage methodsFor:'accessing-classes'!
13504
2c37f59ad97b Added ProgrammingLanguage>>toolbox(Class)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13423
diff changeset
  2728
2c37f59ad97b Added ProgrammingLanguage>>toolbox(Class)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13423
diff changeset
  2729
toolboxClass
2c37f59ad97b Added ProgrammingLanguage>>toolbox(Class)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13423
diff changeset
  2730
    "Answer a 'toolbox class'. A toolbox is used by language-agnostic tools (such as
2c37f59ad97b Added ProgrammingLanguage>>toolbox(Class)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13423
diff changeset
  2731
     class browser) to perform language-specific tasks (search for implementors,
2c37f59ad97b Added ProgrammingLanguage>>toolbox(Class)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13423
diff changeset
  2732
     build implementor menu and so on. If nil is returned, no toolbox available"
2c37f59ad97b Added ProgrammingLanguage>>toolbox(Class)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13423
diff changeset
  2733
14013
edf1f9887d03 Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13983
diff changeset
  2734
    ^ Tools::GenericToolbox
13504
2c37f59ad97b Added ProgrammingLanguage>>toolbox(Class)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13423
diff changeset
  2735
2c37f59ad97b Added ProgrammingLanguage>>toolbox(Class)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13423
diff changeset
  2736
    "Created: / 31-08-2013 / 10:07:04 / Jan Vrany <jan.vrany@fit.cvut.cz>"
14013
edf1f9887d03 Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13983
diff changeset
  2737
    "Modified: / 24-02-2014 / 16:32:32 / Jan Vrany <jan.vrany@fit.cvut.cz>"
13504
2c37f59ad97b Added ProgrammingLanguage>>toolbox(Class)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13423
diff changeset
  2738
! !
2c37f59ad97b Added ProgrammingLanguage>>toolbox(Class)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13423
diff changeset
  2739
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2740
!ProjectDefinition class methodsFor:'misc ui support'!
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2741
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2742
iconInBrowserSymbol
16117
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
  2743
    "the browser will use this as index into the toolbariconlibrary"
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
  2744
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2745
    <resource: #programImage>
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2746
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2747
    self theNonMetaclass isApplicationDefinition ifTrue:[
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2748
        self theNonMetaclass isGUIApplication ifTrue:[
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2749
            ^ #guiApplicationDefinitionClassIcon
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2750
        ].
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2751
        ^ #applicationDefinitionClassIcon
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2752
    ].
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2753
    ^ super iconInBrowserSymbol
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2754
! !
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2755
18540
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2756
!ProtoObject methodsFor:'inspecting'!
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2757
18801
679f988b9f7e inspector window label
Claus Gittinger <cg@exept.de>
parents: 18788
diff changeset
  2758
inspectorLabelInWindowTitle
679f988b9f7e inspector window label
Claus Gittinger <cg@exept.de>
parents: 18788
diff changeset
  2759
    "what is the inspector showing for me in the title.
679f988b9f7e inspector window label
Claus Gittinger <cg@exept.de>
parents: 18788
diff changeset
  2760
     Moved out of he inspector to allow redefinition for eg. remote objects"
679f988b9f7e inspector window label
Claus Gittinger <cg@exept.de>
parents: 18788
diff changeset
  2761
679f988b9f7e inspector window label
Claus Gittinger <cg@exept.de>
parents: 18788
diff changeset
  2762
    ^ self class nameWithArticle
679f988b9f7e inspector window label
Claus Gittinger <cg@exept.de>
parents: 18788
diff changeset
  2763
679f988b9f7e inspector window label
Claus Gittinger <cg@exept.de>
parents: 18788
diff changeset
  2764
    "Created: / 05-06-2019 / 11:15:44 / Claus Gittinger"
679f988b9f7e inspector window label
Claus Gittinger <cg@exept.de>
parents: 18788
diff changeset
  2765
! !
679f988b9f7e inspector window label
Claus Gittinger <cg@exept.de>
parents: 18788
diff changeset
  2766
679f988b9f7e inspector window label
Claus Gittinger <cg@exept.de>
parents: 18788
diff changeset
  2767
!ProtoObject methodsFor:'inspecting'!
679f988b9f7e inspector window label
Claus Gittinger <cg@exept.de>
parents: 18788
diff changeset
  2768
18540
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2769
inspectorValueListIconFor:anInspector
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2770
    "returns the icon to be shown alongside the value list of an inspector"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2771
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2772
    ^ anInspector imageFor_proxy
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2773
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2774
    "Created: / 12-12-2018 / 16:07:15 / Claus Gittinger"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2775
! !
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2776
19323
838aacfd95d0 inspecting
Claus Gittinger <cg@exept.de>
parents: 19319
diff changeset
  2777
!QDouble methodsFor:'inspecting'!
838aacfd95d0 inspecting
Claus Gittinger <cg@exept.de>
parents: 19319
diff changeset
  2778
838aacfd95d0 inspecting
Claus Gittinger <cg@exept.de>
parents: 19319
diff changeset
  2779
inspectorExtraAttributes
838aacfd95d0 inspecting
Claus Gittinger <cg@exept.de>
parents: 19319
diff changeset
  2780
    "extra (pseudo instvar) entries to be shown in an inspector."
838aacfd95d0 inspecting
Claus Gittinger <cg@exept.de>
parents: 19319
diff changeset
  2781
838aacfd95d0 inspecting
Claus Gittinger <cg@exept.de>
parents: 19319
diff changeset
  2782
    ^ super inspectorExtraAttributes
838aacfd95d0 inspecting
Claus Gittinger <cg@exept.de>
parents: 19319
diff changeset
  2783
        add:'-{doubles}' -> [ self asDoubleArray printString ];
838aacfd95d0 inspecting
Claus Gittinger <cg@exept.de>
parents: 19319
diff changeset
  2784
        yourself
838aacfd95d0 inspecting
Claus Gittinger <cg@exept.de>
parents: 19319
diff changeset
  2785
838aacfd95d0 inspecting
Claus Gittinger <cg@exept.de>
parents: 19319
diff changeset
  2786
    "Created: / 12-06-2017 / 23:43:05 / cg"
838aacfd95d0 inspecting
Claus Gittinger <cg@exept.de>
parents: 19319
diff changeset
  2787
    "Modified (format): / 18-07-2017 / 19:54:48 / cg"
838aacfd95d0 inspecting
Claus Gittinger <cg@exept.de>
parents: 19319
diff changeset
  2788
! !
838aacfd95d0 inspecting
Claus Gittinger <cg@exept.de>
parents: 19319
diff changeset
  2789
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2790
!Query class methodsFor:'misc ui support'!
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2791
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2792
iconInBrowserSymbol
16117
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
  2793
    "the browser will use this as index into the toolbariconlibrary"
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
  2794
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2795
    <resource: #programImage>
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2796
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2797
    ^ #queryClassBrowserIcon
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2798
! !
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2799
13423
792b998bcc1a class: MessageNode
Claus Gittinger <cg@exept.de>
parents: 13067
diff changeset
  2800
!Rectangle methodsFor:'inspecting'!
792b998bcc1a class: MessageNode
Claus Gittinger <cg@exept.de>
parents: 13067
diff changeset
  2801
792b998bcc1a class: MessageNode
Claus Gittinger <cg@exept.de>
parents: 13067
diff changeset
  2802
inspectorValueStringInListFor:anInspector
792b998bcc1a class: MessageNode
Claus Gittinger <cg@exept.de>
parents: 13067
diff changeset
  2803
    "returns a string to be shown in the inspector's list"
792b998bcc1a class: MessageNode
Claus Gittinger <cg@exept.de>
parents: 13067
diff changeset
  2804
792b998bcc1a class: MessageNode
Claus Gittinger <cg@exept.de>
parents: 13067
diff changeset
  2805
    ^ self origin printString,'->',self corner printString
792b998bcc1a class: MessageNode
Claus Gittinger <cg@exept.de>
parents: 13067
diff changeset
  2806
! !
792b998bcc1a class: MessageNode
Claus Gittinger <cg@exept.de>
parents: 13067
diff changeset
  2807
18462
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2808
!ResourcePack methodsFor:'inspecting'!
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2809
18657
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2810
inspector2TabFileEditor
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2811
    <inspector2Tab>      
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2812
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2813
    "provide an additional tab, which presents the raw resource file"
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2814
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2815
    | tab fn lang|    
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2816
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2817
    packsFileName isNil ifTrue:[^ nil].
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2818
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2819
    lang := self at:'__language__' ifAbsent:[Smalltalk language].
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2820
    (lang includes:$_) ifTrue:[ lang := lang upTo:$_ ].
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2821
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2822
    fn := packsFileName asFilename.
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2823
    fn baseName = 'resources.rs' ifTrue:[
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2824
        fn := fn directory / (lang,'.rs').
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2825
    ].    
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2826
    fn exists ifFalse:[^ nil].
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2827
    
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2828
    ^ (tab := Tools::Inspector2Tab new)
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2829
        label: 'File';
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2830
        priority: 50;
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2831
        applicationHolder: [   
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2832
            | browser |
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2833
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2834
            browser := FileBrowserV2 new.
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2835
            browser onDirectory:fn directory.
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2836
            "/ browser readResourceFile:fn asLanguage:lang.
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2837
            "/ browser editedLanguage:lang.
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2838
            browser
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2839
        ];
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2840
        yourself
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2841
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2842
    "
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2843
     View classResources inspect
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2844
    "
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2845
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2846
    "Created: / 04-03-2019 / 20:59:37 / Claus Gittinger"
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2847
! !
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2848
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2849
!ResourcePack methodsFor:'inspecting'!
ebb5ab99df68 another tab for resourcePacks showing the file
Claus Gittinger <cg@exept.de>
parents: 18569
diff changeset
  2850
18462
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2851
inspector2TabTranslationView
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2852
    <inspector2Tab>      
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2853
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2854
    "provide an additional tab, which presents the translations"
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2855
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2856
    | tab fn lang|    
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2857
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2858
    packsFileName isNil ifTrue:[^ nil].
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2859
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2860
    lang := self at:'__language__' ifAbsent:[Smalltalk language].
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2861
    (lang includes:$_) ifTrue:[ lang := lang upTo:$_ ].
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2862
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2863
    fn := packsFileName asFilename.
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2864
    fn baseName = 'resources.rs' ifTrue:[
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2865
        fn := fn directory / (lang,'.rs').
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2866
    ].    
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2867
    fn exists ifFalse:[^ nil].
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2868
    
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2869
    ^ (tab := Tools::Inspector2Tab new)
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2870
        label: 'Translations';
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2871
        priority: 50;
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2872
        applicationHolder: [   
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2873
            | browser |
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2874
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2875
            browser := Tools::InternationalLanguageTranslationEditor new.
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2876
            browser readResourceFile:fn asLanguage:lang.
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2877
            browser editedLanguage:lang.
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2878
            browser
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2879
        ];
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2880
        yourself
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2881
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2882
    "
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2883
     View classResources inspect
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2884
    "
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2885
! !
52edaebf4615 resourcePack inspector
Claus Gittinger <cg@exept.de>
parents: 18444
diff changeset
  2886
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2887
!RunArray methodsFor:'misc ui support'!
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2888
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2889
inspectorClass
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2890
    "Re-reimplemented so that we don't get an ordered collection inspector
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2891
     which would get very confused when confronted with a runArray."
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2892
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2893
    ^ InspectorView
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2894
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2895
    "Modified: / 30.10.1997 / 14:28:20 / cg"
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2896
! !
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2897
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2898
!SelectionInListModelView methodsFor:'accessing'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2899
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2900
textStartLeft
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2901
    ^ textStartLeft
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2902
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2903
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2904
!SelectionInListModelView methodsFor:'accessing'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2905
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2906
textStartLeft:something
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2907
    textStartLeft := something.
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2908
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  2909
18071
49baf0199f57 graph tab
Claus Gittinger <cg@exept.de>
parents: 18064
diff changeset
  2910
!SequenceableCollection methodsFor:'inspecting'!
49baf0199f57 graph tab
Claus Gittinger <cg@exept.de>
parents: 18064
diff changeset
  2911
49baf0199f57 graph tab
Claus Gittinger <cg@exept.de>
parents: 18064
diff changeset
  2912
inspector2TabGraph
49baf0199f57 graph tab
Claus Gittinger <cg@exept.de>
parents: 18064
diff changeset
  2913
    "an extra tab showing the graph"
49baf0199f57 graph tab
Claus Gittinger <cg@exept.de>
parents: 18064
diff changeset
  2914
49baf0199f57 graph tab
Claus Gittinger <cg@exept.de>
parents: 18064
diff changeset
  2915
    ^ self newInspector2Tab
49baf0199f57 graph tab
Claus Gittinger <cg@exept.de>
parents: 18064
diff changeset
  2916
        label: 'Graph';
18072
48ca89b56ae6 graph tab
Claus Gittinger <cg@exept.de>
parents: 18071
diff changeset
  2917
        priority: 20;
18071
49baf0199f57 graph tab
Claus Gittinger <cg@exept.de>
parents: 18064
diff changeset
  2918
        view: ((HVScrollableView for:GnuplotGraphView) data:self; yourself)
49baf0199f57 graph tab
Claus Gittinger <cg@exept.de>
parents: 18064
diff changeset
  2919
49baf0199f57 graph tab
Claus Gittinger <cg@exept.de>
parents: 18064
diff changeset
  2920
    "
49baf0199f57 graph tab
Claus Gittinger <cg@exept.de>
parents: 18064
diff changeset
  2921
     ((RandomGenerator new) next:100 integerBetween:10 and:90) inspect
18167
97f8391ddca3 class: SequenceableCollection
Claus Gittinger <cg@exept.de>
parents: 18160
diff changeset
  2922
     #(10 20 30 40 10 20 30 40) inspect
18071
49baf0199f57 graph tab
Claus Gittinger <cg@exept.de>
parents: 18064
diff changeset
  2923
    "
18167
97f8391ddca3 class: SequenceableCollection
Claus Gittinger <cg@exept.de>
parents: 18160
diff changeset
  2924
97f8391ddca3 class: SequenceableCollection
Claus Gittinger <cg@exept.de>
parents: 18160
diff changeset
  2925
    "Modified (comment): / 31-05-2018 / 11:29:21 / Claus Gittinger"
18071
49baf0199f57 graph tab
Claus Gittinger <cg@exept.de>
parents: 18064
diff changeset
  2926
! !
49baf0199f57 graph tab
Claus Gittinger <cg@exept.de>
parents: 18064
diff changeset
  2927
49baf0199f57 graph tab
Claus Gittinger <cg@exept.de>
parents: 18064
diff changeset
  2928
!SequenceableCollection methodsFor:'inspecting'!
49baf0199f57 graph tab
Claus Gittinger <cg@exept.de>
parents: 18064
diff changeset
  2929
49baf0199f57 graph tab
Claus Gittinger <cg@exept.de>
parents: 18064
diff changeset
  2930
inspector2Tabs
18139
4f3c66d0dd31 graph tab - only if all numerical
Claus Gittinger <cg@exept.de>
parents: 18101
diff changeset
  2931
    "add a graph-tab; but only if all my values are numerical"
4f3c66d0dd31 graph tab - only if all numerical
Claus Gittinger <cg@exept.de>
parents: 18101
diff changeset
  2932
    
18071
49baf0199f57 graph tab
Claus Gittinger <cg@exept.de>
parents: 18064
diff changeset
  2933
    |tabs|
49baf0199f57 graph tab
Claus Gittinger <cg@exept.de>
parents: 18064
diff changeset
  2934
49baf0199f57 graph tab
Claus Gittinger <cg@exept.de>
parents: 18064
diff changeset
  2935
    tabs := super inspector2Tabs.
18139
4f3c66d0dd31 graph tab - only if all numerical
Claus Gittinger <cg@exept.de>
parents: 18101
diff changeset
  2936
    self isExternalBytes ifFalse:[
4f3c66d0dd31 graph tab - only if all numerical
Claus Gittinger <cg@exept.de>
parents: 18101
diff changeset
  2937
        self isString ifFalse:[
4f3c66d0dd31 graph tab - only if all numerical
Claus Gittinger <cg@exept.de>
parents: 18101
diff changeset
  2938
            self notEmpty ifTrue:[
18241
4e8bcd17ec55 changed: SequenceableCollection >> #inspector2Tabs
matilk
parents: 18195
diff changeset
  2939
                ((self noneSatisfy:#isProtoObject) 
4e8bcd17ec55 changed: SequenceableCollection >> #inspector2Tabs
matilk
parents: 18195
diff changeset
  2940
                and:[(self conform:#isNumber)
18167
97f8391ddca3 class: SequenceableCollection
Claus Gittinger <cg@exept.de>
parents: 18160
diff changeset
  2941
                or:[(self conform:#isTimeDuration)
18241
4e8bcd17ec55 changed: SequenceableCollection >> #inspector2Tabs
matilk
parents: 18195
diff changeset
  2942
                or:[(self conform:#isTimestamp)]]]) ifTrue:[
18139
4f3c66d0dd31 graph tab - only if all numerical
Claus Gittinger <cg@exept.de>
parents: 18101
diff changeset
  2943
                    tabs := tabs copyWith:#inspector2TabGraph
4f3c66d0dd31 graph tab - only if all numerical
Claus Gittinger <cg@exept.de>
parents: 18101
diff changeset
  2944
                ]
4f3c66d0dd31 graph tab - only if all numerical
Claus Gittinger <cg@exept.de>
parents: 18101
diff changeset
  2945
            ]
4f3c66d0dd31 graph tab - only if all numerical
Claus Gittinger <cg@exept.de>
parents: 18101
diff changeset
  2946
        ]
4f3c66d0dd31 graph tab - only if all numerical
Claus Gittinger <cg@exept.de>
parents: 18101
diff changeset
  2947
    ].
4f3c66d0dd31 graph tab - only if all numerical
Claus Gittinger <cg@exept.de>
parents: 18101
diff changeset
  2948
    ^ tabs
18167
97f8391ddca3 class: SequenceableCollection
Claus Gittinger <cg@exept.de>
parents: 18160
diff changeset
  2949
97f8391ddca3 class: SequenceableCollection
Claus Gittinger <cg@exept.de>
parents: 18160
diff changeset
  2950
    "
97f8391ddca3 class: SequenceableCollection
Claus Gittinger <cg@exept.de>
parents: 18160
diff changeset
  2951
     #(10 20 30 40 10 20 30 40) inspect
97f8391ddca3 class: SequenceableCollection
Claus Gittinger <cg@exept.de>
parents: 18160
diff changeset
  2952
    "
97f8391ddca3 class: SequenceableCollection
Claus Gittinger <cg@exept.de>
parents: 18160
diff changeset
  2953
97f8391ddca3 class: SequenceableCollection
Claus Gittinger <cg@exept.de>
parents: 18160
diff changeset
  2954
    "Modified (comment): / 31-05-2018 / 11:26:33 / Claus Gittinger"
18241
4e8bcd17ec55 changed: SequenceableCollection >> #inspector2Tabs
matilk
parents: 18195
diff changeset
  2955
    "Modified: / 25-06-2018 / 18:07:29 / Maren"
18071
49baf0199f57 graph tab
Claus Gittinger <cg@exept.de>
parents: 18064
diff changeset
  2956
! !
49baf0199f57 graph tab
Claus Gittinger <cg@exept.de>
parents: 18064
diff changeset
  2957
18195
963edd8d8cab inspector enhancements
Claus Gittinger <cg@exept.de>
parents: 18167
diff changeset
  2958
!SequenceableCollection methodsFor:'inspecting'!
963edd8d8cab inspector enhancements
Claus Gittinger <cg@exept.de>
parents: 18167
diff changeset
  2959
963edd8d8cab inspector enhancements
Claus Gittinger <cg@exept.de>
parents: 18167
diff changeset
  2960
inspectorExtraAttributes
963edd8d8cab inspector enhancements
Claus Gittinger <cg@exept.de>
parents: 18167
diff changeset
  2961
    |attrs|
963edd8d8cab inspector enhancements
Claus Gittinger <cg@exept.de>
parents: 18167
diff changeset
  2962
963edd8d8cab inspector enhancements
Claus Gittinger <cg@exept.de>
parents: 18167
diff changeset
  2963
    attrs := super inspectorExtraAttributes.
963edd8d8cab inspector enhancements
Claus Gittinger <cg@exept.de>
parents: 18167
diff changeset
  2964
    JSONPrinter notNil ifTrue:[
19353
adface297050 JSONPrinter
Claus Gittinger <cg@exept.de>
parents: 19323
diff changeset
  2965
        attrs add:('-JSON' -> [ JSONPrinter encodePrettyPrinted:self printLimit:(JSONPrinter defaultPrettyPrintLimit)  ])
18195
963edd8d8cab inspector enhancements
Claus Gittinger <cg@exept.de>
parents: 18167
diff changeset
  2966
    ].
963edd8d8cab inspector enhancements
Claus Gittinger <cg@exept.de>
parents: 18167
diff changeset
  2967
    ^ attrs
963edd8d8cab inspector enhancements
Claus Gittinger <cg@exept.de>
parents: 18167
diff changeset
  2968
963edd8d8cab inspector enhancements
Claus Gittinger <cg@exept.de>
parents: 18167
diff changeset
  2969
    "Created: / 12-06-2018 / 11:43:13 / Claus Gittinger"
963edd8d8cab inspector enhancements
Claus Gittinger <cg@exept.de>
parents: 18167
diff changeset
  2970
! !
963edd8d8cab inspector enhancements
Claus Gittinger <cg@exept.de>
parents: 18167
diff changeset
  2971
18540
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2972
!SequenceableCollection methodsFor:'inspecting'!
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2973
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2974
inspectorValueListIconFor:anInspector
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2975
    "returns the icon to be shown alongside the value list of an inspector"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2976
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2977
    self isEmpty ifTrue:[
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2978
        ^ anInspector imageFor_collections_empty
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2979
    ].    
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2980
    ^ anInspector imageFor_sequenceableCollections
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2981
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2982
    "Created: / 12-12-2018 / 16:20:30 / Claus Gittinger"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2983
! !
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  2984
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2985
!Set methodsFor:'misc ui support'!
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2986
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2987
inspectorClass
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2988
    "redefined to use SetInspector
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2989
     (instead of the default Inspector)."
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2990
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2991
    ^ SetInspectorView
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2992
! !
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  2993
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2994
!SharedPool class methodsFor:'misc ui support'!
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2995
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2996
iconInBrowserSymbol
16117
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
  2997
    "the browser will use this as index into the toolbariconlibrary"
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
  2998
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  2999
    <resource: #programImage>
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  3000
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  3001
    self == SharedPool ifTrue:[^ super iconInBrowserSymbol].
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  3002
    ^ #sharedPoolBrowserIcon
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  3003
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  3004
    "Created: / 14-10-2010 / 12:04:32 / cg"
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  3005
! !
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  3006
15964
253a0e9a6520 inspecting views
sr
parents: 15860
diff changeset
  3007
!SimpleView methodsFor:'inspecting'!
253a0e9a6520 inspecting views
sr
parents: 15860
diff changeset
  3008
253a0e9a6520 inspecting views
sr
parents: 15860
diff changeset
  3009
inspectorExtraAttributes
253a0e9a6520 inspecting views
sr
parents: 15860
diff changeset
  3010
    ^ super inspectorExtraAttributes
17415
207171d9b430 class: SimpleView
Claus Gittinger <cg@exept.de>
parents: 17299
diff changeset
  3011
        add:'-windowGroup' -> [ self windowGroup ];
207171d9b430 class: SimpleView
Claus Gittinger <cg@exept.de>
parents: 17299
diff changeset
  3012
        add:'-sensor' -> [ self sensor ];
207171d9b430 class: SimpleView
Claus Gittinger <cg@exept.de>
parents: 17299
diff changeset
  3013
        add:'-parent' -> [ self container ];
16937
f020ad4fe094 another pseudo attribute
Claus Gittinger <cg@exept.de>
parents: 16846
diff changeset
  3014
        add:'-hidden' -> [ self isHiddenOnRealize ];
16938
f3fca7c6b925 another pseudo attribute
Claus Gittinger <cg@exept.de>
parents: 16937
diff changeset
  3015
        add:'-enabled' -> [ self enabled ];
f3fca7c6b925 another pseudo attribute
Claus Gittinger <cg@exept.de>
parents: 16937
diff changeset
  3016
        
15964
253a0e9a6520 inspecting views
sr
parents: 15860
diff changeset
  3017
        yourself
17415
207171d9b430 class: SimpleView
Claus Gittinger <cg@exept.de>
parents: 17299
diff changeset
  3018
207171d9b430 class: SimpleView
Claus Gittinger <cg@exept.de>
parents: 17299
diff changeset
  3019
    "Modified: / 16-02-2017 / 18:34:31 / cg"
15964
253a0e9a6520 inspecting views
sr
parents: 15860
diff changeset
  3020
! !
253a0e9a6520 inspecting views
sr
parents: 15860
diff changeset
  3021
10724
b0d5a37decd9 category of: #isCodeView2
Claus Gittinger <cg@exept.de>
parents: 10702
diff changeset
  3022
!SimpleView methodsFor:'testing'!
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3023
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3024
isCodeView2
14917
2a69c6c4b65d comment
Claus Gittinger <cg@exept.de>
parents: 14834
diff changeset
  3025
    "codeview2 seems to require some extra hacks"
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3026
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3027
    ^ false
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3028
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3029
    "Created: / 20-07-2010 / 15:42:28 / Jan Vrany <jan.vrany@fit.cvut.cz>"
9673
c590ef71ca2a sharedpool inspector
Claus Gittinger <cg@exept.de>
parents: 9324
diff changeset
  3030
! !
c590ef71ca2a sharedpool inspector
Claus Gittinger <cg@exept.de>
parents: 9324
diff changeset
  3031
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  3032
!SimpleView class methodsFor:'misc ui support'!
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  3033
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  3034
iconInBrowserSymbol
16117
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
  3035
    "the browser will use this as index into the toolbariconlibrary"
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
  3036
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  3037
    <resource: #programImage>
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  3038
16184
Claus Gittinger <cg@exept.de>
parents: 16131
diff changeset
  3039
    self isAbstract ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 16131
diff changeset
  3040
        ^ #abstractWindowClassBrowserIcon
Claus Gittinger <cg@exept.de>
parents: 16131
diff changeset
  3041
    ].    
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  3042
    ^ #windowClassBrowserIcon
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  3043
! !
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  3044
18967
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3045
!SmallDictionary methodsFor:'inspecting'!
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3046
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3047
inspector2TabLabel
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3048
    "label of the main tab"
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3049
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3050
    ^ 'SmallDictionary'
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3051
! !
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3052
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3053
!SmallDictionary methodsFor:'inspecting'!
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3054
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3055
inspectorExtraAttributes
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3056
    |attrs|
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3057
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3058
    attrs := super inspectorExtraAttributes.
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3059
    JSONPrinter notNil ifTrue:[
19353
adface297050 JSONPrinter
Claus Gittinger <cg@exept.de>
parents: 19323
diff changeset
  3060
        attrs add:('-JSON' -> [ JSONPrinter encodePrettyPrinted:self printLimit:(JSONPrinter defaultPrettyPrintLimit) ])
18967
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3061
    ].
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3062
    ^ attrs
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3063
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3064
    "Created: / 12-06-2018 / 11:43:57 / Claus Gittinger"
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3065
! !
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3066
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3067
!SmallDictionary methodsFor:'inspecting'!
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3068
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3069
inspectorValueListIconFor:anInspector
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3070
    "returns the icon to be shown alongside the value list of an inspector"
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3071
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3072
    self isEmpty ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3073
        ^ anInspector imageFor_collections_empty
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3074
    ].    
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3075
    ^ anInspector imageFor_dictionaries
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3076
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3077
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3078
! !
Claus Gittinger <cg@exept.de>
parents: 18948
diff changeset
  3079
15790
659c95ac77f2 integer extra attributes
Claus Gittinger <cg@exept.de>
parents: 15779
diff changeset
  3080
!SmallInteger methodsFor:'inspecting'!
659c95ac77f2 integer extra attributes
Claus Gittinger <cg@exept.de>
parents: 15779
diff changeset
  3081
659c95ac77f2 integer extra attributes
Claus Gittinger <cg@exept.de>
parents: 15779
diff changeset
  3082
inspectorExtraAttributes
659c95ac77f2 integer extra attributes
Claus Gittinger <cg@exept.de>
parents: 15779
diff changeset
  3083
    "extra (pseudo instvar) entries to be shown in an inspector."
659c95ac77f2 integer extra attributes
Claus Gittinger <cg@exept.de>
parents: 15779
diff changeset
  3084
659c95ac77f2 integer extra attributes
Claus Gittinger <cg@exept.de>
parents: 15779
diff changeset
  3085
    |extra|
659c95ac77f2 integer extra attributes
Claus Gittinger <cg@exept.de>
parents: 15779
diff changeset
  3086
    
659c95ac77f2 integer extra attributes
Claus Gittinger <cg@exept.de>
parents: 15779
diff changeset
  3087
    extra := super inspectorExtraAttributes.
659c95ac77f2 integer extra attributes
Claus Gittinger <cg@exept.de>
parents: 15779
diff changeset
  3088
    self < 0 ifTrue:[
659c95ac77f2 integer extra attributes
Claus Gittinger <cg@exept.de>
parents: 15779
diff changeset
  3089
        extra     
659c95ac77f2 integer extra attributes
Claus Gittinger <cg@exept.de>
parents: 15779
diff changeset
  3090
            add:'-hexadecimal (unsigned)' -> [ self asUnsignedInt radixPrintStringRadix:16 ].
659c95ac77f2 integer extra attributes
Claus Gittinger <cg@exept.de>
parents: 15779
diff changeset
  3091
    ].
659c95ac77f2 integer extra attributes
Claus Gittinger <cg@exept.de>
parents: 15779
diff changeset
  3092
    ^ extra
659c95ac77f2 integer extra attributes
Claus Gittinger <cg@exept.de>
parents: 15779
diff changeset
  3093
659c95ac77f2 integer extra attributes
Claus Gittinger <cg@exept.de>
parents: 15779
diff changeset
  3094
    "
659c95ac77f2 integer extra attributes
Claus Gittinger <cg@exept.de>
parents: 15779
diff changeset
  3095
     123 inspect
659c95ac77f2 integer extra attributes
Claus Gittinger <cg@exept.de>
parents: 15779
diff changeset
  3096
     -123 inspect
659c95ac77f2 integer extra attributes
Claus Gittinger <cg@exept.de>
parents: 15779
diff changeset
  3097
    "
659c95ac77f2 integer extra attributes
Claus Gittinger <cg@exept.de>
parents: 15779
diff changeset
  3098
659c95ac77f2 integer extra attributes
Claus Gittinger <cg@exept.de>
parents: 15779
diff changeset
  3099
    "Created: / 18-09-2006 / 21:22:46 / cg"
659c95ac77f2 integer extra attributes
Claus Gittinger <cg@exept.de>
parents: 15779
diff changeset
  3100
    "Modified: / 06-10-2006 / 13:57:28 / cg"
659c95ac77f2 integer extra attributes
Claus Gittinger <cg@exept.de>
parents: 15779
diff changeset
  3101
! !
659c95ac77f2 integer extra attributes
Claus Gittinger <cg@exept.de>
parents: 15779
diff changeset
  3102
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  3103
!Smalltalk class methodsFor:'misc ui support'!
12623
9b17ce85cb91 class: Smalltalk
Claus Gittinger <cg@exept.de>
parents: 12581
diff changeset
  3104
9b17ce85cb91 class: Smalltalk
Claus Gittinger <cg@exept.de>
parents: 12581
diff changeset
  3105
inspectorClass
9b17ce85cb91 class: Smalltalk
Claus Gittinger <cg@exept.de>
parents: 12581
diff changeset
  3106
    "redefined to use DictionaryInspector
9b17ce85cb91 class: Smalltalk
Claus Gittinger <cg@exept.de>
parents: 12581
diff changeset
  3107
     (instead of the default Inspector)."
9b17ce85cb91 class: Smalltalk
Claus Gittinger <cg@exept.de>
parents: 12581
diff changeset
  3108
9b17ce85cb91 class: Smalltalk
Claus Gittinger <cg@exept.de>
parents: 12581
diff changeset
  3109
    ^ DictionaryInspectorView
9b17ce85cb91 class: Smalltalk
Claus Gittinger <cg@exept.de>
parents: 12581
diff changeset
  3110
! !
9b17ce85cb91 class: Smalltalk
Claus Gittinger <cg@exept.de>
parents: 12581
diff changeset
  3111
16359
de0eabae664c class: BrowserView
Claus Gittinger <cg@exept.de>
parents: 16357
diff changeset
  3112
!SmalltalkLanguage methodsFor:'accessing-classes'!
14698
cad037e21687 For Smalltalk code, use SmalltalkCodeGenerator as an compiler for interactive tools.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14641
diff changeset
  3113
cad037e21687 For Smalltalk code, use SmalltalkCodeGenerator as an compiler for interactive tools.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14641
diff changeset
  3114
compilerClassForInteractiveTools
cad037e21687 For Smalltalk code, use SmalltalkCodeGenerator as an compiler for interactive tools.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14641
diff changeset
  3115
    "Answer a compiler class suitable for usage in interactive tools. 
cad037e21687 For Smalltalk code, use SmalltalkCodeGenerator as an compiler for interactive tools.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14641
diff changeset
  3116
     Such class may better integrate into the IDE and register for undo/redo
cad037e21687 For Smalltalk code, use SmalltalkCodeGenerator as an compiler for interactive tools.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14641
diff changeset
  3117
     and/or do more checks and so on. Defaults to #compilerClass"
cad037e21687 For Smalltalk code, use SmalltalkCodeGenerator as an compiler for interactive tools.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14641
diff changeset
  3118
cad037e21687 For Smalltalk code, use SmalltalkCodeGenerator as an compiler for interactive tools.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14641
diff changeset
  3119
    ^ SmalltalkCodeGeneratorTool
cad037e21687 For Smalltalk code, use SmalltalkCodeGenerator as an compiler for interactive tools.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14641
diff changeset
  3120
cad037e21687 For Smalltalk code, use SmalltalkCodeGenerator as an compiler for interactive tools.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14641
diff changeset
  3121
    "Created: / 05-08-2014 / 16:01:37 / Jan Vrany <jan.vrany@fit.cvut.cz>"
cad037e21687 For Smalltalk code, use SmalltalkCodeGenerator as an compiler for interactive tools.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14641
diff changeset
  3122
! !
cad037e21687 For Smalltalk code, use SmalltalkCodeGenerator as an compiler for interactive tools.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 14641
diff changeset
  3123
15798
bd3851a2a3c7 SocketAddress>>#inspectorValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 15790
diff changeset
  3124
!SocketAddress methodsFor:'printing & storing'!
bd3851a2a3c7 SocketAddress>>#inspectorValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 15790
diff changeset
  3125
bd3851a2a3c7 SocketAddress>>#inspectorValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 15790
diff changeset
  3126
inspectorValueStringInListFor:anInspector
bd3851a2a3c7 SocketAddress>>#inspectorValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 15790
diff changeset
  3127
    "returns a string to be shown in the inspector's list"
bd3851a2a3c7 SocketAddress>>#inspectorValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 15790
diff changeset
  3128
bd3851a2a3c7 SocketAddress>>#inspectorValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 15790
diff changeset
  3129
    ^ self printString
bd3851a2a3c7 SocketAddress>>#inspectorValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 15790
diff changeset
  3130
! !
bd3851a2a3c7 SocketAddress>>#inspectorValueStringInListFor:
Stefan Vogel <sv@exept.de>
parents: 15790
diff changeset
  3131
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  3132
!StandaloneStartup class methodsFor:'misc ui support'!
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  3133
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  3134
iconInBrowserSymbol
16117
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
  3135
    "the browser will use this as index into the toolbariconlibrary"
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
  3136
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  3137
    <resource: #programImage>
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  3138
16234
Claus Gittinger <cg@exept.de>
parents: 16184
diff changeset
  3139
    false "self isAbstract" ifFalse:[
Claus Gittinger <cg@exept.de>
parents: 16184
diff changeset
  3140
        self isHeadless ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 16184
diff changeset
  3141
            ^ #standaloneStartupHeadlessIcon 
Claus Gittinger <cg@exept.de>
parents: 16184
diff changeset
  3142
        ].
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  3143
        ^ #standaloneStartupIcon 
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  3144
    ].
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  3145
    ^ super iconInBrowserSymbol
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  3146
! !
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  3147
10313
a2f4e3f74efe category
Claus Gittinger <cg@exept.de>
parents: 10310
diff changeset
  3148
!StringCollection methodsFor:'inspecting'!
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3149
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3150
inspector2TabText
18385
3ca2ff019f77 class: SOAP::SpwSoapEnvelope
Claus Gittinger <cg@exept.de>
parents: 18383
diff changeset
  3151
    <inspector2Tab>
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3152
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3153
    ^self newInspector2Tab
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3154
        label: 'String';
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3155
        priority: 25;
18523
c6718fc416d8 changed: #inspector2Tabs
Claus Gittinger <cg@exept.de>
parents: 18462
diff changeset
  3156
        view: ((HVScrollableView for:TextView) 
c6718fc416d8 changed: #inspector2Tabs
Claus Gittinger <cg@exept.de>
parents: 18462
diff changeset
  3157
                autoHideScrollBars:true;        
c6718fc416d8 changed: #inspector2Tabs
Claus Gittinger <cg@exept.de>
parents: 18462
diff changeset
  3158
                contents: self asString; 
c6718fc416d8 changed: #inspector2Tabs
Claus Gittinger <cg@exept.de>
parents: 18462
diff changeset
  3159
                yourself)
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3160
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3161
    "Created: / 17-02-2008 / 10:13:07 / janfrog"
18523
c6718fc416d8 changed: #inspector2Tabs
Claus Gittinger <cg@exept.de>
parents: 18462
diff changeset
  3162
    "Modified: / 11-11-2018 / 12:16:07 / Claus Gittinger"
10164
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  3163
! !
0a7e3e312a89 changed: #inspect:
Claus Gittinger <cg@exept.de>
parents: 10120
diff changeset
  3164
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3165
!Symbol methodsFor:'accessing'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3166
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3167
formattedCode
14636
9897e80f8a62 class: Symbol
Claus Gittinger <cg@exept.de>
parents: 14626
diff changeset
  3168
    "private helper for the CodeGenerator"
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3169
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3170
    ^self
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3171
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3172
    "Created: / 07-07-2009 / 20:03:21 / Jan Vrany <vranyj1@fel.cvut.cz>"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3173
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3174
11773
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  3175
!Symbol methodsFor:'inspecting'!
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  3176
18540
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3177
inspectorValueListIconFor:anInspector
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3178
    "returns the icon to be shown alongside the value list of an inspector"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3179
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3180
    ^ anInspector imageFor_symbols
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3181
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3182
    "Created: / 12-12-2018 / 16:16:55 / Claus Gittinger"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3183
! !
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3184
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3185
!Symbol methodsFor:'inspecting'!
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3186
11773
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  3187
inspectorValueStringInListFor:anInspector
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  3188
    "returns a string to be shown in the inspector's list"
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  3189
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  3190
    ^ self storeString
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  3191
! !
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  3192
10313
a2f4e3f74efe category
Claus Gittinger <cg@exept.de>
parents: 10310
diff changeset
  3193
!Text methodsFor:'inspecting'!
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3194
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3195
inspector2TabText
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3196
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3197
    ^self newInspector2Tab
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3198
        label: 'Text';
10637
1114ddcf69f7 variable renamed in: #inspector2TabBytes
Claus Gittinger <cg@exept.de>
parents: 10527
diff changeset
  3199
        priority: 50;
18523
c6718fc416d8 changed: #inspector2Tabs
Claus Gittinger <cg@exept.de>
parents: 18462
diff changeset
  3200
        view: ((HVScrollableView for:EditTextView) 
c6718fc416d8 changed: #inspector2Tabs
Claus Gittinger <cg@exept.de>
parents: 18462
diff changeset
  3201
                autoHideScrollBars:true;
c6718fc416d8 changed: #inspector2Tabs
Claus Gittinger <cg@exept.de>
parents: 18462
diff changeset
  3202
                contents: self; 
c6718fc416d8 changed: #inspector2Tabs
Claus Gittinger <cg@exept.de>
parents: 18462
diff changeset
  3203
                yourself)
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3204
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3205
    "Created: / 17-02-2008 / 09:03:36 / janfrog"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3206
    "Modified: / 17-02-2008 / 10:28:33 / janfrog"
10637
1114ddcf69f7 variable renamed in: #inspector2TabBytes
Claus Gittinger <cg@exept.de>
parents: 10527
diff changeset
  3207
    "Modified: / 21-08-2011 / 08:02:46 / cg"
18523
c6718fc416d8 changed: #inspector2Tabs
Claus Gittinger <cg@exept.de>
parents: 18462
diff changeset
  3208
    "Modified: / 11-11-2018 / 12:19:03 / Claus Gittinger"
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3209
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3210
7754
7c76e5708dfa oops - got corrupted
Claus Gittinger <cg@exept.de>
parents: 7753
diff changeset
  3211
!Text methodsFor:'inspecting'!
7c76e5708dfa oops - got corrupted
Claus Gittinger <cg@exept.de>
parents: 7753
diff changeset
  3212
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  3213
inspectorExtraAttributes
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  3214
    "extra (pseudo instvar) entries to be shown in an inspector."
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  3215
13639
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
  3216
    ^ super inspectorExtraAttributes
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
  3217
        add:'-text' -> [ self ];
c3544245d01b #inspectorExtraAttributes
Stefan Vogel <sv@exept.de>
parents: 13504
diff changeset
  3218
        yourself
8843
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  3219
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  3220
    "
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  3221
     'hello' allBold inspect
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  3222
    "
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  3223
Claus Gittinger <cg@exept.de>
parents: 8839
diff changeset
  3224
    "Created: / 18-09-2006 / 21:25:52 / cg"
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
  3225
    "Modified: / 18-07-2017 / 19:59:04 / cg"
7299
efa954fda5c1 inspector code now as extension
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
  3226
! !
8918
230356e1b722 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8844
diff changeset
  3227
16653
Claus Gittinger <cg@exept.de>
parents: 16565
diff changeset
  3228
!Time methodsFor:'printing & storing'!
Claus Gittinger <cg@exept.de>
parents: 16565
diff changeset
  3229
Claus Gittinger <cg@exept.de>
parents: 16565
diff changeset
  3230
inspectorValueStringInListFor:anInspector
Claus Gittinger <cg@exept.de>
parents: 16565
diff changeset
  3231
    "returns a string to be shown in the inspector's list"
Claus Gittinger <cg@exept.de>
parents: 16565
diff changeset
  3232
Claus Gittinger <cg@exept.de>
parents: 16565
diff changeset
  3233
    ^ self printString
Claus Gittinger <cg@exept.de>
parents: 16565
diff changeset
  3234
! !
Claus Gittinger <cg@exept.de>
parents: 16565
diff changeset
  3235
18809
bf501752d76b class: Tools::NewSystemBrowser class
Claus Gittinger <cg@exept.de>
parents: 18801
diff changeset
  3236
!TimeDuration methodsFor:'inspecting'!
bf501752d76b class: Tools::NewSystemBrowser class
Claus Gittinger <cg@exept.de>
parents: 18801
diff changeset
  3237
bf501752d76b class: Tools::NewSystemBrowser class
Claus Gittinger <cg@exept.de>
parents: 18801
diff changeset
  3238
inspectorExtraAttributes
bf501752d76b class: Tools::NewSystemBrowser class
Claus Gittinger <cg@exept.de>
parents: 18801
diff changeset
  3239
    "extra (pseudo instvar) entries to be shown in an inspector."
bf501752d76b class: Tools::NewSystemBrowser class
Claus Gittinger <cg@exept.de>
parents: 18801
diff changeset
  3240
bf501752d76b class: Tools::NewSystemBrowser class
Claus Gittinger <cg@exept.de>
parents: 18801
diff changeset
  3241
    |attrs|
bf501752d76b class: Tools::NewSystemBrowser class
Claus Gittinger <cg@exept.de>
parents: 18801
diff changeset
  3242
bf501752d76b class: Tools::NewSystemBrowser class
Claus Gittinger <cg@exept.de>
parents: 18801
diff changeset
  3243
    attrs := super inspectorExtraAttributes.
bf501752d76b class: Tools::NewSystemBrowser class
Claus Gittinger <cg@exept.de>
parents: 18801
diff changeset
  3244
    attrs
bf501752d76b class: Tools::NewSystemBrowser class
Claus Gittinger <cg@exept.de>
parents: 18801
diff changeset
  3245
        add:'-asSeconds'   -> [ self asSeconds ].
bf501752d76b class: Tools::NewSystemBrowser class
Claus Gittinger <cg@exept.de>
parents: 18801
diff changeset
  3246
    self < 2 seconds ifTrue:[    
bf501752d76b class: Tools::NewSystemBrowser class
Claus Gittinger <cg@exept.de>
parents: 18801
diff changeset
  3247
        attrs
bf501752d76b class: Tools::NewSystemBrowser class
Claus Gittinger <cg@exept.de>
parents: 18801
diff changeset
  3248
            add:'-asMilliseconds'   -> [ self asMilliseconds ].
bf501752d76b class: Tools::NewSystemBrowser class
Claus Gittinger <cg@exept.de>
parents: 18801
diff changeset
  3249
    ].
bf501752d76b class: Tools::NewSystemBrowser class
Claus Gittinger <cg@exept.de>
parents: 18801
diff changeset
  3250
    ^ attrs
bf501752d76b class: Tools::NewSystemBrowser class
Claus Gittinger <cg@exept.de>
parents: 18801
diff changeset
  3251
bf501752d76b class: Tools::NewSystemBrowser class
Claus Gittinger <cg@exept.de>
parents: 18801
diff changeset
  3252
    "Created: / 07-06-2019 / 11:32:32 / Claus Gittinger"
bf501752d76b class: Tools::NewSystemBrowser class
Claus Gittinger <cg@exept.de>
parents: 18801
diff changeset
  3253
! !
bf501752d76b class: Tools::NewSystemBrowser class
Claus Gittinger <cg@exept.de>
parents: 18801
diff changeset
  3254
9691
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  3255
!Timestamp methodsFor:'inspecting'!
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  3256
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  3257
inspectorExtraAttributes
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  3258
    "extra (pseudo instvar) entries to be shown in an inspector."
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  3259
18101
c9e2739791ac more values
Claus Gittinger <cg@exept.de>
parents: 18100
diff changeset
  3260
    |attrs|
c9e2739791ac more values
Claus Gittinger <cg@exept.de>
parents: 18100
diff changeset
  3261
c9e2739791ac more values
Claus Gittinger <cg@exept.de>
parents: 18100
diff changeset
  3262
    attrs := super inspectorExtraAttributes.
c9e2739791ac more values
Claus Gittinger <cg@exept.de>
parents: 18100
diff changeset
  3263
    attrs
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
  3264
        add:'-dayInWeek'   -> [ self dayInWeek printString , ' "', self asDate dayOfWeekName , '"' ];
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
  3265
        add:'-dayInYear'   -> [ self dayInYear ];
9691
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  3266
        add:'-daysInMonth' -> [ self asDate daysInMonth ];
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
  3267
        add:'-monthName'   -> [ self asDate monthName ];
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
  3268
        add:'-weekNr'      -> [ self asDate weekInYear ];
18812
a846e717bd52 tz inspetor fields
Claus Gittinger <cg@exept.de>
parents: 18809
diff changeset
  3269
        add:'-leapYear'    -> [ self asDate isLeapYear ].
a846e717bd52 tz inspetor fields
Claus Gittinger <cg@exept.de>
parents: 18809
diff changeset
  3270
    self isUtcTimestamp ifTrue:[
a846e717bd52 tz inspetor fields
Claus Gittinger <cg@exept.de>
parents: 18809
diff changeset
  3271
        attrs add:'-iso8601'      -> [ self printStringIso8601 ].
a846e717bd52 tz inspetor fields
Claus Gittinger <cg@exept.de>
parents: 18809
diff changeset
  3272
        attrs add:'-rfc1123'      -> [ self asUtcTimestamp printStringRFC1123Format ].
a846e717bd52 tz inspetor fields
Claus Gittinger <cg@exept.de>
parents: 18809
diff changeset
  3273
    ] ifFalse:[    
a846e717bd52 tz inspetor fields
Claus Gittinger <cg@exept.de>
parents: 18809
diff changeset
  3274
        attrs add:'-iso8601 (utc)'-> [ self asUtcTimestamp printStringIso8601 ].
a846e717bd52 tz inspetor fields
Claus Gittinger <cg@exept.de>
parents: 18809
diff changeset
  3275
        attrs add:'-iso8601 (tz)' -> [ self printStringIso8601 ].
a846e717bd52 tz inspetor fields
Claus Gittinger <cg@exept.de>
parents: 18809
diff changeset
  3276
        attrs add:'-rfc1123 (GMT)'-> [ self asUtcTimestamp printStringRFC1123Format ].
a846e717bd52 tz inspetor fields
Claus Gittinger <cg@exept.de>
parents: 18809
diff changeset
  3277
    ]. 
18101
c9e2739791ac more values
Claus Gittinger <cg@exept.de>
parents: 18100
diff changeset
  3278
    self milliseconds ~~ 0 ifTrue:[ 
c9e2739791ac more values
Claus Gittinger <cg@exept.de>
parents: 18100
diff changeset
  3279
        attrs add:'-millisecond' -> [ self milliseconds ].
c9e2739791ac more values
Claus Gittinger <cg@exept.de>
parents: 18100
diff changeset
  3280
    ].
c9e2739791ac more values
Claus Gittinger <cg@exept.de>
parents: 18100
diff changeset
  3281
    (self microseconds \\ 1000) ~~ 0 ifTrue:[ 
c9e2739791ac more values
Claus Gittinger <cg@exept.de>
parents: 18100
diff changeset
  3282
        attrs add:'-microsecond' -> [ self microseconds ].
c9e2739791ac more values
Claus Gittinger <cg@exept.de>
parents: 18100
diff changeset
  3283
    ].
c9e2739791ac more values
Claus Gittinger <cg@exept.de>
parents: 18100
diff changeset
  3284
    (self nanoseconds \\ 1000000) ~~ 0 ifTrue:[ 
c9e2739791ac more values
Claus Gittinger <cg@exept.de>
parents: 18100
diff changeset
  3285
        attrs add:'-nanosecond'  -> [ self nanoseconds ].
c9e2739791ac more values
Claus Gittinger <cg@exept.de>
parents: 18100
diff changeset
  3286
    ].
c9e2739791ac more values
Claus Gittinger <cg@exept.de>
parents: 18100
diff changeset
  3287
    (self picoseconds \\ 1000000000) ~~ 0 ifTrue:[ 
c9e2739791ac more values
Claus Gittinger <cg@exept.de>
parents: 18100
diff changeset
  3288
        attrs add:'-picosecond'  -> [ self picoseconds ].
c9e2739791ac more values
Claus Gittinger <cg@exept.de>
parents: 18100
diff changeset
  3289
    ].
c9e2739791ac more values
Claus Gittinger <cg@exept.de>
parents: 18100
diff changeset
  3290
    ^ attrs
9691
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  3291
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  3292
    "
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  3293
     Timestamp now inspect
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  3294
    "
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  3295
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  3296
    "Created: / 20-01-2011 / 12:19:05 / cg"
17592
Claus Gittinger <cg@exept.de>
parents: 17591
diff changeset
  3297
    "Modified (format): / 18-07-2017 / 19:54:31 / cg"
18812
a846e717bd52 tz inspetor fields
Claus Gittinger <cg@exept.de>
parents: 18809
diff changeset
  3298
    "Modified: / 07-06-2019 / 12:18:00 / Claus Gittinger"
9691
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  3299
! !
312706640f5c better date and timestamp inspecting
Claus Gittinger <cg@exept.de>
parents: 9673
diff changeset
  3300
12852
bbe17cc4f9aa Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12851
diff changeset
  3301
!Timestamp methodsFor:'inspecting'!
bbe17cc4f9aa Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12851
diff changeset
  3302
bbe17cc4f9aa Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12851
diff changeset
  3303
inspectorValueStringInListFor:anInspector
bbe17cc4f9aa Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12851
diff changeset
  3304
    "returns a string to be shown in the inspector's list"
bbe17cc4f9aa Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12851
diff changeset
  3305
bbe17cc4f9aa Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12851
diff changeset
  3306
    ^ self printString
bbe17cc4f9aa Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12851
diff changeset
  3307
! !
bbe17cc4f9aa Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12851
diff changeset
  3308
18540
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3309
!True methodsFor:'inspecting'!
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3310
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3311
inspectorValueListIconFor:anInspector
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3312
    "returns the icon to be shown alongside the value list of an inspector"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3313
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3314
    ^ anInspector imageFor_true
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3315
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3316
    "Created: / 12-12-2018 / 16:05:51 / Claus Gittinger"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3317
! !
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3318
12852
bbe17cc4f9aa Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12851
diff changeset
  3319
!UUID methodsFor:'inspecting'!
bbe17cc4f9aa Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12851
diff changeset
  3320
bbe17cc4f9aa Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12851
diff changeset
  3321
inspectorValueStringInListFor:anInspector
bbe17cc4f9aa Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12851
diff changeset
  3322
    "returns a string to be shown in the inspector's list"
bbe17cc4f9aa Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12851
diff changeset
  3323
bbe17cc4f9aa Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12851
diff changeset
  3324
    ^ self printString
bbe17cc4f9aa Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12851
diff changeset
  3325
! !
bbe17cc4f9aa Fix stc compiler warnings
Stefan Vogel <sv@exept.de>
parents: 12851
diff changeset
  3326
11773
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  3327
!UndefinedObject methodsFor:'inspecting'!
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  3328
18540
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3329
inspectorValueListIconFor:anInspector
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3330
    "returns the icon to be shown alongside the value list of an inspector"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3331
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3332
    ^ anInspector imageFor_nil
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3333
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3334
    "Created: / 12-12-2018 / 16:04:31 / Claus Gittinger"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3335
! !
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3336
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3337
!UndefinedObject methodsFor:'inspecting'!
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  3338
11773
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  3339
inspectorValueStringInListFor:anInspector
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  3340
    "returns a string to be shown in the inspector's list"
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  3341
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  3342
    ^ 'nil'
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  3343
! !
Claus Gittinger <cg@exept.de>
parents: 11723
diff changeset
  3344
11283
Claus Gittinger <cg@exept.de>
parents: 11282
diff changeset
  3345
!UninterpretedBytes methodsFor:'inspecting'!
11264
b04b1d06f4be hex dump in integerarray
Claus Gittinger <cg@exept.de>
parents: 11263
diff changeset
  3346
b04b1d06f4be hex dump in integerarray
Claus Gittinger <cg@exept.de>
parents: 11263
diff changeset
  3347
inspector2Tabs
15285
292d95b373b7 Fixed #inspector2Tabs method: always call 'super inspector2Tabs'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15271
diff changeset
  3348
    ^ super inspector2Tabs , #( inspector2TabForHexDump )
11264
b04b1d06f4be hex dump in integerarray
Claus Gittinger <cg@exept.de>
parents: 11263
diff changeset
  3349
11283
Claus Gittinger <cg@exept.de>
parents: 11282
diff changeset
  3350
    "Created: / 27-02-2012 / 21:51:36 / cg"
15285
292d95b373b7 Fixed #inspector2Tabs method: always call 'super inspector2Tabs'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15271
diff changeset
  3351
    "Modified: / 13-02-2015 / 21:03:19 / Jan Vrany <jan.vrany@fit.cvut.cz>"
11264
b04b1d06f4be hex dump in integerarray
Claus Gittinger <cg@exept.de>
parents: 11263
diff changeset
  3352
! !
b04b1d06f4be hex dump in integerarray
Claus Gittinger <cg@exept.de>
parents: 11263
diff changeset
  3353
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3354
!UserPreferences methodsFor:'accessing-prefs-browser'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3355
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3356
alwaysOpenNewTabWhenCtrlClick
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3357
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3358
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3359
        UserPreferences current alwaysOpenNewTabWhenCtrlClick 
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3360
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3361
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3362
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3363
    ^ self at:#alwaysOpenNewTabWhenCtrlClick ifAbsent:false.
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3364
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3365
    "Created: / 19-10-2008 / 08:00:53 / Jan Vrany <vranyj1@fel.cvut.cz>"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3366
    "Modified: / 14-02-2010 / 19:37:01 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3367
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3368
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3369
!UserPreferences methodsFor:'accessing-prefs-browser'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3370
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3371
alwaysOpenNewTabWhenCtrlClick: aBoolean
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3372
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3373
    self at:#alwaysOpenNewTabWhenCtrlClick put: aBoolean
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3374
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3375
    "Created: / 19-10-2008 / 08:01:45 / Jan Vrany <vranyj1@fel.cvut.cz>"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3376
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3377
13887
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3378
!UserPreferences methodsFor:'accessing-pref''d tools'!
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3379
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3380
changesBrowserClassName
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3381
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3382
    ^ self
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3383
	at: #changesBrowserClassName
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3384
	ifAbsent:[self changesBrowserClass name]."/Backward comparibility
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3385
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3386
    "Created: / 03-04-2012 / 11:02:33 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3387
! !
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3388
12788
6313ab46a73c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12781
diff changeset
  3389
!UserPreferences methodsFor:'obsolete'!
10525
4114204ee980 Added preference for auto indent in CodeView
vrany
parents: 10522
diff changeset
  3390
4114204ee980 Added preference for auto indent in CodeView
vrany
parents: 10522
diff changeset
  3391
codeView2AutoIndent
12788
6313ab46a73c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12781
diff changeset
  3392
    <resource: #obsolete>
10525
4114204ee980 Added preference for auto indent in CodeView
vrany
parents: 10522
diff changeset
  3393
4114204ee980 Added preference for auto indent in CodeView
vrany
parents: 10522
diff changeset
  3394
    ^self at:#codeView2AutoIndent ifAbsent: false
4114204ee980 Added preference for auto indent in CodeView
vrany
parents: 10522
diff changeset
  3395
4114204ee980 Added preference for auto indent in CodeView
vrany
parents: 10522
diff changeset
  3396
    "
4114204ee980 Added preference for auto indent in CodeView
vrany
parents: 10522
diff changeset
  3397
     UserPreferences current codeView2AutoIndent 
4114204ee980 Added preference for auto indent in CodeView
vrany
parents: 10522
diff changeset
  3398
     UserPreferences current codeView2AutoIndent:true 
4114204ee980 Added preference for auto indent in CodeView
vrany
parents: 10522
diff changeset
  3399
     UserPreferences current codeView2AutoIndent:false"
4114204ee980 Added preference for auto indent in CodeView
vrany
parents: 10522
diff changeset
  3400
4114204ee980 Added preference for auto indent in CodeView
vrany
parents: 10522
diff changeset
  3401
    "Modified: / 15-02-2010 / 09:26:16 / Jan Vrany <jan.vrany@fit.cvut.cz>"
4114204ee980 Added preference for auto indent in CodeView
vrany
parents: 10522
diff changeset
  3402
    "Created: / 07-08-2011 / 12:46:59 / Jan Vrany <jan.vrany@fit.cvut.cz>"
4114204ee980 Added preference for auto indent in CodeView
vrany
parents: 10522
diff changeset
  3403
! !
4114204ee980 Added preference for auto indent in CodeView
vrany
parents: 10522
diff changeset
  3404
12788
6313ab46a73c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12781
diff changeset
  3405
!UserPreferences methodsFor:'obsolete'!
10525
4114204ee980 Added preference for auto indent in CodeView
vrany
parents: 10522
diff changeset
  3406
4114204ee980 Added preference for auto indent in CodeView
vrany
parents: 10522
diff changeset
  3407
codeView2AutoIndent: aBoolean
12788
6313ab46a73c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12781
diff changeset
  3408
    <resource: #obsolete>
10525
4114204ee980 Added preference for auto indent in CodeView
vrany
parents: 10522
diff changeset
  3409
4114204ee980 Added preference for auto indent in CodeView
vrany
parents: 10522
diff changeset
  3410
    ^self at:#codeView2AutoIndent put: aBoolean
4114204ee980 Added preference for auto indent in CodeView
vrany
parents: 10522
diff changeset
  3411
4114204ee980 Added preference for auto indent in CodeView
vrany
parents: 10522
diff changeset
  3412
    "
4114204ee980 Added preference for auto indent in CodeView
vrany
parents: 10522
diff changeset
  3413
     UserPreferences current codeView2AutoIndent 
4114204ee980 Added preference for auto indent in CodeView
vrany
parents: 10522
diff changeset
  3414
     UserPreferences current codeView2AutoIndent:true 
4114204ee980 Added preference for auto indent in CodeView
vrany
parents: 10522
diff changeset
  3415
     UserPreferences current codeView2AutoIndent:false"
4114204ee980 Added preference for auto indent in CodeView
vrany
parents: 10522
diff changeset
  3416
4114204ee980 Added preference for auto indent in CodeView
vrany
parents: 10522
diff changeset
  3417
    "Modified: / 15-02-2010 / 09:26:16 / Jan Vrany <jan.vrany@fit.cvut.cz>"
4114204ee980 Added preference for auto indent in CodeView
vrany
parents: 10522
diff changeset
  3418
    "Created: / 07-08-2011 / 12:47:09 / Jan Vrany <jan.vrany@fit.cvut.cz>"
4114204ee980 Added preference for auto indent in CodeView
vrany
parents: 10522
diff changeset
  3419
! !
4114204ee980 Added preference for auto indent in CodeView
vrany
parents: 10522
diff changeset
  3420
10795
6f44639ec301 Added user preference to control default accept/cancel bar visibility
vrany
parents: 10779
diff changeset
  3421
!UserPreferences methodsFor:'accessing-prefs-code view'!
6f44639ec301 Added user preference to control default accept/cancel bar visibility
vrany
parents: 10779
diff changeset
  3422
6f44639ec301 Added user preference to control default accept/cancel bar visibility
vrany
parents: 10779
diff changeset
  3423
codeView2ShowAcceptCancel
16565
8f8159c92afc class: Explainer
Claus Gittinger <cg@exept.de>
parents: 16424
diff changeset
  3424
    "this is a little confusing: the codeview2 has its own accept/cancel bar
8f8159c92afc class: Explainer
Claus Gittinger <cg@exept.de>
parents: 16424
diff changeset
  3425
     (why reinvent the wheel?).
8f8159c92afc class: Explainer
Claus Gittinger <cg@exept.de>
parents: 16424
diff changeset
  3426
     So if this is enabled, the outer accept/cancel bar will be suppressed,
8f8159c92afc class: Explainer
Claus Gittinger <cg@exept.de>
parents: 16424
diff changeset
  3427
     if this is on"
10795
6f44639ec301 Added user preference to control default accept/cancel bar visibility
vrany
parents: 10779
diff changeset
  3428
    ^self at:#codeView2ShowAcceptCancel ifAbsent: false
6f44639ec301 Added user preference to control default accept/cancel bar visibility
vrany
parents: 10779
diff changeset
  3429
6f44639ec301 Added user preference to control default accept/cancel bar visibility
vrany
parents: 10779
diff changeset
  3430
    "
6f44639ec301 Added user preference to control default accept/cancel bar visibility
vrany
parents: 10779
diff changeset
  3431
     UserPreferences current codeView2ShowAcceptCancel 
6f44639ec301 Added user preference to control default accept/cancel bar visibility
vrany
parents: 10779
diff changeset
  3432
     UserPreferences current codeView2ShowAcceptCancel:true 
6f44639ec301 Added user preference to control default accept/cancel bar visibility
vrany
parents: 10779
diff changeset
  3433
     UserPreferences current codeView2ShowAcceptCancel:false"
6f44639ec301 Added user preference to control default accept/cancel bar visibility
vrany
parents: 10779
diff changeset
  3434
6f44639ec301 Added user preference to control default accept/cancel bar visibility
vrany
parents: 10779
diff changeset
  3435
    "Modified: / 15-02-2010 / 09:26:16 / Jan Vrany <jan.vrany@fit.cvut.cz>"
6f44639ec301 Added user preference to control default accept/cancel bar visibility
vrany
parents: 10779
diff changeset
  3436
    "Created: / 10-10-2011 / 16:41:04 / Jan Vrany <jan.vrany@fit.cvut.cz>"
6f44639ec301 Added user preference to control default accept/cancel bar visibility
vrany
parents: 10779
diff changeset
  3437
! !
6f44639ec301 Added user preference to control default accept/cancel bar visibility
vrany
parents: 10779
diff changeset
  3438
6f44639ec301 Added user preference to control default accept/cancel bar visibility
vrany
parents: 10779
diff changeset
  3439
!UserPreferences methodsFor:'accessing-prefs-code view'!
6f44639ec301 Added user preference to control default accept/cancel bar visibility
vrany
parents: 10779
diff changeset
  3440
6f44639ec301 Added user preference to control default accept/cancel bar visibility
vrany
parents: 10779
diff changeset
  3441
codeView2ShowAcceptCancel: aBoolean
16565
8f8159c92afc class: Explainer
Claus Gittinger <cg@exept.de>
parents: 16424
diff changeset
  3442
    "this is a little confusing: the codeview2 has its own accept/cancel bar
8f8159c92afc class: Explainer
Claus Gittinger <cg@exept.de>
parents: 16424
diff changeset
  3443
     (why reinvent the wheel?).
8f8159c92afc class: Explainer
Claus Gittinger <cg@exept.de>
parents: 16424
diff changeset
  3444
     So if this is enabled, the outer accept/cancel bar will be suppressed,
8f8159c92afc class: Explainer
Claus Gittinger <cg@exept.de>
parents: 16424
diff changeset
  3445
     if this is on"
8f8159c92afc class: Explainer
Claus Gittinger <cg@exept.de>
parents: 16424
diff changeset
  3446
10795
6f44639ec301 Added user preference to control default accept/cancel bar visibility
vrany
parents: 10779
diff changeset
  3447
    ^self at:#codeView2ShowAcceptCancel put: aBoolean
6f44639ec301 Added user preference to control default accept/cancel bar visibility
vrany
parents: 10779
diff changeset
  3448
6f44639ec301 Added user preference to control default accept/cancel bar visibility
vrany
parents: 10779
diff changeset
  3449
    "
6f44639ec301 Added user preference to control default accept/cancel bar visibility
vrany
parents: 10779
diff changeset
  3450
     UserPreferences current codeView2ShowAcceptCancel 
6f44639ec301 Added user preference to control default accept/cancel bar visibility
vrany
parents: 10779
diff changeset
  3451
     UserPreferences current codeView2ShowAcceptCancel:true 
6f44639ec301 Added user preference to control default accept/cancel bar visibility
vrany
parents: 10779
diff changeset
  3452
     UserPreferences current codeView2ShowAcceptCancel:false"
6f44639ec301 Added user preference to control default accept/cancel bar visibility
vrany
parents: 10779
diff changeset
  3453
6f44639ec301 Added user preference to control default accept/cancel bar visibility
vrany
parents: 10779
diff changeset
  3454
    "Modified: / 15-02-2010 / 09:26:16 / Jan Vrany <jan.vrany@fit.cvut.cz>"
6f44639ec301 Added user preference to control default accept/cancel bar visibility
vrany
parents: 10779
diff changeset
  3455
    "Created: / 10-10-2011 / 16:40:51 / Jan Vrany <jan.vrany@fit.cvut.cz>"
6f44639ec301 Added user preference to control default accept/cancel bar visibility
vrany
parents: 10779
diff changeset
  3456
! !
6f44639ec301 Added user preference to control default accept/cancel bar visibility
vrany
parents: 10779
diff changeset
  3457
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3458
!UserPreferences methodsFor:'accessing-prefs-browser'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3459
13887
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3460
confirmRefactorings
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3461
    "If set, each refactoring must be confirmed before accepted.
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3462
     A programmer may select which changes to apply and which not
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3463
     and/or alter the change.
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3464
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3465
     See RefactoryChange>>shouldBeConfirmed
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3466
     "
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3467
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3468
    ^ self at:#confirmRefactorings ifAbsent:[false].
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3469
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3470
    "
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3471
     UserPreferences current confirmRefactorings
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3472
     UserPreferences current confirmRefactorings:true
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3473
     UserPreferences current confirmRefactorings:false
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3474
    "
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3475
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3476
    "Created: / 04-04-2012 / 14:02:17 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3477
! !
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3478
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3479
!UserPreferences methodsFor:'accessing-prefs-browser'!
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3480
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3481
confirmRefactorings:aBoolean
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3482
    "If set, each refactoring must be confirmed before accepted.
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3483
     A programmer may select which changes to apply and which not
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3484
     and/or alter the change.
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3485
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3486
     See RefactoryChange>>shouldBeConfirmed
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3487
     "
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3488
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3489
    ^ self at:#confirmRefactorings put:aBoolean
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3490
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3491
    "
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3492
     UserPreferences current confirmRefactorings
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3493
     UserPreferences current confirmRefactorings:true
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3494
     UserPreferences current confirmRefactorings:false
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3495
    "
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3496
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3497
    "Created: / 04-04-2012 / 14:02:01 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3498
! !
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3499
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3500
!UserPreferences methodsFor:'accessing-pref''d tools'!
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3501
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3502
fileBrowserClass
17670
bffae5eedf0f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17621
diff changeset
  3503
    "the class to be used for file browsing 
bffae5eedf0f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17621
diff changeset
  3504
     (used to be the simple FileBrowser, but is now the FileBrowserV2)"
bffae5eedf0f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17621
diff changeset
  3505
13887
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3506
    | class className |
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3507
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3508
    className := self at: #fileBrowserClassName ifAbsent:[nil].
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3509
    className notNil ifTrue:[
17670
bffae5eedf0f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17621
diff changeset
  3510
        class := Smalltalk at: className asSymbol.
bffae5eedf0f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17621
diff changeset
  3511
        class notNil ifTrue:[ ^ class ].
13887
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3512
    ].
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3513
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3514
    "/ Old code
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3515
    self useNewFileBrowser ifTrue:[
17670
bffae5eedf0f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17621
diff changeset
  3516
        ^ (FileBrowserV2 ? FileBrowser)
13887
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3517
    ].
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3518
    ^ FileBrowser
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3519
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3520
    "Modified: / 03-04-2012 / 10:59:06 / Jan Vrany <jan.vrany@fit.cvut.cz>"
17670
bffae5eedf0f class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 17621
diff changeset
  3521
    "Modified (comment): / 01-09-2017 / 14:02:29 / cg"
13887
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3522
! !
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3523
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3524
!UserPreferences methodsFor:'accessing-pref''d tools'!
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3525
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3526
fileBrowserClass: aClass
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3527
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3528
    self at: #fileBrowserClassName put: aClass name.
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3529
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3530
    "
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3531
	UserPreferences current fileBrowserClass
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3532
	UserPreferences current fileBrowserClass: FileBrowser.
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3533
	UserPreferences current fileBrowserClass: FileBrowserV2.
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3534
    "
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3535
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3536
    "Created: / 03-04-2012 / 10:57:51 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3537
! !
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3538
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3539
!UserPreferences methodsFor:'accessing-pref''d tools'!
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3540
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3541
fileBrowserClassName
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3542
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3543
    ^ self
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3544
	at: #fileBrowserClassName
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3545
	ifAbsent:[self fileBrowserClass name]."/Backward comparibility
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3546
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3547
    "Created: / 03-04-2012 / 11:01:59 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3548
! !
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3549
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3550
!UserPreferences methodsFor:'accessing-prefs-browser'!
5d04ca4e1109 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 13639
diff changeset
  3551
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3552
showBookmarkBar
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3553
    "experimental."
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3554
11989
16928a5c9185 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 11973
diff changeset
  3555
    ^ self at:#showBookmarkBar ifAbsent: false "true".
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3556
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3557
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3558
     UserPreferences current showBookmarkBar
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3559
     UserPreferences current showBookmarkBar:true
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3560
     UserPreferences current showBookmarkBar:false
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3561
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3562
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3563
    "Created: / 18-05-2011 / 16:48:57 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3564
    "Modified: / 03-06-2011 / 11:01:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3565
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3566
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3567
!UserPreferences methodsFor:'accessing-prefs-browser'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3568
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3569
showBookmarkBar: aBoolean
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3570
    "experimental."
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3571
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3572
    ^ self at:#showBookmarkBar put: aBoolean
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3573
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3574
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3575
     UserPreferences current showBookmarkBar
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3576
     UserPreferences current showBookmarkBar:true
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3577
     UserPreferences current showBookmarkBar:false
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3578
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3579
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3580
    "Created: / 18-05-2011 / 17:28:03 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3581
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3582
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3583
!UserPreferences methodsFor:'accessing-prefs-browser'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3584
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3585
showEmbeddedTestRunnerInBrowser
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3586
    "experimental."
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3587
12051
1d4a61fe3f0c class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 11989
diff changeset
  3588
    ^ self at:#showEmbeddedTestRunnerInBrowser ifAbsent:true
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3589
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3590
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3591
     UserPreferences current showEmbeddedTestRunnerInBrowser
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3592
     UserPreferences current showEmbeddedTestRunnerInBrowser:true
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3593
     UserPreferences current showEmbeddedTestRunnerInBrowser:false
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3594
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3595
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3596
    "Created: / 11-03-2010 / 10:11:11 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3597
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3598
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3599
!UserPreferences methodsFor:'accessing-prefs-browser'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3600
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3601
showEmbeddedTestRunnerInBrowser:aBoolean
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3602
    "experimental."
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3603
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3604
    ^ self at:#showEmbeddedTestRunnerInBrowser put:aBoolean
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3605
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3606
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3607
     UserPreferences current showEmbeddedTestRunnerInBrowser:true
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3608
     UserPreferences current showEmbeddedTestRunnerInBrowser:false
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3609
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3610
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3611
    "Created: / 11-03-2010 / 10:11:29 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3612
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3613
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3614
!UserPreferences methodsFor:'accessing-prefs-browser'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3615
10240
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3616
showGlobalHistory
11676
294f8ac6242d comment/format in:
Claus Gittinger <cg@exept.de>
parents: 11450
diff changeset
  3617
    "Whether to show global history in the browser"
10240
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3618
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3619
    ^ self at:#showGlobalHistory ifAbsent: true.
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3620
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3621
    "
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3622
     UserPreferences current showGlobalHistory
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3623
     UserPreferences current showGlobalHistory:true
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3624
     UserPreferences current showGlobalHistory:false
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3625
    "
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3626
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3627
    "Created: / 07-07-2011 / 00:03:10 / Jan Vrany <jan.vrany@fit.cvut.cz>"
11676
294f8ac6242d comment/format in:
Claus Gittinger <cg@exept.de>
parents: 11450
diff changeset
  3628
    "Modified (comment): / 26-07-2012 / 16:35:54 / cg"
10240
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3629
! !
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3630
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3631
!UserPreferences methodsFor:'accessing-prefs-browser'!
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3632
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3633
showGlobalHistory: aBoolean
11676
294f8ac6242d comment/format in:
Claus Gittinger <cg@exept.de>
parents: 11450
diff changeset
  3634
    "Whether to show global history in the browser"
10240
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3635
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3636
    ^ self at:#showGlobalHistory put: aBoolean
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3637
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3638
    "
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3639
     UserPreferences current showGlobalHistory
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3640
     UserPreferences current showGlobalHistory:true
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3641
     UserPreferences current showGlobalHistory:false
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3642
    "
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3643
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3644
    "Created: / 07-07-2011 / 00:02:35 / Jan Vrany <jan.vrany@fit.cvut.cz>"
11676
294f8ac6242d comment/format in:
Claus Gittinger <cg@exept.de>
parents: 11450
diff changeset
  3645
    "Modified (comment): / 26-07-2012 / 16:35:57 / cg"
10240
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3646
! !
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3647
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3648
!UserPreferences methodsFor:'accessing-prefs-browser'!
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3649
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3650
showLocalHistory
11676
294f8ac6242d comment/format in:
Claus Gittinger <cg@exept.de>
parents: 11450
diff changeset
  3651
    "Whether to show local (per tab) history in the browser"
10240
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3652
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3653
    ^ self at:#showLocalHistory ifAbsent: true.
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3654
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3655
    "
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3656
     UserPreferences current showLocalHistory
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3657
     UserPreferences current showLocalHistory:true
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3658
     UserPreferences current showLocalHistory:false
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3659
    "
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3660
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3661
    "Created: / 07-07-2011 / 00:02:01 / Jan Vrany <jan.vrany@fit.cvut.cz>"
11676
294f8ac6242d comment/format in:
Claus Gittinger <cg@exept.de>
parents: 11450
diff changeset
  3662
    "Modified (comment): / 26-07-2012 / 16:35:31 / cg"
10240
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3663
! !
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3664
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3665
!UserPreferences methodsFor:'accessing-prefs-browser'!
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3666
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3667
showLocalHistory: aBoolean
11676
294f8ac6242d comment/format in:
Claus Gittinger <cg@exept.de>
parents: 11450
diff changeset
  3668
    "Whether to show local (per tab) history in the browser"
10240
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3669
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3670
    ^ self at:#showLocalHistory put: aBoolean
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3671
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3672
    "
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3673
     UserPreferences current showLocalHistory
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3674
     UserPreferences current showLocalHistory:true
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3675
     UserPreferences current showLocalHistory:false
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3676
    "
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3677
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3678
    "Created: / 07-07-2011 / 00:02:13 / Jan Vrany <jan.vrany@fit.cvut.cz>"
11676
294f8ac6242d comment/format in:
Claus Gittinger <cg@exept.de>
parents: 11450
diff changeset
  3679
    "Modified (comment): / 26-07-2012 / 16:35:41 / cg"
10240
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3680
! !
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3681
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3682
!UserPreferences methodsFor:'accessing-prefs-browser'!
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3683
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3684
showMethodTemplate
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3685
    "experimental."
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3686
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3687
    ^ self at:#showMethodTemplate ifAbsent:true
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3688
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3689
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3690
     UserPreferences current showMethodTemplate
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3691
     UserPreferences current showMethodTemplate:true
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3692
     UserPreferences current showMethodTemplate:false
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3693
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3694
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3695
    "Created: / 12-02-2010 / 12:06:03 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3696
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3697
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3698
!UserPreferences methodsFor:'accessing-prefs-browser'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3699
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3700
showMethodTemplate:aBoolean
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3701
    "experimental."
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3702
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3703
    ^ self at:#showMethodTemplate put:aBoolean
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3704
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3705
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3706
     UserPreferences current showMethodTemplate:true
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3707
     UserPreferences current showMethodTemplate:false
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3708
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3709
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3710
    "Created: / 12-02-2010 / 12:05:39 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3711
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3712
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3713
!UserPreferences methodsFor:'accessing-prefs-browser'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3714
10240
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3715
sortAndIndentClassesByInheritance
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3716
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3717
    ^ self at:#sortAndIndentClassesByInheritance ifAbsent: false
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3718
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3719
    "
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3720
     UserPreferences current sortAndIndentClassesByInheritance
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3721
     UserPreferences current sortAndIndentClassesByInheritance:true
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3722
     UserPreferences current sortAndIndentClassesByInheritance:false
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3723
    "
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3724
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3725
    "Created: / 06-07-2011 / 19:09:14 / Jan Vrany <jan.vrany@fit.cvut.cz>"
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3726
! !
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3727
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3728
!UserPreferences methodsFor:'accessing-prefs-browser'!
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3729
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3730
sortAndIndentClassesByInheritance: aBoolean
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3731
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3732
    ^ self at:#sortAndIndentClassesByInheritance put: aBoolean
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3733
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3734
    "
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3735
     UserPreferences current sortAndIndentClassesByInheritance
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3736
     UserPreferences current sortAndIndentClassesByInheritance:true
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3737
     UserPreferences current sortAndIndentClassesByInheritance:false
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3738
    "
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3739
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3740
    "Created: / 06-07-2011 / 19:09:31 / Jan Vrany <jan.vrany@fit.cvut.cz>"
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3741
! !
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3742
10779
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3743
!UserPreferences methodsFor:'accessing-prefs-browser'!
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3744
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3745
sourceCodeManagementMenuLayout
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3746
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3747
    "Defines the layout of source code management menus in 
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3748
     NewSystemBrowser. Can be one of:
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3749
        #old        - old style as of 2011-10-06
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3750
        #compact    - only one Repository menu, SCM specific menus underneath
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3751
        #inline     - Repository and then SCM specific menus inlined
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3752
    "
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3753
14243
3714e667cd67 class: AbstractSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14071
diff changeset
  3754
    ^ self at:#sourceCodeManagementMenuLayout ifAbsent: #inline "/ #old
10779
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3755
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3756
    "
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3757
     UserPreferences current sourceCodeManagementMenuLayout
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3758
     UserPreferences current sourceCodeManagementMenuLayout: #inline
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3759
     UserPreferences current sourceCodeManagementMenuLayout: #compact
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3760
     UserPreferences current sourceCodeManagementMenuLayout: #old
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3761
    "
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3762
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3763
    "Created: / 06-10-2011 / 18:42:23 / Jan Vrany <jan.vrany@fit.cvut.cz>"
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3764
! !
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3765
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3766
!UserPreferences methodsFor:'accessing-prefs-browser'!
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3767
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3768
sourceCodeManagementMenuLayout: aSymbol
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3769
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3770
    "Defines the layout of source code management menus in 
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3771
     NewSystemBrowser. Can be one of:
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3772
        #old        - old style as of 2011-10-06
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3773
        #compact    - only one Repository menu, SCM specific menus underneath
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3774
        #inline     - Repository and then SCM specific menus inlined
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3775
    "
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3776
    self assert: (#(old compact inline) includes: aSymbol).
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3777
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3778
    ^ self at:#sourceCodeManagementMenuLayout put: aSymbol
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3779
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3780
    "
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3781
     UserPreferences current sourceCodeManagementMenuLayout
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3782
     UserPreferences current sourceCodeManagementMenuLayout: #inline
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3783
     UserPreferences current sourceCodeManagementMenuLayout: #compact
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3784
     UserPreferences current sourceCodeManagementMenuLayout: #old
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3785
    "
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3786
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3787
    "Created: / 06-10-2011 / 18:44:18 / Jan Vrany <jan.vrany@fit.cvut.cz>"
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3788
! !
3b5e7e333de6 Added SCM menu layout preference
vrany
parents: 10749
diff changeset
  3789
10399
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3790
!UserPreferences methodsFor:'accessing-prefs-code view'!
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3791
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3792
useCodeView2In: appSymbol
12356
fda0dda38564 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12092
diff changeset
  3793
    "no longer used - will vanish.
fda0dda38564 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12092
diff changeset
  3794
     Now the use of the codeView2 is globally enabled/disabled by useCodeView2InTools"
fda0dda38564 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12092
diff changeset
  3795
fda0dda38564 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12092
diff changeset
  3796
    ^self useCodeView2InTools "/ or:[self perform: ('useCodeView2In' , appSymbol) asSymbol]. 
10399
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3797
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3798
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3799
    "
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3800
    UserPreferences current useCodeView2In: #Browser 
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3801
    UserPreferences current useCodeView2InBrowser:true 
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3802
    UserPreferences current useCodeView2InBrowser:false
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3803
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3804
    UserPreferences current useCodeView2InTools:true
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3805
    UserPreferences current useCodeView2InTools:false
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3806
    "
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3807
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3808
    "Modified: / 15-02-2010 / 09:26:16 / Jan Vrany <jan.vrany@fit.cvut.cz>"
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3809
    "Created: / 26-07-2011 / 10:26:59 / Jan Vrany <jan.vrany@fit.cvut.cz>"
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3810
! !
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3811
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3812
!UserPreferences methodsFor:'accessing-prefs-code view'!
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3813
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3814
useCodeView2InBrowser
12356
fda0dda38564 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12092
diff changeset
  3815
    "no longer used - will vanish.
fda0dda38564 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12092
diff changeset
  3816
     Now the use of the codeView2 is globally enabled/disabled by useCodeView2InTools"
fda0dda38564 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12092
diff changeset
  3817
fda0dda38564 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12092
diff changeset
  3818
    <resource: #obsolete>
10399
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3819
    ^self at:#useCodeView2InBrowser ifAbsent: false
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3820
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3821
    "
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3822
     UserPreferences current useCodeView2InBrowser 
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3823
     UserPreferences current useCodeView2InBrowser:true 
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3824
     UserPreferences current useCodeView2InBrowser:false"
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3825
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3826
    "Modified: / 15-02-2010 / 09:26:16 / Jan Vrany <jan.vrany@fit.cvut.cz>"
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3827
    "Created: / 26-07-2011 / 10:22:03 / Jan Vrany <jan.vrany@fit.cvut.cz>"
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3828
! !
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3829
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3830
!UserPreferences methodsFor:'accessing-prefs-code view'!
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3831
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3832
useCodeView2InBrowser: aBoolean
12356
fda0dda38564 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12092
diff changeset
  3833
    "no longer used - will vanish.
fda0dda38564 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12092
diff changeset
  3834
     Now the use of the codeView2 is globally enabled/disabled by useCodeView2InTools"
fda0dda38564 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12092
diff changeset
  3835
fda0dda38564 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12092
diff changeset
  3836
    <resource: #obsolete>
10399
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3837
    ^self at:#useCodeView2InBrowser put: aBoolean
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3838
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3839
    "
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3840
     UserPreferences current useCodeView2InBrowser 
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3841
     UserPreferences current useCodeView2InBrowser:true 
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3842
     UserPreferences current useCodeView2InBrowser:false"
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3843
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3844
    "Modified: / 15-02-2010 / 09:26:16 / Jan Vrany <jan.vrany@fit.cvut.cz>"
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3845
    "Created: / 26-07-2011 / 10:21:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3846
! !
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3847
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3848
!UserPreferences methodsFor:'accessing-prefs-code view'!
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3849
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3850
useCodeView2InDebugger
12356
fda0dda38564 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12092
diff changeset
  3851
    "no longer used - will vanish.
fda0dda38564 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12092
diff changeset
  3852
     Now the use of the codeView2 is globally enabled/disabled by useCodeView2InTools"
fda0dda38564 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12092
diff changeset
  3853
fda0dda38564 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12092
diff changeset
  3854
    <resource: #obsolete>
10399
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3855
    ^self at:#useCodeView2InDebugger ifAbsent: false
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3856
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3857
    "
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3858
     UserPreferences current useCodeView2InDebugger 
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3859
     UserPreferences current useCodeView2InDebugger:true 
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3860
     UserPreferences current useCodeView2InDebugger:false
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3861
    "
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3862
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3863
    "Created: / 26-07-2011 / 10:22:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3864
! !
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3865
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3866
!UserPreferences methodsFor:'accessing-prefs-code view'!
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3867
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3868
useCodeView2InDebugger: aBoolean
12356
fda0dda38564 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12092
diff changeset
  3869
    "no longer used - will vanish.
fda0dda38564 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12092
diff changeset
  3870
     Now the use of the codeView2 is globally enabled/disabled by useCodeView2InTools"
fda0dda38564 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12092
diff changeset
  3871
fda0dda38564 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12092
diff changeset
  3872
    <resource: #obsolete>
10399
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3873
    ^self at:#useCodeView2InDebugger put: aBoolean
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3874
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3875
    "
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3876
     UserPreferences current useCodeView2InDebugger 
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3877
     UserPreferences current useCodeView2InDebugger:true 
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3878
     UserPreferences current useCodeView2InDebugger:false"
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3879
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3880
    "Modified: / 15-02-2010 / 09:26:16 / Jan Vrany <jan.vrany@fit.cvut.cz>"
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3881
    "Created: / 26-07-2011 / 10:22:36 / Jan Vrany <jan.vrany@fit.cvut.cz>"
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3882
! !
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3883
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3884
!UserPreferences methodsFor:'accessing-prefs-code view'!
10240
d156bf8c53c7 Added methods to UserPreferences
vrany
parents: 10204
diff changeset
  3885
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3886
useCodeView2InTools
11989
16928a5c9185 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 11973
diff changeset
  3887
    ^self at:#useCodeView2InTools ifAbsent:true "false"
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3888
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3889
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3890
     UserPreferences current useCodeView2InTools 
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3891
     UserPreferences current useCodeView2InTools:true 
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3892
     UserPreferences current useCodeView2InTools:false"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3893
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3894
    "Created: / 12-02-2010 / 12:13:59 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3895
    "Modified: / 15-02-2010 / 09:26:16 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3896
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3897
10399
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3898
!UserPreferences methodsFor:'accessing-prefs-code view'!
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3899
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3900
useCodeView2InTools:aBoolean 
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3901
    ^self at:#useCodeView2InTools put:aBoolean
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3902
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3903
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3904
     UserPreferences current useCodeView2InBrowser:true
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3905
     UserPreferences current useCodeView2InBrowser:false"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3906
    "Created: / 12-02-2010 / 12:14:09 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3907
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3908
10399
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3909
!UserPreferences methodsFor:'accessing-prefs-code view'!
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3910
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3911
useCodeView2InWorkspace
12356
fda0dda38564 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12092
diff changeset
  3912
    "no longer used - will vanish.
fda0dda38564 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12092
diff changeset
  3913
     Now the use of the codeView2 is globally enabled/disabled by useCodeView2InTools"
fda0dda38564 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12092
diff changeset
  3914
fda0dda38564 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12092
diff changeset
  3915
    <resource: #obsolete>
10399
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3916
    ^self at:#useCodeView2InWorkspace ifAbsent: false
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3917
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3918
    "
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3919
     UserPreferences current useCodeView2InWorkspace 
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3920
     UserPreferences current useCodeView2InWorkspace:true 
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3921
     UserPreferences current useCodeView2InWorkspace:false
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3922
    "
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3923
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3924
    "Created: / 26-07-2011 / 10:23:20 / Jan Vrany <jan.vrany@fit.cvut.cz>"
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3925
! !
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3926
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3927
!UserPreferences methodsFor:'accessing-prefs-code view'!
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3928
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3929
useCodeView2InWorkspace: aBoolean
12356
fda0dda38564 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12092
diff changeset
  3930
    "no longer used - will vanish.
fda0dda38564 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12092
diff changeset
  3931
     Now the use of the codeView2 is globally enabled/disabled by useCodeView2InTools"
fda0dda38564 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12092
diff changeset
  3932
fda0dda38564 class: UserPreferences
Claus Gittinger <cg@exept.de>
parents: 12092
diff changeset
  3933
    <resource: #obsolete>
10399
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3934
    ^self at:#useCodeView2InWorkspace put: aBoolean
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3935
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3936
    "
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3937
     UserPreferences current useCodeView2InWorkspace 
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3938
     UserPreferences current useCodeView2InWorkspace:true 
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3939
     UserPreferences current useCodeView2InWorkspace:false
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3940
    "
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3941
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3942
    "Created: / 26-07-2011 / 10:22:59 / Jan Vrany <jan.vrany@fit.cvut.cz>"
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3943
! !
d8e5a8c0c162 - per-tool preference for CodeView2
vrany
parents: 10393
diff changeset
  3944
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3945
!UserPreferences methodsFor:'accessing-prefs-browser'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3946
10417
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3947
useInPlaceSearchInBrowserLists
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3948
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3949
    ^ self at:#useInPlaceSearchInBrowserLists ifAbsent: false
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3950
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3951
    "
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3952
     UserPreferences current useInPlaceSearchInBrowserLists
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3953
     UserPreferences current useInPlaceSearchInBrowserLists:true
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3954
     UserPreferences current useInPlaceSearchInBrowserLists:false
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3955
    "
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3956
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3957
    "Created: / 28-07-2011 / 09:34:58 / Jan Vrany <jan.vrany@fit.cvut.cz>"
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3958
! !
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3959
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3960
!UserPreferences methodsFor:'accessing-prefs-browser'!
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3961
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3962
useInPlaceSearchInBrowserLists: aBoolean
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3963
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3964
    ^ self at:#useInPlaceSearchInBrowserLists put: aBoolean
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3965
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3966
    "
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3967
     UserPreferences current useInPlaceSearchInBrowserLists
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3968
     UserPreferences current useInPlaceSearchInBrowserLists:true
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3969
     UserPreferences current useInPlaceSearchInBrowserLists:false
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3970
    "
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3971
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3972
    "Created: / 28-07-2011 / 09:35:28 / Jan Vrany <jan.vrany@fit.cvut.cz>"
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3973
! !
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3974
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3975
!UserPreferences methodsFor:'accessing-prefs-browser'!
f785ac3d937b Added preference for in-line search in browser lists
vrany
parents: 10399
diff changeset
  3976
10051
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3977
webBrowserLikeLayout
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3978
    "experimental."
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3979
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3980
    ^ self at:#webBrowserLikeLayout ifAbsent: false
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3981
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3982
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3983
     UserPreferences current webBrowserLikeLayout
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3984
     UserPreferences current webBrowserLikeLayout:true
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3985
     UserPreferences current webBrowserLikeLayout:false
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3986
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3987
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3988
    "Created: / 07-06-2011 / 14:33:14 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3989
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3990
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3991
!UserPreferences methodsFor:'accessing-prefs-browser'!
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3992
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3993
webBrowserLikeLayout: aBoolean
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3994
    "experimental."
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3995
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3996
    ^ self at:#webBrowserLikeLayout put: aBoolean
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3997
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3998
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  3999
     UserPreferences current webBrowserLikeLayout
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  4000
     UserPreferences current webBrowserLikeLayout:true
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  4001
     UserPreferences current webBrowserLikeLayout:false
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  4002
    "
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  4003
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  4004
    "Created: / 07-06-2011 / 14:31:31 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  4005
! !
5b7e30460ea4 support non-class based code completion
Claus Gittinger <cg@exept.de>
parents: 9691
diff changeset
  4006
18540
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  4007
!ValueModel methodsFor:'inspecting'!
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  4008
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  4009
inspectorValueListIconFor:anInspector
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  4010
    "returns the icon to be shown alongside the value list of an inspector"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  4011
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  4012
    "/ this may be problematic, if #value has a side effect...
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  4013
    Error handle:[:ex |
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  4014
    ] do:[
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  4015
        |value|
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  4016
        
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  4017
        value := self value.
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  4018
        value == true ifTrue:[^ anInspector imageFor_trueHolder].
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  4019
        value == false ifTrue:[^ anInspector imageFor_falseHolder].
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  4020
        value == nil ifTrue:[^ anInspector imageFor_nilHolder].
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  4021
        value isNumber ifTrue:[^ anInspector imageFor_numberHolder].
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  4022
        value isCollection ifTrue:[^ anInspector imageFor_collectionHolder].
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  4023
    ].
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  4024
    ^ anInspector imageFor_othersHolder
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  4025
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  4026
    "Created: / 12-12-2018 / 16:23:18 / Claus Gittinger"
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  4027
! !
00561c410e2e InspectorView icons
Claus Gittinger <cg@exept.de>
parents: 18523
diff changeset
  4028
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  4029
!Warning class methodsFor:'misc ui support'!
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  4030
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  4031
iconInBrowserSymbol
16117
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
  4032
    "the browser will use this as index into the toolbariconlibrary"
21ab45dc4c31 comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 16098
diff changeset
  4033
15541
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  4034
    <resource: #programImage>
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  4035
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  4036
    ^ #warningClassBrowserIcon
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  4037
! !
982ce96f4910 some ui support methods are extensions
Claus Gittinger <cg@exept.de>
parents: 15461
diff changeset
  4038
8919
e18fa0224d6e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8918
diff changeset
  4039
!stx_libtool class methodsFor:'documentation'!
e18fa0224d6e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8918
diff changeset
  4040
16684
Claus Gittinger <cg@exept.de>
parents: 16653
diff changeset
  4041
extensionsVersion_CVS
Claus Gittinger <cg@exept.de>
parents: 16653
diff changeset
  4042
    ^ '$Header$'
12543
Claus Gittinger <cg@exept.de>
parents: 12361
diff changeset
  4043
! !
16704
Claus Gittinger <cg@exept.de>
parents: 16684
diff changeset
  4044