Skip to content

Commit

Permalink
Merge pull request #127 from hpi-swa-teaching/US60
Browse files Browse the repository at this point in the history
auto completion can be toggled on and off
  • Loading branch information
frcroth committed Aug 7, 2020
2 parents f32deb1 + f0230c5 commit 84e2b4a
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"combinedEmphasisCode" : "MB 5/29/2019 22:04",
"combinedTextStructure" : "kh 6/19/2020 12:25",
"demoText" : "tok 6/13/2020 12:11",
"firstStructureIsSelectedInList" : "6/18/2020 19:16:32",
"emphasisCodeNoStyle" : "AG 6/5/2019 18:56",
"firstStructureIsSelectedInList" : "7/3/2020 21:25:13",
"listTextStructure" : "tok 6/12/2020 12:12",
"listLevel" : "kh 6/19/2020 10:04",
"listTextStructure" : "kh 6/21/2020 16:58",
"listTextStructureStyles" : "tok 6/12/2020 12:12",
"menu" : "ls 6/18/2019 16:37",
"setUpHalfBoldTestText" : "lh 7/24/2019 20:04",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
utilities
disableAutocompletion

autocompletionPreference := RichTextEditorModel autocompletion.
RichTextEditorModel autocompletion: false
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ utilities
enableAutocompletion

autocompletionPreference := RichTextEditorModel autocompletion.
RichTextEditorModel autocompletion: true.
RichTextEditorModel autocompletion: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
constants
stringToAutocomplete

^ 'Morph'
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
acceptance-tests
testUS60DisablingAutocompletionDoesNotOpenAllowAutocompletion

self disableAutocompletion.
self enterStringOntoTextField: self stringToAutocomplete.
self should: [self editorModel completionController isAutocompletable] raise: MessageNotUnderstood.
self restoreAutocompletion
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
acceptance-tests
testUS60EnablingAutocompletionAllowsAutocompletion

self enableAutocompletion.
self enterStringOntoTextField: self stringToAutocomplete.
self assert: (self editorModel completionController isAutocompletable).
self restoreAutocompletion
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"clickUndoButton" : "tok 8/3/2020 15:03",
"crKeyCode" : "MB 5/15/2019 20:53",
"ctrlButtonCode" : "MB 5/15/2019 21:04",
"ctrlShiftButtonCode" : "AG 5/29/2019 22:21",
"disableAutocompletion" : "frc 8/5/2020 09:39",
"document" : "ls 7/24/2019 17:23",
"deselectOptionBold" : "tok 8/4/2020 16:55",
"editorSavesIncludeKey:" : "MB 5/22/2019 18:01",
"editorStructureKeymap" : "tok 8/7/2020 11:17",
Expand Down Expand Up @@ -98,8 +101,10 @@
"testUS46NewEditorIsOpened" : "frc 6/16/2020 20:41",
"testUS47WhenStructureIsAddedTheTriangleShows" : "ls 7/25/2019 13:20",
"testUS47WhenStructureIsRemovedTheTriangleShows" : "ls 7/25/2019 13:20",
"testUS60DisableAutocompletion" : "frc 8/7/2020 13:13",
"testUS60EnableAutocompletion" : "frc 8/7/2020 13:13",
"testUS60DisableAutocompletion" : "frc 8/5/2020 09:32",
"testUS60DisablingAutocompletionDoesNotOpenAllowAutocompletion" : "frc 8/5/2020 09:54",
"testUS60EnableAutocompletion" : "frc 8/5/2020 09:32",
"testUS60EnablingAutocompletionAllowsAutocompletion" : "frc 8/5/2020 09:55",
"testUS62ColNumberIsShownInFooter" : "JEH 6/14/2020 12:36",
"testUS62LineNumberIsShownInFooter" : "JEH 6/14/2020 12:40",
"testUS63InfoButtonExists" : "6/1/2020 14:03:20",
Expand Down

0 comments on commit 84e2b4a

Please sign in to comment.