1
0

IDE.deploy.js 165 KB

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