1
0

Documentation.js 71 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057
  1. smalltalk.addPackage('Documentation', {});
  2. smalltalk.addClass('DocumentationBuilder', smalltalk.Object, ['chapters', 'announcer', 'widget'], 'Documentation');
  3. smalltalk.addMethod(
  4. unescape('_chapters'),
  5. smalltalk.method({
  6. selector: unescape('chapters'),
  7. category: 'accessing',
  8. fn: function (){
  9. var self=this;
  10. return (($receiver = self['@chapters']) == nil || $receiver == undefined) ? (function(){return self['@chapters']=smalltalk.send(self, "_buildChapters", []);})() : $receiver;
  11. return self;},
  12. args: [],
  13. source: unescape('chapters%0A%09%5Echapters%20ifNil%3A%20%5Bchapters%20%3A%3D%20self%20buildChapters%5D'),
  14. messageSends: ["ifNil:", "buildChapters"],
  15. referencedClasses: []
  16. }),
  17. smalltalk.DocumentationBuilder);
  18. smalltalk.addMethod(
  19. unescape('_buildChapters'),
  20. smalltalk.method({
  21. selector: unescape('buildChapters'),
  22. category: 'building',
  23. fn: function (){
  24. var self=this;
  25. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_methodDictionary", []), "_values", []), "_sorted_", [(function(a, b){return ((($receiver = smalltalk.send(a, "_selector", [])).klass === smalltalk.Number) ? $receiver <smalltalk.send(b, "_selector", []) : smalltalk.send($receiver, "__lt", [smalltalk.send(b, "_selector", [])]));})]), "_select_", [(function(each){return smalltalk.send(smalltalk.send(each, "_category", []), "__eq", ["chapters"]);})]), "_collect_", [(function(each){return smalltalk.send(self, "_perform_", [smalltalk.send(each, "_selector", [])]);})]);
  26. return self;},
  27. args: [],
  28. source: unescape('buildChapters%0A%09%5E%28%28self%20class%20methodDictionary%20values%20sorted%3A%20%5B%3Aa%20%3Ab%20%7C%20a%20selector%20%3C%20b%20selector%5D%29%0A%09%09select%3A%20%5B%3Aeach%20%7C%20each%20category%20%3D%20%27chapters%27%5D%29%0A%09%09collect%3A%20%5B%3Aeach%20%7C%20self%20perform%3A%20each%20selector%5D'),
  29. messageSends: ["collect:", "select:", "sorted:", "values", "methodDictionary", "class", unescape("%3C"), "selector", unescape("%3D"), "category", "perform:"],
  30. referencedClasses: []
  31. }),
  32. smalltalk.DocumentationBuilder);
  33. smalltalk.addMethod(
  34. unescape('_buildOn_'),
  35. smalltalk.method({
  36. selector: unescape('buildOn%3A'),
  37. category: 'building',
  38. fn: function (aCanvas){
  39. var self=this;
  40. smalltalk.send(aCanvas, "_with_", [smalltalk.send(self, "_widget", [])]);
  41. return self;},
  42. args: ["aCanvas"],
  43. source: unescape('buildOn%3A%20aCanvas%0A%09aCanvas%20with%3A%20self%20widget'),
  44. messageSends: ["with:", "widget"],
  45. referencedClasses: []
  46. }),
  47. smalltalk.DocumentationBuilder);
  48. smalltalk.addMethod(
  49. unescape('_buildOnJQuery_'),
  50. smalltalk.method({
  51. selector: unescape('buildOnJQuery%3A'),
  52. category: 'building',
  53. fn: function (aJQuery){
  54. var self=this;
  55. smalltalk.send(self, "_buildOn_", [smalltalk.send((smalltalk.HTMLCanvas || HTMLCanvas), "_onJQuery_", [aJQuery])]);
  56. return self;},
  57. args: ["aJQuery"],
  58. source: unescape('buildOnJQuery%3A%20aJQuery%0A%09self%20buildOn%3A%20%28HTMLCanvas%20onJQuery%3A%20aJQuery%29'),
  59. messageSends: ["buildOn:", "onJQuery:"],
  60. referencedClasses: ["HTMLCanvas"]
  61. }),
  62. smalltalk.DocumentationBuilder);
  63. smalltalk.addMethod(
  64. unescape('_ch1introduction'),
  65. smalltalk.method({
  66. selector: unescape('ch1introduction'),
  67. category: 'chapters',
  68. fn: function (){
  69. var self=this;
  70. return (function($rec){smalltalk.send($rec, "_title_", ["Introduction"]);return smalltalk.send($rec, "_contents_", [unescape("%0A%0A%23%23Amber%20Smalltalk%20in%20a%20nutshell.%0A%0AAmber%20is%20an%20implementation%20of%20the%20Smalltalk-80%20language.%20%0AIt%20allows%20developers%20to%20write%20client-side%20heavy%20web%20applications%20in%20Smalltalk.%20Amber%20includes%20an%20integrated%20development%20environment%20with%20a%20class%20browser%2C%20workspace%20and%20transcript.%0A%0AAmber%20includes%20the%20following%20features%3A%0A%0A-%20It%20is%20semantically%20and%20syntactically%20equivalent%20to%20Pharo%20Smalltalk%20%28the%20implementation%20considered%20as%20the%20reference%29%0A-%20It%20is%20written%20in%20itself%20and%20compiles%20into%20efficient%20JavaScript%0A-%20A%20canvas%20API%20similar%20to%20Seaside%20to%20generate%20HTML%0A-%20A%20jQuery%20binding.%0A%0A%23%23%20Disclaimer%0A%0AThis%20documentation%20doesn%27t%20aim%20to%20teach%20Smalltalk.%20%0AKnowledge%20of%20Smalltalk%20is%20needed%20to%20understand%20the%20topics%20covered%20in%20this%20documentation.%20%0AIf%20you%20want%20to%20learn%20the%20Smalltalk%20language%2C%20you%20can%20read%20the%20excellent%20%5BPharo%20By%20Example%5D%28http%3A//www.pharobyexample.org%29%20book.%0A")]);})(smalltalk.send((smalltalk.DocChapter || DocChapter), "_new", []));
  71. return self;},
  72. args: [],
  73. source: unescape('ch1introduction%0A%09%5EDocChapter%20new%0A%09%09title%3A%20%27Introduction%27%3B%0A%09%09contents%3A%20%27%0A%0A%23%23Amber%20Smalltalk%20in%20a%20nutshell.%0A%0AAmber%20is%20an%20implementation%20of%20the%20Smalltalk-80%20language.%20%0AIt%20allows%20developers%20to%20write%20client-side%20heavy%20web%20applications%20in%20Smalltalk.%20Amber%20includes%20an%20integrated%20development%20environment%20with%20a%20class%20browser%2C%20workspace%20and%20transcript.%0A%0AAmber%20includes%20the%20following%20features%3A%0A%0A-%20It%20is%20semantically%20and%20syntactically%20equivalent%20to%20Pharo%20Smalltalk%20%28the%20implementation%20considered%20as%20the%20reference%29%0A-%20It%20is%20written%20in%20itself%20and%20compiles%20into%20efficient%20JavaScript%0A-%20A%20canvas%20API%20similar%20to%20Seaside%20to%20generate%20HTML%0A-%20A%20jQuery%20binding.%0A%0A%23%23%20Disclaimer%0A%0AThis%20documentation%20doesn%27%27t%20aim%20to%20teach%20Smalltalk.%20%0AKnowledge%20of%20Smalltalk%20is%20needed%20to%20understand%20the%20topics%20covered%20in%20this%20documentation.%20%0AIf%20you%20want%20to%20learn%20the%20Smalltalk%20language%2C%20you%20can%20read%20the%20excellent%20%5BPharo%20By%20Example%5D%28http%3A//www.pharobyexample.org%29%20book.%0A%27'),
  74. messageSends: ["title:", "contents:", "new"],
  75. referencedClasses: ["DocChapter"]
  76. }),
  77. smalltalk.DocumentationBuilder);
  78. smalltalk.addMethod(
  79. unescape('_announcer'),
  80. smalltalk.method({
  81. selector: unescape('announcer'),
  82. category: 'accessing',
  83. fn: function (){
  84. var self=this;
  85. return (($receiver = self['@announcer']) == nil || $receiver == undefined) ? (function(){return self['@announcer']=smalltalk.send((smalltalk.Announcer || Announcer), "_new", []);})() : $receiver;
  86. return self;},
  87. args: [],
  88. source: unescape('announcer%0A%09%5Eannouncer%20ifNil%3A%20%5Bannouncer%20%3A%3D%20Announcer%20new%5D'),
  89. messageSends: ["ifNil:", "new"],
  90. referencedClasses: ["Announcer"]
  91. }),
  92. smalltalk.DocumentationBuilder);
  93. smalltalk.addMethod(
  94. unescape('_widget'),
  95. smalltalk.method({
  96. selector: unescape('widget'),
  97. category: 'accessing',
  98. fn: function (){
  99. var self=this;
  100. return (($receiver = self['@widget']) == nil || $receiver == undefined) ? (function(){return self['@widget']=smalltalk.send((smalltalk.DocumentationWidget || DocumentationWidget), "_on_", [self]);})() : $receiver;
  101. return self;},
  102. args: [],
  103. source: unescape('widget%0A%09%5Ewidget%20ifNil%3A%20%5Bwidget%20%3A%3D%20DocumentationWidget%20on%3A%20self%5D'),
  104. messageSends: ["ifNil:", "on:"],
  105. referencedClasses: ["DocumentationWidget"]
  106. }),
  107. smalltalk.DocumentationBuilder);
  108. smalltalk.addMethod(
  109. unescape('_ch2differencesWithOtherSmalltalks'),
  110. smalltalk.method({
  111. selector: unescape('ch2differencesWithOtherSmalltalks'),
  112. category: 'chapters',
  113. fn: function (){
  114. var self=this;
  115. return (function($rec){smalltalk.send($rec, "_title_", ["Differences with other Smalltalks"]);return smalltalk.send($rec, "_contents_", [unescape("%0AAmber%20has%20some%20differences%20with%20other%20Smalltalk%20implementations.%20%0ABecause%20it%20maps%20Smalltalk%20constructs%20one-to-one%20with%20the%20JavaScript%20equivalent%2C%20including%20Smalltalk%20classes%20to%20JavaScript%20constructors%2C%20the%20core%20class%20library%20is%20simplified%20compared%20to%20Pharo%20Smalltalk.%20%0AThe%20following%20list%20explains%20the%20main%20differences%3A%0A%0A-%20The%20collection%20class%20hierarchy%20is%20simpler%20compared%20to%20most%20Smalltalk%20implementations.%20As%20of%20today%2C%20there%20is%20no%20SortedCollection.%20The%20size%20of%20arrays%20is%20dynamic%2C%20and%20they%20behave%20like%20an%20ordered%20collection.%20%0A%20%20They%20can%20also%20be%20sorted%20with%20the%20%23sort*%20methods.%0A-%20The%20Date%20class%20behaves%20like%20the%20Date%20and%20TimeStamp%20classes%20in%20Pharo%20Smalltalk.%20Therefore%20both%20Date%20today%20and%20Date%20now%20are%20valid%20in%20Amber.%0A")]);})(smalltalk.send((smalltalk.DocChapter || DocChapter), "_new", []));
  116. return self;},
  117. args: [],
  118. source: unescape('ch2differencesWithOtherSmalltalks%0A%09%5EDocChapter%20new%0A%09%09title%3A%20%27Differences%20with%20other%20Smalltalks%27%3B%0A%09%09contents%3A%20%27%0AAmber%20has%20some%20differences%20with%20other%20Smalltalk%20implementations.%20%0ABecause%20it%20maps%20Smalltalk%20constructs%20one-to-one%20with%20the%20JavaScript%20equivalent%2C%20including%20Smalltalk%20classes%20to%20JavaScript%20constructors%2C%20the%20core%20class%20library%20is%20simplified%20compared%20to%20Pharo%20Smalltalk.%20%0AThe%20following%20list%20explains%20the%20main%20differences%3A%0A%0A-%20The%20collection%20class%20hierarchy%20is%20simpler%20compared%20to%20most%20Smalltalk%20implementations.%20As%20of%20today%2C%20there%20is%20no%20SortedCollection.%20The%20size%20of%20arrays%20is%20dynamic%2C%20and%20they%20behave%20like%20an%20ordered%20collection.%20%0A%20%20They%20can%20also%20be%20sorted%20with%20the%20%23sort*%20methods.%0A-%20The%20Date%20class%20behaves%20like%20the%20Date%20and%20TimeStamp%20classes%20in%20Pharo%20Smalltalk.%20Therefore%20both%20Date%20today%20and%20Date%20now%20are%20valid%20in%20Amber.%0A%27'),
  119. messageSends: ["title:", "contents:", "new"],
  120. referencedClasses: ["DocChapter"]
  121. }),
  122. smalltalk.DocumentationBuilder);
  123. smalltalk.addMethod(
  124. unescape('_ch3GettingStarted'),
  125. smalltalk.method({
  126. selector: unescape('ch3GettingStarted'),
  127. category: 'chapters',
  128. fn: function (){
  129. var self=this;
  130. return (function($rec){smalltalk.send($rec, "_title_", ["Getting started"]);return smalltalk.send($rec, "_contents_", [unescape("%0ATo%20get%20started%20hacking%20in%20Amber%20you%20can%20basically%20take%20three%20routes%2C%20independent%20of%20your%20platform%3A%0A%0A1.%20Just%20try%20it%20out%20at%20http%3A//www.amber-lang.net%20%28click%20the%20%22Class%20browser%22%20button%29%20-%20but%20you%20will%20**not%20be%20able%20to%20save%20any%20code%20you%20write**%21%20%0A%20%20%20%20Still%2C%20it%20works%20fine%20for%20looking%20at%20the%20IDE%20and%20playing%20around.%20Just%20don%27t%20press%20F5/reload%20-%20it%20will%20bring%20you%20back%20to%20zero.%20%0A%20%20%20%20%28Well%2C%20if%20you%20still%20want%20to%20develop%20and%20save%20code%20online%20someone%20has%20set%20up%20this%20site%20seems%20for%20free%20use%3A%20https%3A//www.screwtopdb.com/amberstore/topics%3Fname%3Damberstore/amber.html%20%29%0A2.%20Download%20an%20Amber%20zip-ball%2C%20install%20Nodejs%2C%20fire%20up%20the%20Amber%20server%20and%20then%20open%20Amber%20from%20localhost%20-%20then%20you%20**can%20save%20code**.%20Detailed%20instructions%20are%20below%21%0A3.%20Same%20as%20above%20but%20install%20git%20first%20and%20get%20a%20proper%20clone%20from%20http%3A//github.com/NicolasPetton/amber%20instead%20of%20a%20zip/tar-ball.%20%0A%20%20%20%20If%20you%20want%20to%20**contribute%20to%20Amber%20itself**%20this%20is%20really%20what%20you%20want%20to%20do.%20It%20requires%20installing%20git%20first%2C%20but%20it%20is%20quite%20simple%20-%20although%20we%20leave%20this%20bit%20as%20an%20%22exercise%20to%20the%20reader%22%20%3A%29%0A%0A**PLEASE%20NOTE%3A**%20Amber%20core%20developers%20use%20Linux.%20%0AWe%20do%20not%20want%20to%20introduce%20dependencies%20that%20aren%27t%20cross%20platform%20-%20but%20currently%20amberc%20%28the%20command%20line%20compiler%29%20is%20a%20bash%20script%20and%20we%20also%20use%20Makefiles%20%0A%28for%20building%20Amber%20itself%20and%20server%20side%20examples%29%20written%20on%20Linux/Unix.%20So%20using%20Windows%20is%20currently%20a%20bit%20limited%20-%20you%20can%27t%20run%20%22make%22%20in%20the%20.st%20directory%20to%20rebuild%20whole%20of%20Amber%20for%20example.%0A%20BUT...%20if%20you%20only%20want%20to%20use%20Amber%20to%20build%20web%20client%20apps%20and%20not%20really%20get%20involved%20in%20hacking%20Amber%20itself%20-%20then%20you%20should%20be%20fine%21%0A%0A%23%23%20Downloading%20Amber%0ACurrently%20you%20can%20download%20in%20zip%20or%20tar-ball%20format%2C%20either%20cutting%20edge%20or%20a%20release.%20%5BDownloads%20are%20available%20here%5D%28https%3A//github.com/NicolasPetton/amber/archives/amber%29.%20%0AAt%20the%20moment%20of%20writing%20you%20have%20release%20%5B0.9%20as%20zip%5D%28https%3A//github.com/NicolasPetton/amber/zipball/0.9%29%20or%20%5Btar%5D%28https%3A//github.com/NicolasPetton/amber/tarball/0.9%29%2C%20%0Aor%20%5Bcutting%20edge%20as%20zip%5D%28https%3A//github.com/NicolasPetton/amber/zipball/amber%29%20or%20%5Btar%5D%28https%3A//github.com/NicolasPetton/amber/tarball/amber%29.%0A%0AAt%20the%20moment%20this%20is%20just%20a%20**1.5Mb%20download**%2C%20so%20its%20very%20small.%20Unpack%20wherever%20you%20like%2C%20but%20I%20would%20rename%20the%20directory%20that%20is%20unpacked%20to%20something%20slightly%20shorter%20-%20like%20say%20%22amber-0.9%22%20or%20just%20%22amber%22.%20%0AAnd%20yes%2C%20at%20this%20point%20you%20can%20double%20click%20the%20index.html%20file%20in%20the%20amber%20directory%20to%20get%20the%20IDE%20up%2C%20but%20again%2C%20**you%20will%20not%20be%20able%20to%20save%20code**.%20So%20please%20continue%20below%20%3A%29%0A%0A%23%23%20Installing%20Node.js%0A%5BNode%5D%28http%3A//www.nodejs.org%29%20%28for%20short%29%20is%20simply%20the%20V8%20Javascript%20VM%20from%20Google%20%28used%20in%20Chrome%29%20hooked%20together%20with%20some%20hard%20core%20C-libraries%20for%20doing%20%22evented%20I/O%22.%0A%20Basically%20it%27s%20Javascript%20for%20the%20server%20-%20on%20asynch%20steroids.%20Amber%20runs%20fine%20in%20Node%20and%20we%20use%20it%20for%20several%20Amber%20tools%2C%20like%20amberc%20%28the%20command%20line%20Amber%20compiler%29%20or%20the%20Amber%20server%20%28see%20below%29.%20%0AThere%20are%20also%20several%20Amber-Node%20example%20to%20look%20at%20if%20you%20want%20to%20play%20with%20running%20Amber%20programs%20server%20side.%20**In%20short%20-%20you%20really%20want%20to%20install%20Nodejs.%20%3A%29**%0A%0A-%20Installing%20Node%20on%20Linux%20can%20be%20done%20using%20your%20package%20tool%20of%20choice%20%28%22apt-get%20install%20nodejs%22%20for%20example%29%20or%20any%20other%20way%20described%20at%20%5Bthe%20download%20page%5D%28http%3A//nodejs.org/%23download%29.%0A-%20Installing%20Node%20on%20MacOS%20seems%20to%20be%20easiest%20by%20getting%20it%20from%20%5Bhere%5D%28https%3A//sites.google.com/site/nodejsmacosx/%29.%0A-%20Installing%20Node%20on%20Windows%20is%20probably%20done%20best%20by%20using%20the%20%5Bdownload%20from%20Nodejs.org%5D%28http%3A//nodejs.org/%23download%29.%20This%20is%20not%20an%20installer%2C%20it%20is%20instead%20simply%20the%20node%20executable%20-%20**node.exe**.%0A%20%20%20%20-%20Put%20node.exe%20somewhere%20in%20your%20path.%20In%20Windows7%20I%20can%20run%20a%20command%20prompt%20%22As%20administrator%22%20%28right%20click%20the%20command%20prompt%20in%20Start%20menu%29%20and%20then%20just%20%22copy%20node.exe%20c%3A%5Cwindows%5C%22%20or%20such.%0A%0A%23%23%20Starting%20Amber%20server%0ANicolas%20has%20written%20a%20minimal%20webDAV%20server%20that%20is%20the%20easiest%20way%20to%20get%20up%20and%20running%20Amber%20with%20the%20ability%20to%20save%20code.%20This%20little%20server%20is%20written%20in...%20Amber%21%20%0AAnd%20it%20runs%20on%20top%20of%20Node.%20So%20to%20start%20it%20up%20serving%20your%20brand%20new%20directory%20tree%20of%20sweet%20Amber%20you%20do%3A%0A%0A%20%20%20%20cd%20amber%20%20%20%20%20%20%28or%20whatever%20you%20called%20the%20directory%20you%20unpackaged%29%0A%20%20%20%20./bin/server%20%20%28in%20windows%20you%20type%20%22node%20server%5Cserver.js%22%20instead%29%0A%0AIt%20should%20say%20it%20is%20listening%20on%20port%204000.%20If%20it%20does%2C%20hooray%21%20That%20means%20both%20Node%20and%20Amber%20are%20good.%20In%20Windows%20you%20might%20get%20a%20question%20about%20opening%20that%20port%20in%20the%20local%20firewall%20-%20yep%2C%20do%20it%21%0A%0A%23%23%20Firing%20up%20Amber%0AThe%20Amber%20IDE%20is%20written%20in...%20Amber.%20It%20uses%20JQuery%20and%20runs%20right%20in%20your%20browser%20as%20a%20...%20well%2C%20a%20web%20page.%20%0AWe%20could%20open%20it%20up%20just%20using%20a%20file%20url%20-%20but%20the%20reason%20we%20performed%20the%20previous%20steps%20is%20so%20that%20we%20can%20load%20the%20IDE%20web%20page%20from%20a%20server%20that%20can%20handle%20PUTs%20%28webDAV%29%20of%20source%20code.%20%0AAccording%20to%20web%20security%20Amber%20can%20only%20do%20PUT%20back%20to%20the%20same%20server%20it%20was%20loaded%20from.%20Thus%20we%20instead%20want%20to%20open%20it%20through%20our%20little%20server%20now%20listening%20on%20port%204000%3A%0A%0A%20%20%20%20http%3A//localhost%3A4000/index.html%0A%0AClicking%20the%20above%20link%20should%20get%20your%20Amber%20running.%0A%0ATo%20verify%20that%20you%20can%20indeed%20commit%20-%20just%20select%20a%20Package%20in%20the%20browser%2C%20like%20say%20%22Examples%22%20and%20press%20%22Commit%20package%22%20button.%20**If%20all%20goes%20well%20nothing%20happens%20%3A%29**.%20%0ASo%20in%20order%20to%20really%20know%20if%20it%20worked%20we%20can%20check%20the%20modified%20date%20on%20the%20files%20**amber/st/Examples.st**%2C%20**amber/js/Examples.js**%20and%20**amber/js/Examples.deploy.js**%20-%20they%20should%20be%20brand%20new.%0A%0ANOTE%3A%20We%20can%20use%20any%20webDAV%20server%20and%20Apache2%20has%20been%20used%20earlier%20and%20works%20fine.%20But%20the%20Amber%20server%20is%20smaller%20and%20simpler%20to%20start.%0A%0A")]);})(smalltalk.send((smalltalk.DocChapter || DocChapter), "_new", []));
  131. return self;},
  132. args: [],
  133. source: unescape('ch3GettingStarted%0A%09%5EDocChapter%20new%0A%09%09title%3A%20%27Getting%20started%27%3B%0A%09%09contents%3A%20%27%0ATo%20get%20started%20hacking%20in%20Amber%20you%20can%20basically%20take%20three%20routes%2C%20independent%20of%20your%20platform%3A%0A%0A1.%20Just%20try%20it%20out%20at%20http%3A//www.amber-lang.net%20%28click%20the%20%22Class%20browser%22%20button%29%20-%20but%20you%20will%20**not%20be%20able%20to%20save%20any%20code%20you%20write**%21%20%0A%20%20%20%20Still%2C%20it%20works%20fine%20for%20looking%20at%20the%20IDE%20and%20playing%20around.%20Just%20don%27%27t%20press%20F5/reload%20-%20it%20will%20bring%20you%20back%20to%20zero.%20%0A%20%20%20%20%28Well%2C%20if%20you%20still%20want%20to%20develop%20and%20save%20code%20online%20someone%20has%20set%20up%20this%20site%20seems%20for%20free%20use%3A%20https%3A//www.screwtopdb.com/amberstore/topics%3Fname%3Damberstore/amber.html%20%29%0A2.%20Download%20an%20Amber%20zip-ball%2C%20install%20Nodejs%2C%20fire%20up%20the%20Amber%20server%20and%20then%20open%20Amber%20from%20localhost%20-%20then%20you%20**can%20save%20code**.%20Detailed%20instructions%20are%20below%21%0A3.%20Same%20as%20above%20but%20install%20git%20first%20and%20get%20a%20proper%20clone%20from%20http%3A//github.com/NicolasPetton/amber%20instead%20of%20a%20zip/tar-ball.%20%0A%20%20%20%20If%20you%20want%20to%20**contribute%20to%20Amber%20itself**%20this%20is%20really%20what%20you%20want%20to%20do.%20It%20requires%20installing%20git%20first%2C%20but%20it%20is%20quite%20simple%20-%20although%20we%20leave%20this%20bit%20as%20an%20%22exercise%20to%20the%20reader%22%20%3A%29%0A%0A**PLEASE%20NOTE%3A**%20Amber%20core%20developers%20use%20Linux.%20%0AWe%20do%20not%20want%20to%20introduce%20dependencies%20that%20aren%27%27t%20cross%20platform%20-%20but%20currently%20amberc%20%28the%20command%20line%20compiler%29%20is%20a%20bash%20script%20and%20we%20also%20use%20Makefiles%20%0A%28for%20building%20Amber%20itself%20and%20server%20side%20examples%29%20written%20on%20Linux/Unix.%20So%20using%20Windows%20is%20currently%20a%20bit%20limited%20-%20you%20can%27%27t%20run%20%22make%22%20in%20the%20.st%20directory%20to%20rebuild%20whole%20of%20Amber%20for%20example.%0A%20BUT...%20if%20you%20only%20want%20to%20use%20Amber%20to%20build%20web%20client%20apps%20and%20not%20really%20get%20involved%20in%20hacking%20Amber%20itself%20-%20then%20you%20should%20be%20fine%21%0A%0A%23%23%20Downloading%20Amber%0ACurrently%20you%20can%20download%20in%20zip%20or%20tar-ball%20format%2C%20either%20cutting%20edge%20or%20a%20release.%20%5BDownloads%20are%20available%20here%5D%28https%3A//github.com/NicolasPetton/amber/archives/amber%29.%20%0AAt%20the%20moment%20of%20writing%20you%20have%20release%20%5B0.9%20as%20zip%5D%28https%3A//github.com/NicolasPetton/amber/zipball/0.9%29%20or%20%5Btar%5D%28https%3A//github.com/NicolasPetton/amber/tarball/0.9%29%2C%20%0Aor%20%5Bcutting%20edge%20as%20zip%5D%28https%3A//github.com/NicolasPetton/amber/zipball/amber%29%20or%20%5Btar%5D%28https%3A//github.com/NicolasPetton/amber/tarball/amber%29.%0A%0AAt%20the%20moment%20this%20is%20just%20a%20**1.5Mb%20download**%2C%20so%20its%20very%20small.%20Unpack%20wherever%20you%20like%2C%20but%20I%20would%20rename%20the%20directory%20that%20is%20unpacked%20to%20something%20slightly%20shorter%20-%20like%20say%20%22amber-0.9%22%20or%20just%20%22amber%22.%20%0AAnd%20yes%2C%20at%20this%20point%20you%20can%20double%20click%20the%20index.html%20file%20in%20the%20amber%20directory%20to%20get%20the%20IDE%20up%2C%20but%20again%2C%20**you%20will%20not%20be%20able%20to%20save%20code**.%20So%20please%20continue%20below%20%3A%29%0A%0A%23%23%20Installing%20Node.js%0A%5BNode%5D%28http%3A//www.nodejs.org%29%20%28for%20short%29%20is%20simply%20the%20V8%20Javascript%20VM%20from%20Google%20%28used%20in%20Chrome%29%20hooked%20together%20with%20some%20hard%20core%20C-libraries%20for%20doing%20%22evented%20I/O%22.%0A%20Basically%20it%27%27s%20Javascript%20for%20the%20server%20-%20on%20asynch%20steroids.%20Amber%20runs%20fine%20in%20Node%20and%20we%20use%20it%20for%20several%20Amber%20tools%2C%20like%20amberc%20%28the%20command%20line%20Amber%20compiler%29%20or%20the%20Amber%20server%20%28see%20below%29.%20%0AThere%20are%20also%20several%20Amber-Node%20example%20to%20look%20at%20if%20you%20want%20to%20play%20with%20running%20Amber%20programs%20server%20side.%20**In%20short%20-%20you%20really%20want%20to%20install%20Nodejs.%20%3A%29**%0A%0A-%20Installing%20Node%20on%20Linux%20can%20be%20done%20using%20your%20package%20tool%20of%20choice%20%28%22apt-get%20install%20nodejs%22%20for%20example%29%20or%20any%20other%20way%20described%20at%20%5Bthe%20download%20page%5D%28http%3A//nodejs.org/%23download%29.%0A-%20Installing%20Node%20on%20MacOS%20seems%20to%20be%20easiest%20by%20getting%20it%20from%20%5Bhere%5D%28https%3A//sites.google.com/site/nodejsmacosx/%29.%0A-%20Installing%20Node%20on%20Windows%20is%20probably%20done%20best%20by%20using%20the%20%5Bdownload%20from%20Nodejs.org%5D%28http%3A//nodejs.org/%23download%29.%20This%20is%20not%20an%20installer%2C%20it%20is%20instead%20simply%20the%20node%20executable%20-%20**node.exe**.%0A%20%20%20%20-%20Put%20node.exe%20somewhere%20in%20your%20path.%20In%20Windows7%20I%20can%20run%20a%20command%20prompt%20%22As%20administrator%22%20%28right%20click%20the%20command%20prompt%20in%20Start%20menu%29%20and%20then%20just%20%22copy%20node.exe%20c%3A%5Cwindows%5C%22%20or%20such.%0A%0A%23%23%20Starting%20Amber%20server%0ANicolas%20has%20written%20a%20minimal%20webDAV%20server%20that%20is%20the%20easiest%20way%20to%20get%20up%20and%20running%20Amber%20with%20the%20ability%20to%20save%20code.%20This%20little%20server%20is%20written%20in...%20Amber%21%20%0AAnd%20it%20runs%20on%20top%20of%20Node.%20So%20to%20start%20it%20up%20serving%20your%20brand%20new%20directory%20tree%20of%20sweet%20Amber%20you%20do%3A%0A%0A%20%20%20%20cd%20amber%20%20%20%20%20%20%28or%20whatever%20you%20called%20the%20directory%20you%20unpackaged%29%0A%20%20%20%20./bin/server%20%20%28in%20windows%20you%20type%20%22node%20server%5Cserver.js%22%20instead%29%0A%0AIt%20should%20say%20it%20is%20listening%20on%20port%204000.%20If%20it%20does%2C%20hooray%21%20That%20means%20both%20Node%20and%20Amber%20are%20good.%20In%20Windows%20you%20might%20get%20a%20question%20about%20opening%20that%20port%20in%20the%20local%20firewall%20-%20yep%2C%20do%20it%21%0A%0A%23%23%20Firing%20up%20Amber%0AThe%20Amber%20IDE%20is%20written%20in...%20Amber.%20It%20uses%20JQuery%20and%20runs%20right%20in%20your%20browser%20as%20a%20...%20well%2C%20a%20web%20page.%20%0AWe%20could%20open%20it%20up%20just%20using%20a%20file%20url%20-%20but%20the%20reason%20we%20performed%20the%20previous%20steps%20is%20so%20that%20we%20can%20load%20the%20IDE%20web%20page%20from%20a%20server%20that%20can%20handle%20PUTs%20%28webDAV%29%20of%20source%20code.%20%0AAccording%20to%20web%20security%20Amber%20can%20only%20do%20PUT%20back%20to%20the%20same%20server%20it%20was%20loaded%20from.%20Thus%20we%20instead%20want%20to%20open%20it%20through%20our%20little%20server%20now%20listening%20on%20port%204000%3A%0A%0A%20%20%20%20http%3A//localhost%3A4000/index.html%0A%0AClicking%20the%20above%20link%20should%20get%20your%20Amber%20running.%0A%0ATo%20verify%20that%20you%20can%20indeed%20commit%20-%20just%20select%20a%20Package%20in%20the%20browser%2C%20like%20say%20%22Examples%22%20and%20press%20%22Commit%20package%22%20button.%20**If%20all%20goes%20well%20nothing%20happens%20%3A%29**.%20%0ASo%20in%20order%20to%20really%20know%20if%20it%20worked%20we%20can%20check%20the%20modified%20date%20on%20the%20files%20**amber/st/Examples.st**%2C%20**amber/js/Examples.js**%20and%20**amber/js/Examples.deploy.js**%20-%20they%20should%20be%20brand%20new.%0A%0ANOTE%3A%20We%20can%20use%20any%20webDAV%20server%20and%20Apache2%20has%20been%20used%20earlier%20and%20works%20fine.%20But%20the%20Amber%20server%20is%20smaller%20and%20simpler%20to%20start.%0A%0A%27'),
  134. messageSends: ["title:", "contents:", "new"],
  135. referencedClasses: ["DocChapter"]
  136. }),
  137. smalltalk.DocumentationBuilder);
  138. smalltalk.addMethod(
  139. unescape('_ch4FirstApp'),
  140. smalltalk.method({
  141. selector: unescape('ch4FirstApp'),
  142. category: 'chapters',
  143. fn: function (){
  144. var self=this;
  145. return (function($rec){smalltalk.send($rec, "_title_", ["A first application"]);return smalltalk.send($rec, "_contents_", [unescape("%0A%0ALet%27s%20make%20Hello%20World%20in%20Amber.%0A%0AFirst%2C%20you%20need%20a%20place%20for%20your%20new%20project.%20I%20made%20a%20new%20directory%20under%20amber%3A%0A%0A%20%20%20%20amber/projects/hello%0A%0AThis%20will%20store%20your%20project%20files.%20To%20get%20started%2C%20add%20a%20new%20index.html%20file%20to%20this%20folder%2C%20as%20well%20as%20empty%20js%20and%20st%20folders.%0A%0AYour%20index.html%20can%20be%20really%20basic.%20The%20most%20important%20thing%20it%20does%20is%20include%20amber.js%20and%20run%20loadAmber.%20Here%20is%20a%20basic%20index.html%20you%20can%20use%3A%0A%0A%0A%20%20%20%20%3C%21DOCTYPE%20html%3E%0A%20%20%20%20%3Chtml%3E%0A%20%20%20%20%20%20%3Chead%3E%0A%20%20%20%20%20%20%20%20%3Ctitle%3EMy%20First%20Amber%20Project%3C/title%3E%0A%20%20%20%20%20%20%20%20%3Cscript%20src%3D%22../../js/amber.js%22%20type%3D%22text/javascript%22%3E%3C/script%3E%0A%20%20%20%20%20%20%20%20%3Cscript%20type%3D%22text/javascript%22%3E%0A%20%20%20%20%20%20%20%20%20%20loadAmber%28%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20files%3A%20%5B%5D%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20prefix%3A%20%27projects/hello/js%27%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20ready%3A%20function%28%29%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%7D%29%3B%20%0A%20%20%20%20%20%20%20%20%3C/script%3E%0A%20%20%20%20%20%20%3C/head%3E%0A%20%20%20%20%20%20%3Cbody%3E%0A%20%20%20%20%20%20%20%20%3Carticle%3E%0A%20%20%20%20%20%20%20%20%20%20%3Ch1%3EMy%20First%20Amber%20Project%3C/h1%3E%0A%20%20%20%20%20%20%20%20%20%20%3Cbutton%20onclick%3D%22smalltalk.Browser._open%28%29%22%3Eclass%20browser%3C/button%3E%0A%20%20%20%20%20%20%20%20%20%20%3Cbutton%20id%3D%22sayHello%22%3Esay%20hello%3C/button%3E%0A%20%20%20%20%20%20%20%20%3C/article%3E%0A%20%20%20%20%20%20%3C/body%3E%0A%20%20%20%20%3C/html%3E%0A%0ANow%20start%20up%20amber%20with%20node.js%20and%20navigate%20to%20%20http%3A//localhost%3A4000/projects/hello/index.html%0A%0AIt%27s%20boring%20so%20far%2C%20so%20lets%20write%20some%20code.%20Click%20the%20button%20to%20open%20the%20class%20browser.%20Find%20an%20existing%20class%20and%20change%20its%20name%20to%20Hello%20and%20its%20package%20to%20HelloApp.%20%0AThen%20click%20save.%20This%20creates%20a%20new%20class%20and%20leaves%20the%20old%20one%20intact%2C%20it%20doesn%27t%20overwrite%20it.%20Your%20class%20will%20look%20like%20this%3A%0A%0A%20%20%20%20Object%20subclass%3A%20%23Hello%0A%20%20%20%20%20%20%20%20instanceVariableNames%3A%20%27%27%0A%20%20%20%20%20%20%20%20package%3A%20%27HelloApp%27%0A%0ANow%20click%20save%20and%20navigate%20to%20your%20new%20class%20in%20its%20new%20package.%0A%20Then%20click%20%27commit%20package%27.%20You%20just%20created%20a%20new%20class%20and%20saved%20your%20work.%20%0AOn%20your%20file%20system%20check%20out%20your%20js%20and%20st%20folders.%20Your%20new%20class%20is%20now%20saved%20in%20both%20JavaScript%20and%20Smalltalk.%0A%0ANow%2C%20refresh%20your%20browser%20page%20and%20reopen%20the%20class%20browser.%20Oh%20no%2C%20your%20new%20class%20is%20gone%21%20To%20load%20your%20new%20class%20automatically%2C%20you%20have%20to%20add%20it%20in%20index.html.%20Make%20your%20JavaScript%20look%20like%20this%3A%0A%0A%0A%20%20%20%20loadAmber%28%7B%0A%20%20%20%20%20%20%20%20files%3A%20%5B%27HelloApp.js%27%5D%2C%0A%20%20%20%20%20%20%20%20prefix%3A%20%27projects/hello/js%27%2C%0A%20%20%20%20%20%20%20%20ready%3A%20function%28%29%20%7B%20%20%20%20%20%20%0A%20%20%20%20%7D%7D%29%3B%20%0A%0ASave%20and%20refresh%20again.%20Now%20your%20class%20is%20loaded%20and%20shows%20up%20in%20the%20class%20browser.%0A%0ANow%2C%20let%27s%20make%20this%20class%20do%20something.%20Create%20a%20new%20message%20in%20the%20class%20browser%20by%20navigating%20to%20your%20class%2C%20then%20clicking%20%27not%20yet%20classified%27%20and%20fill%20in%20a%20simple%20message.%20Try%20this%20for%20example%3A%0A%0A%20%20%20%20begin%0A%09%22Makes%20me%20say%20hello%20to%20the%20user.%22%0A%0A%09%7C%20msg%20button%20%7C%0A%09msg%20%3A%3D%20%27Hello%20world%21%27.%0A%09button%20%3A%3D%20%27%23sayHello%27%20asJQuery.%0A%09button%20click%3A%20%5Bbutton%20after%3A%20%27%3Cp%3E%27%20%2C%20msg%20%2C%20%27%3C/p%3E%27%5D.%0A%0AYour%20message%20isn%27t%20too%20helpful%20if%20it%20doesn%27t%20get%20called.%20Save%20it%2C%20commit%20the%20package%2C%20then%20edit%20index.html%20again.%20You%20can%20write%20JavaScript%20code%20that%20sends%20a%20message%20to%20Smalltalk%3A%0A%0A%20%20%20%20loadAmber%28%7B%0A%20%20%20%20%20%20%20%20files%3A%20%5B%27HelloApp.js%27%5D%2C%0A%20%20%20%20%20%20%20%20prefix%3A%20%27projects/hello/js%27%2C%20//%20path%20for%20js%20files%20i%20think%0A%20%20%20%20%20%20%20%20ready%3A%20function%28%29%20%7B%0A%20%20%20%20%20%20%20%20%20%20%24%28function%28%29%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20smalltalk.Hello._new%28%29._begin%28%29%3B%0A%20%20%20%20%20%20%20%20%20%20%7D%29%3B%0A%20%20%20%20%7D%7D%29%3B%20%0A%0AFrom%20there%2C%20you%20can%20create%20new%20Smalltalk%20classes%20and%20messages%20to%20build%20up%20your%20app.%20Enjoy%21%0A")]);})(smalltalk.send((smalltalk.DocChapter || DocChapter), "_new", []));
  146. return self;},
  147. args: [],
  148. source: unescape('ch4FirstApp%0A%09%5EDocChapter%20new%0A%09%09title%3A%20%27A%20first%20application%27%3B%0A%09%09contents%3A%20%27%0A%0ALet%27%27s%20make%20Hello%20World%20in%20Amber.%0A%0AFirst%2C%20you%20need%20a%20place%20for%20your%20new%20project.%20I%20made%20a%20new%20directory%20under%20amber%3A%0A%0A%20%20%20%20amber/projects/hello%0A%0AThis%20will%20store%20your%20project%20files.%20To%20get%20started%2C%20add%20a%20new%20index.html%20file%20to%20this%20folder%2C%20as%20well%20as%20empty%20js%20and%20st%20folders.%0A%0AYour%20index.html%20can%20be%20really%20basic.%20The%20most%20important%20thing%20it%20does%20is%20include%20amber.js%20and%20run%20loadAmber.%20Here%20is%20a%20basic%20index.html%20you%20can%20use%3A%0A%0A%0A%20%20%20%20%3C%21DOCTYPE%20html%3E%0A%20%20%20%20%3Chtml%3E%0A%20%20%20%20%20%20%3Chead%3E%0A%20%20%20%20%20%20%20%20%3Ctitle%3EMy%20First%20Amber%20Project%3C/title%3E%0A%20%20%20%20%20%20%20%20%3Cscript%20src%3D%22../../js/amber.js%22%20type%3D%22text/javascript%22%3E%3C/script%3E%0A%20%20%20%20%20%20%20%20%3Cscript%20type%3D%22text/javascript%22%3E%0A%20%20%20%20%20%20%20%20%20%20loadAmber%28%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20files%3A%20%5B%5D%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20prefix%3A%20%27%27projects/hello/js%27%27%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20ready%3A%20function%28%29%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%7D%29%3B%20%0A%20%20%20%20%20%20%20%20%3C/script%3E%0A%20%20%20%20%20%20%3C/head%3E%0A%20%20%20%20%20%20%3Cbody%3E%0A%20%20%20%20%20%20%20%20%3Carticle%3E%0A%20%20%20%20%20%20%20%20%20%20%3Ch1%3EMy%20First%20Amber%20Project%3C/h1%3E%0A%20%20%20%20%20%20%20%20%20%20%3Cbutton%20onclick%3D%22smalltalk.Browser._open%28%29%22%3Eclass%20browser%3C/button%3E%0A%20%20%20%20%20%20%20%20%20%20%3Cbutton%20id%3D%22sayHello%22%3Esay%20hello%3C/button%3E%0A%20%20%20%20%20%20%20%20%3C/article%3E%0A%20%20%20%20%20%20%3C/body%3E%0A%20%20%20%20%3C/html%3E%0A%0ANow%20start%20up%20amber%20with%20node.js%20and%20navigate%20to%20%20http%3A//localhost%3A4000/projects/hello/index.html%0A%0AIt%27%27s%20boring%20so%20far%2C%20so%20lets%20write%20some%20code.%20Click%20the%20button%20to%20open%20the%20class%20browser.%20Find%20an%20existing%20class%20and%20change%20its%20name%20to%20Hello%20and%20its%20package%20to%20HelloApp.%20%0AThen%20click%20save.%20This%20creates%20a%20new%20class%20and%20leaves%20the%20old%20one%20intact%2C%20it%20doesn%27%27t%20overwrite%20it.%20Your%20class%20will%20look%20like%20this%3A%0A%0A%20%20%20%20Object%20subclass%3A%20%23Hello%0A%20%20%20%20%20%20%20%20instanceVariableNames%3A%20%27%27%27%27%0A%20%20%20%20%20%20%20%20package%3A%20%27%27HelloApp%27%27%0A%0ANow%20click%20save%20and%20navigate%20to%20your%20new%20class%20in%20its%20new%20package.%0A%20Then%20click%20%27%27commit%20package%27%27.%20You%20just%20created%20a%20new%20class%20and%20saved%20your%20work.%20%0AOn%20your%20file%20system%20check%20out%20your%20js%20and%20st%20folders.%20Your%20new%20class%20is%20now%20saved%20in%20both%20JavaScript%20and%20Smalltalk.%0A%0ANow%2C%20refresh%20your%20browser%20page%20and%20reopen%20the%20class%20browser.%20Oh%20no%2C%20your%20new%20class%20is%20gone%21%20To%20load%20your%20new%20class%20automatically%2C%20you%20have%20to%20add%20it%20in%20index.html.%20Make%20your%20JavaScript%20look%20like%20this%3A%0A%0A%0A%20%20%20%20loadAmber%28%7B%0A%20%20%20%20%20%20%20%20files%3A%20%5B%27%27HelloApp.js%27%27%5D%2C%0A%20%20%20%20%20%20%20%20prefix%3A%20%27%27projects/hello/js%27%27%2C%0A%20%20%20%20%20%20%20%20ready%3A%20function%28%29%20%7B%20%20%20%20%20%20%0A%20%20%20%20%7D%7D%29%3B%20%0A%0ASave%20and%20refresh%20again.%20Now%20your%20class%20is%20loaded%20and%20shows%20up%20in%20the%20class%20browser.%0A%0ANow%2C%20let%27%27s%20make%20this%20class%20do%20something.%20Create%20a%20new%20message%20in%20the%20class%20browser%20by%20navigating%20to%20your%20class%2C%20then%20clicking%20%27%27not%20yet%20classified%27%27%20and%20fill%20in%20a%20simple%20message.%20Try%20this%20for%20example%3A%0A%0A%20%20%20%20begin%0A%09%22Makes%20me%20say%20hello%20to%20the%20user.%22%0A%0A%09%7C%20msg%20button%20%7C%0A%09msg%20%3A%3D%20%27%27Hello%20world%21%27%27.%0A%09button%20%3A%3D%20%27%27%23sayHello%27%27%20asJQuery.%0A%09button%20click%3A%20%5Bbutton%20after%3A%20%27%27%3Cp%3E%27%27%20%2C%20msg%20%2C%20%27%27%3C/p%3E%27%27%5D.%0A%0AYour%20message%20isn%27%27t%20too%20helpful%20if%20it%20doesn%27%27t%20get%20called.%20Save%20it%2C%20commit%20the%20package%2C%20then%20edit%20index.html%20again.%20You%20can%20write%20JavaScript%20code%20that%20sends%20a%20message%20to%20Smalltalk%3A%0A%0A%20%20%20%20loadAmber%28%7B%0A%20%20%20%20%20%20%20%20files%3A%20%5B%27%27HelloApp.js%27%27%5D%2C%0A%20%20%20%20%20%20%20%20prefix%3A%20%27%27projects/hello/js%27%27%2C%20//%20path%20for%20js%20files%20i%20think%0A%20%20%20%20%20%20%20%20ready%3A%20function%28%29%20%7B%0A%20%20%20%20%20%20%20%20%20%20%24%28function%28%29%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20smalltalk.Hello._new%28%29._begin%28%29%3B%0A%20%20%20%20%20%20%20%20%20%20%7D%29%3B%0A%20%20%20%20%7D%7D%29%3B%20%0A%0AFrom%20there%2C%20you%20can%20create%20new%20Smalltalk%20classes%20and%20messages%20to%20build%20up%20your%20app.%20Enjoy%21%0A%27'),
  149. messageSends: ["title:", "contents:", "new"],
  150. referencedClasses: ["DocChapter"]
  151. }),
  152. smalltalk.DocumentationBuilder);
  153. smalltalk.addMethod(
  154. unescape('_ch5Index'),
  155. smalltalk.method({
  156. selector: unescape('ch5Index'),
  157. category: 'chapters',
  158. fn: function (){
  159. var self=this;
  160. return smalltalk.send((smalltalk.ClassesIndexChapter || ClassesIndexChapter), "_new", []);
  161. return self;},
  162. args: [],
  163. source: unescape('ch5Index%0A%09%5EClassesIndexChapter%20new'),
  164. messageSends: ["new"],
  165. referencedClasses: ["ClassesIndexChapter"]
  166. }),
  167. smalltalk.DocumentationBuilder);
  168. smalltalk.addMethod(
  169. unescape('_ch6KernelObjects'),
  170. smalltalk.method({
  171. selector: unescape('ch6KernelObjects'),
  172. category: 'chapters',
  173. fn: function (){
  174. var self=this;
  175. return (function($rec){smalltalk.send($rec, "_title_", [unescape("Kernel-Objects")]);smalltalk.send($rec, "_package_", [smalltalk.send((smalltalk.Package || Package), "_named_", [unescape("Kernel-Objects")])]);return smalltalk.send($rec, "_contents_", [""]);})(smalltalk.send((smalltalk.PackageDocChapter || PackageDocChapter), "_new", []));
  176. return self;},
  177. args: [],
  178. source: unescape('ch6KernelObjects%0A%09%5EPackageDocChapter%20new%0A%09%09title%3A%20%27Kernel-Objects%27%3B%0A%09%09package%3A%20%28Package%20named%3A%20%27Kernel-Objects%27%29%3B%0A%09%09contents%3A%20%27%27'),
  179. messageSends: ["title:", "package:", "named:", "contents:", "new"],
  180. referencedClasses: ["Package", "PackageDocChapter"]
  181. }),
  182. smalltalk.DocumentationBuilder);
  183. smalltalk.DocumentationBuilder.klass.iVarNames = ['current'];
  184. smalltalk.addMethod(
  185. unescape('_initialize'),
  186. smalltalk.method({
  187. selector: unescape('initialize'),
  188. category: 'initialization',
  189. fn: function (){
  190. var self=this;
  191. smalltalk.send(smalltalk.send(self, "_current", []), "_buildOnJQuery_", [smalltalk.send((typeof window == 'undefined' ? nil : window), "_jQuery_", ["body"])]);
  192. return self;},
  193. args: [],
  194. source: unescape('initialize%0A%09self%20current%20buildOnJQuery%3A%20%28window%20jQuery%3A%20%27body%27%29'),
  195. messageSends: ["buildOnJQuery:", "current", "jQuery:"],
  196. referencedClasses: []
  197. }),
  198. smalltalk.DocumentationBuilder.klass);
  199. smalltalk.addMethod(
  200. unescape('_current'),
  201. smalltalk.method({
  202. selector: unescape('current'),
  203. category: 'accessing',
  204. fn: function (){
  205. var self=this;
  206. return (($receiver = self['@current']) == nil || $receiver == undefined) ? (function(){return self['@current']=smalltalk.send(self, "_new", []);})() : $receiver;
  207. return self;},
  208. args: [],
  209. source: unescape('current%0A%09%5Ecurrent%20ifNil%3A%20%5Bcurrent%20%3A%3D%20self%20new%5D'),
  210. messageSends: ["ifNil:", "new"],
  211. referencedClasses: []
  212. }),
  213. smalltalk.DocumentationBuilder.klass);
  214. smalltalk.addClass('DocChapter', smalltalk.Widget, ['title', 'contents', 'parent'], 'Documentation');
  215. smalltalk.addMethod(
  216. unescape('_title'),
  217. smalltalk.method({
  218. selector: unescape('title'),
  219. category: 'accessing',
  220. fn: function (){
  221. var self=this;
  222. return (($receiver = self['@title']) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
  223. return self;},
  224. args: [],
  225. source: unescape('title%0A%09%5Etitle%20ifNil%3A%20%5B%27%27%5D'),
  226. messageSends: ["ifNil:"],
  227. referencedClasses: []
  228. }),
  229. smalltalk.DocChapter);
  230. smalltalk.addMethod(
  231. unescape('_title_'),
  232. smalltalk.method({
  233. selector: unescape('title%3A'),
  234. category: 'accessing',
  235. fn: function (aString){
  236. var self=this;
  237. self['@title']=aString;
  238. return self;},
  239. args: ["aString"],
  240. source: unescape('title%3A%20aString%0A%09title%20%3A%3D%20aString'),
  241. messageSends: [],
  242. referencedClasses: []
  243. }),
  244. smalltalk.DocChapter);
  245. smalltalk.addMethod(
  246. unescape('_contents'),
  247. smalltalk.method({
  248. selector: unescape('contents'),
  249. category: 'accessing',
  250. fn: function (){
  251. var self=this;
  252. return self['@contents'];
  253. return self;},
  254. args: [],
  255. source: unescape('contents%0A%09%5Econtents'),
  256. messageSends: [],
  257. referencedClasses: []
  258. }),
  259. smalltalk.DocChapter);
  260. smalltalk.addMethod(
  261. unescape('_contents_'),
  262. smalltalk.method({
  263. selector: unescape('contents%3A'),
  264. category: 'accessing',
  265. fn: function (aString){
  266. var self=this;
  267. self['@contents']=aString;
  268. return self;},
  269. args: ["aString"],
  270. source: unescape('contents%3A%20aString%0A%09contents%20%3A%3D%20aString'),
  271. messageSends: [],
  272. referencedClasses: []
  273. }),
  274. smalltalk.DocChapter);
  275. smalltalk.addMethod(
  276. unescape('_htmlContents'),
  277. smalltalk.method({
  278. selector: unescape('htmlContents'),
  279. category: 'accessing',
  280. fn: function (){
  281. var self=this;
  282. return smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Showdown || Showdown), "_at_", [smalltalk.symbolFor("converter")]), "_new", []), "_makeHtml_", [smalltalk.send(self, "_contents", [])]);
  283. return self;},
  284. args: [],
  285. source: unescape('htmlContents%0A%09%5E%28Showdown%20at%3A%20%23converter%29%20new%20makeHtml%3A%20self%20contents'),
  286. messageSends: ["makeHtml:", "new", "at:", "contents"],
  287. referencedClasses: ["Showdown"]
  288. }),
  289. smalltalk.DocChapter);
  290. smalltalk.addMethod(
  291. unescape('_chapters'),
  292. smalltalk.method({
  293. selector: unescape('chapters'),
  294. category: 'accessing',
  295. fn: function (){
  296. var self=this;
  297. return [];
  298. return self;},
  299. args: [],
  300. source: unescape('chapters%0A%09%22A%20doc%20chapter%20can%20contain%20sub%20chapters%22%0A%09%5E%23%28%29'),
  301. messageSends: [],
  302. referencedClasses: []
  303. }),
  304. smalltalk.DocChapter);
  305. smalltalk.addMethod(
  306. unescape('_renderOn_'),
  307. smalltalk.method({
  308. selector: unescape('renderOn%3A'),
  309. category: 'rendering',
  310. fn: function (html){
  311. var self=this;
  312. (function($rec){smalltalk.send($rec, "_class_", [smalltalk.send(self, "_cssClass", [])]);return smalltalk.send($rec, "_with_", [(function(){smalltalk.send(self, "_renderDocOn_", [html]);return smalltalk.send(self, "_renderLinksOn_", [html]);})]);})(smalltalk.send(html, "_div", []));
  313. return self;},
  314. args: ["html"],
  315. source: unescape('renderOn%3A%20html%0A%09html%20div%20%0A%09%09class%3A%20self%20cssClass%3B%0A%09%09with%3A%20%5B%0A%09%09%09self%20renderDocOn%3A%20html.%0A%09%09%09self%20renderLinksOn%3A%20html%5D'),
  316. messageSends: ["class:", "cssClass", "with:", "renderDocOn:", "renderLinksOn:", "div"],
  317. referencedClasses: []
  318. }),
  319. smalltalk.DocChapter);
  320. smalltalk.addMethod(
  321. unescape('_cssClass'),
  322. smalltalk.method({
  323. selector: unescape('cssClass'),
  324. category: 'accessing',
  325. fn: function (){
  326. var self=this;
  327. return "doc_chapter";
  328. return self;},
  329. args: [],
  330. source: unescape('cssClass%0A%09%5E%27doc_chapter%27'),
  331. messageSends: [],
  332. referencedClasses: []
  333. }),
  334. smalltalk.DocChapter);
  335. smalltalk.addMethod(
  336. unescape('_renderDocOn_'),
  337. smalltalk.method({
  338. selector: unescape('renderDocOn%3A'),
  339. category: 'rendering',
  340. fn: function (html){
  341. var self=this;
  342. var div=nil;
  343. smalltalk.send(smalltalk.send(html, "_h1", []), "_with_", [smalltalk.send(self, "_title", [])]);
  344. smalltalk.send(self, "_renderNavigationOn_", [html]);
  345. div=smalltalk.send(smalltalk.send(html, "_div", []), "_class_", ["contents"]);
  346. smalltalk.send(smalltalk.send(div, "_asJQuery", []), "_html_", [smalltalk.send(self, "_htmlContents", [])]);
  347. return self;},
  348. args: ["html"],
  349. source: unescape('renderDocOn%3A%20html%0A%09%7C%20div%20%7C%0A%09html%20h1%20with%3A%20self%20title.%0A%09self%20renderNavigationOn%3A%20html.%0A%09div%20%3A%3D%20html%20div%20class%3A%20%27contents%27.%0A%09div%20asJQuery%20html%3A%20self%20htmlContents'),
  350. messageSends: ["with:", "h1", "title", "renderNavigationOn:", "class:", "div", "html:", "asJQuery", "htmlContents"],
  351. referencedClasses: []
  352. }),
  353. smalltalk.DocChapter);
  354. smalltalk.addMethod(
  355. unescape('_level'),
  356. smalltalk.method({
  357. selector: unescape('level'),
  358. category: 'accessing',
  359. fn: function (){
  360. var self=this;
  361. return (($receiver = smalltalk.send(self, "_parent", [])) == nil || $receiver == undefined) ? (function(){return (1);})() : (function(){return ((($receiver = smalltalk.send(smalltalk.send(self, "_parent", []), "_level", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));})();
  362. return self;},
  363. args: [],
  364. source: unescape('level%0A%09%5Eself%20parent%20ifNil%3A%20%5B1%5D%20ifNotNil%3A%20%5Bself%20parent%20level%20+1%5D'),
  365. messageSends: ["ifNil:ifNotNil:", "parent", unescape("+"), "level"],
  366. referencedClasses: []
  367. }),
  368. smalltalk.DocChapter);
  369. smalltalk.addMethod(
  370. unescape('_level_'),
  371. smalltalk.method({
  372. selector: unescape('level%3A'),
  373. category: 'accessing',
  374. fn: function (anInteger){
  375. var self=this;
  376. self['@level']=anInteger;
  377. return self;},
  378. args: ["anInteger"],
  379. source: unescape('level%3A%20anInteger%0A%09level%20%3A%3D%20anInteger'),
  380. messageSends: [],
  381. referencedClasses: []
  382. }),
  383. smalltalk.DocChapter);
  384. smalltalk.addMethod(
  385. unescape('_selectClass_'),
  386. smalltalk.method({
  387. selector: unescape('selectClass%3A'),
  388. category: 'actions',
  389. fn: function (aClass){
  390. var self=this;
  391. smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.DocumentationBuilder || DocumentationBuilder), "_current", []), "_announcer", []), "_announce_", [smalltalk.send((smalltalk.ClassSelectionAnnouncement || ClassSelectionAnnouncement), "_on_", [aClass])]);
  392. return self;},
  393. args: ["aClass"],
  394. source: unescape('selectClass%3A%20aClass%0A%09DocumentationBuilder%20current%20announcer%20announce%3A%20%28ClassSelectionAnnouncement%20on%3A%20aClass%29'),
  395. messageSends: ["announce:", "announcer", "current", "on:"],
  396. referencedClasses: ["DocumentationBuilder", "ClassSelectionAnnouncement"]
  397. }),
  398. smalltalk.DocChapter);
  399. smalltalk.addMethod(
  400. unescape('_parent'),
  401. smalltalk.method({
  402. selector: unescape('parent'),
  403. category: 'accessing',
  404. fn: function (){
  405. var self=this;
  406. return self['@parent'];
  407. return self;},
  408. args: [],
  409. source: unescape('parent%0A%09%5Eparent'),
  410. messageSends: [],
  411. referencedClasses: []
  412. }),
  413. smalltalk.DocChapter);
  414. smalltalk.addMethod(
  415. unescape('_parent_'),
  416. smalltalk.method({
  417. selector: unescape('parent%3A'),
  418. category: 'accessing',
  419. fn: function (aChapter){
  420. var self=this;
  421. self['@parent']=aChapter;
  422. return self;},
  423. args: ["aChapter"],
  424. source: unescape('parent%3A%20aChapter%0A%09parent%20%3A%3D%20aChapter'),
  425. messageSends: [],
  426. referencedClasses: []
  427. }),
  428. smalltalk.DocChapter);
  429. smalltalk.addMethod(
  430. unescape('_selectChapter_'),
  431. smalltalk.method({
  432. selector: unescape('selectChapter%3A'),
  433. category: 'actions',
  434. fn: function (aChapter){
  435. var self=this;
  436. smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.DocumentationBuilder || DocumentationBuilder), "_current", []), "_widget", []), "_selectChapter_", [aChapter]);
  437. return self;},
  438. args: ["aChapter"],
  439. source: unescape('selectChapter%3A%20aChapter%0A%09DocumentationBuilder%20current%20widget%20selectChapter%3A%20aChapter'),
  440. messageSends: ["selectChapter:", "widget", "current"],
  441. referencedClasses: ["DocumentationBuilder"]
  442. }),
  443. smalltalk.DocChapter);
  444. smalltalk.addMethod(
  445. unescape('_renderNavigationOn_'),
  446. smalltalk.method({
  447. selector: unescape('renderNavigationOn%3A'),
  448. category: 'rendering',
  449. fn: function (html){
  450. var self=this;
  451. (($receiver = smalltalk.send(self, "_parent", [])) != nil && $receiver != undefined) ? (function(){return (function($rec){smalltalk.send($rec, "_class_", ["navigation"]);return smalltalk.send($rec, "_with_", [(function(){return (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(unescape("%u2190%20back%20to%20"), "__comma", [smalltalk.send(smalltalk.send(self, "_parent", []), "_title", [])])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectChapter_", [smalltalk.send(self, "_parent", [])]);})]);})(smalltalk.send(html, "_a", []));})]);})(smalltalk.send(html, "_div", []));})() : nil;
  452. return self;},
  453. args: ["html"],
  454. source: unescape('renderNavigationOn%3A%20html%0A%09self%20parent%20ifNotNil%3A%20%5B%0A%09%09html%20div%20%0A%09%09%09class%3A%20%27navigation%27%3B%20with%3A%20%5B%0A%09%09%09%09html%20a%0A%09%09%09%09%09with%3A%20%27%u2190%20back%20to%20%27%2C%20self%20parent%20title%3B%0A%09%09%09%09%09onClick%3A%20%5Bself%20selectChapter%3A%20self%20parent%5D%5D%5D'),
  455. messageSends: ["ifNotNil:", "parent", "class:", "with:", unescape("%2C"), "title", "onClick:", "selectChapter:", "a", "div"],
  456. referencedClasses: []
  457. }),
  458. smalltalk.DocChapter);
  459. smalltalk.addMethod(
  460. unescape('_renderLinksOn_'),
  461. smalltalk.method({
  462. selector: unescape('renderLinksOn%3A'),
  463. category: 'rendering',
  464. fn: function (html){
  465. var self=this;
  466. (function($rec){smalltalk.send($rec, "_class_", ["links"]);return smalltalk.send($rec, "_with_", [(function(){return smalltalk.send(smalltalk.send(self, "_chapters", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(html, "_li", []), "_with_", [(function(){return (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(each, "_title", [])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectChapter_", [each]);})]);})(smalltalk.send(html, "_a", []));})]);})]);})]);})(smalltalk.send(html, "_ul", []));
  467. return self;},
  468. args: ["html"],
  469. source: unescape('renderLinksOn%3A%20html%0A%09html%20ul%20%0A%09%09class%3A%20%27links%27%3B%0A%09%09with%3A%20%5B%0A%09%09%09self%20chapters%20do%3A%20%5B%3Aeach%20%7C%0A%09%09%09%09html%20li%20with%3A%20%5B%0A%09%09%09%09%09html%20a%0A%09%09%09%09%09%09with%3A%20each%20title%3B%0A%09%09%09%09%09%09onClick%3A%20%5Bself%20selectChapter%3A%20each%5D%5D%5D%5D'),
  470. messageSends: ["class:", "with:", "do:", "chapters", "li", "title", "onClick:", "selectChapter:", "a", "ul"],
  471. referencedClasses: []
  472. }),
  473. smalltalk.DocChapter);
  474. smalltalk.addClass('PackageDocChapter', smalltalk.DocChapter, ['package', 'chapters'], 'Documentation');
  475. smalltalk.addMethod(
  476. unescape('_package'),
  477. smalltalk.method({
  478. selector: unescape('package'),
  479. category: 'accessing',
  480. fn: function (){
  481. var self=this;
  482. return self['@package'];
  483. return self;},
  484. args: [],
  485. source: unescape('package%0A%09%5Epackage'),
  486. messageSends: [],
  487. referencedClasses: []
  488. }),
  489. smalltalk.PackageDocChapter);
  490. smalltalk.addMethod(
  491. unescape('_package_'),
  492. smalltalk.method({
  493. selector: unescape('package%3A'),
  494. category: 'accessing',
  495. fn: function (aPackage){
  496. var self=this;
  497. self['@package']=aPackage;
  498. self['@chapters']=smalltalk.send(smalltalk.send(smalltalk.send(aPackage, "_classes", []), "_sorted_", [(function(a, b){return ((($receiver = smalltalk.send(a, "_name", [])).klass === smalltalk.Number) ? $receiver <smalltalk.send(b, "_name", []) : smalltalk.send($receiver, "__lt", [smalltalk.send(b, "_name", [])]));})]), "_collect_", [(function(each){return (function($rec){smalltalk.send($rec, "_parent_", [self]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.ClassDocChapter || ClassDocChapter), "_on_", [each]));})]);
  499. return self;},
  500. args: ["aPackage"],
  501. source: unescape('package%3A%20aPackage%0A%09package%20%3A%3D%20aPackage.%0A%09chapters%20%3A%3D%20%28aPackage%20classes%20sorted%3A%20%5B%3Aa%20%3Ab%20%7C%20a%20name%20%3C%20b%20name%5D%29%20collect%3A%20%5B%3Aeach%20%7C%0A%09%09%28ClassDocChapter%20on%3A%20each%29%0A%09%09%09parent%3A%20self%3B%0A%09%09%09yourself%5D'),
  502. messageSends: ["collect:", "sorted:", "classes", unescape("%3C"), "name", "parent:", "yourself", "on:"],
  503. referencedClasses: ["ClassDocChapter"]
  504. }),
  505. smalltalk.PackageDocChapter);
  506. smalltalk.addMethod(
  507. unescape('_title'),
  508. smalltalk.method({
  509. selector: unescape('title'),
  510. category: 'accessing',
  511. fn: function (){
  512. var self=this;
  513. return smalltalk.send("Package ", "__comma", [smalltalk.send(smalltalk.send(self, "_package", []), "_name", [])]);
  514. return self;},
  515. args: [],
  516. source: unescape('title%0A%09%5E%27Package%20%27%2C%20self%20package%20name'),
  517. messageSends: [unescape("%2C"), "name", "package"],
  518. referencedClasses: []
  519. }),
  520. smalltalk.PackageDocChapter);
  521. smalltalk.addMethod(
  522. unescape('_chapters'),
  523. smalltalk.method({
  524. selector: unescape('chapters'),
  525. category: 'accessing',
  526. fn: function (){
  527. var self=this;
  528. return self['@chapters'];
  529. return self;},
  530. args: [],
  531. source: unescape('chapters%0A%09%5Echapters'),
  532. messageSends: [],
  533. referencedClasses: []
  534. }),
  535. smalltalk.PackageDocChapter);
  536. smalltalk.addMethod(
  537. unescape('_contents'),
  538. smalltalk.method({
  539. selector: unescape('contents'),
  540. category: 'accessing',
  541. fn: function (){
  542. var self=this;
  543. return smalltalk.send(smalltalk.send("Classes in package ", "__comma", [smalltalk.send(smalltalk.send(self, "_package", []), "_name", [])]), "__comma", [":"]);
  544. return self;},
  545. args: [],
  546. source: unescape('contents%0A%09%5E%27Classes%20in%20package%20%27%2C%20self%20package%20name%2C%20%27%3A%27'),
  547. messageSends: [unescape("%2C"), "name", "package"],
  548. referencedClasses: []
  549. }),
  550. smalltalk.PackageDocChapter);
  551. smalltalk.addMethod(
  552. unescape('_on_'),
  553. smalltalk.method({
  554. selector: unescape('on%3A'),
  555. category: 'instance creation',
  556. fn: function (aPackage){
  557. var self=this;
  558. return (function($rec){smalltalk.send($rec, "_package_", [aPackage]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  559. return self;},
  560. args: ["aPackage"],
  561. source: unescape('on%3A%20aPackage%0A%09%5Eself%20new%0A%09%09package%3A%20aPackage%3B%0A%09%09yourself'),
  562. messageSends: ["package:", "yourself", "new"],
  563. referencedClasses: []
  564. }),
  565. smalltalk.PackageDocChapter.klass);
  566. smalltalk.addClass('ClassDocChapter', smalltalk.DocChapter, ['theClass'], 'Documentation');
  567. smalltalk.addMethod(
  568. unescape('_theClass'),
  569. smalltalk.method({
  570. selector: unescape('theClass'),
  571. category: 'accessing',
  572. fn: function (){
  573. var self=this;
  574. return self['@theClass'];
  575. return self;},
  576. args: [],
  577. source: unescape('theClass%0A%09%5EtheClass'),
  578. messageSends: [],
  579. referencedClasses: []
  580. }),
  581. smalltalk.ClassDocChapter);
  582. smalltalk.addMethod(
  583. unescape('_theClass_'),
  584. smalltalk.method({
  585. selector: unescape('theClass%3A'),
  586. category: 'accessing',
  587. fn: function (aClass){
  588. var self=this;
  589. self['@theClass']=aClass;
  590. smalltalk.send(self, "_subscribe", []);
  591. return self;},
  592. args: ["aClass"],
  593. source: unescape('theClass%3A%20aClass%0A%09theClass%20%3A%3D%20aClass.%0A%09self%20subscribe'),
  594. messageSends: ["subscribe"],
  595. referencedClasses: []
  596. }),
  597. smalltalk.ClassDocChapter);
  598. smalltalk.addMethod(
  599. unescape('_contents'),
  600. smalltalk.method({
  601. selector: unescape('contents'),
  602. category: 'accessing',
  603. fn: function (){
  604. var self=this;
  605. return ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(self, "_theClass", []), "_comment", []), "_isEmpty", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_theClass", []), "_name", []), "__comma", [" is not documented yet."]);})() : (function(){return smalltalk.send(smalltalk.send(self, "_theClass", []), "_comment", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_theClass", []), "_name", []), "__comma", [" is not documented yet."]);}), (function(){return smalltalk.send(smalltalk.send(self, "_theClass", []), "_comment", []);})]));
  606. return self;},
  607. args: [],
  608. source: unescape('contents%0A%09%5Eself%20theClass%20comment%20isEmpty%0A%09%09ifTrue%3A%20%5Bself%20theClass%20name%2C%20%27%20is%20not%20documented%20yet.%27%5D%0A%09%09ifFalse%3A%20%5Bself%20theClass%20comment%5D'),
  609. messageSends: ["ifTrue:ifFalse:", "isEmpty", "comment", "theClass", unescape("%2C"), "name"],
  610. referencedClasses: []
  611. }),
  612. smalltalk.ClassDocChapter);
  613. smalltalk.addMethod(
  614. unescape('_cssClass'),
  615. smalltalk.method({
  616. selector: unescape('cssClass'),
  617. category: 'accessing',
  618. fn: function (){
  619. var self=this;
  620. return smalltalk.send("doc_class ", "__comma", [smalltalk.send(self, "_cssClass", [], smalltalk.DocChapter)]);
  621. return self;},
  622. args: [],
  623. source: unescape('cssClass%0A%09%5E%27doc_class%20%27%2C%20super%20cssClass'),
  624. messageSends: [unescape("%2C"), "cssClass"],
  625. referencedClasses: []
  626. }),
  627. smalltalk.ClassDocChapter);
  628. smalltalk.addMethod(
  629. unescape('_title'),
  630. smalltalk.method({
  631. selector: unescape('title'),
  632. category: 'accessing',
  633. fn: function (){
  634. var self=this;
  635. return smalltalk.send(smalltalk.send(self, "_theClass", []), "_name", []);
  636. return self;},
  637. args: [],
  638. source: unescape('title%0A%09%5Eself%20theClass%20name'),
  639. messageSends: ["name", "theClass"],
  640. referencedClasses: []
  641. }),
  642. smalltalk.ClassDocChapter);
  643. smalltalk.addMethod(
  644. unescape('_renderLinksOn_'),
  645. smalltalk.method({
  646. selector: unescape('renderLinksOn%3A'),
  647. category: 'rendering',
  648. fn: function (html){
  649. var self=this;
  650. (function($rec){smalltalk.send($rec, "_class_", ["links"]);return smalltalk.send($rec, "_with_", [(function(){return smalltalk.send(smalltalk.send(html, "_li", []), "_with_", [(function(){return (function($rec){smalltalk.send($rec, "_with_", ["Browse this class"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send((smalltalk.Browser || Browser), "_openOn_", [smalltalk.send(self, "_theClass", [])]);})]);})(smalltalk.send(html, "_a", []));})]);})]);})(smalltalk.send(html, "_ul", []));
  651. return self;},
  652. args: ["html"],
  653. source: unescape('renderLinksOn%3A%20html%0A%09html%20ul%20%0A%09%09class%3A%20%27links%27%3B%0A%09%09with%3A%20%5B%0A%09%09%09html%20li%20with%3A%20%5Bhtml%20a%0A%09%09%09%09with%3A%20%27Browse%20this%20class%27%3B%0A%09%09%09%09onClick%3A%20%5BBrowser%20openOn%3A%20self%20theClass%5D%5D%5D'),
  654. messageSends: ["class:", "with:", "li", "onClick:", "openOn:", "theClass", "a", "ul"],
  655. referencedClasses: ["Browser"]
  656. }),
  657. smalltalk.ClassDocChapter);
  658. smalltalk.addMethod(
  659. unescape('_subscribe'),
  660. smalltalk.method({
  661. selector: unescape('subscribe'),
  662. category: 'accessing',
  663. fn: function (){
  664. var self=this;
  665. smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.DocumentationBuilder || DocumentationBuilder), "_current", []), "_announcer", []), "_on_do_", [(smalltalk.ClassSelectionAnnouncement || ClassSelectionAnnouncement), (function(ann){return ((($receiver = smalltalk.send(smalltalk.send(ann, "_theClass", []), "__eq", [smalltalk.send(self, "_theClass", [])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.DocumentationBuilder || DocumentationBuilder), "_current", []), "_widget", []), "_selectChapter_", [self]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.DocumentationBuilder || DocumentationBuilder), "_current", []), "_widget", []), "_selectChapter_", [self]);})]));})]);
  666. return self;},
  667. args: [],
  668. source: unescape('subscribe%0A%09DocumentationBuilder%20current%20announcer%20%0A%09%09on%3A%20ClassSelectionAnnouncement%20do%3A%20%5B%3Aann%20%7C%0A%09%09%09ann%20theClass%20%3D%20self%20theClass%20ifTrue%3A%20%5B%0A%09%09%09%09DocumentationBuilder%20current%20widget%20selectChapter%3A%20self%5D%5D'),
  669. messageSends: ["on:do:", "announcer", "current", "ifTrue:", unescape("%3D"), "theClass", "selectChapter:", "widget"],
  670. referencedClasses: ["DocumentationBuilder", "ClassSelectionAnnouncement"]
  671. }),
  672. smalltalk.ClassDocChapter);
  673. smalltalk.addMethod(
  674. unescape('_on_'),
  675. smalltalk.method({
  676. selector: unescape('on%3A'),
  677. category: 'accessing',
  678. fn: function (aClass){
  679. var self=this;
  680. return (function($rec){smalltalk.send($rec, "_theClass_", [aClass]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  681. return self;},
  682. args: ["aClass"],
  683. source: unescape('on%3A%20aClass%0A%09%5Eself%20new%0A%09%09theClass%3A%20aClass%3B%0A%09%09yourself'),
  684. messageSends: ["theClass:", "yourself", "new"],
  685. referencedClasses: []
  686. }),
  687. smalltalk.ClassDocChapter.klass);
  688. smalltalk.addClass('DocumentationWidget', smalltalk.Widget, ['builder', 'selectedChapter', 'chapterDiv'], 'Documentation');
  689. smalltalk.addMethod(
  690. unescape('_builder'),
  691. smalltalk.method({
  692. selector: unescape('builder'),
  693. category: 'accessing',
  694. fn: function (){
  695. var self=this;
  696. return self['@builder'];
  697. return self;},
  698. args: [],
  699. source: unescape('builder%0A%09%5Ebuilder'),
  700. messageSends: [],
  701. referencedClasses: []
  702. }),
  703. smalltalk.DocumentationWidget);
  704. smalltalk.addMethod(
  705. unescape('_builder_'),
  706. smalltalk.method({
  707. selector: unescape('builder%3A'),
  708. category: 'accessing',
  709. fn: function (aDocumentationBuilder){
  710. var self=this;
  711. self['@builder']=aDocumentationBuilder;
  712. return self;},
  713. args: ["aDocumentationBuilder"],
  714. source: unescape('builder%3A%20aDocumentationBuilder%0A%09builder%20%3A%3D%20aDocumentationBuilder'),
  715. messageSends: [],
  716. referencedClasses: []
  717. }),
  718. smalltalk.DocumentationWidget);
  719. smalltalk.addMethod(
  720. unescape('_chapters'),
  721. smalltalk.method({
  722. selector: unescape('chapters'),
  723. category: 'accessing',
  724. fn: function (){
  725. var self=this;
  726. return smalltalk.send(smalltalk.send(self, "_builder", []), "_chapters", []);
  727. return self;},
  728. args: [],
  729. source: unescape('chapters%0A%09%5Eself%20builder%20chapters'),
  730. messageSends: ["chapters", "builder"],
  731. referencedClasses: []
  732. }),
  733. smalltalk.DocumentationWidget);
  734. smalltalk.addMethod(
  735. unescape('_selectedChapter'),
  736. smalltalk.method({
  737. selector: unescape('selectedChapter'),
  738. category: 'accessing',
  739. fn: function (){
  740. var self=this;
  741. return (($receiver = self['@selectedChapter']) == nil || $receiver == undefined) ? (function(){return self['@selectedChapter']=smalltalk.send(smalltalk.send(self, "_chapters", []), "_first", []);})() : $receiver;
  742. return self;},
  743. args: [],
  744. source: unescape('selectedChapter%0A%09%5EselectedChapter%20ifNil%3A%20%5BselectedChapter%20%3A%3D%20self%20chapters%20first%5D'),
  745. messageSends: ["ifNil:", "first", "chapters"],
  746. referencedClasses: []
  747. }),
  748. smalltalk.DocumentationWidget);
  749. smalltalk.addMethod(
  750. unescape('_selectedChapter_'),
  751. smalltalk.method({
  752. selector: unescape('selectedChapter%3A'),
  753. category: 'accessing',
  754. fn: function (aChapter){
  755. var self=this;
  756. return self['@selectedChapter']=aChapter;
  757. return self;},
  758. args: ["aChapter"],
  759. source: unescape('selectedChapter%3A%20aChapter%0A%09%5EselectedChapter%20%3A%3D%20aChapter'),
  760. messageSends: [],
  761. referencedClasses: []
  762. }),
  763. smalltalk.DocumentationWidget);
  764. smalltalk.addMethod(
  765. unescape('_selectChapter_'),
  766. smalltalk.method({
  767. selector: unescape('selectChapter%3A'),
  768. category: 'actions',
  769. fn: function (aChapter){
  770. var self=this;
  771. smalltalk.send(self, "_selectedChapter_", [aChapter]);
  772. smalltalk.send(self, "_updateChapterDiv", []);
  773. return self;},
  774. args: ["aChapter"],
  775. source: unescape('selectChapter%3A%20aChapter%0A%09self%20selectedChapter%3A%20aChapter.%0A%09self%20updateChapterDiv'),
  776. messageSends: ["selectedChapter:", "updateChapterDiv"],
  777. referencedClasses: []
  778. }),
  779. smalltalk.DocumentationWidget);
  780. smalltalk.addMethod(
  781. unescape('_renderOn_'),
  782. smalltalk.method({
  783. selector: unescape('renderOn%3A'),
  784. category: 'rendering',
  785. fn: function (html){
  786. var self=this;
  787. (function($rec){smalltalk.send($rec, "_class_", ["documentation"]);return smalltalk.send($rec, "_with_", [(function(){smalltalk.send(self, "_renderMenuOn_", [html]);self['@chapterDiv']=smalltalk.send(html, "_div", []);return smalltalk.send(self, "_updateChapterDiv", []);})]);})(smalltalk.send(html, "_div", []));
  788. return self;},
  789. args: ["html"],
  790. source: unescape('renderOn%3A%20html%0A%09html%20div%20%0A%09%09class%3A%20%27documentation%27%3B%0A%09%09with%3A%20%5B%0A%09%09%09self%20renderMenuOn%3A%20html.%0A%09%09%09chapterDiv%20%3A%3D%20html%20div.%0A%09%09%09self%20updateChapterDiv%5D'),
  791. messageSends: ["class:", "with:", "renderMenuOn:", "div", "updateChapterDiv"],
  792. referencedClasses: []
  793. }),
  794. smalltalk.DocumentationWidget);
  795. smalltalk.addMethod(
  796. unescape('_renderMenuOn_'),
  797. smalltalk.method({
  798. selector: unescape('renderMenuOn%3A'),
  799. category: 'rendering',
  800. fn: function (html){
  801. var self=this;
  802. (function($rec){smalltalk.send($rec, "_class_", ["menu"]);return smalltalk.send($rec, "_with_", [(function(){return smalltalk.send(smalltalk.send(html, "_ol", []), "_with_", [(function(){return smalltalk.send(smalltalk.send(self, "_chapters", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(html, "_li", []), "_with_", [(function(){return smalltalk.send(self, "_renderChapterMenu_on_", [each, html]);})]);})]);})]);})]);})(smalltalk.send(html, "_div", []));
  803. return self;},
  804. args: ["html"],
  805. source: unescape('renderMenuOn%3A%20html%0A%09html%20div%20%0A%09%09class%3A%20%27menu%27%3B%0A%09%09with%3A%20%5B%0A%09%09%09html%20ol%20with%3A%20%5B%0A%09%09%09%09self%20chapters%20do%3A%20%5B%3Aeach%20%7C%0A%09%09%09%09%09html%20li%20with%3A%20%5B%0A%09%09%09%09%09%09self%20renderChapterMenu%3A%20each%20on%3A%20html%5D%5D%5D%5D%0A%09%09'),
  806. messageSends: ["class:", "with:", "ol", "do:", "chapters", "li", "renderChapterMenu:on:", "div"],
  807. referencedClasses: []
  808. }),
  809. smalltalk.DocumentationWidget);
  810. smalltalk.addMethod(
  811. unescape('_updateChapterDiv'),
  812. smalltalk.method({
  813. selector: unescape('updateChapterDiv'),
  814. category: 'updating',
  815. fn: function (){
  816. var self=this;
  817. smalltalk.send(self['@chapterDiv'], "_contents_", [(function(html){return smalltalk.send(html, "_with_", [smalltalk.send(self, "_selectedChapter", [])]);})]);
  818. return self;},
  819. args: [],
  820. source: unescape('updateChapterDiv%0A%09chapterDiv%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09html%20with%3A%20self%20selectedChapter%5D'),
  821. messageSends: ["contents:", "with:", "selectedChapter"],
  822. referencedClasses: []
  823. }),
  824. smalltalk.DocumentationWidget);
  825. smalltalk.addMethod(
  826. unescape('_renderChapterMenu_on_'),
  827. smalltalk.method({
  828. selector: unescape('renderChapterMenu%3Aon%3A'),
  829. category: 'rendering',
  830. fn: function (aChapter, html){
  831. var self=this;
  832. (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(aChapter, "_title", [])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectChapter_", [aChapter]);})]);})(smalltalk.send(html, "_a", []));
  833. smalltalk.send(smalltalk.send(html, "_ol", []), "_with_", [(function(){return smalltalk.send(smalltalk.send(aChapter, "_chapters", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(html, "_li", []), "_with_", [(function(){return smalltalk.send(self, "_renderChapterMenu_on_", [each, html]);})]);})]);})]);
  834. return self;},
  835. args: ["aChapter", "html"],
  836. source: unescape('renderChapterMenu%3A%20aChapter%20on%3A%20html%0A%09html%20a%0A%09%09with%3A%20aChapter%20title%3B%0A%09%09onClick%3A%20%5B%0A%09%09%09self%20selectChapter%3A%20aChapter%5D.%0A%09html%20ol%20with%3A%20%5B%0A%09%09%09aChapter%20chapters%20do%3A%20%5B%3Aeach%20%7C%0A%09%09%09%09html%20li%20with%3A%20%5B%0A%09%09%09%09%09self%20renderChapterMenu%3A%20each%20on%3A%20html%5D%5D%5D'),
  837. messageSends: ["with:", "title", "onClick:", "selectChapter:", "a", "ol", "do:", "chapters", "li", "renderChapterMenu:on:"],
  838. referencedClasses: []
  839. }),
  840. smalltalk.DocumentationWidget);
  841. smalltalk.addMethod(
  842. unescape('_on_'),
  843. smalltalk.method({
  844. selector: unescape('on%3A'),
  845. category: 'instance creation',
  846. fn: function (aBuilder){
  847. var self=this;
  848. return (function($rec){smalltalk.send($rec, "_builder_", [aBuilder]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  849. return self;},
  850. args: ["aBuilder"],
  851. source: unescape('on%3A%20aBuilder%0A%09%5Eself%20new%0A%09%09builder%3A%20aBuilder%3B%0A%09%09yourself'),
  852. messageSends: ["builder:", "yourself", "new"],
  853. referencedClasses: []
  854. }),
  855. smalltalk.DocumentationWidget.klass);
  856. smalltalk.addClass('ClassesIndexChapter', smalltalk.DocChapter, [], 'Documentation');
  857. smalltalk.addMethod(
  858. unescape('_cssClass'),
  859. smalltalk.method({
  860. selector: unescape('cssClass'),
  861. category: 'accessing',
  862. fn: function (){
  863. var self=this;
  864. return smalltalk.send("index_doc ", "__comma", [smalltalk.send(self, "_cssClass", [], smalltalk.DocChapter)]);
  865. return self;},
  866. args: [],
  867. source: unescape('cssClass%0A%09%5E%27index_doc%20%27%2C%20super%20cssClass'),
  868. messageSends: [unescape("%2C"), "cssClass"],
  869. referencedClasses: []
  870. }),
  871. smalltalk.ClassesIndexChapter);
  872. smalltalk.addMethod(
  873. unescape('_title'),
  874. smalltalk.method({
  875. selector: unescape('title'),
  876. category: 'accessing',
  877. fn: function (){
  878. var self=this;
  879. return "Smalltalk classes by index";
  880. return self;},
  881. args: [],
  882. source: unescape('title%0A%09%5E%27Smalltalk%20classes%20by%20index%27'),
  883. messageSends: [],
  884. referencedClasses: []
  885. }),
  886. smalltalk.ClassesIndexChapter);
  887. smalltalk.addMethod(
  888. unescape('_renderDocOn_'),
  889. smalltalk.method({
  890. selector: unescape('renderDocOn%3A'),
  891. category: 'rendering',
  892. fn: function (html){
  893. var self=this;
  894. smalltalk.send(smalltalk.send(html, "_h1", []), "_with_", [smalltalk.send(self, "_title", [])]);
  895. smalltalk.send(smalltalk.send(self, "_alphabet", []), "_do_", [(function(letter){var classes=nil;
  896. classes=smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_classes", []), "_select_", [(function(each){return smalltalk.send(smalltalk.send(smalltalk.send(each, "_name", []), "_first", []), "__eq", [letter]);})]);smalltalk.send(classes, "_ifNotEmpty_", [(function(){return smalltalk.send(smalltalk.send(html, "_h2", []), "_with_", [letter]);})]);return smalltalk.send(smalltalk.send(html, "_ul", []), "_with_", [(function(){return smalltalk.send(smalltalk.send(classes, "_sorted_", [(function(a, b){return ((($receiver = smalltalk.send(a, "_name", [])).klass === smalltalk.Number) ? $receiver <smalltalk.send(b, "_name", []) : smalltalk.send($receiver, "__lt", [smalltalk.send(b, "_name", [])]));})]), "_do_", [(function(each){return smalltalk.send(smalltalk.send(html, "_li", []), "_with_", [(function(){return (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(each, "_name", [])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectClass_", [each]);})]);})(smalltalk.send(html, "_a", []));})]);})]);})]);})]);
  897. return self;},
  898. args: ["html"],
  899. source: unescape('renderDocOn%3A%20html%0A%09html%20h1%20with%3A%20self%20title.%0A%09self%20alphabet%20do%3A%20%5B%3Aletter%20%7C%7C%20classes%20%7C%0A%09%09classes%20%3A%3D%20Smalltalk%20current%20classes%20select%3A%20%5B%3Aeach%20%7C%20each%20name%20first%20%3D%20letter%5D.%0A%09%09classes%20ifNotEmpty%3A%20%5Bhtml%20h2%20with%3A%20letter%5D.%0A%09%09html%20ul%20with%3A%20%5B%0A%09%09%09%28classes%20sorted%3A%20%5B%3Aa%20%3Ab%20%7C%20a%20name%20%3C%20b%20name%5D%29%20%0A%09%09%09%09do%3A%20%5B%3Aeach%20%7C%0A%09%09%09%09%09html%20li%20with%3A%20%5Bhtml%20a%20%0A%09%09%09%09%09%09with%3A%20each%20name%3B%0A%09%09%09%09%09%09onClick%3A%20%5Bself%20selectClass%3A%20each%5D%5D%5D%5D%5D'),
  900. messageSends: ["with:", "h1", "title", "do:", "alphabet", "select:", "classes", "current", unescape("%3D"), "first", "name", "ifNotEmpty:", "h2", "ul", "sorted:", unescape("%3C"), "li", "onClick:", "selectClass:", "a"],
  901. referencedClasses: ["Smalltalk"]
  902. }),
  903. smalltalk.ClassesIndexChapter);
  904. smalltalk.addMethod(
  905. unescape('_alphabet'),
  906. smalltalk.method({
  907. selector: unescape('alphabet'),
  908. category: 'accessing',
  909. fn: function (){
  910. var self=this;
  911. return "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  912. return self;},
  913. args: [],
  914. source: unescape('alphabet%0A%09%5E%27ABCDEFGHIJKLMNOPQRSTUVWXYZ%27'),
  915. messageSends: [],
  916. referencedClasses: []
  917. }),
  918. smalltalk.ClassesIndexChapter);
  919. smalltalk.addMethod(
  920. unescape('_on_'),
  921. smalltalk.method({
  922. selector: unescape('on%3A'),
  923. category: 'accessing',
  924. fn: function (aClass){
  925. var self=this;
  926. return (function($rec){smalltalk.send($rec, "_theClass_", [aClass]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  927. return self;},
  928. args: ["aClass"],
  929. source: unescape('on%3A%20aClass%0A%09%5Eself%20new%0A%09%09theClass%3A%20aClass%3B%0A%09%09yourself'),
  930. messageSends: ["theClass:", "yourself", "new"],
  931. referencedClasses: []
  932. }),
  933. smalltalk.ClassesIndexChapter.klass);
  934. smalltalk.addClass('ClassSelectionAnnouncement', smalltalk.Object, ['theClass'], 'Documentation');
  935. smalltalk.addMethod(
  936. unescape('_theClass'),
  937. smalltalk.method({
  938. selector: unescape('theClass'),
  939. category: 'accessing',
  940. fn: function (){
  941. var self=this;
  942. return self['@theClass'];
  943. return self;},
  944. args: [],
  945. source: unescape('theClass%0A%09%5EtheClass'),
  946. messageSends: [],
  947. referencedClasses: []
  948. }),
  949. smalltalk.ClassSelectionAnnouncement);
  950. smalltalk.addMethod(
  951. unescape('_theClass_'),
  952. smalltalk.method({
  953. selector: unescape('theClass%3A'),
  954. category: 'accessing',
  955. fn: function (aClass){
  956. var self=this;
  957. self['@theClass']=aClass;
  958. return self;},
  959. args: ["aClass"],
  960. source: unescape('theClass%3A%20aClass%0A%09theClass%20%3A%3D%20aClass'),
  961. messageSends: [],
  962. referencedClasses: []
  963. }),
  964. smalltalk.ClassSelectionAnnouncement);
  965. smalltalk.addMethod(
  966. unescape('_on_'),
  967. smalltalk.method({
  968. selector: unescape('on%3A'),
  969. category: 'instance creation',
  970. fn: function (aClass){
  971. var self=this;
  972. return (function($rec){smalltalk.send($rec, "_theClass_", [aClass]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  973. return self;},
  974. args: ["aClass"],
  975. source: unescape('on%3A%20aClass%0A%09%5Eself%20new%0A%09%09theClass%3A%20aClass%3B%0A%09%09yourself'),
  976. messageSends: ["theClass:", "yourself", "new"],
  977. referencedClasses: []
  978. }),
  979. smalltalk.ClassSelectionAnnouncement.klass);