Skip to content

Commit

Permalink
Move GtRsrInspectorProxySerializationStrategy to remote-phlow
Browse files Browse the repository at this point in the history
  • Loading branch information
chisandrei committed Jun 25, 2024
1 parent 601f20a commit 8d2b85d
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Class {
#name : #GtRsrInspectorProxyDataSerializationStrategy,
#superclass : #GtRsrInspectorProxySerializationStrategy,
#category : #'GToolkit-RemotePhlow-InspectorCore'
}

{ #category : #accessing }
GtRsrInspectorProxyDataSerializationStrategy >> deserialize: viewProxyData [
^ viewProxyData
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
Class {
#name : #GtRsrInspectorProxySerializationStrategy,
#superclass : #GtRsrSerializationStrategy,
#category : #'GToolkit-RemotePhlow-InspectorCore'
}

{ #category : #accessing }
GtRsrInspectorProxySerializationStrategy >> deserialize: viewProxyData [
^ (viewProxyData at: 'proxyObject')
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 8d2b85d

Please sign in to comment.