Skip to content

Commit

Permalink
add BrEditorStep [feenkcom/gtoolkit#3941]
Browse files Browse the repository at this point in the history
  • Loading branch information
JurajKubelka committed Aug 7, 2024
1 parent 426db36 commit 48f456c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/Brick-Editor-Examples/BrEditorStep.class.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"
I provide {{gtClass:BlScripter}} {{gtClass:BrEditor}} steps.
"
Class {
#name : #BrEditorStep,
#superclass : #BlDevScripterToolActionStep,
#category : #'Brick-Editor-Examples-Scripter'
}

{ #category : #'steps - interactions' }
BrEditorStep >> selectAll [
^ self do
referenceSender;
label: 'Select all editor text';
block: [ :anEditor | anEditor selecter all; select ];
onParentStepTarget: self;
onThisOrBreadthFirstChildOfKind: BrEditor
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Extension { #name : #TBlDevScripterActionStep }

{ #category : #'*Brick-Editor-Examples' }
TBlDevScripterActionStep >> editor [
^ self
addStep: (BrEditorStep new
label: 'Editor';
referenceSender)
]

0 comments on commit 48f456c

Please sign in to comment.