1
0

IDE.deploy.js 171 KB

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