Skip to content

Commit 5a476b4

Browse files
committed
Adds the example instances browser
1 parent 0e08020 commit 5a476b4

File tree

9 files changed

+53
-3
lines changed

9 files changed

+53
-3
lines changed

packages/Babylonian-UI.package/BPExampleInstancesBrowser.class/README.md

Whitespace-only changes.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
accessing
2+
actualExampleList
3+
"We misuse example list for example instance methods --pre"
4+
^ exampleList ifNil: [
5+
exampleList := self selectedPackage
6+
ifNotNil: [:aPackage | aPackage methods select: [:aMethod | aMethod compiledMethod isExampleInstanceMethod]]
7+
ifNil: [#()].
8+
exampleList := exampleList sorted: [:aMethod | aMethod selector] ascending]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
accessing
2+
actualPackageList
3+
4+
^ packageList ifNil: [
5+
packageList := (SystemNavigation default allExampleInstanceMethods
6+
collect: [:aMethod | aMethod packageInfo]) asSet
7+
sorted: [:aPackage | aPackage name] ascending]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
accessing
2+
exampleList
3+
4+
^ self actualExampleList collect: [:methodReference |
5+
methodReference compiledMethod methodClass printString ,
6+
' ' ,
7+
methodReference compiledMethod exampleInstanceName]
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
private - message list
2+
selection
3+
4+
^ self selectedExample ifNotNil: [:aMethodReference | aMethodReference]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"class" : {
3+
},
4+
"instance" : {
5+
"actualExampleList" : "pre 1/10/2023 12:32",
6+
"actualPackageList" : "pre 1/10/2023 12:28",
7+
"exampleList" : "pre 1/10/2023 12:37",
8+
"selection" : "pre 1/10/2023 12:34" } }
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"category" : "Babylonian-UI-Tools",
3+
"classinstvars" : [
4+
],
5+
"classvars" : [
6+
],
7+
"commentStamp" : "",
8+
"instvars" : [
9+
],
10+
"name" : "BPExampleInstancesBrowser",
11+
"pools" : [
12+
],
13+
"super" : "BPExamplesBrowser",
14+
"type" : "normal" }
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
accessing
22
actualPackageList
33

4-
^ packageList ifNil: [packageList := (SystemNavigation default allExamples collect: [:anExample |
5-
anExample method methodClass package]) asSet sorted: [:aPackage | aPackage name] ascending]
4+
^ packageList ifNil: [
5+
packageList := (SystemNavigation default allExamples
6+
collect: [:anExample | anExample method methodClass package]) asSet
7+
sorted: [:aPackage | aPackage name] ascending]

packages/Babylonian-UI.package/BPExamplesBrowser.class/methodProperties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"open" : "pre 10/13/2020 15:15" },
44
"instance" : {
55
"actualExampleList" : "pre 2/15/2021 11:15",
6-
"actualPackageList" : "pre 2/15/2021 11:15",
6+
"actualPackageList" : "pre 1/10/2023 12:26",
77
"buildExamplesListWith:" : "pre 10/13/2020 14:49",
88
"buildPackagesListWith:" : "pre 10/13/2020 14:45",
99
"buildWith:" : "pre 10/13/2020 14:51",

0 commit comments

Comments
 (0)