IDE.deploy.js 146 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064
  1. smalltalk.addClass('TabManager', smalltalk.Widget, ['selectedTab', 'tabs', 'opened', 'ul'], 'IDE');
  2. smalltalk.addMethod(
  3. '_tabs',
  4. smalltalk.method({
  5. selector: 'tabs',
  6. fn: function (){
  7. var self=this;
  8. return (($receiver = self['@tabs']) == nil || $receiver == undefined) ? (function(){return self['@tabs']=smalltalk.send((smalltalk.Array || Array), "_new", []);})() : $receiver;
  9. return self;}
  10. }),
  11. smalltalk.TabManager);
  12. smalltalk.addMethod(
  13. '_updateBodyMargin',
  14. smalltalk.method({
  15. selector: 'updateBodyMargin',
  16. fn: function (){
  17. var self=this;
  18. smalltalk.send(self, "_setBodyMargin_", [(($receiver = smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_height", [])).klass === smalltalk.Number) ? $receiver +(27) : smalltalk.send($receiver, "__plus", [(27)])]);
  19. return self;}
  20. }),
  21. smalltalk.TabManager);
  22. smalltalk.addMethod(
  23. '_updatePosition',
  24. smalltalk.method({
  25. selector: 'updatePosition',
  26. fn: function (){
  27. var self=this;
  28. jQuery('#jtalk').css('top', '').css('bottom', '27px');
  29. return self;}
  30. }),
  31. smalltalk.TabManager);
  32. smalltalk.addMethod(
  33. '_removeBodyMargin',
  34. smalltalk.method({
  35. selector: 'removeBodyMargin',
  36. fn: function (){
  37. var self=this;
  38. smalltalk.send(self, "_setBodyMargin_", [(0)]);
  39. return self;}
  40. }),
  41. smalltalk.TabManager);
  42. smalltalk.addMethod(
  43. '_setBodyMargin_',
  44. smalltalk.method({
  45. selector: 'setBodyMargin:',
  46. fn: function (anInteger){
  47. var self=this;
  48. smalltalk.send(smalltalk.send(".jtalkBody", "_asJQuery", []), "_cssAt_put_", [unescape("margin-bottom"), smalltalk.send(smalltalk.send(anInteger, "_asString", []), "__comma", ["px"])]);
  49. return self;}
  50. }),
  51. smalltalk.TabManager);
  52. smalltalk.addMethod(
  53. '_onResize_',
  54. smalltalk.method({
  55. selector: 'onResize:',
  56. fn: function (aBlock){
  57. var self=this;
  58. jQuery('#jtalk').resizable({
  59. handles: 'n',
  60. resize: aBlock,
  61. minHeight: 230
  62. });
  63. return self;}
  64. }),
  65. smalltalk.TabManager);
  66. smalltalk.addMethod(
  67. '_onWindowResize_',
  68. smalltalk.method({
  69. selector: 'onWindowResize:',
  70. fn: function (aBlock){
  71. var self=this;
  72. jQuery(window).resize(aBlock);
  73. return self;}
  74. }),
  75. smalltalk.TabManager);
  76. smalltalk.addMethod(
  77. '_open',
  78. smalltalk.method({
  79. selector: 'open',
  80. fn: function (){
  81. var self=this;
  82. (($receiver = self['@opened']).klass === smalltalk.Boolean) ? (! $receiver ? (function(){smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_addClass_", ["jtalkBody"]);smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_show", []);smalltalk.send(smalltalk.send(self['@ul'], "_asJQuery", []), "_show", []);smalltalk.send(self, "_updateBodyMargin", []);smalltalk.send(self['@selectedTab'], "_show", []);return self['@opened']=true;})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_addClass_", ["jtalkBody"]);smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_show", []);smalltalk.send(smalltalk.send(self['@ul'], "_asJQuery", []), "_show", []);smalltalk.send(self, "_updateBodyMargin", []);smalltalk.send(self['@selectedTab'], "_show", []);return self['@opened']=true;})]);
  83. return self;}
  84. }),
  85. smalltalk.TabManager);
  86. smalltalk.addMethod(
  87. '_close',
  88. smalltalk.method({
  89. selector: 'close',
  90. fn: function (){
  91. var self=this;
  92. (($receiver = self['@opened']).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_hide", []);smalltalk.send(smalltalk.send(self['@ul'], "_asJQuery", []), "_hide", []);smalltalk.send(self['@selectedTab'], "_hide", []);smalltalk.send(self, "_removeBodyMargin", []);smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_removeClass_", ["jtalkBody"]);return self['@opened']=false;})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_hide", []);smalltalk.send(smalltalk.send(self['@ul'], "_asJQuery", []), "_hide", []);smalltalk.send(self['@selectedTab'], "_hide", []);smalltalk.send(self, "_removeBodyMargin", []);smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_removeClass_", ["jtalkBody"]);return self['@opened']=false;})]);
  93. return self;}
  94. }),
  95. smalltalk.TabManager);
  96. smalltalk.addMethod(
  97. '_newBrowserTab',
  98. smalltalk.method({
  99. selector: 'newBrowserTab',
  100. fn: function (){
  101. var self=this;
  102. smalltalk.send((smalltalk.Browser || Browser), "_open", []);
  103. return self;}
  104. }),
  105. smalltalk.TabManager);
  106. smalltalk.addMethod(
  107. '_selectTab_',
  108. smalltalk.method({
  109. selector: 'selectTab:',
  110. fn: function (aWidget){
  111. var self=this;
  112. smalltalk.send(self, "_open", []);
  113. self['@selectedTab']=aWidget;
  114. smalltalk.send(smalltalk.send(self, "_tabs", []), "_do_", [(function(each){return smalltalk.send(each, "_hide", []);})]);
  115. smalltalk.send(aWidget, "_show", []);
  116. smalltalk.send(self, "_update", []);
  117. return self;}
  118. }),
  119. smalltalk.TabManager);
  120. smalltalk.addMethod(
  121. '_closeTab_',
  122. smalltalk.method({
  123. selector: 'closeTab:',
  124. fn: function (aWidget){
  125. var self=this;
  126. smalltalk.send(self, "_removeTab_", [aWidget]);
  127. smalltalk.send(self, "_selectTab_", [smalltalk.send(smalltalk.send(self, "_tabs", []), "_last", [])]);
  128. smalltalk.send(aWidget, "_remove", []);
  129. smalltalk.send(self, "_update", []);
  130. return self;}
  131. }),
  132. smalltalk.TabManager);
  133. smalltalk.addMethod(
  134. '_addTab_',
  135. smalltalk.method({
  136. selector: 'addTab:',
  137. fn: function (aWidget){
  138. var self=this;
  139. smalltalk.send(smalltalk.send(self, "_tabs", []), "_add_", [aWidget]);
  140. smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_append_", [aWidget]);
  141. smalltalk.send(aWidget, "_hide", []);
  142. return self;}
  143. }),
  144. smalltalk.TabManager);
  145. smalltalk.addMethod(
  146. '_removeTab_',
  147. smalltalk.method({
  148. selector: 'removeTab:',
  149. fn: function (aWidget){
  150. var self=this;
  151. smalltalk.send(smalltalk.send(self, "_tabs", []), "_remove_", [aWidget]);
  152. smalltalk.send(self, "_update", []);
  153. return self;}
  154. }),
  155. smalltalk.TabManager);
  156. smalltalk.addMethod(
  157. '_initialize',
  158. smalltalk.method({
  159. selector: 'initialize',
  160. fn: function (){
  161. var self=this;
  162. smalltalk.send(self, "_initialize", [], smalltalk.Widget);
  163. self['@opened']=true;
  164. (function($rec){smalltalk.send($rec, "_append_", [self]);smalltalk.send($rec, "_append_", [(function(html){return smalltalk.send(smalltalk.send(html, "_div", []), "_id_", ["jtalk"]);})]);return smalltalk.send($rec, "_addClass_", ["jtalkBody"]);})(smalltalk.send("body", "_asJQuery", []));
  165. (function($rec){smalltalk.send($rec, "_addTab_", [smalltalk.send((smalltalk.Transcript || Transcript), "_current", [])]);smalltalk.send($rec, "_addTab_", [smalltalk.send((smalltalk.Workspace || Workspace), "_new", [])]);return smalltalk.send($rec, "_addTab_", [smalltalk.send((smalltalk.TestRunner || TestRunner), "_new", [])]);})(self);
  166. smalltalk.send(self, "_selectTab_", [smalltalk.send(smalltalk.send(self, "_tabs", []), "_last", [])]);
  167. (function($rec){smalltalk.send($rec, "_onResize_", [(function(){return (function($rec){smalltalk.send($rec, "_updateBodyMargin", []);return smalltalk.send($rec, "_updatePosition", []);})(self);})]);return smalltalk.send($rec, "_onWindowResize_", [(function(){return smalltalk.send(self, "_updatePosition", []);})]);})(self);
  168. return self;}
  169. }),
  170. smalltalk.TabManager);
  171. smalltalk.addMethod(
  172. '_renderOn_',
  173. smalltalk.method({
  174. selector: 'renderOn:',
  175. fn: function (html){
  176. var self=this;
  177. self['@ul']=(function($rec){smalltalk.send($rec, "_id_", ["jtalkTabs"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_ul", []));
  178. smalltalk.send(self, "_renderTabs", []);
  179. return self;}
  180. }),
  181. smalltalk.TabManager);
  182. smalltalk.addMethod(
  183. '_renderTabFor_on_',
  184. smalltalk.method({
  185. selector: 'renderTabFor:on:',
  186. fn: function (aWidget, html){
  187. var self=this;
  188. var li=nil;
  189. li=smalltalk.send(html, "_li", []);
  190. (($receiver = smalltalk.send(self['@selectedTab'], "__eq", [aWidget])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(li, "_class_", ["selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);
  191. smalltalk.send(li, "_with_", [(function(){(($receiver = smalltalk.send(aWidget, "_canBeClosed", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function($rec){smalltalk.send($rec, "_class_", ["close"]);smalltalk.send($rec, "_with_", ["x"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_closeTab_", [aWidget]);})]);})(smalltalk.send(html, "_span", []));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function($rec){smalltalk.send($rec, "_class_", ["close"]);smalltalk.send($rec, "_with_", ["x"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_closeTab_", [aWidget]);})]);})(smalltalk.send(html, "_span", []));})]);return (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(aWidget, "_label", [])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectTab_", [aWidget]);})]);})(smalltalk.send(html, "_span", []));})]);
  192. return self;}
  193. }),
  194. smalltalk.TabManager);
  195. smalltalk.addMethod(
  196. '_renderTabs',
  197. smalltalk.method({
  198. selector: 'renderTabs',
  199. fn: function (){
  200. var self=this;
  201. smalltalk.send(self['@ul'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_class_", ["closeAll"]);smalltalk.send($rec, "_with_", ["x"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_close", []);})]);})(smalltalk.send(html, "_li", []));smalltalk.send(smalltalk.send(self, "_tabs", []), "_do_", [(function(each){return smalltalk.send(self, "_renderTabFor_on_", [each, html]);})]);return (function($rec){smalltalk.send($rec, "_class_", ["newtab"]);smalltalk.send($rec, "_with_", [unescape("%20+%20")]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_newBrowserTab", []);})]);})(smalltalk.send(html, "_li", []));})]);
  202. return self;}
  203. }),
  204. smalltalk.TabManager);
  205. smalltalk.addMethod(
  206. '_update',
  207. smalltalk.method({
  208. selector: 'update',
  209. fn: function (){
  210. var self=this;
  211. smalltalk.send(self, "_renderTabs", []);
  212. return self;}
  213. }),
  214. smalltalk.TabManager);
  215. smalltalk.TabManager.klass.iVarNames = ['current'];
  216. smalltalk.addMethod(
  217. '_current',
  218. smalltalk.method({
  219. selector: 'current',
  220. fn: function (){
  221. var self=this;
  222. return (($receiver = self['@current']) == nil || $receiver == undefined) ? (function(){return self['@current']=smalltalk.send(self, "_new", [], smalltalk.Widget.klass);})() : $receiver;
  223. return self;}
  224. }),
  225. smalltalk.TabManager.klass);
  226. smalltalk.addMethod(
  227. '_new',
  228. smalltalk.method({
  229. selector: 'new',
  230. fn: function (){
  231. var self=this;
  232. smalltalk.send(self, "_shouldNotImplement", []);
  233. return self;}
  234. }),
  235. smalltalk.TabManager.klass);
  236. smalltalk.addClass('TabWidget', smalltalk.Widget, ['div'], 'IDE');
  237. smalltalk.addMethod(
  238. '_label',
  239. smalltalk.method({
  240. selector: 'label',
  241. fn: function (){
  242. var self=this;
  243. smalltalk.send(self, "_subclassResponsibility", []);
  244. return self;}
  245. }),
  246. smalltalk.TabWidget);
  247. smalltalk.addMethod(
  248. '_open',
  249. smalltalk.method({
  250. selector: 'open',
  251. fn: function (){
  252. var self=this;
  253. smalltalk.send(smalltalk.send((smalltalk.TabManager || TabManager), "_current", []), "_addTab_", [self]);
  254. smalltalk.send(smalltalk.send((smalltalk.TabManager || TabManager), "_current", []), "_selectTab_", [self]);
  255. return self;}
  256. }),
  257. smalltalk.TabWidget);
  258. smalltalk.addMethod(
  259. '_show',
  260. smalltalk.method({
  261. selector: 'show',
  262. fn: function (){
  263. var self=this;
  264. smalltalk.send(smalltalk.send(self['@div'], "_asJQuery", []), "_show", []);
  265. return self;}
  266. }),
  267. smalltalk.TabWidget);
  268. smalltalk.addMethod(
  269. '_hide',
  270. smalltalk.method({
  271. selector: 'hide',
  272. fn: function (){
  273. var self=this;
  274. smalltalk.send(smalltalk.send(self['@div'], "_asJQuery", []), "_hide", []);
  275. return self;}
  276. }),
  277. smalltalk.TabWidget);
  278. smalltalk.addMethod(
  279. '_remove',
  280. smalltalk.method({
  281. selector: 'remove',
  282. fn: function (){
  283. var self=this;
  284. smalltalk.send(smalltalk.send(self['@div'], "_asJQuery", []), "_remove", []);
  285. return self;}
  286. }),
  287. smalltalk.TabWidget);
  288. smalltalk.addMethod(
  289. '_renderOn_',
  290. smalltalk.method({
  291. selector: 'renderOn:',
  292. fn: function (html){
  293. var self=this;
  294. self['@div']=(function($rec){smalltalk.send($rec, "_class_", ["jtalkTool"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_div", []));
  295. smalltalk.send(self, "_renderTab", []);
  296. return self;}
  297. }),
  298. smalltalk.TabWidget);
  299. smalltalk.addMethod(
  300. '_renderBoxOn_',
  301. smalltalk.method({
  302. selector: 'renderBoxOn:',
  303. fn: function (html){
  304. var self=this;
  305. return self;}
  306. }),
  307. smalltalk.TabWidget);
  308. smalltalk.addMethod(
  309. '_renderButtonsOn_',
  310. smalltalk.method({
  311. selector: 'renderButtonsOn:',
  312. fn: function (html){
  313. var self=this;
  314. return self;}
  315. }),
  316. smalltalk.TabWidget);
  317. smalltalk.addMethod(
  318. '_update',
  319. smalltalk.method({
  320. selector: 'update',
  321. fn: function (){
  322. var self=this;
  323. smalltalk.send(self, "_renderTab", []);
  324. return self;}
  325. }),
  326. smalltalk.TabWidget);
  327. smalltalk.addMethod(
  328. '_renderTab',
  329. smalltalk.method({
  330. selector: 'renderTab',
  331. fn: function (){
  332. var self=this;
  333. smalltalk.send(self['@div'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_class_", ["jt_box"]);return smalltalk.send($rec, "_with_", [(function(){return smalltalk.send(self, "_renderBoxOn_", [html]);})]);})(smalltalk.send(html, "_div", []));return (function($rec){smalltalk.send($rec, "_class_", ["jt_buttons"]);return smalltalk.send($rec, "_with_", [(function(){return smalltalk.send(self, "_renderButtonsOn_", [html]);})]);})(smalltalk.send(html, "_div", []));})]);
  334. return self;}
  335. }),
  336. smalltalk.TabWidget);
  337. smalltalk.addMethod(
  338. '_canBeClosed',
  339. smalltalk.method({
  340. selector: 'canBeClosed',
  341. fn: function (){
  342. var self=this;
  343. return false;
  344. return self;}
  345. }),
  346. smalltalk.TabWidget);
  347. smalltalk.addMethod(
  348. '_open',
  349. smalltalk.method({
  350. selector: 'open',
  351. fn: function (){
  352. var self=this;
  353. return smalltalk.send(smalltalk.send(self, "_new", []), "_open", []);
  354. return self;}
  355. }),
  356. smalltalk.TabWidget.klass);
  357. smalltalk.addClass('Workspace', smalltalk.TabWidget, ['sourceArea'], 'IDE');
  358. smalltalk.addMethod(
  359. '_label',
  360. smalltalk.method({
  361. selector: 'label',
  362. fn: function (){
  363. var self=this;
  364. return unescape("%5BWorkspace%5D");
  365. return self;}
  366. }),
  367. smalltalk.Workspace);
  368. smalltalk.addMethod(
  369. '_clearWorkspace',
  370. smalltalk.method({
  371. selector: 'clearWorkspace',
  372. fn: function (){
  373. var self=this;
  374. smalltalk.send(self['@sourceArea'], "_clear", []);
  375. return self;}
  376. }),
  377. smalltalk.Workspace);
  378. smalltalk.addMethod(
  379. '_doIt',
  380. smalltalk.method({
  381. selector: 'doIt',
  382. fn: function (){
  383. var self=this;
  384. smalltalk.send(self['@sourceArea'], "_doIt", []);
  385. return self;}
  386. }),
  387. smalltalk.Workspace);
  388. smalltalk.addMethod(
  389. '_printIt',
  390. smalltalk.method({
  391. selector: 'printIt',
  392. fn: function (){
  393. var self=this;
  394. smalltalk.send(self['@sourceArea'], "_printIt", []);
  395. return self;}
  396. }),
  397. smalltalk.Workspace);
  398. smalltalk.addMethod(
  399. '_inspectIt',
  400. smalltalk.method({
  401. selector: 'inspectIt',
  402. fn: function (){
  403. var self=this;
  404. smalltalk.send(self['@sourceArea'], "_inspectIt", []);
  405. return self;}
  406. }),
  407. smalltalk.Workspace);
  408. smalltalk.addMethod(
  409. '_renderBoxOn_',
  410. smalltalk.method({
  411. selector: 'renderBoxOn:',
  412. fn: function (html){
  413. var self=this;
  414. self['@sourceArea']=smalltalk.send((smalltalk.SourceArea || SourceArea), "_new", []);
  415. smalltalk.send(self['@sourceArea'], "_renderOn_", [html]);
  416. return self;}
  417. }),
  418. smalltalk.Workspace);
  419. smalltalk.addMethod(
  420. '_renderButtonsOn_',
  421. smalltalk.method({
  422. selector: 'renderButtonsOn:',
  423. fn: function (html){
  424. var self=this;
  425. (function($rec){smalltalk.send($rec, "_with_", ["DoIt"]);smalltalk.send($rec, "_title_", [unescape("ctrl+d")]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_doIt", []);})]);})(smalltalk.send(html, "_button", []));
  426. (function($rec){smalltalk.send($rec, "_with_", ["PrintIt"]);smalltalk.send($rec, "_title_", [unescape("ctrl+p")]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_printIt", []);})]);})(smalltalk.send(html, "_button", []));
  427. (function($rec){smalltalk.send($rec, "_with_", ["InspectIt"]);smalltalk.send($rec, "_title_", [unescape("ctrl+i")]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_inspectIt", []);})]);})(smalltalk.send(html, "_button", []));
  428. (function($rec){smalltalk.send($rec, "_with_", ["Clear workspace"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_clearWorkspace", []);})]);})(smalltalk.send(html, "_button", []));
  429. return self;}
  430. }),
  431. smalltalk.Workspace);
  432. smalltalk.addClass('Transcript', smalltalk.TabWidget, ['textarea'], 'IDE');
  433. smalltalk.addMethod(
  434. '_label',
  435. smalltalk.method({
  436. selector: 'label',
  437. fn: function (){
  438. var self=this;
  439. return unescape("%5BTranscript%5D");
  440. return self;}
  441. }),
  442. smalltalk.Transcript);
  443. smalltalk.addMethod(
  444. '_show_',
  445. smalltalk.method({
  446. selector: 'show:',
  447. fn: function (anObject){
  448. var self=this;
  449. smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val_", [smalltalk.send(smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val", []), "__comma", [smalltalk.send(anObject, "_asString", [])])]);
  450. return self;}
  451. }),
  452. smalltalk.Transcript);
  453. smalltalk.addMethod(
  454. '_cr',
  455. smalltalk.method({
  456. selector: 'cr',
  457. fn: function (){
  458. var self=this;
  459. smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val_", [smalltalk.send(smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val", []), "__comma", [smalltalk.send((smalltalk.String || String), "_cr", [])])]);
  460. return self;}
  461. }),
  462. smalltalk.Transcript);
  463. smalltalk.addMethod(
  464. '_clear',
  465. smalltalk.method({
  466. selector: 'clear',
  467. fn: function (){
  468. var self=this;
  469. smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val_", [""]);
  470. return self;}
  471. }),
  472. smalltalk.Transcript);
  473. smalltalk.addMethod(
  474. '_renderBoxOn_',
  475. smalltalk.method({
  476. selector: 'renderBoxOn:',
  477. fn: function (html){
  478. var self=this;
  479. self['@textarea']=smalltalk.send(html, "_textarea", []);
  480. smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_call_", ["tabby"]);
  481. (function($rec){smalltalk.send($rec, "_class_", ["jt_transcript"]);return smalltalk.send($rec, "_at_put_", ["spellcheck", "false"]);})(self['@textarea']);
  482. return self;}
  483. }),
  484. smalltalk.Transcript);
  485. smalltalk.addMethod(
  486. '_renderButtonsOn_',
  487. smalltalk.method({
  488. selector: 'renderButtonsOn:',
  489. fn: function (html){
  490. var self=this;
  491. (function($rec){smalltalk.send($rec, "_with_", ["Clear transcript"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_clear", []);})]);})(smalltalk.send(html, "_button", []));
  492. return self;}
  493. }),
  494. smalltalk.Transcript);
  495. smalltalk.Transcript.klass.iVarNames = ['current'];
  496. smalltalk.addMethod(
  497. '_open',
  498. smalltalk.method({
  499. selector: 'open',
  500. fn: function (){
  501. var self=this;
  502. (function($rec){smalltalk.send($rec, "_open", []);return smalltalk.send($rec, "_selectTab_", [smalltalk.send(self, "_current", [])]);})(smalltalk.send((smalltalk.TabManager || TabManager), "_current", []));
  503. return self;}
  504. }),
  505. smalltalk.Transcript.klass);
  506. smalltalk.addMethod(
  507. '_new',
  508. smalltalk.method({
  509. selector: 'new',
  510. fn: function (){
  511. var self=this;
  512. smalltalk.send(self, "_shouldNotImplement", []);
  513. return self;}
  514. }),
  515. smalltalk.Transcript.klass);
  516. smalltalk.addMethod(
  517. '_current',
  518. smalltalk.method({
  519. selector: 'current',
  520. fn: function (){
  521. var self=this;
  522. return (($receiver = self['@current']) == nil || $receiver == undefined) ? (function(){return self['@current']=smalltalk.send(self, "_new", [], smalltalk.TabWidget.klass);})() : $receiver;
  523. return self;}
  524. }),
  525. smalltalk.Transcript.klass);
  526. smalltalk.addMethod(
  527. '_show_',
  528. smalltalk.method({
  529. selector: 'show:',
  530. fn: function (anObject){
  531. var self=this;
  532. smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [anObject]);
  533. return self;}
  534. }),
  535. smalltalk.Transcript.klass);
  536. smalltalk.addMethod(
  537. '_cr',
  538. smalltalk.method({
  539. selector: 'cr',
  540. fn: function (){
  541. var self=this;
  542. smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [smalltalk.send((smalltalk.String || String), "_cr", [])]);
  543. return self;}
  544. }),
  545. smalltalk.Transcript.klass);
  546. smalltalk.addMethod(
  547. '_clear',
  548. smalltalk.method({
  549. selector: 'clear',
  550. fn: function (){
  551. var self=this;
  552. smalltalk.send(smalltalk.send(self, "_current", []), "_clear", []);
  553. return self;}
  554. }),
  555. smalltalk.Transcript.klass);
  556. smalltalk.addClass('Browser', smalltalk.TabWidget, ['selectedCategory', 'selectedClass', 'selectedProtocol', 'selectedMethod', 'commitButton', 'categoriesList', 'classesList', 'protocolsList', 'methodsList', 'sourceArea', 'tabsList', 'selectedTab', 'saveButton', 'classButtons', 'methodButtons', 'unsavedChanges', 'input'], 'IDE');
  557. smalltalk.addMethod(
  558. '_label',
  559. smalltalk.method({
  560. selector: 'label',
  561. fn: function (){
  562. var self=this;
  563. return (($receiver = self['@selectedClass']) == nil || $receiver == undefined) ? (function(){return unescape("Browser%20%28nil%29");})() : (function(){return smalltalk.send(self['@selectedClass'], "_name", []);})();
  564. return self;}
  565. }),
  566. smalltalk.Browser);
  567. smalltalk.addMethod(
  568. '_categories',
  569. smalltalk.method({
  570. selector: 'categories',
  571. fn: function (){
  572. var self=this;
  573. var categories=nil;
  574. categories=smalltalk.send((smalltalk.Array || Array), "_new", []);
  575. smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_classes", []), "_do_", [(function(each){return (($receiver = smalltalk.send(categories, "_includes_", [smalltalk.send(each, "_category", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(categories, "_add_", [smalltalk.send(each, "_category", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(categories, "_add_", [smalltalk.send(each, "_category", [])]);})]);})]);
  576. return smalltalk.send(categories, "_sort", []);
  577. return self;}
  578. }),
  579. smalltalk.Browser);
  580. smalltalk.addMethod(
  581. '_classes',
  582. smalltalk.method({
  583. selector: 'classes',
  584. fn: function (){
  585. var self=this;
  586. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_classes", []), "_select_", [(function(each){return smalltalk.send(smalltalk.send(each, "_category", []), "__eq", [self['@selectedCategory']]);})]), "_sort_", [(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", [])]);})]);
  587. return self;}
  588. }),
  589. smalltalk.Browser);
  590. smalltalk.addMethod(
  591. '_protocols',
  592. smalltalk.method({
  593. selector: 'protocols',
  594. fn: function (){
  595. var self=this;
  596. try{var klass=nil;
  597. (($receiver = self['@selectedClass']) != nil && $receiver != undefined) ? (function(){(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["comment"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return []}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return []}})})();})]);klass=(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return self['@selectedClass'];})() : (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return self['@selectedClass'];}), (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})]);(($receiver = smalltalk.send(smalltalk.send(klass, "_methodDictionary", []), "_isEmpty", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send((smalltalk.Array || Array), "_with_", ["not yet classified"])}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send((smalltalk.Array || Array), "_with_", ["not yet classified"])}})})();})]);return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send(klass, "_protocols", [])}})})();})() : nil;
  598. (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send((smalltalk.Array || Array), "_new", [])}})})();
  599. return self;
  600. } catch(e) {if(e.name === 'stReturn' && e.selector === '_protocols'){return e.fn()} throw(e)}}
  601. }),
  602. smalltalk.Browser);
  603. smalltalk.addMethod(
  604. '_methods',
  605. smalltalk.method({
  606. selector: 'methods',
  607. fn: function (){
  608. var self=this;
  609. try{var klass=nil;
  610. (($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["comment"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_methods', fn: function(){return []}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_methods', fn: function(){return []}})})();})]);
  611. (($receiver = self['@selectedClass']) != nil && $receiver != undefined) ? (function(){return klass=(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return self['@selectedClass'];})() : (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return self['@selectedClass'];}), (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})]);})() : nil;
  612. (function(){throw({name: 'stReturn', selector: '_methods', fn: function(){return smalltalk.send((($receiver = self['@selectedProtocol']) == nil || $receiver == undefined) ? (function(){return (($receiver = klass) == nil || $receiver == undefined) ? (function(){return [];})() : (function(){return smalltalk.send(smalltalk.send(klass, "_methodDictionary", []), "_values", []);})();})() : (function(){return smalltalk.send(smalltalk.send(smalltalk.send(klass, "_methodDictionary", []), "_values", []), "_select_", [(function(each){return smalltalk.send(smalltalk.send(each, "_category", []), "__eq", [self['@selectedProtocol']]);})]);})(), "_sort_", [(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", [])]);})])}})})();
  613. return self;
  614. } catch(e) {if(e.name === 'stReturn' && e.selector === '_methods'){return e.fn()} throw(e)}}
  615. }),
  616. smalltalk.Browser);
  617. smalltalk.addMethod(
  618. '_source',
  619. smalltalk.method({
  620. selector: 'source',
  621. fn: function (){
  622. var self=this;
  623. try{(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["comment"])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_source', fn: function(){return (($receiver = smalltalk.send(smalltalk.send(self['@selectedProtocol'], "_notNil", []), "_or_", [(function(){return smalltalk.send(self['@selectedMethod'], "_notNil", []);})])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_declarationSource", []);})() : (function(){return smalltalk.send(self, "_methodSource", []);})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self, "_declarationSource", []);}), (function(){return smalltalk.send(self, "_methodSource", []);})])}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '_source', fn: function(){return (($receiver = smalltalk.send(smalltalk.send(self['@selectedProtocol'], "_notNil", []), "_or_", [(function(){return smalltalk.send(self['@selectedMethod'], "_notNil", []);})])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_declarationSource", []);})() : (function(){return smalltalk.send(self, "_methodSource", []);})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self, "_declarationSource", []);}), (function(){return smalltalk.send(self, "_methodSource", []);})])}})})();})]);
  624. (function(){throw({name: 'stReturn', selector: '_source', fn: function(){return (($receiver = self['@selectedClass']) == nil || $receiver == undefined) ? (function(){return "";})() : (function(){return smalltalk.send(self, "_classCommentSource", []);})()}})})();
  625. return self;
  626. } catch(e) {if(e.name === 'stReturn' && e.selector === '_source'){return e.fn()} throw(e)}}
  627. }),
  628. smalltalk.Browser);
  629. smalltalk.addMethod(
  630. '_methodSource',
  631. smalltalk.method({
  632. selector: 'methodSource',
  633. fn: function (){
  634. var self=this;
  635. return (($receiver = self['@selectedMethod']) == nil || $receiver == undefined) ? (function(){return smalltalk.send(self, "_dummyMethodSource", []);})() : (function(){return smalltalk.send(self['@selectedMethod'], "_source", []);})();
  636. return self;}
  637. }),
  638. smalltalk.Browser);
  639. smalltalk.addMethod(
  640. '_dummyMethodSource',
  641. smalltalk.method({
  642. selector: 'dummyMethodSource',
  643. fn: function (){
  644. var self=this;
  645. return unescape("messageSelectorAndArgumentNames%0A%09%22comment%20stating%20purpose%20of%20message%22%0A%0A%09%7C%20temporary%20variable%20names%20%7C%0A%09statements");
  646. return self;}
  647. }),
  648. smalltalk.Browser);
  649. smalltalk.addMethod(
  650. '_declarationSource',
  651. smalltalk.method({
  652. selector: 'declarationSource',
  653. fn: function (){
  654. var self=this;
  655. return (($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_classDeclarationSource", []);})() : (function(){return smalltalk.send(self, "_metaclassDeclarationSource", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_classDeclarationSource", []);}), (function(){return smalltalk.send(self, "_metaclassDeclarationSource", []);})]);
  656. return self;}
  657. }),
  658. smalltalk.Browser);
  659. smalltalk.addMethod(
  660. '_classDeclarationSource',
  661. smalltalk.method({
  662. selector: 'classDeclarationSource',
  663. fn: function (){
  664. var self=this;
  665. var stream=nil;
  666. stream=smalltalk.send("", "_writeStream", []);
  667. (($receiver = self['@selectedClass']) != nil && $receiver != undefined) ? (function(){(function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(self['@selectedClass'], "_superclass", []), "_asString", [])]);smalltalk.send($rec, "_nextPutAll_", [unescape("%20subclass%3A%20%23")]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self['@selectedClass'], "_name", [])]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send((smalltalk.String || String), "_lf", []), "__comma", [smalltalk.send((smalltalk.String || String), "_tab", [])])]);return smalltalk.send($rec, "_nextPutAll_", [unescape("instanceVariableNames%3A%20%27")]);})(stream);smalltalk.send(smalltalk.send(self['@selectedClass'], "_instanceVariableNames", []), "_do_separatedBy_", [(function(each){return smalltalk.send(stream, "_nextPutAll_", [each]);}), (function(){return smalltalk.send(stream, "_nextPutAll_", [" "]);})]);return (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("%27"), "__comma", [smalltalk.send((smalltalk.String || String), "_lf", [])]), "__comma", [smalltalk.send((smalltalk.String || String), "_tab", [])])]);smalltalk.send($rec, "_nextPutAll_", [unescape("category%3A%20%27")]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self['@selectedClass'], "_category", [])]);return smalltalk.send($rec, "_nextPutAll_", [unescape("%27")]);})(stream);})() : nil;
  668. return smalltalk.send(stream, "_contents", []);
  669. return self;}
  670. }),
  671. smalltalk.Browser);
  672. smalltalk.addMethod(
  673. '_metaclassDeclarationSource',
  674. smalltalk.method({
  675. selector: 'metaclassDeclarationSource',
  676. fn: function (){
  677. var self=this;
  678. var stream=nil;
  679. stream=smalltalk.send("", "_writeStream", []);
  680. (($receiver = self['@selectedClass']) != nil && $receiver != undefined) ? (function(){(function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self['@selectedClass'], "_asString", [])]);smalltalk.send($rec, "_nextPutAll_", [" class "]);return smalltalk.send($rec, "_nextPutAll_", [unescape("instanceVariableNames%3A%20%27")]);})(stream);smalltalk.send(smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_instanceVariableNames", []), "_do_separatedBy_", [(function(each){return smalltalk.send(stream, "_nextPutAll_", [each]);}), (function(){return smalltalk.send(stream, "_nextPutAll_", [" "]);})]);return smalltalk.send(stream, "_nextPutAll_", [unescape("%27")]);})() : nil;
  681. return smalltalk.send(stream, "_contents", []);
  682. return self;}
  683. }),
  684. smalltalk.Browser);
  685. smalltalk.addMethod(
  686. '_classCommentSource',
  687. smalltalk.method({
  688. selector: 'classCommentSource',
  689. fn: function (){
  690. var self=this;
  691. return smalltalk.send(self['@selectedClass'], "_comment", []);
  692. return self;}
  693. }),
  694. smalltalk.Browser);
  695. smalltalk.addMethod(
  696. '_selectedClass',
  697. smalltalk.method({
  698. selector: 'selectedClass',
  699. fn: function (){
  700. var self=this;
  701. return self['@selectedClass'];
  702. return self;}
  703. }),
  704. smalltalk.Browser);
  705. smalltalk.addMethod(
  706. '_disableSaveButton',
  707. smalltalk.method({
  708. selector: 'disableSaveButton',
  709. fn: function (){
  710. var self=this;
  711. (($receiver = self['@saveButton']) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self['@saveButton'], "_at_put_", ["disabled", true]);})() : nil;
  712. self['@unsavedChanges']=false;
  713. return self;}
  714. }),
  715. smalltalk.Browser);
  716. smalltalk.addMethod(
  717. '_hideClassButtons',
  718. smalltalk.method({
  719. selector: 'hideClassButtons',
  720. fn: function (){
  721. var self=this;
  722. smalltalk.send(smalltalk.send(self['@classButtons'], "_asJQuery", []), "_hide", []);
  723. return self;}
  724. }),
  725. smalltalk.Browser);
  726. smalltalk.addMethod(
  727. '_showClassButtons',
  728. smalltalk.method({
  729. selector: 'showClassButtons',
  730. fn: function (){
  731. var self=this;
  732. smalltalk.send(smalltalk.send(self['@classButtons'], "_asJQuery", []), "_show", []);
  733. return self;}
  734. }),
  735. smalltalk.Browser);
  736. smalltalk.addMethod(
  737. '_hideMethodButtons',
  738. smalltalk.method({
  739. selector: 'hideMethodButtons',
  740. fn: function (){
  741. var self=this;
  742. smalltalk.send(smalltalk.send(self['@methodButtons'], "_asJQuery", []), "_hide", []);
  743. return self;}
  744. }),
  745. smalltalk.Browser);
  746. smalltalk.addMethod(
  747. '_showMethodButtons',
  748. smalltalk.method({
  749. selector: 'showMethodButtons',
  750. fn: function (){
  751. var self=this;
  752. smalltalk.send(smalltalk.send(self['@methodButtons'], "_asJQuery", []), "_show", []);
  753. return self;}
  754. }),
  755. smalltalk.Browser);
  756. smalltalk.addMethod(
  757. '_compile',
  758. smalltalk.method({
  759. selector: 'compile',
  760. fn: function (){
  761. var self=this;
  762. smalltalk.send(self, "_disableSaveButton", []);
  763. (($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["comment"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (($receiver = self['@selectedClass']) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_compileClassComment", []);})() : nil;})() : (function(){return (($receiver = smalltalk.send(smalltalk.send(self['@selectedProtocol'], "_notNil", []), "_or_", [(function(){return smalltalk.send(self['@selectedMethod'], "_notNil", []);})])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_compileDefinition", []);})() : (function(){return smalltalk.send(self, "_compileMethodDefinition", []);})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self, "_compileDefinition", []);}), (function(){return smalltalk.send(self, "_compileMethodDefinition", []);})]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return (($receiver = self['@selectedClass']) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_compileClassComment", []);})() : nil;}), (function(){return (($receiver = smalltalk.send(smalltalk.send(self['@selectedProtocol'], "_notNil", []), "_or_", [(function(){return smalltalk.send(self['@selectedMethod'], "_notNil", []);})])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_compileDefinition", []);})() : (function(){return smalltalk.send(self, "_compileMethodDefinition", []);})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self, "_compileDefinition", []);}), (function(){return smalltalk.send(self, "_compileMethodDefinition", []);})]);})]);
  764. return self;}
  765. }),
  766. smalltalk.Browser);
  767. smalltalk.addMethod(
  768. '_compileClassComment',
  769. smalltalk.method({
  770. selector: 'compileClassComment',
  771. fn: function (){
  772. var self=this;
  773. smalltalk.send(self['@selectedClass'], "_comment_", [smalltalk.send(self['@sourceArea'], "_val", [])]);
  774. return self;}
  775. }),
  776. smalltalk.Browser);
  777. smalltalk.addMethod(
  778. '_compileMethodDefinition',
  779. smalltalk.method({
  780. selector: 'compileMethodDefinition',
  781. fn: function (){
  782. var self=this;
  783. (($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_compileMethodDefinitionFor_", [self['@selectedClass']]);})() : (function(){return smalltalk.send(self, "_compileMethodDefinitionFor_", [smalltalk.send(self['@selectedClass'], "_class", [])]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_compileMethodDefinitionFor_", [self['@selectedClass']]);}), (function(){return smalltalk.send(self, "_compileMethodDefinitionFor_", [smalltalk.send(self['@selectedClass'], "_class", [])]);})]);
  784. return self;}
  785. }),
  786. smalltalk.Browser);
  787. smalltalk.addMethod(
  788. '_compileMethodDefinitionFor_',
  789. smalltalk.method({
  790. selector: 'compileMethodDefinitionFor:',
  791. fn: function (aClass){
  792. var self=this;
  793. try{var compiler=nil;
  794. var method=nil;
  795. var source=nil;
  796. var node=nil;
  797. source=smalltalk.send(self['@sourceArea'], "_val", []);
  798. (($receiver = self['@selectedProtocol']) == nil || $receiver == undefined) ? (function(){return self['@selectedProtocol']=smalltalk.send(self['@selectedMethod'], "_category", []);})() : $receiver;
  799. compiler=smalltalk.send((smalltalk.Compiler || Compiler), "_new", []);
  800. smalltalk.send(compiler, "_source_", [source]);
  801. node=smalltalk.send(compiler, "_parse_", [source]);
  802. (($receiver = smalltalk.send(node, "_isParseFailure", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_compileMethodDefinitionFor_', fn: function(){return smalltalk.send(self, "_alert_", [smalltalk.send(smalltalk.send(smalltalk.send("PARSE ERROR: ", "__comma", [smalltalk.send(node, "_reason", [])]), "__comma", [unescape("%2C%20position%3A%20")]), "__comma", [smalltalk.send(smalltalk.send(node, "_position", []), "_asString", [])])])}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_compileMethodDefinitionFor_', fn: function(){return smalltalk.send(self, "_alert_", [smalltalk.send(smalltalk.send(smalltalk.send("PARSE ERROR: ", "__comma", [smalltalk.send(node, "_reason", [])]), "__comma", [unescape("%2C%20position%3A%20")]), "__comma", [smalltalk.send(smalltalk.send(node, "_position", []), "_asString", [])])])}})})();})]);
  803. smalltalk.send(compiler, "_currentClass_", [aClass]);
  804. method=smalltalk.send(compiler, "_eval_", [smalltalk.send(compiler, "_compileNode_", [node])]);
  805. smalltalk.send(method, "_category_", [self['@selectedProtocol']]);
  806. smalltalk.send(smalltalk.send(compiler, "_unknownVariables", []), "_do_", [(function(each){return (($receiver = smalltalk.send(self, "_confirm_", [smalltalk.send(smalltalk.send(unescape("Declare%20%27"), "__comma", [each]), "__comma", [unescape("%27%20as%20instance%20variable%3F")])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_addInstanceVariableNamed_toClass_", [each, aClass]);return (function(){throw({name: 'stReturn', selector: '_compileMethodDefinitionFor_', fn: function(){return smalltalk.send(self, "_compileMethodDefinitionFor_", [aClass])}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_addInstanceVariableNamed_toClass_", [each, aClass]);return (function(){throw({name: 'stReturn', selector: '_compileMethodDefinitionFor_', fn: function(){return smalltalk.send(self, "_compileMethodDefinitionFor_", [aClass])}})})();})]);})]);
  807. smalltalk.send(aClass, "_addCompiledMethod_", [method]);
  808. smalltalk.send(compiler, "_setupClass_", [aClass]);
  809. smalltalk.send(self, "_updateMethodsList", []);
  810. smalltalk.send(self, "_selectMethod_", [method]);
  811. return self;
  812. } catch(e) {if(e.name === 'stReturn' && e.selector === '_compileMethodDefinitionFor_'){return e.fn()} throw(e)}}
  813. }),
  814. smalltalk.Browser);
  815. smalltalk.addMethod(
  816. '_compileDefinition',
  817. smalltalk.method({
  818. selector: 'compileDefinition',
  819. fn: function (){
  820. var self=this;
  821. var newClass=nil;
  822. newClass=smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_loadExpression_", [smalltalk.send(self['@sourceArea'], "_val", [])]);
  823. (function($rec){smalltalk.send($rec, "_resetClassesList", []);smalltalk.send($rec, "_updateCategoriesList", []);return smalltalk.send($rec, "_updateClassesList", []);})(self);
  824. return self;}
  825. }),
  826. smalltalk.Browser);
  827. smalltalk.addMethod(
  828. '_commitCategory',
  829. smalltalk.method({
  830. selector: 'commitCategory',
  831. fn: function (){
  832. var self=this;
  833. (($receiver = self['@selectedCategory']) != nil && $receiver != undefined) ? (function(){(function($rec){smalltalk.send($rec, "_at_put_", ["type", "PUT"]);smalltalk.send($rec, "_at_put_", ["data", smalltalk.send(smalltalk.send((smalltalk.Exporter || Exporter), "_new", []), "_exportCategory_", [self['@selectedCategory']])]);smalltalk.send($rec, "_at_put_", ["error", (function(){return smalltalk.send(self, "_alert_", [unescape("Commit%20failed%21")]);})]);return smalltalk.send($rec, "_send", []);})(smalltalk.send((smalltalk.Ajax || Ajax), "_url_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_commitPathJs", []), "__comma", [unescape("/")]), "__comma", [self['@selectedCategory']]), "__comma", [".js"])]));(function($rec){smalltalk.send($rec, "_at_put_", ["type", "PUT"]);smalltalk.send($rec, "_at_put_", ["data", smalltalk.send(smalltalk.send((smalltalk.StrippedExporter || StrippedExporter), "_new", []), "_exportCategory_", [self['@selectedCategory']])]);smalltalk.send($rec, "_at_put_", ["error", (function(){return smalltalk.send(self, "_alert_", [unescape("Commit%20failed%21")]);})]);return smalltalk.send($rec, "_send", []);})(smalltalk.send((smalltalk.Ajax || Ajax), "_url_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_commitPathJs", []), "__comma", [unescape("/")]), "__comma", [self['@selectedCategory']]), "__comma", [".deploy.js"])]));return (function($rec){smalltalk.send($rec, "_at_put_", ["type", "PUT"]);smalltalk.send($rec, "_at_put_", ["data", smalltalk.send(smalltalk.send((smalltalk.ChunkExporter || ChunkExporter), "_new", []), "_exportCategory_", [self['@selectedCategory']])]);smalltalk.send($rec, "_at_put_", ["error", (function(){return smalltalk.send(self, "_alert_", [unescape("Commit%20failed%21")]);})]);return smalltalk.send($rec, "_send", []);})(smalltalk.send((smalltalk.Ajax || Ajax), "_url_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_commitPathSt", []), "__comma", [unescape("/")]), "__comma", [self['@selectedCategory']]), "__comma", [".st"])]));})() : nil;
  834. return self;}
  835. }),
  836. smalltalk.Browser);
  837. smalltalk.addMethod(
  838. '_cancelChanges',
  839. smalltalk.method({
  840. selector: 'cancelChanges',
  841. fn: function (){
  842. var self=this;
  843. return (($receiver = self['@unsavedChanges']).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_confirm_", [unescape("Cancel%20changes%3F")]);})() : (function(){return true;})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_confirm_", [unescape("Cancel%20changes%3F")]);}), (function(){return true;})]);
  844. return self;}
  845. }),
  846. smalltalk.Browser);
  847. smalltalk.addMethod(
  848. '_removeClass',
  849. smalltalk.method({
  850. selector: 'removeClass',
  851. fn: function (){
  852. var self=this;
  853. (($receiver = smalltalk.send(self, "_confirm_", [smalltalk.send(smalltalk.send("Do you really want to remove ", "__comma", [smalltalk.send(self['@selectedClass'], "_name", [])]), "__comma", [unescape("%3F")])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_removeClass_", [self['@selectedClass']]);smalltalk.send(self, "_resetClassesList", []);return smalltalk.send(self, "_selectClass_", [nil]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_removeClass_", [self['@selectedClass']]);smalltalk.send(self, "_resetClassesList", []);return smalltalk.send(self, "_selectClass_", [nil]);})]);
  854. return self;}
  855. }),
  856. smalltalk.Browser);
  857. smalltalk.addMethod(
  858. '_removeMethod',
  859. smalltalk.method({
  860. selector: 'removeMethod',
  861. fn: function (){
  862. var self=this;
  863. (($receiver = smalltalk.send(self, "_cancelChanges", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (($receiver = smalltalk.send(self, "_confirm_", [smalltalk.send(smalltalk.send(unescape("Do%20you%20really%20want%20to%20remove%20%23"), "__comma", [smalltalk.send(self['@selectedMethod'], "_selector", [])]), "__comma", [unescape("%3F")])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);})() : (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);}), (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})]);return smalltalk.send(self, "_selectMethod_", [nil]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);})() : (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);}), (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})]);return smalltalk.send(self, "_selectMethod_", [nil]);})]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (($receiver = smalltalk.send(self, "_confirm_", [smalltalk.send(smalltalk.send(unescape("Do%20you%20really%20want%20to%20remove%20%23"), "__comma", [smalltalk.send(self['@selectedMethod'], "_selector", [])]), "__comma", [unescape("%3F")])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);})() : (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);}), (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})]);return smalltalk.send(self, "_selectMethod_", [nil]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);})() : (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);}), (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})]);return smalltalk.send(self, "_selectMethod_", [nil]);})]);})]);
  864. return self;}
  865. }),
  866. smalltalk.Browser);
  867. smalltalk.addMethod(
  868. '_setMethodProtocol_',
  869. smalltalk.method({
  870. selector: 'setMethodProtocol:',
  871. fn: function (aString){
  872. var self=this;
  873. (($receiver = smalltalk.send(self, "_cancelChanges", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (($receiver = smalltalk.send(smalltalk.send(self, "_protocols", []), "_includes_", [aString])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_addNewProtocol", []);})() : (function(){smalltalk.send(self['@selectedMethod'], "_category_", [aString]);self['@selectedProtocol']=aString;self['@selectedMethod']=self['@selectedMethod'];return (function($rec){smalltalk.send($rec, "_updateProtocolsList", []);smalltalk.send($rec, "_updateMethodsList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self, "_addNewProtocol", []);}), (function(){smalltalk.send(self['@selectedMethod'], "_category_", [aString]);self['@selectedProtocol']=aString;self['@selectedMethod']=self['@selectedMethod'];return (function($rec){smalltalk.send($rec, "_updateProtocolsList", []);smalltalk.send($rec, "_updateMethodsList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (($receiver = smalltalk.send(smalltalk.send(self, "_protocols", []), "_includes_", [aString])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_addNewProtocol", []);})() : (function(){smalltalk.send(self['@selectedMethod'], "_category_", [aString]);self['@selectedProtocol']=aString;self['@selectedMethod']=self['@selectedMethod'];return (function($rec){smalltalk.send($rec, "_updateProtocolsList", []);smalltalk.send($rec, "_updateMethodsList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self, "_addNewProtocol", []);}), (function(){smalltalk.send(self['@selectedMethod'], "_category_", [aString]);self['@selectedProtocol']=aString;self['@selectedMethod']=self['@selectedMethod'];return (function($rec){smalltalk.send($rec, "_updateProtocolsList", []);smalltalk.send($rec, "_updateMethodsList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})]);})]);
  874. return self;}
  875. }),
  876. smalltalk.Browser);
  877. smalltalk.addMethod(
  878. '_addNewProtocol',
  879. smalltalk.method({
  880. selector: 'addNewProtocol',
  881. fn: function (){
  882. var self=this;
  883. var newProtocol=nil;
  884. newProtocol=smalltalk.send(self, "_prompt_", ["New method protocol"]);
  885. (($receiver = smalltalk.send(newProtocol, "_notEmpty", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@selectedMethod'], "_category_", [newProtocol]);return smalltalk.send(self, "_setMethodProtocol_", [newProtocol]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@selectedMethod'], "_category_", [newProtocol]);return smalltalk.send(self, "_setMethodProtocol_", [newProtocol]);})]);
  886. return self;}
  887. }),
  888. smalltalk.Browser);
  889. smalltalk.addMethod(
  890. '_selectCategory_',
  891. smalltalk.method({
  892. selector: 'selectCategory:',
  893. fn: function (aCategory){
  894. var self=this;
  895. (($receiver = smalltalk.send(self, "_cancelChanges", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){self['@selectedCategory']=aCategory;self['@selectedClass']=self['@selectedProtocol']=self['@selectedMethod']=nil;smalltalk.send(self, "_resetClassesList", []);return (function($rec){smalltalk.send($rec, "_updateCategoriesList", []);smalltalk.send($rec, "_updateClassesList", []);smalltalk.send($rec, "_updateProtocolsList", []);smalltalk.send($rec, "_updateMethodsList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){self['@selectedCategory']=aCategory;self['@selectedClass']=self['@selectedProtocol']=self['@selectedMethod']=nil;smalltalk.send(self, "_resetClassesList", []);return (function($rec){smalltalk.send($rec, "_updateCategoriesList", []);smalltalk.send($rec, "_updateClassesList", []);smalltalk.send($rec, "_updateProtocolsList", []);smalltalk.send($rec, "_updateMethodsList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})]);
  896. return self;}
  897. }),
  898. smalltalk.Browser);
  899. smalltalk.addMethod(
  900. '_selectClass_',
  901. smalltalk.method({
  902. selector: 'selectClass:',
  903. fn: function (aClass){
  904. var self=this;
  905. (($receiver = smalltalk.send(self, "_cancelChanges", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){self['@selectedClass']=aClass;self['@selectedProtocol']=self['@selectedMethod']=nil;return (function($rec){smalltalk.send($rec, "_updateClassesList", []);smalltalk.send($rec, "_updateProtocolsList", []);smalltalk.send($rec, "_updateMethodsList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){self['@selectedClass']=aClass;self['@selectedProtocol']=self['@selectedMethod']=nil;return (function($rec){smalltalk.send($rec, "_updateClassesList", []);smalltalk.send($rec, "_updateProtocolsList", []);smalltalk.send($rec, "_updateMethodsList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})]);
  906. return self;}
  907. }),
  908. smalltalk.Browser);
  909. smalltalk.addMethod(
  910. '_selectProtocol_',
  911. smalltalk.method({
  912. selector: 'selectProtocol:',
  913. fn: function (aString){
  914. var self=this;
  915. (($receiver = smalltalk.send(self, "_cancelChanges", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){self['@selectedProtocol']=aString;self['@selectedMethod']=nil;return (function($rec){smalltalk.send($rec, "_updateProtocolsList", []);smalltalk.send($rec, "_updateMethodsList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){self['@selectedProtocol']=aString;self['@selectedMethod']=nil;return (function($rec){smalltalk.send($rec, "_updateProtocolsList", []);smalltalk.send($rec, "_updateMethodsList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})]);
  916. return self;}
  917. }),
  918. smalltalk.Browser);
  919. smalltalk.addMethod(
  920. '_selectMethod_',
  921. smalltalk.method({
  922. selector: 'selectMethod:',
  923. fn: function (aMethod){
  924. var self=this;
  925. (($receiver = smalltalk.send(self, "_cancelChanges", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){self['@selectedMethod']=aMethod;return (function($rec){smalltalk.send($rec, "_updateProtocolsList", []);smalltalk.send($rec, "_updateMethodsList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){self['@selectedMethod']=aMethod;return (function($rec){smalltalk.send($rec, "_updateProtocolsList", []);smalltalk.send($rec, "_updateMethodsList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})]);
  926. return self;}
  927. }),
  928. smalltalk.Browser);
  929. smalltalk.addMethod(
  930. '_selectTab_',
  931. smalltalk.method({
  932. selector: 'selectTab:',
  933. fn: function (aString){
  934. var self=this;
  935. (($receiver = smalltalk.send(self, "_cancelChanges", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){self['@selectedTab']=aString;smalltalk.send(self, "_selectProtocol_", [nil]);return smalltalk.send(self, "_updateTabsList", []);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){self['@selectedTab']=aString;smalltalk.send(self, "_selectProtocol_", [nil]);return smalltalk.send(self, "_updateTabsList", []);})]);
  936. return self;}
  937. }),
  938. smalltalk.Browser);
  939. smalltalk.addMethod(
  940. '_renameClass',
  941. smalltalk.method({
  942. selector: 'renameClass',
  943. fn: function (){
  944. var self=this;
  945. var newName=nil;
  946. newName=smalltalk.send(self, "_prompt_", [smalltalk.send("Rename class ", "__comma", [smalltalk.send(self['@selectedClass'], "_name", [])])]);
  947. (($receiver = smalltalk.send(newName, "_notEmpty", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@selectedClass'], "_rename_", [newName]);return (function($rec){smalltalk.send($rec, "_updateClassesList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@selectedClass'], "_rename_", [newName]);return (function($rec){smalltalk.send($rec, "_updateClassesList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})]);
  948. return self;}
  949. }),
  950. smalltalk.Browser);
  951. smalltalk.addMethod(
  952. '_addInstanceVariableNamed_toClass_',
  953. smalltalk.method({
  954. selector: 'addInstanceVariableNamed:toClass:',
  955. fn: function (aString, aClass){
  956. var self=this;
  957. smalltalk.send(smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []), "_addSubclassOf_named_instanceVariableNames_", [smalltalk.send(aClass, "_superclass", []), smalltalk.send(aClass, "_name", []), (function($rec){smalltalk.send($rec, "_add_", [aString]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(smalltalk.send(aClass, "_instanceVariableNames", []), "_copy", []))]);
  958. return self;}
  959. }),
  960. smalltalk.Browser);
  961. smalltalk.addMethod(
  962. '_searchReferencesOf_',
  963. smalltalk.method({
  964. selector: 'searchReferencesOf:',
  965. fn: function (aString){
  966. var self=this;
  967. smalltalk.send((smalltalk.ReferencesBrowser || ReferencesBrowser), "_search_", [aString]);
  968. return self;}
  969. }),
  970. smalltalk.Browser);
  971. smalltalk.addMethod(
  972. '_searchClassReferences',
  973. smalltalk.method({
  974. selector: 'searchClassReferences',
  975. fn: function (){
  976. var self=this;
  977. smalltalk.send((smalltalk.ReferencesBrowser || ReferencesBrowser), "_search_", [smalltalk.send(self['@selectedClass'], "_name", [])]);
  978. return self;}
  979. }),
  980. smalltalk.Browser);
  981. smalltalk.addMethod(
  982. '_search_',
  983. smalltalk.method({
  984. selector: 'search:',
  985. fn: function (aString){
  986. var self=this;
  987. (($receiver = smalltalk.send(self, "_cancelChanges", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){var searchedClass=nil;
  988. searchedClass=smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_at_", [aString]);return (($receiver = smalltalk.send(searchedClass, "_isClass", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_openOn_", [searchedClass]);})() : (function(){return smalltalk.send(self, "_searchReferencesOf_", [aString]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_openOn_", [searchedClass]);}), (function(){return smalltalk.send(self, "_searchReferencesOf_", [aString]);})]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){var searchedClass=nil;
  989. searchedClass=smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_at_", [aString]);return (($receiver = smalltalk.send(searchedClass, "_isClass", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_openOn_", [searchedClass]);})() : (function(){return smalltalk.send(self, "_searchReferencesOf_", [aString]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_openOn_", [searchedClass]);}), (function(){return smalltalk.send(self, "_searchReferencesOf_", [aString]);})]);})]);
  990. return self;}
  991. }),
  992. smalltalk.Browser);
  993. smalltalk.addMethod(
  994. '_initialize',
  995. smalltalk.method({
  996. selector: 'initialize',
  997. fn: function (){
  998. var self=this;
  999. smalltalk.send(self, "_initialize", [], smalltalk.TabWidget);
  1000. self['@selectedTab']="instance";
  1001. self['@unsavedChanges']=false;
  1002. return self;}
  1003. }),
  1004. smalltalk.Browser);
  1005. smalltalk.addMethod(
  1006. '_renderBoxOn_',
  1007. smalltalk.method({
  1008. selector: 'renderBoxOn:',
  1009. fn: function (html){
  1010. var self=this;
  1011. (function($rec){smalltalk.send($rec, "_renderTopPanelOn_", [html]);smalltalk.send($rec, "_renderTabsOn_", [html]);return smalltalk.send($rec, "_renderBottomPanelOn_", [html]);})(self);
  1012. return self;}
  1013. }),
  1014. smalltalk.Browser);
  1015. smalltalk.addMethod(
  1016. '_renderTopPanelOn_',
  1017. smalltalk.method({
  1018. selector: 'renderTopPanelOn:',
  1019. fn: function (html){
  1020. var self=this;
  1021. (function($rec){smalltalk.send($rec, "_class_", ["top"]);return smalltalk.send($rec, "_with_", [(function(){smalltalk.send(self, "_renderInputOn_", [html]);self['@categoriesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column browser categories"]);self['@commitButton']=(function($rec){smalltalk.send($rec, "_class_", ["jt_commit"]);smalltalk.send($rec, "_title_", ["Commit classes in this category to disk"]);smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_commitCategory", []);})]);return smalltalk.send($rec, "_with_", ["Commit category"]);})(smalltalk.send(html, "_button", []));self['@classesList']=smalltalk.send((smalltalk.ClassesList || ClassesList), "_on_", [self]);smalltalk.send(self['@classesList'], "_renderOn_", [html]);self['@protocolsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column browser protocols"]);self['@methodsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column browser methods"]);(function($rec){smalltalk.send($rec, "_updateCategoriesList", []);smalltalk.send($rec, "_updateClassesList", []);smalltalk.send($rec, "_updateProtocolsList", []);return smalltalk.send($rec, "_updateMethodsList", []);})(self);return smalltalk.send(smalltalk.send(html, "_div", []), "_class_", ["jt_clear"]);})]);})(smalltalk.send(html, "_div", []));
  1022. return self;}
  1023. }),
  1024. smalltalk.Browser);
  1025. smalltalk.addMethod(
  1026. '_renderTabsOn_',
  1027. smalltalk.method({
  1028. selector: 'renderTabsOn:',
  1029. fn: function (html){
  1030. var self=this;
  1031. self['@tabsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_tabs"]);
  1032. smalltalk.send(self, "_updateTabsList", []);
  1033. return self;}
  1034. }),
  1035. smalltalk.Browser);
  1036. smalltalk.addMethod(
  1037. '_renderBottomPanelOn_',
  1038. smalltalk.method({
  1039. selector: 'renderBottomPanelOn:',
  1040. fn: function (html){
  1041. var self=this;
  1042. (function($rec){smalltalk.send($rec, "_class_", ["jt_sourceCode"]);return smalltalk.send($rec, "_with_", [(function(){self['@sourceArea']=smalltalk.send((smalltalk.SourceArea || SourceArea), "_new", []);smalltalk.send(self['@sourceArea'], "_renderOn_", [html]);return smalltalk.send(self['@sourceArea'], "_onKeyUp_", [(function(){return smalltalk.send(self, "_updateStatus", []);})]);})]);})(smalltalk.send(html, "_div", []));
  1043. return self;}
  1044. }),
  1045. smalltalk.Browser);
  1046. smalltalk.addMethod(
  1047. '_renderButtonsOn_',
  1048. smalltalk.method({
  1049. selector: 'renderButtonsOn:',
  1050. fn: function (html){
  1051. var self=this;
  1052. self['@saveButton']=smalltalk.send(html, "_button", []);
  1053. (function($rec){smalltalk.send($rec, "_with_", ["Save"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_compile", []);})]);})(self['@saveButton']);
  1054. self['@methodButtons']=smalltalk.send(html, "_span", []);
  1055. self['@classButtons']=smalltalk.send(html, "_span", []);
  1056. (function($rec){smalltalk.send($rec, "_class_", ["right"]);return smalltalk.send($rec, "_with_", [(function(){(function($rec){smalltalk.send($rec, "_with_", ["DoIt"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self['@sourceArea'], "_doIt", []);})]);})(smalltalk.send(html, "_button", []));(function($rec){smalltalk.send($rec, "_with_", ["PrintIt"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self['@sourceArea'], "_printIt", []);})]);})(smalltalk.send(html, "_button", []));return (function($rec){smalltalk.send($rec, "_with_", ["InspectIt"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self['@sourceArea'], "_inspectit", []);})]);})(smalltalk.send(html, "_button", []));})]);})(smalltalk.send(html, "_div", []));
  1057. smalltalk.send(self, "_updateSourceAndButtons", []);
  1058. return self;}
  1059. }),
  1060. smalltalk.Browser);
  1061. smalltalk.addMethod(
  1062. '_renderInputOn_',
  1063. smalltalk.method({
  1064. selector: 'renderInputOn:',
  1065. fn: function (html){
  1066. var self=this;
  1067. self['@input']=(function($rec){smalltalk.send($rec, "_class_", ["implementors"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_input", []));
  1068. smalltalk.send(self['@input'], "_onKeyPress_", [(function(event){return (($receiver = smalltalk.send(smalltalk.send(event, "_keyCode", []), "__eq", [(13)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_search_", [smalltalk.send(smalltalk.send(self['@input'], "_asJQuery", []), "_val", [])]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self, "_search_", [smalltalk.send(smalltalk.send(self['@input'], "_asJQuery", []), "_val", [])]);})]);})]);
  1069. return self;}
  1070. }),
  1071. smalltalk.Browser);
  1072. smalltalk.addMethod(
  1073. '_canBeClosed',
  1074. smalltalk.method({
  1075. selector: 'canBeClosed',
  1076. fn: function (){
  1077. var self=this;
  1078. return true;
  1079. return self;}
  1080. }),
  1081. smalltalk.Browser);
  1082. smalltalk.addMethod(
  1083. '_updateCategoriesList',
  1084. smalltalk.method({
  1085. selector: 'updateCategoriesList',
  1086. fn: function (){
  1087. var self=this;
  1088. smalltalk.send(self['@categoriesList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_categories", []), "_do_", [(function(each){var li=nil;
  1089. var label=nil;
  1090. (($receiver = smalltalk.send(each, "_isEmpty", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return label="Unclassified";})() : (function(){return label=each;})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return label="Unclassified";}), (function(){return label=each;})]);li=smalltalk.send(html, "_li", []);(($receiver = smalltalk.send(self['@selectedCategory'], "__eq", [each])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(li, "_class_", ["selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);return (function($rec){smalltalk.send($rec, "_with_", [label]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectCategory_", [each]);})]);})(li);})]);})]);
  1091. return self;}
  1092. }),
  1093. smalltalk.Browser);
  1094. smalltalk.addMethod(
  1095. '_updateClassesList',
  1096. smalltalk.method({
  1097. selector: 'updateClassesList',
  1098. fn: function (){
  1099. var self=this;
  1100. smalltalk.send(smalltalk.send((smalltalk.TabManager || TabManager), "_current", []), "_update", []);
  1101. smalltalk.send(self['@classesList'], "_updateNodes", []);
  1102. return self;}
  1103. }),
  1104. smalltalk.Browser);
  1105. smalltalk.addMethod(
  1106. '_updateProtocolsList',
  1107. smalltalk.method({
  1108. selector: 'updateProtocolsList',
  1109. fn: function (){
  1110. var self=this;
  1111. smalltalk.send(self['@protocolsList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_protocols", []), "_do_", [(function(each){var li=nil;
  1112. li=smalltalk.send(html, "_li", []);(($receiver = smalltalk.send(self['@selectedProtocol'], "__eq", [each])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(li, "_class_", ["selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);return (function($rec){smalltalk.send($rec, "_with_", [each]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectProtocol_", [each]);})]);})(li);})]);})]);
  1113. return self;}
  1114. }),
  1115. smalltalk.Browser);
  1116. smalltalk.addMethod(
  1117. '_updateMethodsList',
  1118. smalltalk.method({
  1119. selector: 'updateMethodsList',
  1120. fn: function (){
  1121. var self=this;
  1122. smalltalk.send(self['@methodsList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_methods", []), "_do_", [(function(each){var li=nil;
  1123. li=smalltalk.send(html, "_li", []);(($receiver = smalltalk.send(self['@selectedMethod'], "__eq", [each])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(li, "_class_", ["selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);return (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(each, "_selector", [])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectMethod_", [each]);})]);})(li);})]);})]);
  1124. return self;}
  1125. }),
  1126. smalltalk.Browser);
  1127. smalltalk.addMethod(
  1128. '_updateTabsList',
  1129. smalltalk.method({
  1130. selector: 'updateTabsList',
  1131. fn: function (){
  1132. var self=this;
  1133. smalltalk.send(self['@tabsList'], "_contents_", [(function(html){var li=nil;
  1134. li=smalltalk.send(html, "_li", []);(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(li, "_class_", ["selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);(function($rec){smalltalk.send($rec, "_with_", ["Instance"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectTab_", ["instance"]);})]);})(li);li=smalltalk.send(html, "_li", []);(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["class"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(li, "_class_", ["selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);(function($rec){smalltalk.send($rec, "_with_", ["Class"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectTab_", ["class"]);})]);})(li);li=smalltalk.send(html, "_li", []);(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["comment"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(li, "_class_", ["selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);return (function($rec){smalltalk.send($rec, "_with_", ["Comment"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectTab_", ["comment"]);})]);})(li);})]);
  1135. return self;}
  1136. }),
  1137. smalltalk.Browser);
  1138. smalltalk.addMethod(
  1139. '_updateSourceAndButtons',
  1140. smalltalk.method({
  1141. selector: 'updateSourceAndButtons',
  1142. fn: function (){
  1143. var self=this;
  1144. smalltalk.send(self, "_disableSaveButton", []);
  1145. smalltalk.send(self['@classButtons'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_with_", ["Rename class"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_renameClass", []);})]);})(smalltalk.send(html, "_button", []));(function($rec){smalltalk.send($rec, "_with_", ["Remove class"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_removeClass", []);})]);})(smalltalk.send(html, "_button", []));return (function($rec){smalltalk.send($rec, "_with_", ["References"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_searchClassReferences", []);})]);})(smalltalk.send(html, "_button", []));})]);
  1146. smalltalk.send(self['@methodButtons'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_with_", ["Remove method"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_removeMethod", []);})]);})(smalltalk.send(html, "_button", []));(function($rec){smalltalk.send($rec, "_onChange_", [(function(e, select){return smalltalk.send(self, "_setMethodProtocol_", [smalltalk.send(select, "_val", [])]);})]);return smalltalk.send($rec, "_with_", [(function(){(function($rec){smalltalk.send($rec, "_with_", ["Method protocol"]);return smalltalk.send($rec, "_at_put_", ["disabled", "disabled"]);})(smalltalk.send(html, "_option", []));(function($rec){smalltalk.send($rec, "_class_", ["important"]);return smalltalk.send($rec, "_with_", ["New..."]);})(smalltalk.send(html, "_option", []));return smalltalk.send(smalltalk.send(self, "_protocols", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(html, "_option", []), "_with_", [each]);})]);})]);})(smalltalk.send(html, "_select", []));return (($receiver = smalltalk.send(self['@selectedMethod'], "_isNil", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function($rec){smalltalk.send($rec, "_onChange_", [(function(e, select){return smalltalk.send(self, "_searchReferencesOf_", [smalltalk.send(select, "_val", [])]);})]);return smalltalk.send($rec, "_with_", [(function(){(function($rec){smalltalk.send($rec, "_with_", ["References"]);return smalltalk.send($rec, "_at_put_", ["disabled", "disabled"]);})(smalltalk.send(html, "_option", []));(function($rec){smalltalk.send($rec, "_class_", ["important"]);return smalltalk.send($rec, "_with_", [smalltalk.send(self['@selectedMethod'], "_selector", [])]);})(smalltalk.send(html, "_option", []));return smalltalk.send(smalltalk.send(smalltalk.send(self['@selectedMethod'], "_messageSends", []), "_sorted", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(html, "_option", []), "_with_", [each]);})]);})]);})(smalltalk.send(html, "_select", []));})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function($rec){smalltalk.send($rec, "_onChange_", [(function(e, select){return smalltalk.send(self, "_searchReferencesOf_", [smalltalk.send(select, "_val", [])]);})]);return smalltalk.send($rec, "_with_", [(function(){(function($rec){smalltalk.send($rec, "_with_", ["References"]);return smalltalk.send($rec, "_at_put_", ["disabled", "disabled"]);})(smalltalk.send(html, "_option", []));(function($rec){smalltalk.send($rec, "_class_", ["important"]);return smalltalk.send($rec, "_with_", [smalltalk.send(self['@selectedMethod'], "_selector", [])]);})(smalltalk.send(html, "_option", []));return smalltalk.send(smalltalk.send(smalltalk.send(self['@selectedMethod'], "_messageSends", []), "_sorted", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(html, "_option", []), "_with_", [each]);})]);})]);})(smalltalk.send(html, "_select", []));})]);})]);
  1147. (($receiver = smalltalk.send(self['@selectedMethod'], "_isNil", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_hideMethodButtons", []);return (($receiver = smalltalk.send(smalltalk.send(self['@selectedClass'], "_isNil", []), "_or_", [(function(){return smalltalk.send(self['@selectedProtocol'], "_notNil", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_hideClassButtons", []);})() : (function(){return smalltalk.send(self, "_showClassButtons", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_hideClassButtons", []);}), (function(){return smalltalk.send(self, "_showClassButtons", []);})]);})() : (function(){smalltalk.send(self, "_hideClassButtons", []);return smalltalk.send(self, "_showMethodButtons", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){smalltalk.send(self, "_hideMethodButtons", []);return (($receiver = smalltalk.send(smalltalk.send(self['@selectedClass'], "_isNil", []), "_or_", [(function(){return smalltalk.send(self['@selectedProtocol'], "_notNil", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_hideClassButtons", []);})() : (function(){return smalltalk.send(self, "_showClassButtons", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_hideClassButtons", []);}), (function(){return smalltalk.send(self, "_showClassButtons", []);})]);}), (function(){smalltalk.send(self, "_hideClassButtons", []);return smalltalk.send(self, "_showMethodButtons", []);})]);
  1148. smalltalk.send(self['@sourceArea'], "_val_", [smalltalk.send(self, "_source", [])]);
  1149. return self;}
  1150. }),
  1151. smalltalk.Browser);
  1152. smalltalk.addMethod(
  1153. '_updateStatus',
  1154. smalltalk.method({
  1155. selector: 'updateStatus',
  1156. fn: function (){
  1157. var self=this;
  1158. (($receiver = smalltalk.send(smalltalk.send(self['@sourceArea'], "_val", []), "__eq", [smalltalk.send(self, "_source", [])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){(($receiver = self['@saveButton']) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self['@saveButton'], "_at_put_", ["disabled", true]);})() : nil;return self['@unsavedChanges']=false;})() : (function(){(($receiver = self['@saveButton']) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self['@saveButton'], "_removeAt_", ["disabled"]);})() : nil;return self['@unsavedChanges']=true;})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){(($receiver = self['@saveButton']) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self['@saveButton'], "_at_put_", ["disabled", true]);})() : nil;return self['@unsavedChanges']=false;}), (function(){(($receiver = self['@saveButton']) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self['@saveButton'], "_removeAt_", ["disabled"]);})() : nil;return self['@unsavedChanges']=true;})]);
  1159. return self;}
  1160. }),
  1161. smalltalk.Browser);
  1162. smalltalk.addMethod(
  1163. '_resetClassesList',
  1164. smalltalk.method({
  1165. selector: 'resetClassesList',
  1166. fn: function (){
  1167. var self=this;
  1168. smalltalk.send(self['@classesList'], "_resetNodes", []);
  1169. return self;}
  1170. }),
  1171. smalltalk.Browser);
  1172. smalltalk.addMethod(
  1173. '_commitPathJs',
  1174. smalltalk.method({
  1175. selector: 'commitPathJs',
  1176. fn: function (){
  1177. var self=this;
  1178. return "js";
  1179. return self;}
  1180. }),
  1181. smalltalk.Browser.klass);
  1182. smalltalk.addMethod(
  1183. '_commitPathSt',
  1184. smalltalk.method({
  1185. selector: 'commitPathSt',
  1186. fn: function (){
  1187. var self=this;
  1188. return "st";
  1189. return self;}
  1190. }),
  1191. smalltalk.Browser.klass);
  1192. smalltalk.addMethod(
  1193. '_openOn_',
  1194. smalltalk.method({
  1195. selector: 'openOn:',
  1196. fn: function (aClass){
  1197. var self=this;
  1198. return (function($rec){smalltalk.send($rec, "_open", []);smalltalk.send($rec, "_selectCategory_", [smalltalk.send(aClass, "_category", [])]);return smalltalk.send($rec, "_selectClass_", [aClass]);})(smalltalk.send(self, "_new", []));
  1199. return self;}
  1200. }),
  1201. smalltalk.Browser.klass);
  1202. smalltalk.addMethod(
  1203. '_open',
  1204. smalltalk.method({
  1205. selector: 'open',
  1206. fn: function (){
  1207. var self=this;
  1208. smalltalk.send(smalltalk.send(self, "_new", []), "_open", []);
  1209. return self;}
  1210. }),
  1211. smalltalk.Browser.klass);
  1212. smalltalk.addClass('Inspector', smalltalk.TabWidget, ['label', 'variables', 'object', 'selectedVariable', 'variablesList', 'valueTextarea', 'workspaceTextarea', 'diveButton'], 'IDE');
  1213. smalltalk.addMethod(
  1214. '_label',
  1215. smalltalk.method({
  1216. selector: 'label',
  1217. fn: function (){
  1218. var self=this;
  1219. return (($receiver = self['@label']) == nil || $receiver == undefined) ? (function(){return unescape("Inspector%20%28nil%29");})() : $receiver;
  1220. return self;}
  1221. }),
  1222. smalltalk.Inspector);
  1223. smalltalk.addMethod(
  1224. '_variables',
  1225. smalltalk.method({
  1226. selector: 'variables',
  1227. fn: function (){
  1228. var self=this;
  1229. return self['@variables'];
  1230. return self;}
  1231. }),
  1232. smalltalk.Inspector);
  1233. smalltalk.addMethod(
  1234. '_setVariables_',
  1235. smalltalk.method({
  1236. selector: 'setVariables:',
  1237. fn: function (aCollection){
  1238. var self=this;
  1239. self['@variables']=aCollection;
  1240. return self;}
  1241. }),
  1242. smalltalk.Inspector);
  1243. smalltalk.addMethod(
  1244. '_setLabel_',
  1245. smalltalk.method({
  1246. selector: 'setLabel:',
  1247. fn: function (aString){
  1248. var self=this;
  1249. self['@label']=aString;
  1250. return self;}
  1251. }),
  1252. smalltalk.Inspector);
  1253. smalltalk.addMethod(
  1254. '_selectedVariable',
  1255. smalltalk.method({
  1256. selector: 'selectedVariable',
  1257. fn: function (){
  1258. var self=this;
  1259. return self['@selectedVariable'];
  1260. return self;}
  1261. }),
  1262. smalltalk.Inspector);
  1263. smalltalk.addMethod(
  1264. '_selectedVariable_',
  1265. smalltalk.method({
  1266. selector: 'selectedVariable:',
  1267. fn: function (aString){
  1268. var self=this;
  1269. self['@selectedVariable']=aString;
  1270. return self;}
  1271. }),
  1272. smalltalk.Inspector);
  1273. smalltalk.addMethod(
  1274. '_inspect_',
  1275. smalltalk.method({
  1276. selector: 'inspect:',
  1277. fn: function (anObject){
  1278. var self=this;
  1279. self['@object']=anObject;
  1280. self['@variables']=[];
  1281. smalltalk.send(self['@object'], "_inspectOn_", [self]);
  1282. return self;}
  1283. }),
  1284. smalltalk.Inspector);
  1285. smalltalk.addMethod(
  1286. '_dive',
  1287. smalltalk.method({
  1288. selector: 'dive',
  1289. fn: function (){
  1290. var self=this;
  1291. smalltalk.send(smalltalk.send(smalltalk.send(self, "_variables", []), "_at_", [smalltalk.send(self, "_selectedVariable", [])]), "_inspect", []);
  1292. return self;}
  1293. }),
  1294. smalltalk.Inspector);
  1295. smalltalk.addMethod(
  1296. '_refresh',
  1297. smalltalk.method({
  1298. selector: 'refresh',
  1299. fn: function (){
  1300. var self=this;
  1301. (function($rec){smalltalk.send($rec, "_inspect_", [self['@object']]);smalltalk.send($rec, "_updateVariablesList", []);return smalltalk.send($rec, "_updateValueTextarea", []);})(self);
  1302. return self;}
  1303. }),
  1304. smalltalk.Inspector);
  1305. smalltalk.addMethod(
  1306. '_renderBoxOn_',
  1307. smalltalk.method({
  1308. selector: 'renderBoxOn:',
  1309. fn: function (html){
  1310. var self=this;
  1311. (function($rec){smalltalk.send($rec, "_renderTopPanelOn_", [html]);return smalltalk.send($rec, "_renderBottomPanelOn_", [html]);})(self);
  1312. return self;}
  1313. }),
  1314. smalltalk.Inspector);
  1315. smalltalk.addMethod(
  1316. '_renderTopPanelOn_',
  1317. smalltalk.method({
  1318. selector: 'renderTopPanelOn:',
  1319. fn: function (html){
  1320. var self=this;
  1321. (function($rec){smalltalk.send($rec, "_class_", ["top"]);return smalltalk.send($rec, "_with_", [(function(){self['@variablesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column variables"]);self['@valueTextarea']=(function($rec){smalltalk.send($rec, "_class_", ["jt_column value"]);return smalltalk.send($rec, "_at_put_", ["readonly", "readonly"]);})(smalltalk.send(html, "_textarea", []));(function($rec){smalltalk.send($rec, "_updateVariablesList", []);return smalltalk.send($rec, "_updateValueTextarea", []);})(self);return smalltalk.send(smalltalk.send(html, "_div", []), "_class_", ["jt_clear"]);})]);})(smalltalk.send(html, "_div", []));
  1322. return self;}
  1323. }),
  1324. smalltalk.Inspector);
  1325. smalltalk.addMethod(
  1326. '_renderBottomPanelOn_',
  1327. smalltalk.method({
  1328. selector: 'renderBottomPanelOn:',
  1329. fn: function (html){
  1330. var self=this;
  1331. (function($rec){smalltalk.send($rec, "_class_", ["jt_sourceCode"]);return smalltalk.send($rec, "_with_", [(function(){self['@workspaceTextarea']=(function($rec){smalltalk.send($rec, "_class_", ["source"]);return smalltalk.send($rec, "_at_put_", ["spellcheck", "false"]);})(smalltalk.send(html, "_textarea", []));return smalltalk.send(smalltalk.send(self['@workspaceTextarea'], "_asJQuery", []), "_call_", ["tabby"]);})]);})(smalltalk.send(html, "_div", []));
  1332. return self;}
  1333. }),
  1334. smalltalk.Inspector);
  1335. smalltalk.addMethod(
  1336. '_renderButtonsOn_',
  1337. smalltalk.method({
  1338. selector: 'renderButtonsOn:',
  1339. fn: function (html){
  1340. var self=this;
  1341. (function($rec){smalltalk.send($rec, "_with_", ["Refresh"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_refresh", []);})]);})(smalltalk.send(html, "_button", []));
  1342. self['@diveButton']=(function($rec){smalltalk.send($rec, "_with_", ["Dive"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_dive", []);})]);})(smalltalk.send(html, "_button", []));
  1343. smalltalk.send(self, "_updateButtons", []);
  1344. return self;}
  1345. }),
  1346. smalltalk.Inspector);
  1347. smalltalk.addMethod(
  1348. '_canBeClosed',
  1349. smalltalk.method({
  1350. selector: 'canBeClosed',
  1351. fn: function (){
  1352. var self=this;
  1353. return true;
  1354. return self;}
  1355. }),
  1356. smalltalk.Inspector);
  1357. smalltalk.addMethod(
  1358. '_updateVariablesList',
  1359. smalltalk.method({
  1360. selector: 'updateVariablesList',
  1361. fn: function (){
  1362. var self=this;
  1363. smalltalk.send(self['@variablesList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_variables", []), "_keys", []), "_do_", [(function(each){var li=nil;
  1364. li=smalltalk.send(html, "_li", []);(function($rec){smalltalk.send($rec, "_with_", [each]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectVariable_", [each]);})]);})(li);return (($receiver = smalltalk.send(smalltalk.send(self, "_selectedVariable", []), "__eq", [each])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(li, "_class_", ["selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);})]);})]);
  1365. return self;}
  1366. }),
  1367. smalltalk.Inspector);
  1368. smalltalk.addMethod(
  1369. '_selectVariable_',
  1370. smalltalk.method({
  1371. selector: 'selectVariable:',
  1372. fn: function (aString){
  1373. var self=this;
  1374. smalltalk.send(self, "_selectedVariable_", [aString]);
  1375. (function($rec){smalltalk.send($rec, "_updateVariablesList", []);smalltalk.send($rec, "_updateValueTextarea", []);return smalltalk.send($rec, "_updateButtons", []);})(self);
  1376. return self;}
  1377. }),
  1378. smalltalk.Inspector);
  1379. smalltalk.addMethod(
  1380. '_updateValueTextarea',
  1381. smalltalk.method({
  1382. selector: 'updateValueTextarea',
  1383. fn: function (){
  1384. var self=this;
  1385. smalltalk.send(smalltalk.send(self['@valueTextarea'], "_asJQuery", []), "_val_", [(($receiver = smalltalk.send(smalltalk.send(self, "_selectedVariable", []), "_isNil", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return "";})() : (function(){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_variables", []), "_at_", [smalltalk.send(self, "_selectedVariable", [])]), "_printString", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return "";}), (function(){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_variables", []), "_at_", [smalltalk.send(self, "_selectedVariable", [])]), "_printString", []);})])]);
  1386. return self;}
  1387. }),
  1388. smalltalk.Inspector);
  1389. smalltalk.addMethod(
  1390. '_updateButtons',
  1391. smalltalk.method({
  1392. selector: 'updateButtons',
  1393. fn: function (){
  1394. var self=this;
  1395. (($receiver = smalltalk.send(smalltalk.send(smalltalk.send(self, "_selectedVariable", []), "_notNil", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_variables", []), "_at_", [smalltalk.send(self, "_selectedVariable", [])]), "_notNil", []);})])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self['@diveButton'], "_at_put_", ["disabled", true]);})() : (function(){return smalltalk.send(self['@diveButton'], "_removeAt_", ["disabled"]);})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self['@diveButton'], "_at_put_", ["disabled", true]);}), (function(){return smalltalk.send(self['@diveButton'], "_removeAt_", ["disabled"]);})]);
  1396. return self;}
  1397. }),
  1398. smalltalk.Inspector);
  1399. smalltalk.addMethod(
  1400. '_on_',
  1401. smalltalk.method({
  1402. selector: 'on:',
  1403. fn: function (anObject){
  1404. var self=this;
  1405. return (function($rec){smalltalk.send($rec, "_inspect_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  1406. return self;}
  1407. }),
  1408. smalltalk.Inspector.klass);
  1409. smalltalk.addClass('ReferencesBrowser', smalltalk.TabWidget, ['implementors', 'senders', 'implementorsList', 'input', 'timer', 'selector', 'sendersList', 'referencedClasses', 'referencedClassesList'], 'IDE');
  1410. smalltalk.addMethod(
  1411. '_implementors',
  1412. smalltalk.method({
  1413. selector: 'implementors',
  1414. fn: function (){
  1415. var self=this;
  1416. return (($receiver = self['@implementors']) == nil || $receiver == undefined) ? (function(){return self['@implementors']=smalltalk.send((smalltalk.Array || Array), "_new", []);})() : $receiver;
  1417. return self;}
  1418. }),
  1419. smalltalk.ReferencesBrowser);
  1420. smalltalk.addMethod(
  1421. '_label',
  1422. smalltalk.method({
  1423. selector: 'label',
  1424. fn: function (){
  1425. var self=this;
  1426. return unescape("%5BReferencesBrowser%5D");
  1427. return self;}
  1428. }),
  1429. smalltalk.ReferencesBrowser);
  1430. smalltalk.addMethod(
  1431. '_selector',
  1432. smalltalk.method({
  1433. selector: 'selector',
  1434. fn: function (){
  1435. var self=this;
  1436. return self['@selector'];
  1437. return self;}
  1438. }),
  1439. smalltalk.ReferencesBrowser);
  1440. smalltalk.addMethod(
  1441. '_senders',
  1442. smalltalk.method({
  1443. selector: 'senders',
  1444. fn: function (){
  1445. var self=this;
  1446. return (($receiver = self['@senders']) == nil || $receiver == undefined) ? (function(){return self['@senders']=smalltalk.send((smalltalk.Array || Array), "_new", []);})() : $receiver;
  1447. return self;}
  1448. }),
  1449. smalltalk.ReferencesBrowser);
  1450. smalltalk.addMethod(
  1451. '_classesAndMetaclasses',
  1452. smalltalk.method({
  1453. selector: 'classesAndMetaclasses',
  1454. fn: function (){
  1455. var self=this;
  1456. return smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_classes", []), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_classes", []), "_collect_", [(function(each){return smalltalk.send(each, "_class", []);})])]);
  1457. return self;}
  1458. }),
  1459. smalltalk.ReferencesBrowser);
  1460. smalltalk.addMethod(
  1461. '_referencedClasses',
  1462. smalltalk.method({
  1463. selector: 'referencedClasses',
  1464. fn: function (){
  1465. var self=this;
  1466. return (($receiver = self['@referencedClasses']) == nil || $receiver == undefined) ? (function(){return self['@referencedClasses']=smalltalk.send((smalltalk.Array || Array), "_new", []);})() : $receiver;
  1467. return self;}
  1468. }),
  1469. smalltalk.ReferencesBrowser);
  1470. smalltalk.addMethod(
  1471. '_openBrowserOn_',
  1472. smalltalk.method({
  1473. selector: 'openBrowserOn:',
  1474. fn: function (aMethod){
  1475. var self=this;
  1476. var browser=nil;
  1477. browser=smalltalk.send((smalltalk.Browser || Browser), "_openOn_", [(($receiver = smalltalk.send(smalltalk.send(aMethod, "_class", []), "_isMetaclass", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(smalltalk.send(aMethod, "_methodClass", []), "_instanceClass", []);})() : (function(){return smalltalk.send(aMethod, "_methodClass", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(aMethod, "_methodClass", []), "_instanceClass", []);}), (function(){return smalltalk.send(aMethod, "_methodClass", []);})])]);
  1478. (($receiver = smalltalk.send(smalltalk.send(aMethod, "_methodClass", []), "_isMetaclass", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(browser, "_selectTab_", ["class"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(browser, "_selectTab_", ["class"]);})]);
  1479. (function($rec){smalltalk.send($rec, "_selectProtocol_", [smalltalk.send(aMethod, "_category", [])]);return smalltalk.send($rec, "_selectMethod_", [aMethod]);})(browser);
  1480. return self;}
  1481. }),
  1482. smalltalk.ReferencesBrowser);
  1483. smalltalk.addMethod(
  1484. '_searchReferencesFor_',
  1485. smalltalk.method({
  1486. selector: 'searchReferencesFor:',
  1487. fn: function (aString){
  1488. var self=this;
  1489. self['@selector']=aString;
  1490. self['@implementors']=smalltalk.send((smalltalk.Array || Array), "_new", []);
  1491. self['@senders']=smalltalk.send((smalltalk.Array || Array), "_new", []);
  1492. self['@referencedClasses']=smalltalk.send((smalltalk.Array || Array), "_new", []);
  1493. (($receiver = smalltalk.send(self['@selector'], "_match_", [unescape("%5E%5BA-Z%5D")])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_searchSelectorReferencesFor_", [self['@selector']]);})() : (function(){return smalltalk.send(self, "_searchReferencedClassesFor_", [self['@selector']]);})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self, "_searchSelectorReferencesFor_", [self['@selector']]);}), (function(){return smalltalk.send(self, "_searchReferencedClassesFor_", [self['@selector']]);})]);
  1494. return self;}
  1495. }),
  1496. smalltalk.ReferencesBrowser);
  1497. smalltalk.addMethod(
  1498. '_search_',
  1499. smalltalk.method({
  1500. selector: 'search:',
  1501. fn: function (aString){
  1502. var self=this;
  1503. (function($rec){smalltalk.send($rec, "_searchReferencesFor_", [aString]);smalltalk.send($rec, "_updateImplementorsList", []);smalltalk.send($rec, "_updateSendersList", []);return smalltalk.send($rec, "_updateReferencedClassesList", []);})(self);
  1504. return self;}
  1505. }),
  1506. smalltalk.ReferencesBrowser);
  1507. smalltalk.addMethod(
  1508. '_searchReferencedClassesFor_',
  1509. smalltalk.method({
  1510. selector: 'searchReferencedClassesFor:',
  1511. fn: function (aString){
  1512. var self=this;
  1513. smalltalk.send(smalltalk.send(self, "_classesAndMetaclasses", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(smalltalk.send(each, "_methodDictionary", []), "_values", []), "_do_", [(function(value){return (($receiver = smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(value, "_referencedClasses", []), "_select_", [(function(each){return smalltalk.send(each, "_notNil", []);})]), "_collect_", [(function(each){return smalltalk.send(each, "_name", []);})]), "_includes_", [self['@selector']])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(smalltalk.send(self, "_referencedClasses", []), "_add_", [value]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(smalltalk.send(self, "_referencedClasses", []), "_add_", [value]);})]);})]);})]);
  1514. return self;}
  1515. }),
  1516. smalltalk.ReferencesBrowser);
  1517. smalltalk.addMethod(
  1518. '_searchSelectorReferencesFor_',
  1519. smalltalk.method({
  1520. selector: 'searchSelectorReferencesFor:',
  1521. fn: function (aString){
  1522. var self=this;
  1523. smalltalk.send(smalltalk.send(self, "_classesAndMetaclasses", []), "_do_", [(function(each){smalltalk.send(smalltalk.send(each, "_methodDictionary", []), "_keysAndValuesDo_", [(function(key, value){return (($receiver = smalltalk.send(key, "__eq", [self['@selector']])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(smalltalk.send(self, "_implementors", []), "_add_", [value]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(smalltalk.send(self, "_implementors", []), "_add_", [value]);})]);})]);return smalltalk.send(smalltalk.send(each, "_methodDictionary", []), "_keysAndValuesDo_", [(function(key, value){return (($receiver = smalltalk.send(smalltalk.send(value, "_messageSends", []), "_includes_", [self['@selector']])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(smalltalk.send(self, "_senders", []), "_add_", [value]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(smalltalk.send(self, "_senders", []), "_add_", [value]);})]);})]);})]);
  1524. return self;}
  1525. }),
  1526. smalltalk.ReferencesBrowser);
  1527. smalltalk.addMethod(
  1528. '_initialize',
  1529. smalltalk.method({
  1530. selector: 'initialize',
  1531. fn: function (){
  1532. var self=this;
  1533. smalltalk.send(self, "_initialize", [], smalltalk.TabWidget);
  1534. self['@selector']="";
  1535. return self;}
  1536. }),
  1537. smalltalk.ReferencesBrowser);
  1538. smalltalk.addMethod(
  1539. '_setInputEvents',
  1540. smalltalk.method({
  1541. selector: 'setInputEvents',
  1542. fn: function (){
  1543. var self=this;
  1544. (function($rec){smalltalk.send($rec, "_onKeyUp_", [(function(){return self['@timer']=smalltalk.send((function(){return smalltalk.send(self, "_search_", [smalltalk.send(smalltalk.send(self['@input'], "_asJQuery", []), "_val", [])]);}), "_valueWithTimeout_", [(100)]);})]);return smalltalk.send($rec, "_onKeyDown_", [(function(){return (($receiver = self['@timer']) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self['@timer'], "_clearTimeout", []);})() : nil;})]);})(self['@input']);
  1545. return self;}
  1546. }),
  1547. smalltalk.ReferencesBrowser);
  1548. smalltalk.addMethod(
  1549. '_renderBoxOn_',
  1550. smalltalk.method({
  1551. selector: 'renderBoxOn:',
  1552. fn: function (html){
  1553. var self=this;
  1554. (function($rec){smalltalk.send($rec, "_renderInputOn_", [html]);smalltalk.send($rec, "_renderImplementorsOn_", [html]);smalltalk.send($rec, "_renderSendersOn_", [html]);return smalltalk.send($rec, "_renderReferencedClassesOn_", [html]);})(self);
  1555. return self;}
  1556. }),
  1557. smalltalk.ReferencesBrowser);
  1558. smalltalk.addMethod(
  1559. '_renderInputOn_',
  1560. smalltalk.method({
  1561. selector: 'renderInputOn:',
  1562. fn: function (html){
  1563. var self=this;
  1564. self['@input']=(function($rec){smalltalk.send($rec, "_class_", ["implementors"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_input", []));
  1565. smalltalk.send(smalltalk.send(self['@input'], "_asJQuery", []), "_val_", [self['@selector']]);
  1566. smalltalk.send(self, "_setInputEvents", []);
  1567. return self;}
  1568. }),
  1569. smalltalk.ReferencesBrowser);
  1570. smalltalk.addMethod(
  1571. '_renderImplementorsOn_',
  1572. smalltalk.method({
  1573. selector: 'renderImplementorsOn:',
  1574. fn: function (html){
  1575. var self=this;
  1576. self['@implementorsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column implementors"]);
  1577. smalltalk.send(self, "_updateImplementorsList", []);
  1578. return self;}
  1579. }),
  1580. smalltalk.ReferencesBrowser);
  1581. smalltalk.addMethod(
  1582. '_renderSendersOn_',
  1583. smalltalk.method({
  1584. selector: 'renderSendersOn:',
  1585. fn: function (html){
  1586. var self=this;
  1587. self['@sendersList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column senders"]);
  1588. smalltalk.send(self, "_updateSendersList", []);
  1589. return self;}
  1590. }),
  1591. smalltalk.ReferencesBrowser);
  1592. smalltalk.addMethod(
  1593. '_renderReferencedClassesOn_',
  1594. smalltalk.method({
  1595. selector: 'renderReferencedClassesOn:',
  1596. fn: function (html){
  1597. var self=this;
  1598. self['@referencedClassesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column referenced_classes"]);
  1599. smalltalk.send(self, "_updateReferencedClassesList", []);
  1600. return self;}
  1601. }),
  1602. smalltalk.ReferencesBrowser);
  1603. smalltalk.addMethod(
  1604. '_canBeClosed',
  1605. smalltalk.method({
  1606. selector: 'canBeClosed',
  1607. fn: function (){
  1608. var self=this;
  1609. return true;
  1610. return self;}
  1611. }),
  1612. smalltalk.ReferencesBrowser);
  1613. smalltalk.addMethod(
  1614. '_updateImplementorsList',
  1615. smalltalk.method({
  1616. selector: 'updateImplementorsList',
  1617. fn: function (){
  1618. var self=this;
  1619. smalltalk.send(self['@implementorsList'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_class_", ["column_label"]);smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(unescape("Implementors%20%28"), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_implementors", []), "_size", []), "_asString", [])]), "__comma", [unescape("%29")])]);return smalltalk.send($rec, "_style_", [unescape("font-weight%3A%20bold")]);})(smalltalk.send(html, "_li", []));return smalltalk.send(smalltalk.send(self, "_implementors", []), "_do_", [(function(each){var li=nil;
  1620. li=smalltalk.send(html, "_li", []);return (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(each, "_methodClass", []), "_asString", []), "__comma", [unescape("%20%3E%3E%20")]), "__comma", [smalltalk.send(self, "_selector", [])])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_openBrowserOn_", [each]);})]);})(li);})]);})]);
  1621. return self;}
  1622. }),
  1623. smalltalk.ReferencesBrowser);
  1624. smalltalk.addMethod(
  1625. '_updateSendersList',
  1626. smalltalk.method({
  1627. selector: 'updateSendersList',
  1628. fn: function (){
  1629. var self=this;
  1630. smalltalk.send(self['@sendersList'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_class_", ["column_label"]);smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(unescape("Senders%20%28"), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_senders", []), "_size", []), "_asString", [])]), "__comma", [unescape("%29")])]);return smalltalk.send($rec, "_style_", [unescape("font-weight%3A%20bold")]);})(smalltalk.send(html, "_li", []));return smalltalk.send(smalltalk.send(self, "_senders", []), "_do_", [(function(each){return (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(each, "_methodClass", []), "_asString", []), "__comma", [unescape("%20%3E%3E%20")]), "__comma", [smalltalk.send(each, "_selector", [])])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_openBrowserOn_", [each]);})]);})(smalltalk.send(html, "_li", []));})]);})]);
  1631. return self;}
  1632. }),
  1633. smalltalk.ReferencesBrowser);
  1634. smalltalk.addMethod(
  1635. '_updateReferencedClassesList',
  1636. smalltalk.method({
  1637. selector: 'updateReferencedClassesList',
  1638. fn: function (){
  1639. var self=this;
  1640. smalltalk.send(self['@referencedClassesList'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_class_", ["column_label"]);smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(unescape("Class%20references%20%28"), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_referencedClasses", []), "_size", []), "_asString", [])]), "__comma", [unescape("%29")])]);return smalltalk.send($rec, "_style_", [unescape("font-weight%3A%20bold")]);})(smalltalk.send(html, "_li", []));return smalltalk.send(smalltalk.send(self, "_referencedClasses", []), "_do_", [(function(each){return (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(each, "_methodClass", []), "_asString", []), "__comma", [unescape("%20%3E%3E%20")]), "__comma", [smalltalk.send(each, "_selector", [])])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_openBrowserOn_", [each]);})]);})(smalltalk.send(html, "_li", []));})]);})]);
  1641. return self;}
  1642. }),
  1643. smalltalk.ReferencesBrowser);
  1644. smalltalk.addMethod(
  1645. '_search_',
  1646. smalltalk.method({
  1647. selector: 'search:',
  1648. fn: function (aString){
  1649. var self=this;
  1650. return (function($rec){smalltalk.send($rec, "_searchReferencesFor_", [aString]);return smalltalk.send($rec, "_open", []);})(smalltalk.send(self, "_new", []));
  1651. return self;}
  1652. }),
  1653. smalltalk.ReferencesBrowser.klass);
  1654. smalltalk.addClass('SourceArea', smalltalk.Widget, ['editor', 'div'], 'IDE');
  1655. smalltalk.addMethod(
  1656. '_val',
  1657. smalltalk.method({
  1658. selector: 'val',
  1659. fn: function (){
  1660. var self=this;
  1661. return smalltalk.send(self['@editor'], "_getValue", []);
  1662. return self;}
  1663. }),
  1664. smalltalk.SourceArea);
  1665. smalltalk.addMethod(
  1666. '_val_',
  1667. smalltalk.method({
  1668. selector: 'val:',
  1669. fn: function (aString){
  1670. var self=this;
  1671. smalltalk.send(self['@editor'], "_setValue_", [aString]);
  1672. return self;}
  1673. }),
  1674. smalltalk.SourceArea);
  1675. smalltalk.addMethod(
  1676. '_currentLine',
  1677. smalltalk.method({
  1678. selector: 'currentLine',
  1679. fn: function (){
  1680. var self=this;
  1681. return smalltalk.send(self['@editor'], "_getLine_", [smalltalk.send(smalltalk.send(self['@editor'], "_getCursor", []), "_line", [])]);
  1682. return self;}
  1683. }),
  1684. smalltalk.SourceArea);
  1685. smalltalk.addMethod(
  1686. '_selection',
  1687. smalltalk.method({
  1688. selector: 'selection',
  1689. fn: function (){
  1690. var self=this;
  1691. return smalltalk.send(self['@editor'], "_getSelection", []);
  1692. return self;}
  1693. }),
  1694. smalltalk.SourceArea);
  1695. smalltalk.addMethod(
  1696. '_selectionEnd',
  1697. smalltalk.method({
  1698. selector: 'selectionEnd',
  1699. fn: function (){
  1700. var self=this;
  1701. return smalltalk.send(smalltalk.send((typeof textarea == 'undefined' ? nil : textarea), "_element", []), "_selectionEnd", []);
  1702. return self;}
  1703. }),
  1704. smalltalk.SourceArea);
  1705. smalltalk.addMethod(
  1706. '_selectionStart',
  1707. smalltalk.method({
  1708. selector: 'selectionStart',
  1709. fn: function (){
  1710. var self=this;
  1711. return smalltalk.send(smalltalk.send((typeof textarea == 'undefined' ? nil : textarea), "_element", []), "_selectionStart", []);
  1712. return self;}
  1713. }),
  1714. smalltalk.SourceArea);
  1715. smalltalk.addMethod(
  1716. '_selectionStart_',
  1717. smalltalk.method({
  1718. selector: 'selectionStart:',
  1719. fn: function (anInteger){
  1720. var self=this;
  1721. smalltalk.send(smalltalk.send((typeof textarea == 'undefined' ? nil : textarea), "_element", []), "_selectionStart_", [anInteger]);
  1722. return self;}
  1723. }),
  1724. smalltalk.SourceArea);
  1725. smalltalk.addMethod(
  1726. '_selectionEnd_',
  1727. smalltalk.method({
  1728. selector: 'selectionEnd:',
  1729. fn: function (anInteger){
  1730. var self=this;
  1731. smalltalk.send(smalltalk.send((typeof textarea == 'undefined' ? nil : textarea), "_element", []), "_selectionEnd_", [anInteger]);
  1732. return self;}
  1733. }),
  1734. smalltalk.SourceArea);
  1735. smalltalk.addMethod(
  1736. '_setEditorOn_',
  1737. smalltalk.method({
  1738. selector: 'setEditorOn:',
  1739. fn: function (aTextarea){
  1740. var self=this;
  1741. self['@editor'] = CodeMirror.fromTextArea(aTextarea, {
  1742. theme: 'jtalk',
  1743. lineNumbers: true,
  1744. enterMode: 'classic',
  1745. matchBrackets: true,
  1746. electricChars: false,
  1747. });
  1748. return self;}
  1749. }),
  1750. smalltalk.SourceArea);
  1751. smalltalk.addMethod(
  1752. '_editor',
  1753. smalltalk.method({
  1754. selector: 'editor',
  1755. fn: function (){
  1756. var self=this;
  1757. return self['@editor'];
  1758. return self;}
  1759. }),
  1760. smalltalk.SourceArea);
  1761. smalltalk.addMethod(
  1762. '_clear',
  1763. smalltalk.method({
  1764. selector: 'clear',
  1765. fn: function (){
  1766. var self=this;
  1767. smalltalk.send(smalltalk.send((typeof textarea == 'undefined' ? nil : textarea), "_asJQuery", []), "_val_", [""]);
  1768. return self;}
  1769. }),
  1770. smalltalk.SourceArea);
  1771. smalltalk.addMethod(
  1772. '_doIt',
  1773. smalltalk.method({
  1774. selector: 'doIt',
  1775. fn: function (){
  1776. var self=this;
  1777. var selection=nil;
  1778. (($receiver = smalltalk.send(self['@editor'], "_somethingSelected", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return selection=smalltalk.send(self, "_currentLine", []);})() : (function(){return selection=smalltalk.send(self, "_selection", []);})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){return selection=smalltalk.send(self, "_currentLine", []);}), (function(){return selection=smalltalk.send(self, "_selection", []);})]);
  1779. return smalltalk.send(self, "_eval_", [selection]);
  1780. return self;}
  1781. }),
  1782. smalltalk.SourceArea);
  1783. smalltalk.addMethod(
  1784. '_eval_',
  1785. smalltalk.method({
  1786. selector: 'eval:',
  1787. fn: function (aString){
  1788. var self=this;
  1789. try{var compiler=nil;
  1790. var node=nil;
  1791. compiler=smalltalk.send((smalltalk.Compiler || Compiler), "_new", []);
  1792. node=smalltalk.send(compiler, "_parseExpression_", [aString]);
  1793. (($receiver = smalltalk.send(node, "_isParseFailure", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_eval_', fn: function(){return smalltalk.send(self, "_alert_", [smalltalk.send(smalltalk.send(smalltalk.send(node, "_reason", []), "__comma", [unescape("%2C%20position%3A%20")]), "__comma", [smalltalk.send(node, "_position", [])])])}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_eval_', fn: function(){return smalltalk.send(self, "_alert_", [smalltalk.send(smalltalk.send(smalltalk.send(node, "_reason", []), "__comma", [unescape("%2C%20position%3A%20")]), "__comma", [smalltalk.send(node, "_position", [])])])}})})();})]);
  1794. (function(){throw({name: 'stReturn', selector: '_eval_', fn: function(){return smalltalk.send(compiler, "_loadExpression_", [aString])}})})();
  1795. return self;
  1796. } catch(e) {if(e.name === 'stReturn' && e.selector === '_eval_'){return e.fn()} throw(e)}}
  1797. }),
  1798. smalltalk.SourceArea);
  1799. smalltalk.addMethod(
  1800. '_handleKeyDown_',
  1801. smalltalk.method({
  1802. selector: 'handleKeyDown:',
  1803. fn: function (anEvent){
  1804. var self=this;
  1805. if(anEvent.ctrlKey) {
  1806. if(anEvent.keyCode === 80) { //ctrl+p
  1807. self._printIt();
  1808. anEvent.preventDefault();
  1809. return false;
  1810. }
  1811. if(anEvent.keyCode === 68) { //ctrl+d
  1812. self._doIt();
  1813. anEvent.preventDefault();
  1814. return false;
  1815. }
  1816. if(anEvent.keyCode === 73) { //ctrl+i
  1817. self._inspectIt();
  1818. anEvent.preventDefault();
  1819. return false;
  1820. }
  1821. };
  1822. return self;}
  1823. }),
  1824. smalltalk.SourceArea);
  1825. smalltalk.addMethod(
  1826. '_inspectIt',
  1827. smalltalk.method({
  1828. selector: 'inspectIt',
  1829. fn: function (){
  1830. var self=this;
  1831. smalltalk.send(smalltalk.send(self, "_doIt", []), "_inspect", []);
  1832. return self;}
  1833. }),
  1834. smalltalk.SourceArea);
  1835. smalltalk.addMethod(
  1836. '_print_',
  1837. smalltalk.method({
  1838. selector: 'print:',
  1839. fn: function (aString){
  1840. var self=this;
  1841. var start=nil;
  1842. var stop=nil;
  1843. start=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  1844. stop=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  1845. smalltalk.send(start, "_at_put_", ["line", smalltalk.send(smalltalk.send(self['@editor'], "_getCursor_", [false]), "_line", [])]);
  1846. smalltalk.send(start, "_at_put_", ["ch", smalltalk.send(smalltalk.send(self['@editor'], "_getCursor_", [false]), "_ch", [])]);
  1847. smalltalk.send(stop, "_at_put_", ["line", smalltalk.send(start, "_at_", ["line"])]);
  1848. smalltalk.send(stop, "_at_put_", ["ch", (($receiver = (($receiver = smalltalk.send(start, "_at_", ["ch"])).klass === smalltalk.Number) ? $receiver +smalltalk.send(aString, "_size", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(aString, "_size", [])])).klass === smalltalk.Number) ? $receiver +(2) : smalltalk.send($receiver, "__plus", [(2)])]);
  1849. smalltalk.send(self['@editor'], "_replaceSelection_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self['@editor'], "_getSelection", []), "__comma", [" "]), "__comma", [aString]), "__comma", [" "])]);
  1850. smalltalk.send(self['@editor'], "_setCursor_", [smalltalk.send(self['@editor'], "_getCursor_", [true])]);
  1851. smalltalk.send(self['@editor'], "_setSelection_end_", [stop, start]);
  1852. return self;}
  1853. }),
  1854. smalltalk.SourceArea);
  1855. smalltalk.addMethod(
  1856. '_printIt',
  1857. smalltalk.method({
  1858. selector: 'printIt',
  1859. fn: function (){
  1860. var self=this;
  1861. smalltalk.send(self, "_print_", [smalltalk.send(smalltalk.send(self, "_doIt", []), "_printString", [])]);
  1862. return self;}
  1863. }),
  1864. smalltalk.SourceArea);
  1865. smalltalk.addMethod(
  1866. '_onKeyUp_',
  1867. smalltalk.method({
  1868. selector: 'onKeyUp:',
  1869. fn: function (aBlock){
  1870. var self=this;
  1871. smalltalk.send(self['@div'], "_onKeyUp_", [aBlock]);
  1872. return self;}
  1873. }),
  1874. smalltalk.SourceArea);
  1875. smalltalk.addMethod(
  1876. '_onKeyDown_',
  1877. smalltalk.method({
  1878. selector: 'onKeyDown:',
  1879. fn: function (aBlock){
  1880. var self=this;
  1881. smalltalk.send(self['@div'], "_onKeyDown_", [aBlock]);
  1882. return self;}
  1883. }),
  1884. smalltalk.SourceArea);
  1885. smalltalk.addMethod(
  1886. '_renderOn_',
  1887. smalltalk.method({
  1888. selector: 'renderOn:',
  1889. fn: function (html){
  1890. var self=this;
  1891. var textarea=nil;
  1892. self['@div']=smalltalk.send(smalltalk.send(html, "_div", []), "_class_", ["source"]);
  1893. smalltalk.send(self['@div'], "_with_", [(function(){return textarea=smalltalk.send(html, "_textarea", []);})]);
  1894. smalltalk.send(self, "_setEditorOn_", [smalltalk.send(textarea, "_element", [])]);
  1895. smalltalk.send(self['@div'], "_onKeyDown_", [(function(e){return smalltalk.send(self, "_handleKeyDown_", [e]);})]);
  1896. return self;}
  1897. }),
  1898. smalltalk.SourceArea);
  1899. smalltalk.addClass('ClassesList', smalltalk.Widget, ['browser', 'ul', 'nodes'], 'IDE');
  1900. smalltalk.addMethod(
  1901. '_category',
  1902. smalltalk.method({
  1903. selector: 'category',
  1904. fn: function (){
  1905. var self=this;
  1906. return smalltalk.send(smalltalk.send(self, "_browser", []), "_selectedCategory", []);
  1907. return self;}
  1908. }),
  1909. smalltalk.ClassesList);
  1910. smalltalk.addMethod(
  1911. '_nodes',
  1912. smalltalk.method({
  1913. selector: 'nodes',
  1914. fn: function (){
  1915. var self=this;
  1916. (($receiver = self['@nodes']) == nil || $receiver == undefined) ? (function(){return self['@nodes']=smalltalk.send(self, "_getNodes", []);})() : $receiver;
  1917. return self['@nodes'];
  1918. return self;}
  1919. }),
  1920. smalltalk.ClassesList);
  1921. smalltalk.addMethod(
  1922. '_browser',
  1923. smalltalk.method({
  1924. selector: 'browser',
  1925. fn: function (){
  1926. var self=this;
  1927. return self['@browser'];
  1928. return self;}
  1929. }),
  1930. smalltalk.ClassesList);
  1931. smalltalk.addMethod(
  1932. '_browser_',
  1933. smalltalk.method({
  1934. selector: 'browser:',
  1935. fn: function (aBrowser){
  1936. var self=this;
  1937. self['@browser']=aBrowser;
  1938. return self;}
  1939. }),
  1940. smalltalk.ClassesList);
  1941. smalltalk.addMethod(
  1942. '_getNodes',
  1943. smalltalk.method({
  1944. selector: 'getNodes',
  1945. fn: function (){
  1946. var self=this;
  1947. var classes=nil;
  1948. var children=nil;
  1949. var others=nil;
  1950. classes=smalltalk.send(smalltalk.send(self, "_browser", []), "_classes", []);
  1951. children=[];
  1952. others=[];
  1953. smalltalk.send(classes, "_do_", [(function(each){return (($receiver = smalltalk.send(classes, "_includes_", [smalltalk.send(each, "_superclass", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(children, "_add_", [each]);})() : (function(){return smalltalk.send(others, "_add_", [each]);})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){return smalltalk.send(children, "_add_", [each]);}), (function(){return smalltalk.send(others, "_add_", [each]);})]);})]);
  1954. return smalltalk.send(children, "_collect_", [(function(each){return smalltalk.send((smalltalk.ClassesListNode || ClassesListNode), "_on_browser_classes_level_", [each, smalltalk.send(self, "_browser", []), others, (0)]);})]);
  1955. return self;}
  1956. }),
  1957. smalltalk.ClassesList);
  1958. smalltalk.addMethod(
  1959. '_resetNodes',
  1960. smalltalk.method({
  1961. selector: 'resetNodes',
  1962. fn: function (){
  1963. var self=this;
  1964. self['@nodes']=nil;
  1965. return self;}
  1966. }),
  1967. smalltalk.ClassesList);
  1968. smalltalk.addMethod(
  1969. '_renderOn_',
  1970. smalltalk.method({
  1971. selector: 'renderOn:',
  1972. fn: function (html){
  1973. var self=this;
  1974. self['@ul']=(function($rec){smalltalk.send($rec, "_class_", ["jt_column browser classes"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_ul", []));
  1975. smalltalk.send(self, "_updateNodes", []);
  1976. return self;}
  1977. }),
  1978. smalltalk.ClassesList);
  1979. smalltalk.addMethod(
  1980. '_updateNodes',
  1981. smalltalk.method({
  1982. selector: 'updateNodes',
  1983. fn: function (){
  1984. var self=this;
  1985. smalltalk.send(self['@ul'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_nodes", []), "_do_", [(function(each){return smalltalk.send(each, "_renderOn_", [html]);})]);})]);
  1986. return self;}
  1987. }),
  1988. smalltalk.ClassesList);
  1989. smalltalk.addMethod(
  1990. '_on_',
  1991. smalltalk.method({
  1992. selector: 'on:',
  1993. fn: function (aBrowser){
  1994. var self=this;
  1995. return (function($rec){smalltalk.send($rec, "_browser_", [aBrowser]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  1996. return self;}
  1997. }),
  1998. smalltalk.ClassesList.klass);
  1999. smalltalk.addClass('ClassesListNode', smalltalk.Widget, ['browser', 'theClass', 'level', 'nodes'], 'IDE');
  2000. smalltalk.addMethod(
  2001. '_nodes',
  2002. smalltalk.method({
  2003. selector: 'nodes',
  2004. fn: function (){
  2005. var self=this;
  2006. return self['@nodes'];
  2007. return self;}
  2008. }),
  2009. smalltalk.ClassesListNode);
  2010. smalltalk.addMethod(
  2011. '_theClass',
  2012. smalltalk.method({
  2013. selector: 'theClass',
  2014. fn: function (){
  2015. var self=this;
  2016. return self['@theClass'];
  2017. return self;}
  2018. }),
  2019. smalltalk.ClassesListNode);
  2020. smalltalk.addMethod(
  2021. '_theClass_',
  2022. smalltalk.method({
  2023. selector: 'theClass:',
  2024. fn: function (aClass){
  2025. var self=this;
  2026. self['@theClass']=aClass;
  2027. return self;}
  2028. }),
  2029. smalltalk.ClassesListNode);
  2030. smalltalk.addMethod(
  2031. '_browser',
  2032. smalltalk.method({
  2033. selector: 'browser',
  2034. fn: function (){
  2035. var self=this;
  2036. return self['@browser'];
  2037. return self;}
  2038. }),
  2039. smalltalk.ClassesListNode);
  2040. smalltalk.addMethod(
  2041. '_browser_',
  2042. smalltalk.method({
  2043. selector: 'browser:',
  2044. fn: function (aBrowser){
  2045. var self=this;
  2046. self['@browser']=aBrowser;
  2047. return self;}
  2048. }),
  2049. smalltalk.ClassesListNode);
  2050. smalltalk.addMethod(
  2051. '_level',
  2052. smalltalk.method({
  2053. selector: 'level',
  2054. fn: function (){
  2055. var self=this;
  2056. return self['@level'];
  2057. return self;}
  2058. }),
  2059. smalltalk.ClassesListNode);
  2060. smalltalk.addMethod(
  2061. '_level_',
  2062. smalltalk.method({
  2063. selector: 'level:',
  2064. fn: function (anInteger){
  2065. var self=this;
  2066. self['@level']=anInteger;
  2067. return self;}
  2068. }),
  2069. smalltalk.ClassesListNode);
  2070. smalltalk.addMethod(
  2071. '_label',
  2072. smalltalk.method({
  2073. selector: 'label',
  2074. fn: function (){
  2075. var self=this;
  2076. var str=nil;
  2077. str=smalltalk.send(smalltalk.send((smalltalk.String || String), "_new", []), "_writeStream", []);
  2078. smalltalk.send(smalltalk.send(self, "_level", []), "_timesRepeat_", [(function(){return smalltalk.send(str, "_nextPutAll_", [unescape("%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B")]);})]);
  2079. smalltalk.send(str, "_nextPutAll_", [smalltalk.send(smalltalk.send(self, "_theClass", []), "_name", [])]);
  2080. return smalltalk.send(str, "_contents", []);
  2081. return self;}
  2082. }),
  2083. smalltalk.ClassesListNode);
  2084. smalltalk.addMethod(
  2085. '_getNodesFrom_',
  2086. smalltalk.method({
  2087. selector: 'getNodesFrom:',
  2088. fn: function (aCollection){
  2089. var self=this;
  2090. var children=nil;
  2091. var others=nil;
  2092. children=[];
  2093. others=[];
  2094. smalltalk.send(aCollection, "_do_", [(function(each){return (($receiver = smalltalk.send(smalltalk.send(each, "_superclass", []), "__eq", [smalltalk.send(self, "_theClass", [])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(children, "_add_", [each]);})() : (function(){return smalltalk.send(others, "_add_", [each]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(children, "_add_", [each]);}), (function(){return smalltalk.send(others, "_add_", [each]);})]);})]);
  2095. self['@nodes']=smalltalk.send(children, "_collect_", [(function(each){return smalltalk.send((smalltalk.ClassesListNode || ClassesListNode), "_on_browser_classes_level_", [each, smalltalk.send(self, "_browser", []), others, (($receiver = smalltalk.send(self, "_level", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])]);})]);
  2096. return self;}
  2097. }),
  2098. smalltalk.ClassesListNode);
  2099. smalltalk.addMethod(
  2100. '_renderOn_',
  2101. smalltalk.method({
  2102. selector: 'renderOn:',
  2103. fn: function (html){
  2104. var self=this;
  2105. var li=nil;
  2106. li=smalltalk.send(smalltalk.send(html, "_li", []), "_onClick_", [(function(){return smalltalk.send(smalltalk.send(self, "_browser", []), "_selectClass_", [smalltalk.send(self, "_theClass", [])]);})]);
  2107. smalltalk.send(smalltalk.send(li, "_asJQuery", []), "_contents_", [smalltalk.send(self, "_label", [])]);
  2108. (($receiver = smalltalk.send(smalltalk.send(smalltalk.send(self, "_browser", []), "_selectedClass", []), "__eq", [smalltalk.send(self, "_theClass", [])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(li, "_class_", ["selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);
  2109. (($receiver = smalltalk.send(smalltalk.send(smalltalk.send(self, "_theClass", []), "_comment", []), "_isEmpty", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(li, "_class_", ["commented"]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(li, "_class_", ["commented"]);})]);
  2110. smalltalk.send(smalltalk.send(self, "_nodes", []), "_do_", [(function(each){return smalltalk.send(each, "_renderOn_", [html]);})]);
  2111. return self;}
  2112. }),
  2113. smalltalk.ClassesListNode);
  2114. smalltalk.addMethod(
  2115. '_on_browser_classes_level_',
  2116. smalltalk.method({
  2117. selector: 'on:browser:classes:level:',
  2118. fn: function (aClass, aBrowser, aCollection, anInteger){
  2119. var self=this;
  2120. return (function($rec){smalltalk.send($rec, "_theClass_", [aClass]);smalltalk.send($rec, "_browser_", [aBrowser]);smalltalk.send($rec, "_level_", [anInteger]);smalltalk.send($rec, "_getNodesFrom_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  2121. return self;}
  2122. }),
  2123. smalltalk.ClassesListNode.klass);
  2124. smalltalk.addClass('Debugger', smalltalk.TabWidget, ['error', 'selectedContext', 'sourceArea', 'ul'], 'IDE');
  2125. smalltalk.addMethod(
  2126. '_error',
  2127. smalltalk.method({
  2128. selector: 'error',
  2129. fn: function (){
  2130. var self=this;
  2131. return self['@error'];
  2132. return self;}
  2133. }),
  2134. smalltalk.Debugger);
  2135. smalltalk.addMethod(
  2136. '_error_',
  2137. smalltalk.method({
  2138. selector: 'error:',
  2139. fn: function (anError){
  2140. var self=this;
  2141. self['@error']=anError;
  2142. return self;}
  2143. }),
  2144. smalltalk.Debugger);
  2145. smalltalk.addMethod(
  2146. '_label',
  2147. smalltalk.method({
  2148. selector: 'label',
  2149. fn: function (){
  2150. var self=this;
  2151. return unescape("%5BDebugger%5D");
  2152. return self;}
  2153. }),
  2154. smalltalk.Debugger);
  2155. smalltalk.addMethod(
  2156. '_selectContext_',
  2157. smalltalk.method({
  2158. selector: 'selectContext:',
  2159. fn: function (aContext){
  2160. var self=this;
  2161. self['@selectedContext']=aContext;
  2162. smalltalk.send(self, "_updateContextsList", []);
  2163. smalltalk.send(self, "_updateSourceArea", []);
  2164. return self;}
  2165. }),
  2166. smalltalk.Debugger);
  2167. smalltalk.addMethod(
  2168. '_renderBoxOn_',
  2169. smalltalk.method({
  2170. selector: 'renderBoxOn:',
  2171. fn: function (html){
  2172. var self=this;
  2173. (function($rec){smalltalk.send($rec, "_renderTopPanelOn_", [html]);return smalltalk.send($rec, "_renderBottomPanelOn_", [html]);})(self);
  2174. return self;}
  2175. }),
  2176. smalltalk.Debugger);
  2177. smalltalk.addMethod(
  2178. '_renderTopPanelOn_',
  2179. smalltalk.method({
  2180. selector: 'renderTopPanelOn:',
  2181. fn: function (html){
  2182. var self=this;
  2183. self['@selectedContext']=smalltalk.send(smalltalk.send(self, "_error", []), "_context", []);
  2184. (function($rec){smalltalk.send($rec, "_class_", ["top"]);return smalltalk.send($rec, "_with_", [(function(){(function($rec){smalltalk.send($rec, "_class_", ["label"]);return smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(self, "_error", []), "_messageText", [])]);})(smalltalk.send(html, "_div", []));return self['@ul']=(function($rec){smalltalk.send($rec, "_class_", ["jt_column debugger contexts"]);return smalltalk.send($rec, "_with_", [(function(){return smalltalk.send(self, "_renderContext_on_", [smalltalk.send(smalltalk.send(self, "_error", []), "_context", []), html]);})]);})(smalltalk.send(html, "_ul", []));})]);})(smalltalk.send(html, "_div", []));
  2185. return self;}
  2186. }),
  2187. smalltalk.Debugger);
  2188. smalltalk.addMethod(
  2189. '_renderContext_on_',
  2190. smalltalk.method({
  2191. selector: 'renderContext:on:',
  2192. fn: function (aContext, html){
  2193. var self=this;
  2194. var li=nil;
  2195. li=smalltalk.send(html, "_li", []);
  2196. (($receiver = smalltalk.send(self['@selectedContext'], "__eq", [aContext])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(li, "_class_", ["selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);
  2197. (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(aContext, "_asString", [])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectContext_", [aContext]);})]);})(li);
  2198. (($receiver = smalltalk.send(aContext, "_home", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_renderContext_on_", [smalltalk.send(aContext, "_home", []), html]);})() : nil;
  2199. return self;}
  2200. }),
  2201. smalltalk.Debugger);
  2202. smalltalk.addMethod(
  2203. '_renderBottomPanelOn_',
  2204. smalltalk.method({
  2205. selector: 'renderBottomPanelOn:',
  2206. fn: function (html){
  2207. var self=this;
  2208. (function($rec){smalltalk.send($rec, "_class_", ["jt_sourceCode"]);return smalltalk.send($rec, "_with_", [(function(){self['@sourceArea']=smalltalk.send((smalltalk.SourceArea || SourceArea), "_new", []);return smalltalk.send(self['@sourceArea'], "_renderOn_", [html]);})]);})(smalltalk.send(html, "_div", []));
  2209. smalltalk.send(self, "_updateSourceArea", []);
  2210. return self;}
  2211. }),
  2212. smalltalk.Debugger);
  2213. smalltalk.addMethod(
  2214. '_canBeClosed',
  2215. smalltalk.method({
  2216. selector: 'canBeClosed',
  2217. fn: function (){
  2218. var self=this;
  2219. return true;
  2220. return self;}
  2221. }),
  2222. smalltalk.Debugger);
  2223. smalltalk.addMethod(
  2224. '_updateContextsList',
  2225. smalltalk.method({
  2226. selector: 'updateContextsList',
  2227. fn: function (){
  2228. var self=this;
  2229. smalltalk.send(self['@ul'], "_contents_", [(function(html){return smalltalk.send(self, "_renderContext_on_", [smalltalk.send(smalltalk.send(self, "_error", []), "_context", []), html]);})]);
  2230. return self;}
  2231. }),
  2232. smalltalk.Debugger);
  2233. smalltalk.addMethod(
  2234. '_updateSourceArea',
  2235. smalltalk.method({
  2236. selector: 'updateSourceArea',
  2237. fn: function (){
  2238. var self=this;
  2239. smalltalk.send(self['@sourceArea'], "_val_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self['@selectedContext'], "_receiver", []), "_class", []), "_methodAt_", [smalltalk.send(self['@selectedContext'], "_selector", [])]), "_source", [])]);
  2240. return self;}
  2241. }),
  2242. smalltalk.Debugger);
  2243. smalltalk.addClass('DebugErrorHandler', smalltalk.ErrorHandler, [], 'IDE');
  2244. smalltalk.addMethod(
  2245. '_handleError_',
  2246. smalltalk.method({
  2247. selector: 'handleError:',
  2248. fn: function (anError){
  2249. var self=this;
  2250. smalltalk.send((function(){return (function($rec){smalltalk.send($rec, "_error_", [anError]);return smalltalk.send($rec, "_open", []);})(smalltalk.send((smalltalk.Debugger || Debugger), "_new", []));}), "_on_do_", [(smalltalk.Error || Error), (function(error){return smalltalk.send(smalltalk.send((smalltalk.ErrorHandler || ErrorHandler), "_new", []), "_handleError_", [error]);})]);
  2251. return self;}
  2252. }),
  2253. smalltalk.DebugErrorHandler);
  2254. smalltalk.addMethod(
  2255. '_initialize',
  2256. smalltalk.method({
  2257. selector: 'initialize',
  2258. fn: function (){
  2259. var self=this;
  2260. smalltalk.send(self, "_register", []);
  2261. return self;}
  2262. }),
  2263. smalltalk.DebugErrorHandler.klass);
  2264. smalltalk.addClass('ProgressBar', smalltalk.TabWidget, ['percent', 'progressDiv', 'div'], 'IDE');
  2265. smalltalk.addMethod(
  2266. '_percent',
  2267. smalltalk.method({
  2268. selector: 'percent',
  2269. fn: function (){
  2270. var self=this;
  2271. return (($receiver = self['@percent']) == nil || $receiver == undefined) ? (function(){return (0);})() : $receiver;
  2272. return self;}
  2273. }),
  2274. smalltalk.ProgressBar);
  2275. smalltalk.addMethod(
  2276. '_percent_',
  2277. smalltalk.method({
  2278. selector: 'percent:',
  2279. fn: function (aNumber){
  2280. var self=this;
  2281. self['@percent']=aNumber;
  2282. return self;}
  2283. }),
  2284. smalltalk.ProgressBar);
  2285. smalltalk.addMethod(
  2286. '_renderOn_',
  2287. smalltalk.method({
  2288. selector: 'renderOn:',
  2289. fn: function (html){
  2290. var self=this;
  2291. self['@div']=(function($rec){smalltalk.send($rec, "_class_", ["progress_bar"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_div", []));
  2292. smalltalk.send(self, "_renderProgressBar", []);
  2293. return self;}
  2294. }),
  2295. smalltalk.ProgressBar);
  2296. smalltalk.addMethod(
  2297. '_renderProgressBar',
  2298. smalltalk.method({
  2299. selector: 'renderProgressBar',
  2300. fn: function (){
  2301. var self=this;
  2302. smalltalk.send(self['@div'], "_contents_", [(function(html){return (function($rec){smalltalk.send($rec, "_class_", ["progress"]);return smalltalk.send($rec, "_style_", [smalltalk.send(smalltalk.send("width:", "__comma", [smalltalk.send(smalltalk.send(self, "_percent", []), "_asString", [])]), "__comma", [unescape("%25")])]);})(smalltalk.send(html, "_div", []));})]);
  2303. return self;}
  2304. }),
  2305. smalltalk.ProgressBar);
  2306. smalltalk.addMethod(
  2307. '_updatePercent_',
  2308. smalltalk.method({
  2309. selector: 'updatePercent:',
  2310. fn: function (aNumber){
  2311. var self=this;
  2312. smalltalk.send(self, "_percent_", [aNumber]);
  2313. smalltalk.send(self, "_renderProgressBar", []);
  2314. return self;}
  2315. }),
  2316. smalltalk.ProgressBar);
  2317. smalltalk.addClass('TestRunner', smalltalk.TabWidget, ['selectedCategories', 'categoriesList', 'selectedClasses', 'classesList', 'selectedMethods', 'progressBar', 'methodsList', 'result', 'statusDiv'], 'IDE');
  2318. smalltalk.addMethod(
  2319. '_label',
  2320. smalltalk.method({
  2321. selector: 'label',
  2322. fn: function (){
  2323. var self=this;
  2324. return unescape("%5BTest%20runner%5D");
  2325. return self;}
  2326. }),
  2327. smalltalk.TestRunner);
  2328. smalltalk.addMethod(
  2329. '_categories',
  2330. smalltalk.method({
  2331. selector: 'categories',
  2332. fn: function (){
  2333. var self=this;
  2334. var categories=nil;
  2335. categories=smalltalk.send((smalltalk.Array || Array), "_new", []);
  2336. smalltalk.send(smalltalk.send(self, "_allClasses", []), "_do_", [(function(each){return (($receiver = smalltalk.send(categories, "_includes_", [smalltalk.send(each, "_category", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(categories, "_add_", [smalltalk.send(each, "_category", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(categories, "_add_", [smalltalk.send(each, "_category", [])]);})]);})]);
  2337. return smalltalk.send(categories, "_sort", []);
  2338. return self;}
  2339. }),
  2340. smalltalk.TestRunner);
  2341. smalltalk.addMethod(
  2342. '_classes',
  2343. smalltalk.method({
  2344. selector: 'classes',
  2345. fn: function (){
  2346. var self=this;
  2347. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_allClasses", []), "_select_", [(function(each){return smalltalk.send(smalltalk.send(self, "_selectedCategories", []), "_includes_", [smalltalk.send(each, "_category", [])]);})]), "_sort_", [(function(a, b){return (($receiver = smalltalk.send(a, "_name", [])).klass === smalltalk.Number) ? $receiver >smalltalk.send(b, "_name", []) : smalltalk.send($receiver, "__gt", [smalltalk.send(b, "_name", [])]);})]);
  2348. return self;}
  2349. }),
  2350. smalltalk.TestRunner);
  2351. smalltalk.addMethod(
  2352. '_selectedCategories',
  2353. smalltalk.method({
  2354. selector: 'selectedCategories',
  2355. fn: function (){
  2356. var self=this;
  2357. return (($receiver = self['@selectedCategories']) == nil || $receiver == undefined) ? (function(){return self['@selectedCategories']=smalltalk.send((smalltalk.Array || Array), "_new", []);})() : $receiver;
  2358. return self;}
  2359. }),
  2360. smalltalk.TestRunner);
  2361. smalltalk.addMethod(
  2362. '_allClasses',
  2363. smalltalk.method({
  2364. selector: 'allClasses',
  2365. fn: function (){
  2366. var self=this;
  2367. return smalltalk.send((smalltalk.TestCase || TestCase), "_allSubclasses", []);
  2368. return self;}
  2369. }),
  2370. smalltalk.TestRunner);
  2371. smalltalk.addMethod(
  2372. '_selectedClasses',
  2373. smalltalk.method({
  2374. selector: 'selectedClasses',
  2375. fn: function (){
  2376. var self=this;
  2377. return (($receiver = self['@selectedClasses']) == nil || $receiver == undefined) ? (function(){return self['@selectedClasses']=smalltalk.send((smalltalk.Array || Array), "_new", []);})() : $receiver;
  2378. return self;}
  2379. }),
  2380. smalltalk.TestRunner);
  2381. smalltalk.addMethod(
  2382. '_progressBar',
  2383. smalltalk.method({
  2384. selector: 'progressBar',
  2385. fn: function (){
  2386. var self=this;
  2387. return (($receiver = self['@progressBar']) == nil || $receiver == undefined) ? (function(){return self['@progressBar']=smalltalk.send((smalltalk.ProgressBar || ProgressBar), "_new", []);})() : $receiver;
  2388. return self;}
  2389. }),
  2390. smalltalk.TestRunner);
  2391. smalltalk.addMethod(
  2392. '_selectedMethods',
  2393. smalltalk.method({
  2394. selector: 'selectedMethods',
  2395. fn: function (){
  2396. var self=this;
  2397. return (($receiver = self['@selectedMethods']) == nil || $receiver == undefined) ? (function(){return smalltalk.send(smalltalk.send(self, "_selectedClasses", []), "_collect_", [(function(each){return smalltalk.send(smalltalk.send(smalltalk.send(each, "_methodDictionary", []), "_keys", []), "_select_", [(function(key){return smalltalk.send(key, "_beginsWith_", ["test"]);})]);})]);})() : $receiver;
  2398. return self;}
  2399. }),
  2400. smalltalk.TestRunner);
  2401. smalltalk.addMethod(
  2402. '_statusInfo',
  2403. smalltalk.method({
  2404. selector: 'statusInfo',
  2405. fn: function (){
  2406. var self=this;
  2407. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_printTotal", []), "__comma", [smalltalk.send(self, "_printPasses", [])]), "__comma", [smalltalk.send(self, "_printErrors", [])]), "__comma", [smalltalk.send(self, "_printFailures", [])]);
  2408. return self;}
  2409. }),
  2410. smalltalk.TestRunner);
  2411. smalltalk.addMethod(
  2412. '_result',
  2413. smalltalk.method({
  2414. selector: 'result',
  2415. fn: function (){
  2416. var self=this;
  2417. return self['@result'];
  2418. return self;}
  2419. }),
  2420. smalltalk.TestRunner);
  2421. smalltalk.addMethod(
  2422. '_failedMethods',
  2423. smalltalk.method({
  2424. selector: 'failedMethods',
  2425. fn: function (){
  2426. var self=this;
  2427. smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_failures", []), "_collect_", [(function(each){return (function($rec){smalltalk.send($rec, "_class_", ["failures"]);return smalltalk.send($rec, "_with_", [each]);})(smalltalk.send((typeof html == 'undefined' ? nil : html), "_li", []));})]);
  2428. return self;}
  2429. }),
  2430. smalltalk.TestRunner);
  2431. smalltalk.addMethod(
  2432. '_selectAllCategories',
  2433. smalltalk.method({
  2434. selector: 'selectAllCategories',
  2435. fn: function (){
  2436. var self=this;
  2437. smalltalk.send(smalltalk.send(self, "_categories", []), "_do_", [(function(each){return (($receiver = smalltalk.send(self['@selectedCategories'], "_includes_", [each])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(smalltalk.send(self, "_selectedCategories", []), "_add_", [each]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(self, "_selectedCategories", []), "_add_", [each]);})]);})]);
  2438. (function($rec){smalltalk.send($rec, "_updateCategoriesList", []);return smalltalk.send($rec, "_updateClassesList", []);})(self);
  2439. return self;}
  2440. }),
  2441. smalltalk.TestRunner);
  2442. smalltalk.addMethod(
  2443. '_toggleCategory_',
  2444. smalltalk.method({
  2445. selector: 'toggleCategory:',
  2446. fn: function (aCategory){
  2447. var self=this;
  2448. (($receiver = smalltalk.send(self, "_isSelectedCategory_", [aCategory])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self['@selectedCategories'], "_add_", [aCategory]);})() : (function(){return smalltalk.send(self['@selectedCategories'], "_remove_", [aCategory]);})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self['@selectedCategories'], "_add_", [aCategory]);}), (function(){return smalltalk.send(self['@selectedCategories'], "_remove_", [aCategory]);})]);
  2449. (function($rec){smalltalk.send($rec, "_updateCategoriesList", []);return smalltalk.send($rec, "_updateClassesList", []);})(self);
  2450. return self;}
  2451. }),
  2452. smalltalk.TestRunner);
  2453. smalltalk.addMethod(
  2454. '_toggleClass_',
  2455. smalltalk.method({
  2456. selector: 'toggleClass:',
  2457. fn: function (aClass){
  2458. var self=this;
  2459. (($receiver = smalltalk.send(self, "_isSelectedClass_", [aClass])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self['@selectedClasses'], "_add_", [aClass]);})() : (function(){return smalltalk.send(self['@selectedClasses'], "_remove_", [aClass]);})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self['@selectedClasses'], "_add_", [aClass]);}), (function(){return smalltalk.send(self['@selectedClasses'], "_remove_", [aClass]);})]);
  2460. smalltalk.send(self, "_updateClassesList", []);
  2461. return self;}
  2462. }),
  2463. smalltalk.TestRunner);
  2464. smalltalk.addMethod(
  2465. '_selectAllClasses',
  2466. smalltalk.method({
  2467. selector: 'selectAllClasses',
  2468. fn: function (){
  2469. var self=this;
  2470. smalltalk.send(smalltalk.send(self, "_classes", []), "_do_", [(function(each){return (($receiver = smalltalk.send(self['@selectedClasses'], "_includes_", [each])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(smalltalk.send(self, "_selectedClasses", []), "_add_", [each]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(self, "_selectedClasses", []), "_add_", [each]);})]);})]);
  2471. (function($rec){smalltalk.send($rec, "_updateCategoriesList", []);return smalltalk.send($rec, "_updateClassesList", []);})(self);
  2472. return self;}
  2473. }),
  2474. smalltalk.TestRunner);
  2475. smalltalk.addMethod(
  2476. '_run_',
  2477. smalltalk.method({
  2478. selector: 'run:',
  2479. fn: function (aCollection){
  2480. var self=this;
  2481. self['@result']=smalltalk.send((smalltalk.TestResult || TestResult), "_new", []);
  2482. (function($rec){smalltalk.send($rec, "_updateStatusDiv", []);return smalltalk.send($rec, "_updateMethodsList", []);})(self);
  2483. smalltalk.send(smalltalk.send(self, "_progressBar", []), "_updatePercent_", [(0)]);
  2484. smalltalk.send(self['@result'], "_total_", [smalltalk.send(aCollection, "_inject_into_", [(0), (function(acc, each){return (($receiver = acc).klass === smalltalk.Number) ? $receiver +smalltalk.send(smalltalk.send(each, "_methods", []), "_size", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(smalltalk.send(each, "_methods", []), "_size", [])]);})])]);
  2485. smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send((function(){smalltalk.send(each, "_runCaseFor_", [self['@result']]);smalltalk.send(smalltalk.send(self, "_progressBar", []), "_updatePercent_", [(($receiver = (($receiver = smalltalk.send(self['@result'], "_runs", [])).klass === smalltalk.Number) ? $receiver /smalltalk.send(self['@result'], "_total", []) : smalltalk.send($receiver, "__slash", [smalltalk.send(self['@result'], "_total", [])])).klass === smalltalk.Number) ? $receiver *(100) : smalltalk.send($receiver, "__star", [(100)])]);smalltalk.send(self, "_updateStatusDiv", []);return smalltalk.send(self, "_updateMethodsList", []);}), "_valueWithTimeout_", [(100)]);})]);
  2486. return self;}
  2487. }),
  2488. smalltalk.TestRunner);
  2489. smalltalk.addMethod(
  2490. '_initialize',
  2491. smalltalk.method({
  2492. selector: 'initialize',
  2493. fn: function (){
  2494. var self=this;
  2495. smalltalk.send(self, "_initialize", [], smalltalk.TabWidget);
  2496. self['@result']=smalltalk.send((smalltalk.TestResult || TestResult), "_new", []);
  2497. return self;}
  2498. }),
  2499. smalltalk.TestRunner);
  2500. smalltalk.addMethod(
  2501. '_printErrors',
  2502. smalltalk.method({
  2503. selector: 'printErrors',
  2504. fn: function (){
  2505. var self=this;
  2506. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_errors", []), "_size", []), "_asString", []), "__comma", [unescape("%20errors%2C%20")]);
  2507. return self;}
  2508. }),
  2509. smalltalk.TestRunner);
  2510. smalltalk.addMethod(
  2511. '_printFailures',
  2512. smalltalk.method({
  2513. selector: 'printFailures',
  2514. fn: function (){
  2515. var self=this;
  2516. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_failures", []), "_size", []), "_asString", []), "__comma", [" failures"]);
  2517. return self;}
  2518. }),
  2519. smalltalk.TestRunner);
  2520. smalltalk.addMethod(
  2521. '_printPasses',
  2522. smalltalk.method({
  2523. selector: 'printPasses',
  2524. fn: function (){
  2525. var self=this;
  2526. return smalltalk.send(smalltalk.send((($receiver = smalltalk.send(smalltalk.send(self, "_result", []), "_total", [])).klass === smalltalk.Number) ? $receiver -(($receiver = smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_errors", []), "_size", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_failures", []), "_size", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_failures", []), "_size", [])]) : smalltalk.send($receiver, "__minus", [(($receiver = smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_errors", []), "_size", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_failures", []), "_size", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_failures", []), "_size", [])])]), "_asString", []), "__comma", [unescape("%20passes%2C%20")]);
  2527. return self;}
  2528. }),
  2529. smalltalk.TestRunner);
  2530. smalltalk.addMethod(
  2531. '_printTotal',
  2532. smalltalk.method({
  2533. selector: 'printTotal',
  2534. fn: function (){
  2535. var self=this;
  2536. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_total", []), "_asString", []), "__comma", [unescape("%20runs%2C%20")]);
  2537. return self;}
  2538. }),
  2539. smalltalk.TestRunner);
  2540. smalltalk.addMethod(
  2541. '_renderBoxOn_',
  2542. smalltalk.method({
  2543. selector: 'renderBoxOn:',
  2544. fn: function (html){
  2545. var self=this;
  2546. (function($rec){smalltalk.send($rec, "_renderCategoriesOn_", [html]);smalltalk.send($rec, "_renderClassesOn_", [html]);return smalltalk.send($rec, "_renderResultsOn_", [html]);})(self);
  2547. return self;}
  2548. }),
  2549. smalltalk.TestRunner);
  2550. smalltalk.addMethod(
  2551. '_renderButtonsOn_',
  2552. smalltalk.method({
  2553. selector: 'renderButtonsOn:',
  2554. fn: function (html){
  2555. var self=this;
  2556. (function($rec){smalltalk.send($rec, "_with_", ["Run selected"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_run_", [smalltalk.send(smalltalk.send(self, "_selectedClasses", []), "_collect_", [(function(each){return smalltalk.send(each, "_new", []);})])]);})]);})(smalltalk.send(html, "_button", []));
  2557. return self;}
  2558. }),
  2559. smalltalk.TestRunner);
  2560. smalltalk.addMethod(
  2561. '_renderCategoriesOn_',
  2562. smalltalk.method({
  2563. selector: 'renderCategoriesOn:',
  2564. fn: function (html){
  2565. var self=this;
  2566. self['@categoriesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column sunit categories"]);
  2567. smalltalk.send(self, "_updateCategoriesList", []);
  2568. return self;}
  2569. }),
  2570. smalltalk.TestRunner);
  2571. smalltalk.addMethod(
  2572. '_renderClassesOn_',
  2573. smalltalk.method({
  2574. selector: 'renderClassesOn:',
  2575. fn: function (html){
  2576. var self=this;
  2577. self['@classesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column sunit classes"]);
  2578. smalltalk.send(self, "_updateClassesList", []);
  2579. return self;}
  2580. }),
  2581. smalltalk.TestRunner);
  2582. smalltalk.addMethod(
  2583. '_renderResultsOn_',
  2584. smalltalk.method({
  2585. selector: 'renderResultsOn:',
  2586. fn: function (html){
  2587. var self=this;
  2588. self['@statusDiv']=smalltalk.send(html, "_div", []);
  2589. smalltalk.send(html, "_with_", [smalltalk.send(self, "_progressBar", [])]);
  2590. self['@methodsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column sunit methods"]);
  2591. smalltalk.send(self, "_updateMethodsList", []);
  2592. smalltalk.send(self, "_updateStatusDiv", []);
  2593. return self;}
  2594. }),
  2595. smalltalk.TestRunner);
  2596. smalltalk.addMethod(
  2597. '_renderFailuresOn_',
  2598. smalltalk.method({
  2599. selector: 'renderFailuresOn:',
  2600. fn: function (html){
  2601. var self=this;
  2602. smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_failures", []), "_do_", [(function(each){return (function($rec){smalltalk.send($rec, "_class_", ["failures"]);return smalltalk.send($rec, "_with_", [each]);})(smalltalk.send(html, "_li", []));})]);
  2603. return self;}
  2604. }),
  2605. smalltalk.TestRunner);
  2606. smalltalk.addMethod(
  2607. '_renderErrorsOn_',
  2608. smalltalk.method({
  2609. selector: 'renderErrorsOn:',
  2610. fn: function (html){
  2611. var self=this;
  2612. smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_errors", []), "_do_", [(function(each){return (function($rec){smalltalk.send($rec, "_class_", ["errors"]);return smalltalk.send($rec, "_with_", [each]);})(smalltalk.send(html, "_li", []));})]);
  2613. return self;}
  2614. }),
  2615. smalltalk.TestRunner);
  2616. smalltalk.addMethod(
  2617. '_isSelectedClass_',
  2618. smalltalk.method({
  2619. selector: 'isSelectedClass:',
  2620. fn: function (aClass){
  2621. var self=this;
  2622. return smalltalk.send(smalltalk.send(self, "_selectedClasses", []), "_includes_", [aClass]);
  2623. return self;}
  2624. }),
  2625. smalltalk.TestRunner);
  2626. smalltalk.addMethod(
  2627. '_isSelectedCategory_',
  2628. smalltalk.method({
  2629. selector: 'isSelectedCategory:',
  2630. fn: function (aCategory){
  2631. var self=this;
  2632. return smalltalk.send(smalltalk.send(self, "_selectedCategories", []), "_includes_", [aCategory]);
  2633. return self;}
  2634. }),
  2635. smalltalk.TestRunner);
  2636. smalltalk.addMethod(
  2637. '_updateCategoriesList',
  2638. smalltalk.method({
  2639. selector: 'updateCategoriesList',
  2640. fn: function (){
  2641. var self=this;
  2642. smalltalk.send(self['@categoriesList'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_class_", ["all"]);smalltalk.send($rec, "_with_", ["All"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectAllCategories", []);})]);})(smalltalk.send(html, "_li", []));return smalltalk.send(smalltalk.send(self, "_categories", []), "_do_", [(function(each){var li=nil;
  2643. li=smalltalk.send(html, "_li", []);(($receiver = smalltalk.send(smalltalk.send(self, "_selectedCategories", []), "_includes_", [each])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(li, "_class_", ["selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);return (function($rec){smalltalk.send($rec, "_with_", [each]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_toggleCategory_", [each]);})]);})(li);})]);})]);
  2644. return self;}
  2645. }),
  2646. smalltalk.TestRunner);
  2647. smalltalk.addMethod(
  2648. '_updateClassesList',
  2649. smalltalk.method({
  2650. selector: 'updateClassesList',
  2651. fn: function (){
  2652. var self=this;
  2653. smalltalk.send(self['@classesList'], "_contents_", [(function(html){(($receiver = smalltalk.send(smalltalk.send(self, "_selectedCategories", []), "_isEmpty", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function($rec){smalltalk.send($rec, "_class_", ["all"]);smalltalk.send($rec, "_with_", ["All"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectAllClasses", []);})]);})(smalltalk.send(html, "_li", []));})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function($rec){smalltalk.send($rec, "_class_", ["all"]);smalltalk.send($rec, "_with_", ["All"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectAllClasses", []);})]);})(smalltalk.send(html, "_li", []));})]);return smalltalk.send(smalltalk.send(self, "_classes", []), "_do_", [(function(each){var li=nil;
  2654. li=smalltalk.send(html, "_li", []);(($receiver = smalltalk.send(smalltalk.send(self, "_selectedClasses", []), "_includes_", [each])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(li, "_class_", ["selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);return (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(each, "_name", [])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_toggleClass_", [each]);})]);})(li);})]);})]);
  2655. return self;}
  2656. }),
  2657. smalltalk.TestRunner);
  2658. smalltalk.addMethod(
  2659. '_updateMethodsList',
  2660. smalltalk.method({
  2661. selector: 'updateMethodsList',
  2662. fn: function (){
  2663. var self=this;
  2664. smalltalk.send(self['@methodsList'], "_contents_", [(function(html){smalltalk.send(self, "_renderFailuresOn_", [html]);return smalltalk.send(self, "_renderErrorsOn_", [html]);})]);
  2665. return self;}
  2666. }),
  2667. smalltalk.TestRunner);
  2668. smalltalk.addMethod(
  2669. '_updateStatusDiv',
  2670. smalltalk.method({
  2671. selector: 'updateStatusDiv',
  2672. fn: function (){
  2673. var self=this;
  2674. smalltalk.send(self['@statusDiv'], "_class_", [smalltalk.send("sunit status ", "__comma", [smalltalk.send(self['@result'], "_status", [])])]);
  2675. smalltalk.send(self['@statusDiv'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(html, "_span", []), "_with_", [smalltalk.send(self, "_statusInfo", [])]);})]);
  2676. return self;}
  2677. }),
  2678. smalltalk.TestRunner);
  2679. smalltalk.addMethod(
  2680. '_inspect',
  2681. smalltalk.method({
  2682. selector: 'inspect',
  2683. fn: function (){
  2684. var self=this;
  2685. (function($rec){smalltalk.send($rec, "_inspect_", [self]);return smalltalk.send($rec, "_open", []);})(smalltalk.send((smalltalk.Inspector || Inspector), "_new", []));
  2686. return self;}
  2687. }),
  2688. smalltalk.Object);
  2689. smalltalk.addMethod(
  2690. '_inspectOn_',
  2691. smalltalk.method({
  2692. selector: 'inspectOn:',
  2693. fn: function (anInspector){
  2694. var self=this;
  2695. var variables=nil;
  2696. variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  2697. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  2698. smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_allInstanceVariableNames", []), "_do_", [(function(each){return smalltalk.send(variables, "_at_put_", [each, smalltalk.send(self, "_instVarAt_", [each])]);})]);
  2699. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  2700. return self;}
  2701. }),
  2702. smalltalk.Object);
  2703. smalltalk.addMethod(
  2704. '_inspectOn_',
  2705. smalltalk.method({
  2706. selector: 'inspectOn:',
  2707. fn: function (anInspector){
  2708. var self=this;
  2709. var variables=nil;
  2710. variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  2711. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  2712. smalltalk.send(variables, "_at_put_", [unescape("%23year"), smalltalk.send(self, "_year", [])]);
  2713. smalltalk.send(variables, "_at_put_", [unescape("%23month"), smalltalk.send(self, "_month", [])]);
  2714. smalltalk.send(variables, "_at_put_", [unescape("%23day"), smalltalk.send(self, "_day", [])]);
  2715. smalltalk.send(variables, "_at_put_", [unescape("%23hours"), smalltalk.send(self, "_hours", [])]);
  2716. smalltalk.send(variables, "_at_put_", [unescape("%23minutes"), smalltalk.send(self, "_minutes", [])]);
  2717. smalltalk.send(variables, "_at_put_", [unescape("%23seconds"), smalltalk.send(self, "_seconds", [])]);
  2718. smalltalk.send(variables, "_at_put_", [unescape("%23milliseconds"), smalltalk.send(self, "_milliseconds", [])]);
  2719. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  2720. return self;}
  2721. }),
  2722. smalltalk.Date);
  2723. smalltalk.addMethod(
  2724. '_inspectOn_',
  2725. smalltalk.method({
  2726. selector: 'inspectOn:',
  2727. fn: function (anInspector){
  2728. var self=this;
  2729. var variables=nil;
  2730. variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  2731. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  2732. smalltalk.send(self, "_withIndexDo_", [(function(each, i){return smalltalk.send(variables, "_at_put_", [i, each]);})]);
  2733. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  2734. return self;}
  2735. }),
  2736. smalltalk.Collection);
  2737. smalltalk.addMethod(
  2738. '_inspectOn_',
  2739. smalltalk.method({
  2740. selector: 'inspectOn:',
  2741. fn: function (anInspector){
  2742. var self=this;
  2743. var label=nil;
  2744. smalltalk.send(self, "_inspectOn_", [anInspector], smalltalk.SequenceableCollection);
  2745. (($receiver = (($receiver = smalltalk.send(smalltalk.send(self, "_printString", []), "_size", [])).klass === smalltalk.Number) ? $receiver >(30) : smalltalk.send($receiver, "__gt", [(30)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return label=smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", []), "_copyFrom_to_", [(1), (30)]), "__comma", [unescape("...%27")]);})() : (function(){return label=smalltalk.send(self, "_printString", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return label=smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", []), "_copyFrom_to_", [(1), (30)]), "__comma", [unescape("...%27")]);}), (function(){return label=smalltalk.send(self, "_printString", []);})]);
  2746. smalltalk.send(anInspector, "_setLabel_", [label]);
  2747. return self;}
  2748. }),
  2749. smalltalk.String);
  2750. smalltalk.addMethod(
  2751. '_inspectOn_',
  2752. smalltalk.method({
  2753. selector: 'inspectOn:',
  2754. fn: function (anInspector){
  2755. var self=this;
  2756. var variables=nil;
  2757. variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  2758. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  2759. smalltalk.send(variables, "_at_put_", [unescape("%23home"), smalltalk.send(self, "_home", [])]);
  2760. smalltalk.send(variables, "_at_put_", [unescape("%23receiver"), smalltalk.send(self, "_receiver", [])]);
  2761. smalltalk.send(variables, "_at_put_", [unescape("%23selector"), smalltalk.send(self, "_selector", [])]);
  2762. smalltalk.send(variables, "_at_put_", [unescape("%23temps"), smalltalk.send(self, "_temps", [])]);
  2763. smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_instanceVariableNames", []), "_do_", [(function(each){return smalltalk.send(variables, "_at_put_", [each, smalltalk.send(self, "_instVarAt_", [each])]);})]);
  2764. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  2765. return self;}
  2766. }),
  2767. smalltalk.MethodContext);
  2768. smalltalk.addMethod(
  2769. '_inspectOn_',
  2770. smalltalk.method({
  2771. selector: 'inspectOn:',
  2772. fn: function (anInspector){
  2773. var self=this;
  2774. var variables=nil;
  2775. variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  2776. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  2777. smalltalk.send(variables, "_at_put_", [unescape("%23keys"), smalltalk.send(self, "_keys", [])]);
  2778. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(variables, "_at_put_", [key, value]);})]);
  2779. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  2780. return self;}
  2781. }),
  2782. smalltalk.Dictionary);