-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
semantics: test for model availability in advance
complements hpi-swa-lab/Squeak-SemanticText@31555d6
- Loading branch information
Showing
16 changed files
with
97 additions
and
4 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
...nboxTalkExtras-Semantics.package/TalkInbox.extension/instance/initializeSemanticCorpus.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
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
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
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
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
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.
7 changes: 7 additions & 0 deletions
7
...queakInboxTalkExtras-Semantics.package/TalkSemanticModelNotReady.class/instance/cancel.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 @@ | ||
handling | ||
cancel | ||
|
||
| process | | ||
process := Processor activeProcess. | ||
Project current spawnNewProcessIfThisIsUI: process. | ||
process terminate. |
4 changes: 4 additions & 0 deletions
4
...nboxTalkExtras-Semantics.package/TalkSemanticModelNotReady.class/instance/featureName..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 @@ | ||
accessing | ||
featureName: aString | ||
|
||
featureName := aString. |
4 changes: 4 additions & 0 deletions
4
...InboxTalkExtras-Semantics.package/TalkSemanticModelNotReady.class/instance/featureName.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 @@ | ||
accessing | ||
featureName | ||
|
||
^ featureName |
4 changes: 4 additions & 0 deletions
4
...InboxTalkExtras-Semantics.package/TalkSemanticModelNotReady.class/instance/messageText.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 @@ | ||
printing | ||
messageText | ||
|
||
^ 'SemanticText is not yet configured' |
4 changes: 4 additions & 0 deletions
4
...boxTalkExtras-Semantics.package/TalkSemanticModelNotReady.class/instance/requirements..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 @@ | ||
accessing | ||
requirements: specs | ||
|
||
requirements := specs. |
4 changes: 4 additions & 0 deletions
4
...nboxTalkExtras-Semantics.package/TalkSemanticModelNotReady.class/instance/requirements.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 @@ | ||
accessing | ||
requirements | ||
|
||
^ requirements |
12 changes: 12 additions & 0 deletions
12
...xTalkExtras-Semantics.package/TalkSemanticModelNotReady.class/instance/richMessageText.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,12 @@ | ||
printing | ||
richMessageText | ||
|
||
^ '{1}\\{2} to try again.' withCRs asText format: | ||
{(self featureName ifNil: ['You need to {2}.'] ifNotNil: ['To enable {1}, you need to {2}.']) asText format: | ||
{self featureName. | ||
SemanticText | ||
formatRequirements: self requirements | ||
retry: [self cancel]}. | ||
'Click here' asText | ||
addAttribute: (PluggableTextAttribute evalBlock: [self cancel]); | ||
yourself} |
11 changes: 11 additions & 0 deletions
11
...akInboxTalkExtras-Semantics.package/TalkSemanticModelNotReady.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" : { | ||
}, | ||
"instance" : { | ||
"cancel" : "ct 10/18/2023 18:03", | ||
"featureName" : "ct 10/18/2023 18:00", | ||
"featureName:" : "ct 10/18/2023 18:00", | ||
"messageText" : "ct 10/18/2023 17:57", | ||
"requirements" : "ct 10/18/2023 17:56", | ||
"requirements:" : "ct 10/18/2023 17:57", | ||
"richMessageText" : "ct 10/18/2023 18:06" } } |
15 changes: 15 additions & 0 deletions
15
...s/SqueakInboxTalkExtras-Semantics.package/TalkSemanticModelNotReady.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" : "SqueakInboxTalkExtras-Semantics-Core", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
"requirements", | ||
"featureName" ], | ||
"name" : "TalkSemanticModelNotReady", | ||
"pools" : [ | ||
], | ||
"super" : "Error", | ||
"type" : "normal" } |