Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Random changes during ESUG + visual debugger demo.
- Loading branch information
1 parent
769ef0d
commit c3e898f
Showing
42 changed files
with
223 additions
and
14 deletions.
There are no files selected for viewing
Empty file.
3 changes: 3 additions & 0 deletions
3
repository/LiveInstanceVisualization.package/LIVDebugSession.class/class/modelHistory..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
modelHistory: aHistory | ||
modelHistory := aHistory |
3 changes: 3 additions & 0 deletions
3
repository/LiveInstanceVisualization.package/LIVDebugSession.class/class/modelHistory.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
modelHistory | ||
^ modelHistory |
4 changes: 4 additions & 0 deletions
4
...tory/LiveInstanceVisualization.package/LIVDebugSession.class/instance/process.context..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
initialization | ||
process: aProcess context: aContext | ||
|
||
super process: aProcess context: aContext |
13 changes: 13 additions & 0 deletions
13
repository/LiveInstanceVisualization.package/LIVDebugSession.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"commentStamp" : "", | ||
"super" : "DebugSession", | ||
"category" : "LiveInstanceVisualization-Debugger", | ||
"classinstvars" : [ | ||
"modelHistory" | ||
], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "LIVDebugSession", | ||
"type" : "normal" | ||
} |
Empty file.
3 changes: 3 additions & 0 deletions
3
repository/LiveInstanceVisualization.package/LIVDebugger.class/class/defaultTitle.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
defaultTitle | ||
^ 'LIV Debugger' |
4 changes: 4 additions & 0 deletions
4
repository/LiveInstanceVisualization.package/LIVDebugger.class/class/register.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
register | ||
|
||
self registerToolsOn: Smalltalk tools. |
5 changes: 5 additions & 0 deletions
5
repository/LiveInstanceVisualization.package/LIVDebugger.class/class/registerToolsOn..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
accessing | ||
registerToolsOn: registry | ||
|
||
"Add ourselves to registry. See [Smalltalk tools]" | ||
registry registerDebugger: self withRank: 10. |
3 changes: 3 additions & 0 deletions
3
repository/LiveInstanceVisualization.package/LIVDebugger.class/class/sessionClass.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
sessionClass | ||
^ LIVDebugSession |
9 changes: 9 additions & 0 deletions
9
...tory/LiveInstanceVisualization.package/LIVDebugger.class/instance/debuggerStructureIn..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
building | ||
debuggerStructureIn: browser | ||
|
||
browser | ||
row: #stack; | ||
row: [ :c | c | ||
column: #code; | ||
column: #view ] span: 2; | ||
row: #inspector. |
9 changes: 9 additions & 0 deletions
9
.../LiveInstanceVisualization.package/LIVDebugger.class/instance/debuggerTransmissionsIn..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
building | ||
debuggerTransmissionsIn: browser | ||
super debuggerTransmissionsIn: browser. | ||
browser transmit | ||
from: #stack port: #selection; | ||
to: #view; | ||
andShow: [ :composite :aContext | | ||
self liveViewIn: composite forContext: aContext. | ||
self modelHistoryIn: composite forContext: aContext ] |
9 changes: 9 additions & 0 deletions
9
...ry/LiveInstanceVisualization.package/LIVDebugger.class/instance/liveViewIn.forContext..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
building | ||
liveViewIn: composite forContext: aContext | ||
| history | | ||
history := self class sessionClass modelHistory. | ||
history ifNil: [ ^ self ]. | ||
history models ifEmpty: [ ^ self ]. | ||
(history models last gtInspectorModelViewIn: composite) | ||
onChangeOfPort: #selection act: [ :historyPresentation | | ||
self inspect: historyPresentation selection ] |
6 changes: 6 additions & 0 deletions
6
...iveInstanceVisualization.package/LIVDebugger.class/instance/modelHistoryIn.forContext..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
building | ||
modelHistoryIn: composite forContext: aContext | ||
| history | | ||
history := self class sessionClass modelHistory. | ||
history ifNil: [ ^ self ]. | ||
history gtInspectorModelViewIn: composite |
9 changes: 9 additions & 0 deletions
9
...iveInstanceVisualization.package/LIVDebugger.class/instance/transmitFromStackToCodeIn..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
building | ||
transmitFromStackToCodeIn: browser | ||
super transmitFromStackToCodeIn: browser | ||
" browser transmit | ||
from: #stack port: #selection; | ||
to: #code; | ||
andShow: [ :composite :aContext | | ||
self methodCodeIn: composite forContext: aContext. | ||
self liveViewIn: composite forContext: aContext]" |
11 changes: 11 additions & 0 deletions
11
repository/LiveInstanceVisualization.package/LIVDebugger.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"commentStamp" : "", | ||
"super" : "GTGenericStackDebugger", | ||
"category" : "LiveInstanceVisualization-Debugger", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "LIVDebugger", | ||
"type" : "normal" | ||
} |
2 changes: 1 addition & 1 deletion
2
...nceVisualization.package/LIVExpandableCallGraphVisualization.class/instance/initialize.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
as yet unclassified | ||
initialization | ||
initialize | ||
super initialize. | ||
mondrian := RTMondrian new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
.../LiveInstanceVisualization.package/LIVInstanceHistory.class/instance/filterDuplicates..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
as yet unclassified | ||
filterDuplicates: aCollection | ||
| filtered | | ||
aCollection ifEmpty: [ ^ aCollection ]. | ||
filtered := OrderedCollection new. | ||
filtered add: aCollection first. | ||
aCollection allButFirst | ||
do: [ :model | | ||
| diff | | ||
diff := LIVInstanceModelDiff new diffBetween: model and: filtered last. | ||
(self isEmptyDiffBetween: model and: filtered last) | ||
ifFalse: [ filtered add: model ] ]. | ||
^ filtered |
10 changes: 10 additions & 0 deletions
10
...nstanceVisualization.package/LIVInstanceHistory.class/instance/gtInspectorModelViewIn..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
as yet unclassified | ||
gtInspectorModelViewIn: composite | ||
<gtInspectorPresentationOrder: 1> | ||
^composite fastTable | ||
title: 'Models'; | ||
display: [ self filterDuplicates: self models ]; | ||
enableElementIndex; | ||
column: 'Index' evaluated: [ :value :index | index asString ] width: 40; | ||
column: 'Model' evaluated: [ :value | value asString ]; | ||
column: 'Elements' evaluated: [ :value | value elements size ] |
12 changes: 12 additions & 0 deletions
12
...nstanceVisualization.package/LIVInstanceHistory.class/instance/isEmptyDiffBetween.and..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
testing | ||
isEmptyDiffBetween: a and: b | ||
| diff | | ||
diff := LIVInstanceModelDiff new diffBetween: a and: b. | ||
(diff at: #added) ifNotEmpty: [ ^ false ]. | ||
(diff at: #removed) ifNotEmpty: [ ^ false ]. | ||
(diff at: #modified) values | ||
do: [ :each | | ||
(each at: #added) ifNotEmpty: [ ^ false ]. | ||
(each at: #removed) ifNotEmpty: [ ^ false ]. | ||
(each at: #modified) ifNotEmpty: [ ^ false ] ]. | ||
^ true |
27 changes: 27 additions & 0 deletions
27
...ceVisualization.package/LIVInstanceModel.class/instance/applyFocusedLayoutIn.on.focus..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
roassal - drawing | ||
applyFocusedLayoutIn: aView on: shapes focus: aFocus | ||
| distance circles els enableCircles | | ||
distance := 400. | ||
enableCircles := true. | ||
enableCircles | ||
ifTrue: [ (aView hasAttribute: #circles) | ||
ifTrue: [ circles := aView attributeAt: #circles ] | ||
ifFalse: [ circles := RTEllipse new | ||
color: Color transparent; | ||
borderWidth: 1; | ||
borderColor: Color red; | ||
size: [ :m | distance * m ]; | ||
elementsOn: (1 to: 4). | ||
aView addAll: circles. | ||
circles do: [ :each | each trachelShape pushBack ]. | ||
circles translateTo: aFocus position. | ||
aView attributeAt: #circles put: circles ] ]. | ||
els := shapes. | ||
enableCircles | ||
ifTrue: [ RTSmoothLayoutTranslator new | ||
nbCycles: 1; | ||
translate: circles to: aFocus position ]. | ||
LaFocusedRadialLayout new | ||
radius: distance / 2; | ||
setFocus: aFocus nodes: els edges: #(); | ||
apply |
9 changes: 9 additions & 0 deletions
9
...veInstanceVisualization.package/LIVInstanceModel.class/instance/gtInspectorElementsIn..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
as yet unclassified | ||
gtInspectorElementsIn: composite | ||
<gtInspectorPresentationOrder: 1> | ||
composite fastTable | ||
title: 'Elements'; | ||
display: [ self elements ]; | ||
enableElementIndex; | ||
column: 'Index' evaluated: [ :value :index | index asString ] width: 40; | ||
column: 'Element' evaluated: [ :value | value asString ] |
6 changes: 4 additions & 2 deletions
6
...eInstanceVisualization.package/LIVInstanceModel.class/instance/gtInspectorModelViewIn..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
inspector - extensions | ||
gtInspectorModelViewIn: composite | ||
<gtInspectorPresentationOrder: -1> | ||
composite roassal2 | ||
^ composite roassal2 | ||
title: '[LIV] Instance Model'; | ||
initializeView: [ | v | | ||
v := RTView new. | ||
OPUMLRTInteractiveViewContext setOnView: v. | ||
self renderIn: v. | ||
self showDiffIn: v. | ||
v @ RTDraggableView @ RTZoomableView. | ||
v ] | ||
v ]; | ||
yourself |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...tanceVisualization.package/LIVInstanceSpecification.class/instance/gtInspectorSlotsIn..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
as yet unclassified | ||
gtInspectorSlotsIn: composite | ||
<gtInspectorPresentationOrder: 1> | ||
(self slots gtInspectorItemsIn: composite) title: 'Slots' |
11 changes: 11 additions & 0 deletions
11
...stanceVisualization.package/LIVInstanceSpecification.class/instance/gtInspectorViewIn..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
ui | ||
gtInspectorViewIn: composite | ||
<gtInspectorPresentationOrder: 1> | ||
composite roassal2 | ||
title: 'Instance'; | ||
initializeView: [ | v | | ||
v := RTView new. | ||
OPUMLRTInteractiveViewContext setOnView: v. | ||
self asShape renderIn: v. | ||
v @ RTDraggableView @ RTZoomableView. | ||
v ] |
6 changes: 5 additions & 1 deletion
6
...y/LiveInstanceVisualization.package/LIVInstanceSpecification.class/instance/initialize.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
initialization | ||
initialize | ||
super initialize. | ||
slots := OrderedDictionary new | ||
slots := OrderedDictionary new. | ||
" style := OPUmlStyle new | ||
fillColor: Color veryVeryLightGray; | ||
strokeColor: Color black; | ||
strokeWidth: 1" |
3 changes: 3 additions & 0 deletions
3
...itory/LiveInstanceVisualization.package/LIVInstanceSpecification.class/instance/style..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
style: aStyle | ||
" style := aStyle" |
3 changes: 3 additions & 0 deletions
3
...sitory/LiveInstanceVisualization.package/LIVInstanceSpecification.class/instance/style.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
style | ||
^ style |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...iveInstanceVisualization.package/LIVInstanceSpecificationBuilder.class/instance/style..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
style: anObject | ||
style := anObject |
3 changes: 3 additions & 0 deletions
3
...LiveInstanceVisualization.package/LIVInstanceSpecificationBuilder.class/instance/style.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
style | ||
^ style |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.