Skip to content

Commit

Permalink
Merge pull request #587 from adri09070/fixing-symbol-display-in-debugger
Browse files Browse the repository at this point in the history
Displaying '#' for symbols in the debugger inspector
  • Loading branch information
jecisc authored Sep 25, 2023
2 parents c04f13d + 726b44d commit 3cfa7bb
Show file tree
Hide file tree
Showing 46 changed files with 157 additions and 148 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #AbstractFileReference }
Extension { #name : 'AbstractFileReference' }

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
AbstractFileReference >> inspectionCompressedItems [
<inspectorPresentationOrder: 0 title: 'Compressed Items'>
| items children root |
Expand Down Expand Up @@ -38,13 +38,13 @@ AbstractFileReference >> inspectionCompressedItems [
each creationTime printHMSOn: stream ] ])
]

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
AbstractFileReference >> inspectionCompressedItemsContext: aContext [

aContext active: self isCompressedFile
]

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
AbstractFileReference >> inspectionContents [
<inspectorPresentationOrder: 0 title: 'Contents'>
| maxBytes buffer atEnd stringContents displayStream displayString |
Expand Down Expand Up @@ -74,19 +74,19 @@ AbstractFileReference >> inspectionContents [
yourself
]

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
AbstractFileReference >> inspectionContentsContext: aContext [

aContext active: self isFile
]

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
AbstractFileReference >> inspectionFuelContext: aContext [

aContext active: self isFuel
]

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
AbstractFileReference >> inspectionGif [
<inspectorPresentationOrder: 0 title: 'Picture'>

Expand All @@ -95,13 +95,13 @@ AbstractFileReference >> inspectionGif [
yourself
]

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
AbstractFileReference >> inspectionGifContext: aContext [

aContext active: self isImageGif
]

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
AbstractFileReference >> inspectionItems [
<inspectorPresentationOrder: 0 title: 'Items'>
| items |
Expand Down Expand Up @@ -145,13 +145,13 @@ AbstractFileReference >> inspectionItems [
yourself
]

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
AbstractFileReference >> inspectionItemsContext: aContext [

aContext active: self isDirectory
]

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
AbstractFileReference >> inspectionJpeg [
<inspectorPresentationOrder: 0 title: 'Picture'>

Expand All @@ -160,13 +160,13 @@ AbstractFileReference >> inspectionJpeg [
yourself
]

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
AbstractFileReference >> inspectionJpegContext: aContext [

aContext active: self isImageJpeg
]

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
AbstractFileReference >> inspectionPng [
<inspectorPresentationOrder: 0 title: 'Picture'>

Expand All @@ -175,13 +175,13 @@ AbstractFileReference >> inspectionPng [
yourself
]

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
AbstractFileReference >> inspectionPngContext: aContext [

aContext active: self isImagePng
]

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
AbstractFileReference >> inspectionStScript [
<inspectorPresentationOrder: 0 title: 'Script'>

Expand All @@ -192,49 +192,49 @@ AbstractFileReference >> inspectionStScript [
yourself
]

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
AbstractFileReference >> inspectionStScriptContext: aContext [

aContext active: self isScript
]

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
AbstractFileReference >> isCompressedFile [

^ #('zip' 'jar' 'ear' 'war' 'mcz') includes: self extension
]

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
AbstractFileReference >> isFuel [

^ self isFile and: [ self extension = 'fuel' ]
]

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
AbstractFileReference >> isImageGif [

^ self isFile
and: [ self mimeTypes notNil
and: [ self mimeTypes first matches: ZnMimeType imageGif ] ]
]

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
AbstractFileReference >> isImageJpeg [

^ self isFile
and: [ self mimeTypes notNil
and: [ self mimeTypes first matches: ZnMimeType imageJpeg ] ]
]

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
AbstractFileReference >> isImagePng [

^ self isFile
and: [ self mimeTypes notNil
and: [ self mimeTypes first matches: ZnMimeType imagePng ] ]
]

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
AbstractFileReference >> isScript [

^ self isFile and: [ self extension = 'st' ]
Expand Down
8 changes: 4 additions & 4 deletions src/NewTools-Inspector-Extensions/Announcer.extension.st
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Extension { #name : #Announcer }
Extension { #name : 'Announcer' }

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
Announcer >> hasSubscriptions [

^ self numberOfSubscriptions isZero not
]

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
Announcer >> inspectionSubscriptions [
<inspectorPresentationOrder: 0 title: 'Subscriptions'>
| table |
Expand Down Expand Up @@ -38,7 +38,7 @@ Announcer >> inspectionSubscriptions [
yourself
]

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
Announcer >> inspectionSubscriptionsContext: aContext [

aContext active: self hasSubscriptions
Expand Down
4 changes: 2 additions & 2 deletions src/NewTools-Inspector-Extensions/Array.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #Array }
Extension { #name : 'Array' }

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
Array >> displayString [

^ super displayString contractTo: 200
Expand Down
4 changes: 2 additions & 2 deletions src/NewTools-Inspector-Extensions/Array2D.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #Array2D }
Extension { #name : 'Array2D' }

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
Array2D >> inspectorExtension [

<inspectorPresentationOrder: 0 title: 'Matrix'>
Expand Down
4 changes: 2 additions & 2 deletions src/NewTools-Inspector-Extensions/Bag.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #Bag }
Extension { #name : 'Bag' }

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
Bag >> inspectionItems: aBuilder [
<inspectorPresentationOrder: 0 title: 'Items'>

Expand Down
6 changes: 3 additions & 3 deletions src/NewTools-Inspector-Extensions/BaselineOf.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #BaselineOf }
Extension { #name : 'BaselineOf' }

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
BaselineOf >> inspectionProject [
<inspectorPresentationOrder: 10 title: 'Project'>
| specs |
Expand All @@ -18,7 +18,7 @@ BaselineOf >> inspectionProject [
yourself
]

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
BaselineOf >> inspectionRecord [
<inspectorPresentationOrder: 20 title: 'Record'>
| specs |
Expand Down
8 changes: 4 additions & 4 deletions src/NewTools-Inspector-Extensions/BlockClosure.extension.st
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
Extension { #name : #BlockClosure }
Extension { #name : 'BlockClosure' }

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
BlockClosure >> inpectionIr [
<inspectorPresentationOrder: 35 title: 'IR'>

^ self method ir inpectionIr
]

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
BlockClosure >> inspectionAST [
<inspectorPresentationOrder: 35 title: 'AST'>

^ self sourceNode inspectionAST
]

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
BlockClosure >> inspectionSource [
<inspectorPresentationOrder: 30 title: 'Method Source'>

Expand Down
4 changes: 2 additions & 2 deletions src/NewTools-Inspector-Extensions/ByteArray.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #ByteArray }
Extension { #name : 'ByteArray' }

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
ByteArray >> inspectBytes: specBuilder [
<inspectorPresentationOrder: 30 title: 'Bytes'>

Expand Down
4 changes: 2 additions & 2 deletions src/NewTools-Inspector-Extensions/Character.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #Character }
Extension { #name : 'Character' }

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
Character >> inspectCharacterIn: specBuilder [
<inspectorPresentationOrder: 30 title: 'Character'>

Expand Down
8 changes: 4 additions & 4 deletions src/NewTools-Inspector-Extensions/Class.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #Class }
Extension { #name : 'Class' }

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
Class >> inspectionAllReferences [
<inspectorPresentationOrder: 920 title: 'All References'>
| allReferences allClassesReferencing sortBlock treeTable childrenBlock |
Expand All @@ -26,7 +26,7 @@ Class >> inspectionAllReferences [
^ treeTable
]

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
Class >> inspectionClassComment [
"This provides an editable comment of the current class"
<inspectorPresentationOrder: 920 title: 'Comment'>
Expand All @@ -39,7 +39,7 @@ Class >> inspectionClassComment [
stamp: Author changeStamp ]
]

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
Class >> inspectionClassDefinition [

"This provides an editable comment of the current class"
Expand Down
4 changes: 2 additions & 2 deletions src/NewTools-Inspector-Extensions/Collection.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #Collection }
Extension { #name : 'Collection' }

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
Collection >> inspectionItems: aBuilder [
<inspectorPresentationOrder: 0 title: 'Items'>

Expand Down
6 changes: 3 additions & 3 deletions src/NewTools-Inspector-Extensions/Color.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #Color }
Extension { #name : 'Color' }

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
Color >> inspectionColor [
<inspectorPresentationOrder: 10 title: 'Color'>

Expand All @@ -11,7 +11,7 @@ Color >> inspectionColor [
yourself
]

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
Color class >> inspectionColors [
<inspectorPresentationOrder: 10 title: 'Registered'>

Expand Down
4 changes: 2 additions & 2 deletions src/NewTools-Inspector-Extensions/CompiledBlock.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #CompiledBlock }
Extension { #name : 'CompiledBlock' }

{ #category : #'*NewTools-Inspector-Extensions' }
{ #category : '*NewTools-Inspector-Extensions' }
CompiledBlock >> inspectionSource [
<inspectorPresentationOrder: 20 title: 'Method Source'>

Expand Down
Loading

0 comments on commit 3cfa7bb

Please sign in to comment.