-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
89 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Extension { #name : #ToImage } | ||
|
||
{ #category : #'*Toplo-Serialization' } | ||
ToImage >> stonPostReferenceResolution [ | ||
|
||
super stonPostReferenceResolution. | ||
self userData at: #stonInnerImage ifPresent: [ :toInnerImage | | ||
self innerImage: toInnerImage. | ||
self userData removeKey: #stonInnerImage ] | ||
] | ||
|
||
{ #category : #'*Toplo-Serialization' } | ||
ToImage >> stonUserDataOn: aIdentityDictionary [ | ||
|
||
super stonUserDataOn: aIdentityDictionary. | ||
aIdentityDictionary at: #stonInnerImage put: self innerImage | ||
] |
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,21 @@ | ||
Extension { #name : #ToLabeledIcon } | ||
|
||
{ #category : #'*Toplo-Serialization' } | ||
ToLabeledIcon >> stonPostReferenceResolution [ | ||
|
||
super stonPostReferenceResolution. | ||
self userData at: #stonToLabel ifPresent: [ :toLabel | | ||
self label: toLabel. | ||
self userData removeKey: #stonToLabel ]. | ||
self userData at: #stonToImage ifPresent: [ :toImage | | ||
self icon: toImage. | ||
self userData removeKey: #stonToImage ] | ||
] | ||
|
||
{ #category : #'*Toplo-Serialization' } | ||
ToLabeledIcon >> stonUserDataOn: aIdentityDictionary [ | ||
|
||
super stonUserDataOn: aIdentityDictionary. | ||
aIdentityDictionary at: #stonToLabel put: self label. | ||
aIdentityDictionary at: #stonToImage put: self icon. | ||
] |
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