Skip to content

Commit

Permalink
Move serialisation methods to gt4gemstone
Browse files Browse the repository at this point in the history
  • Loading branch information
chisandrei committed Jun 26, 2024
1 parent d7b35f3 commit 757a15b
Showing 1 changed file with 0 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,3 @@ GtRsrInspectorProxySerializationStrategy >> deserialize: viewProxyData [
initializeFromProxyData: (viewProxyData at: 'proxyData');
yourself
]

{ #category : #accessing }
GtRsrInspectorProxySerializationStrategy >> serialize: anObject [
"Called from GemStone. We defined is also for GT as it does not references GemStone specific classes"
| inspectorWrapper |
inspectorWrapper := GtRemotePhlowViewedObject object: anObject.
^ self serializedDataForInspectorWrapper: inspectorWrapper
]

{ #category : #accessing }
GtRsrInspectorProxySerializationStrategy >> serializedDataForInspectorWrapper: anInspectorWrapper [
"Called from GemStone. We defined is also for GT as it does not references GemStone specific classes"
| dictionaryData proxyData |

dictionaryData := Dictionary new.

dictionaryData
at: 'proxyObject'
put: anInspectorWrapper.

proxyData := anInspectorWrapper getViewsDeclarationsWithPhlowDataSource.
dictionaryData
at: 'proxyData'
put: proxyData.

^ dictionaryData asGtRsrProxyObjectForConnection: nil
]

0 comments on commit 757a15b

Please sign in to comment.