Skip to content

Commit

Permalink
core: fix some incompatibilities w/ 5.3; tutorial: some more unbound …
Browse files Browse the repository at this point in the history
…shortcuts fixed
  • Loading branch information
tom95 committed Jan 3, 2022
1 parent 30684ae commit eab523b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/Sandblocks-Core/SBForceConnector.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ SBForceConnector >> lineWidth [
{ #category : #'as yet unclassified' }
SBForceConnector >> morphicLayerNumber [

^ SBBlock defaultLayer + 1
^ 101
]

{ #category : #'as yet unclassified' }
Expand Down
2 changes: 1 addition & 1 deletion packages/Sandblocks-Core/SBGroup.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ SBGroup >> isArtefact [
{ #category : #accessing }
SBGroup >> morphicLayerNumber [

^ SBForceConnector defaultLayer + 1
^ 101
]

{ #category : #'as yet unclassified' }
Expand Down
6 changes: 6 additions & 0 deletions packages/Sandblocks-Core/SBSelection.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,12 @@ SBSelection >> relatedClass [
^ self methodClass
]

{ #category : #'as yet unclassified' }
SBSelection >> reportError: anError process: aProcess source: aBlock [


]

{ #category : #'as yet unclassified' }
SBSelection >> sandblockEditor [

Expand Down
6 changes: 3 additions & 3 deletions packages/Sandblocks-Tutorial/SBTutorialStep.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ SBTutorialStep class >> stepAssignments: anEditor [
7 > 8 ifTrue: [Transcript showln: 'hi']]
in: anEditor.
step
addStep: 'Wrap the expression `42 squared` in an assignment by selecting the expression (use <#selectUp>) and press <#wrapInAssignment>. Then type `largeNum` as name.'
addStep: 'Wrap the expression `42 squared` in an assignment by selecting the expression (use <#moveCursorLarger>) and press <#wrapInAssignment>. Then type `largeNum` as name.'
checkCondition: [:editor | method statements first isAssignment].
step
addStep: 'Hit save (<#save>) and declare the variable as method temporary. Note that there is no other way to declare temporary variables currently (i.e., place them in the pipes)'
Expand Down Expand Up @@ -243,7 +243,7 @@ SBTutorialStep class >> stepDeleting: anEditor [
Paste the 6 again at the start of the list by walking to the 1 and pressing <#pasteBefore> for paste-before.'
checkCondition: [:editor | method body statements first firstSubmorph contents = '6'].
step
addStep: 'Finally, select the entire array using <#selectUp> and replace it with the still copied 6 using <#pasteReplace> for paste-replace.'
addStep: 'Finally, select the entire array using <#moveCursorLarger> and replace it with the still copied 6 using <#pasteReplace> for paste-replace.'
checkCondition: [:editor | method body statements first contents = '6']]
]

Expand Down Expand Up @@ -512,7 +512,7 @@ SBTutorialStep class >> stepSelection: anEditor [
addStep: 'First, select the block closure argument '':each''. Note that the type of your selection is displayed in the bottom-left corner.'
checkCondition: [:editor | editor selection = method body statements third arguments first bindings first].
step
addStep: 'Then repeatedly use <#selectUp> to enlargen your selection to select the full `do:` message send. You can use <#selectDown> to go down again.'
addStep: 'Then repeatedly use <#moveCursorLarger> to enlargen your selection to select the full `do:` message send. You can use <#moveCursorSmaller> to go down again.'
checkCondition: [:editor | editor selection = method body statements third].
step
addStep: 'Finally, as an example use <#deleteBlock> to delete the full `do:` message send.'
Expand Down

0 comments on commit eab523b

Please sign in to comment.