-
Notifications
You must be signed in to change notification settings - Fork 29
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
15 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
...quot.package/SquotAssetMapper.class/instance/transformAndMaterializeVersion.in.ifFail..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 @@ | ||
ui | ||
transformAndMaterializeVersion: anObject in: aWorkingCopy ifFail: aBlock | ||
self materialize: (self transformVersion: anObject ifFail: [^ aBlock value]) in: aWorkingCopy. |
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
Empty file.
6 changes: 6 additions & 0 deletions
6
src/Squot.package/SquotPlaintextImageModel.class/class/newWithMapper.workingCopy..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 @@ | ||
instance creation | ||
newWithMapper: aPlaintextMapper workingCopy: aWorkingCopy | ||
^ self new | ||
mapper: aPlaintextMapper; | ||
workingCopy: aWorkingCopy; | ||
yourself |
3 changes: 3 additions & 0 deletions
3
src/Squot.package/SquotPlaintextImageModel.class/instance/getText.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 | ||
getText | ||
^ self mapper loadVersionFromImage: self workingCopy |
3 changes: 3 additions & 0 deletions
3
src/Squot.package/SquotPlaintextImageModel.class/instance/mapper..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 | ||
mapper: aPlaintextMapper | ||
mapper := aPlaintextMapper |
3 changes: 3 additions & 0 deletions
3
src/Squot.package/SquotPlaintextImageModel.class/instance/mapper.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 | ||
mapper | ||
^ mapper |
6 changes: 6 additions & 0 deletions
6
src/Squot.package/SquotPlaintextImageModel.class/instance/setText..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 @@ | ||
accessing | ||
setText: aText | ||
self mapper | ||
transformAndMaterializeVersion: aText asString | ||
in: self workingCopy | ||
ifFail: []. |
4 changes: 4 additions & 0 deletions
4
src/Squot.package/SquotPlaintextImageModel.class/instance/update..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 @@ | ||
updating | ||
update: anObject | ||
super update: anObject. | ||
anObject = #materialized ifTrue: [self changed: #getText]. |
5 changes: 5 additions & 0 deletions
5
src/Squot.package/SquotPlaintextImageModel.class/instance/workingCopy..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 | ||
workingCopy: aWorkingCopy | ||
workingCopy ifNotNil: [workingCopy removeDependent: self]. | ||
workingCopy := aWorkingCopy. | ||
aWorkingCopy ifNotNil: [aWorkingCopy addDependent: self]. |
3 changes: 3 additions & 0 deletions
3
src/Squot.package/SquotPlaintextImageModel.class/instance/workingCopy.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 | ||
workingCopy | ||
^ workingCopy |
11 changes: 11 additions & 0 deletions
11
src/Squot.package/SquotPlaintextImageModel.class/methodProperties.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 @@ | ||
{ | ||
"class" : { | ||
"newWithMapper:workingCopy:" : "mad 12/14/2023 17:23" }, | ||
"instance" : { | ||
"getText" : "mad 12/14/2023 17:14", | ||
"mapper" : "mad 12/14/2023 17:13", | ||
"mapper:" : "mad 12/14/2023 17:13", | ||
"setText:" : "mad 12/14/2023 17:22", | ||
"update:" : "mad 12/14/2023 18:26", | ||
"workingCopy" : "mad 12/14/2023 17:13", | ||
"workingCopy:" : "mad 12/14/2023 18:03" } } |
15 changes: 15 additions & 0 deletions
15
src/Squot.package/SquotPlaintextImageModel.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,15 @@ | ||
{ | ||
"category" : "Squot-Mapper-Plaintext", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
"mapper", | ||
"workingCopy" ], | ||
"name" : "SquotPlaintextImageModel", | ||
"pools" : [ | ||
], | ||
"super" : "Object", | ||
"type" : "normal" } |
9 changes: 9 additions & 0 deletions
9
src/Squot.package/SquotPlaintextMapper.class/instance/buildVersionFromImage.with..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 @@ | ||
toolbuilder | ||
buildVersionFromImage: aWorkingCopy with: builder | ||
^ builder pluggableTextSpec new | ||
model: (SquotPlaintextImageModel | ||
newWithMapper: self | ||
workingCopy: aWorkingCopy); | ||
getText: #getText; | ||
setText: #setText:; | ||
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