-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove duplication + add comments + add printons
- Loading branch information
Showing
18 changed files
with
59 additions
and
30 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
Iceberg-TipUI.package/IceTipBranchModel.class/instance/printOn..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,7 @@ | ||
printing | ||
printOn: aStream | ||
super printOn: aStream. | ||
aStream | ||
nextPut: $[; | ||
nextPutAll: self name; | ||
nextPut: $] |
6 changes: 6 additions & 0 deletions
6
Iceberg-TipUI.package/IceTipCachedModel.class/instance/printOn..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 @@ | ||
printing | ||
printOn: aStream | ||
super printOn: aStream. | ||
aStream nextPut: $(. | ||
self realObject printOn: aStream. | ||
aStream nextPut: $) |
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
8 changes: 0 additions & 8 deletions
8
Iceberg-TipUI.package/IceTipRemoteModel.class/instance/branchModels.st
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
Iceberg-TipUI.package/IceTipRemoteModel.class/instance/branches.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 | ||
branches | ||
^ self entity branches |
3 changes: 0 additions & 3 deletions
3
Iceberg-TipUI.package/IceTipRemoteModel.class/instance/hasBranches.st
This file was deleted.
Oops, something went wrong.
12 changes: 7 additions & 5 deletions
12
Iceberg-TipUI.package/IceTipRemoteModel.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 |
---|---|---|
@@ -1,11 +1,13 @@ | ||
{ | ||
"classtraitcomposition" : "TWithBranchModel classTrait", | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "IceTipRemoteModel", | ||
"commentStamp" : "EstebanLorenzano 5/30/2018 14:33", | ||
"super" : "IceTipEntityModel", | ||
"category" : "Iceberg-TipUI-Model", | ||
"traitcomposition" : "TWithBranchModel", | ||
"type" : "normal", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "IceTipRemoteModel", | ||
"type" : "normal" | ||
"category" : "Iceberg-TipUI-Model" | ||
} |
8 changes: 0 additions & 8 deletions
8
Iceberg-TipUI.package/IceTipRepositoryModel.class/instance/branchModels.st
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
Iceberg-TipUI.package/IceTipRepositoryModel.class/instance/branches.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 | ||
branches | ||
^ self entity localBranches |
3 changes: 0 additions & 3 deletions
3
Iceberg-TipUI.package/IceTipRepositoryModel.class/instance/hasBranches.st
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
Iceberg-TipUI.package/IceTipRepositoryModel.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
Empty file.
3 changes: 3 additions & 0 deletions
3
Iceberg-TipUI.package/TWithBranchModel.trait/instance/branchModels.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 @@ | ||
branches | ||
branchModels | ||
^ self branches collect: [ :each | (IceTipBranchModel repositoryModel: self repositoryModel on: each) beCached ] |
3 changes: 3 additions & 0 deletions
3
Iceberg-TipUI.package/TWithBranchModel.trait/instance/branches.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 @@ | ||
branches | ||
branches | ||
^ self explicitRequirement |
6 changes: 6 additions & 0 deletions
6
Iceberg-TipUI.package/TWithBranchModel.trait/instance/defaultBranchSelection.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 | ||
defaultBranchSelection | ||
^ self branchModels | ||
detect: #isHead | ||
ifNone: [ self hasBranches | ||
ifTrue: [ self branchModels ifNotEmpty: #anyOne ] ] |
3 changes: 3 additions & 0 deletions
3
Iceberg-TipUI.package/TWithBranchModel.trait/instance/hasBranches.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 @@ | ||
testing | ||
hasBranches | ||
^ self branches isNotEmpty |
3 changes: 3 additions & 0 deletions
3
Iceberg-TipUI.package/TWithBranchModel.trait/instance/repositoryModel.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 | ||
repositoryModel | ||
^ self explicitRequirement |
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,7 @@ | ||
{ | ||
"commentStamp" : "", | ||
"classinstvars" : [ ], | ||
"category" : "Iceberg-TipUI-Model", | ||
"instvars" : [ ], | ||
"name" : "TWithBranchModel" | ||
} |