-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also, add missing languageIDs and refactor code.
- Loading branch information
Showing
27 changed files
with
75 additions
and
49 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
src/GraalSqueak-Core.package/Polyglot.class/class/iconFor..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,14 @@ | ||
icons | ||
iconFor: aLanguage | ||
"LanguageIDToIcon := nil" | ||
^ (LanguageIDToIcon ifNil: [ | ||
LanguageIDToIcon := Dictionary newFromPairs: { | ||
self languageIdJava. self iconJava. | ||
self languageIdJS. self iconJS. | ||
self languageIdLLVM. self iconLLVM. | ||
self languageIdMarkdown. self iconMarkdown. | ||
self languageIdPython. self iconPython. | ||
self languageIdR. self iconR. | ||
self languageIdRuby. self iconRuby. | ||
self languageIdSqueakSmalltalk. self iconSqueakSmalltalk } | ||
]) at: aLanguage ifAbsent: [ nil ] |
2 changes: 1 addition & 1 deletion
2
...lotNotebook.class/class/iconJavascript.st → ...re.package/Polyglot.class/class/iconJS.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
icons | ||
iconJavascript | ||
iconJS | ||
^ Form | ||
extent: 16@16 | ||
depth: 32 | ||
|
7 changes: 7 additions & 0 deletions
7
src/GraalSqueak-Core.package/Polyglot.class/class/iconJava.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 @@ | ||
icons | ||
iconJava | ||
^ Form | ||
extent: 16@16 | ||
depth: 32 | ||
fromArray: #( 16777215 16777215 8355711 4144959 4144959 4144959 4144959 4144959 4144959 442191938 138888256 4144959 4144959 8158332 16777215 16777215 16777215 16777215 5329233 0 0 0 0 0 0 1431186690 420612096 0 0 5000268 16777215 16777215 16777215 16777215 5658198 0 0 0 0 0 606344708 2240041231 0 0 0 5395026 16777215 16777215 16777215 16777215 5658198 0 0 0 0 909517062 2812700179 757930757 741219333 202246402 0 5395026 16777215 16777215 16777215 16777215 5658198 0 0 0 1229466632 3031592213 1179003656 2004306190 741153797 33685760 0 5395026 16777215 16777215 16777215 16777215 5658198 0 0 286329346 3435690775 656873477 2795791379 673716229 0 0 0 5395026 16777215 16777215 16777215 16777215 5658198 0 0 286329346 2778948627 202180610 3738797337 976823047 0 0 0 5395026 16777215 16777215 16777215 16777215 5658198 0 0 0 1179069192 960111623 1936868877 3233641494 0 0 0 5263439 16777215 16777215 16777215 16777215 5658198 0 235210505 319228685 0 455283200 472060416 1667775751 0 184813063 1041243172 374955616 16777215 16777215 16777215 16777215 5460561 856298265 2923125874 1511993404 1091969579 1041375275 1310796591 1175987760 991174439 151192838 923209751 2441256624 16777215 16777215 16777215 16777215 5592405 100729347 755963934 1663186242 1024794921 923999524 856693539 940776998 386403343 33620225 1494295085 1618117776 16777215 16777215 16777215 16777215 5658198 0 302385420 1931885643 1965571661 2015903566 1999126350 1881619787 688789019 453644051 873207068 5263183 16777215 16777215 16777215 16777215 5526098 0 0 1528770619 1763981638 1461529912 1562325309 1629565759 201590280 0 0 5329233 16777215 16777215 16777215 16777215 828730996 1494558514 369626384 537596181 1663186242 2032746576 1931951435 1293560115 167970055 100795140 419629067 106190166 16777215 16777215 16777215 16777215 1500413577 2501983825 1780298047 1511467316 1259479082 1192304167 1209081640 1276322347 1461135411 1561864758 1510743337 727409512 16777215 16777215 16777215 16777215 8092280 3947323 474500433 1213621358 1482452345 1600024957 1650422399 1616867966 1532850043 1348036979 910906716 192905345 16777215 16777215) | ||
offset: 0@0 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
3 changes: 3 additions & 0 deletions
3
src/GraalSqueak-Core.package/Polyglot.class/class/languageIconOf..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,3 @@ | ||
polyglot-api | ||
languageIconOf: aLanguageID | ||
^ self |
3 changes: 3 additions & 0 deletions
3
src/GraalSqueak-Core.package/Polyglot.class/class/languageIdJava.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,3 @@ | ||
constants | ||
languageIdJava | ||
^ 'java' |
3 changes: 3 additions & 0 deletions
3
src/GraalSqueak-Core.package/Polyglot.class/class/languageIdLLVM.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,3 @@ | ||
constants | ||
languageIdLLVM | ||
^ 'llvm' |
3 changes: 3 additions & 0 deletions
3
src/GraalSqueak-Core.package/Polyglot.class/class/languageIdMarkdown.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,3 @@ | ||
constants | ||
languageIdMarkdown | ||
^ 'markdown' |
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
2 changes: 1 addition & 1 deletion
2
src/GraalSqueak-Tools.package/PNBCodeCell.class/instance/isMarkdown.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
testing | ||
isMarkdown | ||
^ self languageID = PolyglotNotebook markdownID | ||
^ self languageID = Polyglot languageIdMarkdown |
2 changes: 1 addition & 1 deletion
2
src/GraalSqueak-Tools.package/PNBCodeCell.class/instance/languageID.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
accessing | ||
languageID | ||
^ languageID ifNil: [ languageID := PolyglotNotebook markdownID ] | ||
^ languageID ifNil: [ languageID := Polyglot languageIdMarkdown ] |
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
9 changes: 0 additions & 9 deletions
9
src/GraalSqueak-Tools.package/PNBCodeCellLabel.class/instance/iconFor..st
This file was deleted.
Oops, something went wrong.
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
3 changes: 0 additions & 3 deletions
3
src/GraalSqueak-Tools.package/PolyglotNotebook.class/class/markdownID.st
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
src/GraalSqueak-Tools.package/PolyglotNotebook.class/class/markdownName.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
constants | ||
markdownName | ||
^ self markdownID asString capitalized | ||
^ Polyglot languageIdMarkdown capitalized |
12 changes: 2 additions & 10 deletions
12
src/GraalSqueak-Tools.package/PolyglotNotebook.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