2
0

IDE.js 237 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072
  1. smalltalk.addClass('TabManager', smalltalk.Widget, ['selectedTab', 'tabs', 'opened', 'ul'], 'IDE');
  2. smalltalk.addMethod(
  3. '_tabs',
  4. smalltalk.method({
  5. selector: 'tabs',
  6. category: 'accessing',
  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. source: unescape('tabs%0A%20%20%20%20%5Etabs%20ifNil%3A%20%5Btabs%20%3A%3D%20Array%20new%5D'),
  12. messageSends: ["ifNil:", "new"],
  13. referencedClasses: [smalltalk.Array]
  14. }),
  15. smalltalk.TabManager);
  16. smalltalk.addMethod(
  17. '_updateBodyMargin',
  18. smalltalk.method({
  19. selector: 'updateBodyMargin',
  20. category: 'actions',
  21. fn: function (){
  22. var self=this;
  23. smalltalk.send(self, "_setBodyMargin_", [(($receiver = smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_height", [])).klass === smalltalk.Number) ? $receiver +(27) : smalltalk.send($receiver, "__plus", [(27)])]);
  24. return self;},
  25. source: unescape('updateBodyMargin%0A%20%20%20%20self%20setBodyMargin%3A%20%27%23jtalk%27%20asJQuery%20height%20+%2027'),
  26. messageSends: ["setBodyMargin:", unescape("+"), "height", "asJQuery"],
  27. referencedClasses: []
  28. }),
  29. smalltalk.TabManager);
  30. smalltalk.addMethod(
  31. '_updatePosition',
  32. smalltalk.method({
  33. selector: 'updatePosition',
  34. category: 'actions',
  35. fn: function (){
  36. var self=this;
  37. jQuery('#jtalk').css('top', '').css('bottom', '27px');
  38. return self;},
  39. source: unescape('updatePosition%0A%20%20%20%20%3CjQuery%28%27%23jtalk%27%29.css%28%27top%27%2C%20%27%27%29.css%28%27bottom%27%2C%20%2727px%27%29%3E'),
  40. messageSends: [],
  41. referencedClasses: []
  42. }),
  43. smalltalk.TabManager);
  44. smalltalk.addMethod(
  45. '_removeBodyMargin',
  46. smalltalk.method({
  47. selector: 'removeBodyMargin',
  48. category: 'actions',
  49. fn: function (){
  50. var self=this;
  51. smalltalk.send(self, "_setBodyMargin_", [(0)]);
  52. return self;},
  53. source: unescape('removeBodyMargin%0A%20%20%20%20self%20setBodyMargin%3A%200'),
  54. messageSends: ["setBodyMargin:"],
  55. referencedClasses: []
  56. }),
  57. smalltalk.TabManager);
  58. smalltalk.addMethod(
  59. '_setBodyMargin_',
  60. smalltalk.method({
  61. selector: 'setBodyMargin:',
  62. category: 'actions',
  63. fn: function (anInteger){
  64. var self=this;
  65. smalltalk.send(smalltalk.send(".jtalkBody", "_asJQuery", []), "_cssAt_put_", [unescape("margin-bottom"), smalltalk.send(smalltalk.send(anInteger, "_asString", []), "__comma", ["px"])]);
  66. return self;},
  67. source: unescape('setBodyMargin%3A%20anInteger%0A%20%20%20%20%27.jtalkBody%27%20asJQuery%20cssAt%3A%20%27margin-bottom%27%20put%3A%20anInteger%20asString%2C%20%27px%27'),
  68. messageSends: ["cssAt:put:", "asJQuery", unescape("%2C"), "asString"],
  69. referencedClasses: []
  70. }),
  71. smalltalk.TabManager);
  72. smalltalk.addMethod(
  73. '_onResize_',
  74. smalltalk.method({
  75. selector: 'onResize:',
  76. category: 'actions',
  77. fn: function (aBlock){
  78. var self=this;
  79. jQuery('#jtalk').resizable({
  80. handles: 'n',
  81. resize: aBlock,
  82. minHeight: 230
  83. });
  84. return self;},
  85. source: unescape('onResize%3A%20aBlock%0A%20%20%20%20%3CjQuery%28%27%23jtalk%27%29.resizable%28%7B%0A%09handles%3A%20%27n%27%2C%20%0A%09resize%3A%20aBlock%2C%0A%09minHeight%3A%20230%0A%7D%29%3E'),
  86. messageSends: [],
  87. referencedClasses: []
  88. }),
  89. smalltalk.TabManager);
  90. smalltalk.addMethod(
  91. '_onWindowResize_',
  92. smalltalk.method({
  93. selector: 'onWindowResize:',
  94. category: 'actions',
  95. fn: function (aBlock){
  96. var self=this;
  97. jQuery(window).resize(aBlock);
  98. return self;},
  99. source: unescape('onWindowResize%3A%20aBlock%0A%20%20%20%20%3CjQuery%28window%29.resize%28aBlock%29%3E'),
  100. messageSends: [],
  101. referencedClasses: []
  102. }),
  103. smalltalk.TabManager);
  104. smalltalk.addMethod(
  105. '_open',
  106. smalltalk.method({
  107. selector: 'open',
  108. category: 'actions',
  109. fn: function (){
  110. var self=this;
  111. (($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;})]);
  112. return self;},
  113. source: unescape('open%0A%20%20%20%20opened%20ifFalse%3A%20%5B%0A%09%27body%27%20asJQuery%20addClass%3A%20%27jtalkBody%27.%0A%09%27%23jtalk%27%20asJQuery%20show.%0A%09ul%20asJQuery%20show.%0A%09self%20updateBodyMargin.%0A%09selectedTab%20show.%0A%09opened%20%3A%3D%20true%5D'),
  114. messageSends: ["ifFalse:", "addClass:", "asJQuery", "show", "updateBodyMargin"],
  115. referencedClasses: []
  116. }),
  117. smalltalk.TabManager);
  118. smalltalk.addMethod(
  119. '_close',
  120. smalltalk.method({
  121. selector: 'close',
  122. category: 'actions',
  123. fn: function (){
  124. var self=this;
  125. (($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;})]);
  126. return self;},
  127. source: unescape('close%0A%20%20%20%20opened%20ifTrue%3A%20%5B%0A%09%27%23jtalk%27%20asJQuery%20hide.%0A%09ul%20asJQuery%20hide.%0A%09selectedTab%20hide.%0A%09self%20removeBodyMargin.%0A%09%27body%27%20asJQuery%20removeClass%3A%20%27jtalkBody%27.%0A%09opened%20%3A%3D%20false%5D'),
  128. messageSends: ["ifTrue:", "hide", "asJQuery", "removeBodyMargin", "removeClass:"],
  129. referencedClasses: []
  130. }),
  131. smalltalk.TabManager);
  132. smalltalk.addMethod(
  133. '_newBrowserTab',
  134. smalltalk.method({
  135. selector: 'newBrowserTab',
  136. category: 'actions',
  137. fn: function (){
  138. var self=this;
  139. smalltalk.send((smalltalk.Browser || Browser), "_open", []);
  140. return self;},
  141. source: unescape('newBrowserTab%0A%20%20%20%20Browser%20open'),
  142. messageSends: ["open"],
  143. referencedClasses: []
  144. }),
  145. smalltalk.TabManager);
  146. smalltalk.addMethod(
  147. '_selectTab_',
  148. smalltalk.method({
  149. selector: 'selectTab:',
  150. category: 'actions',
  151. fn: function (aWidget){
  152. var self=this;
  153. smalltalk.send(self, "_open", []);
  154. self['@selectedTab']=aWidget;
  155. smalltalk.send(smalltalk.send(self, "_tabs", []), "_do_", [(function(each){return smalltalk.send(each, "_hide", []);})]);
  156. smalltalk.send(aWidget, "_show", []);
  157. smalltalk.send(self, "_update", []);
  158. return self;},
  159. source: unescape('selectTab%3A%20aWidget%0A%20%20%20%20self%20open.%0A%20%20%20%20selectedTab%20%3A%3D%20aWidget.%0A%20%20%20%20self%20tabs%20do%3A%20%5B%3Aeach%20%7C%0A%09each%20hide%5D.%0A%20%20%20%20aWidget%20show.%0A%09%0A%20%20%20%20self%20update'),
  160. messageSends: ["open", "do:", "tabs", "hide", "show", "update"],
  161. referencedClasses: []
  162. }),
  163. smalltalk.TabManager);
  164. smalltalk.addMethod(
  165. '_closeTab_',
  166. smalltalk.method({
  167. selector: 'closeTab:',
  168. category: 'actions',
  169. fn: function (aWidget){
  170. var self=this;
  171. smalltalk.send(self, "_removeTab_", [aWidget]);
  172. smalltalk.send(self, "_selectTab_", [smalltalk.send(smalltalk.send(self, "_tabs", []), "_last", [])]);
  173. smalltalk.send(aWidget, "_remove", []);
  174. smalltalk.send(self, "_update", []);
  175. return self;},
  176. source: unescape('closeTab%3A%20aWidget%0A%20%20%20%20self%20removeTab%3A%20aWidget.%0A%20%20%20%20self%20selectTab%3A%20self%20tabs%20last.%0A%20%20%20%20aWidget%20remove.%0A%20%20%20%20self%20update'),
  177. messageSends: ["removeTab:", "selectTab:", "last", "tabs", "remove", "update"],
  178. referencedClasses: []
  179. }),
  180. smalltalk.TabManager);
  181. smalltalk.addMethod(
  182. '_addTab_',
  183. smalltalk.method({
  184. selector: 'addTab:',
  185. category: 'adding/Removing',
  186. fn: function (aWidget){
  187. var self=this;
  188. smalltalk.send(smalltalk.send(self, "_tabs", []), "_add_", [aWidget]);
  189. smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_append_", [aWidget]);
  190. smalltalk.send(aWidget, "_hide", []);
  191. return self;},
  192. source: unescape('addTab%3A%20aWidget%0A%20%20%20%20self%20tabs%20add%3A%20aWidget.%0A%20%20%20%20%27%23jtalk%27%20asJQuery%20append%3A%20aWidget.%0A%20%20%20%20aWidget%20hide'),
  193. messageSends: ["add:", "tabs", "append:", "asJQuery", "hide"],
  194. referencedClasses: []
  195. }),
  196. smalltalk.TabManager);
  197. smalltalk.addMethod(
  198. '_removeTab_',
  199. smalltalk.method({
  200. selector: 'removeTab:',
  201. category: 'adding/Removing',
  202. fn: function (aWidget){
  203. var self=this;
  204. smalltalk.send(smalltalk.send(self, "_tabs", []), "_remove_", [aWidget]);
  205. smalltalk.send(self, "_update", []);
  206. return self;},
  207. source: unescape('removeTab%3A%20aWidget%0A%20%20%20%20self%20tabs%20remove%3A%20aWidget.%0A%20%20%20%20self%20update'),
  208. messageSends: ["remove:", "tabs", "update"],
  209. referencedClasses: []
  210. }),
  211. smalltalk.TabManager);
  212. smalltalk.addMethod(
  213. '_initialize',
  214. smalltalk.method({
  215. selector: 'initialize',
  216. category: 'initialization',
  217. fn: function (){
  218. var self=this;
  219. smalltalk.send(self, "_initialize", [], smalltalk.Widget);
  220. self['@opened']=true;
  221. (function($rec){smalltalk.send($rec, "_append_", [self]);smalltalk.send($rec, "_append_", [(function(html){return smalltalk.send(smalltalk.send(html, "_div", []), "_id_", ["jtalk"]);})]);return smalltalk.send($rec, "_addClass_", ["jtalkBody"]);})(smalltalk.send("body", "_asJQuery", []));
  222. (function($rec){smalltalk.send($rec, "_addTab_", [smalltalk.send((smalltalk.Transcript || Transcript), "_current", [])]);smalltalk.send($rec, "_addTab_", [smalltalk.send((smalltalk.Workspace || Workspace), "_new", [])]);return smalltalk.send($rec, "_addTab_", [smalltalk.send((smalltalk.TestRunner || TestRunner), "_new", [])]);})(self);
  223. smalltalk.send(self, "_selectTab_", [smalltalk.send(smalltalk.send(self, "_tabs", []), "_last", [])]);
  224. (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);
  225. return self;},
  226. source: unescape('initialize%0A%20%20%20%20super%20initialize.%0A%20%20%20%20opened%20%3A%3D%20true.%0A%20%20%20%20%27body%27%20asJQuery%20%0A%09append%3A%20self%3B%0A%09append%3A%20%5B%3Ahtml%20%7C%20html%20div%20id%3A%20%27jtalk%27%5D%3B%0A%09addClass%3A%20%27jtalkBody%27.%0A%20%20%20%20self%20%0A%09addTab%3A%20Transcript%20current%3B%0A%09addTab%3A%20Workspace%20new%3B%0A%09addTab%3A%20TestRunner%20new.%0A%20%20%20%20self%20selectTab%3A%20self%20tabs%20last.%0A%20%20%20%20self%20%0A%09onResize%3A%20%5Bself%20updateBodyMargin%3B%20updatePosition%5D%3B%0A%09onWindowResize%3A%20%5Bself%20updatePosition%5D'),
  227. messageSends: ["initialize", "append:", "id:", "div", "addClass:", "asJQuery", "addTab:", "current", "new", "selectTab:", "last", "tabs", "onResize:", "updateBodyMargin", "updatePosition", "onWindowResize:"],
  228. referencedClasses: []
  229. }),
  230. smalltalk.TabManager);
  231. smalltalk.addMethod(
  232. '_renderOn_',
  233. smalltalk.method({
  234. selector: 'renderOn:',
  235. category: 'rendering',
  236. fn: function (html){
  237. var self=this;
  238. self['@ul']=(function($rec){smalltalk.send($rec, "_id_", ["jtalkTabs"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_ul", []));
  239. smalltalk.send(self, "_renderTabs", []);
  240. return self;},
  241. source: unescape('renderOn%3A%20html%0A%09ul%20%3A%3D%20html%20ul%0A%09%09id%3A%20%27jtalkTabs%27%3B%0A%09%09yourself.%0A%09self%20renderTabs'),
  242. messageSends: ["id:", "yourself", "ul", "renderTabs"],
  243. referencedClasses: []
  244. }),
  245. smalltalk.TabManager);
  246. smalltalk.addMethod(
  247. '_renderTabFor_on_',
  248. smalltalk.method({
  249. selector: 'renderTabFor:on:',
  250. category: 'rendering',
  251. fn: function (aWidget, html){
  252. var self=this;
  253. var li=nil;
  254. li=smalltalk.send(html, "_li", []);
  255. (($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"]);})]);
  256. smalltalk.send(li, "_with_", [(function(){(($receiver = smalltalk.send(aWidget, "_canBeClosed", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function($rec){smalltalk.send($rec, "_class_", ["close"]);smalltalk.send($rec, "_with_", ["x"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_closeTab_", [aWidget]);})]);})(smalltalk.send(html, "_span", []));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function($rec){smalltalk.send($rec, "_class_", ["close"]);smalltalk.send($rec, "_with_", ["x"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_closeTab_", [aWidget]);})]);})(smalltalk.send(html, "_span", []));})]);return (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(aWidget, "_label", [])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectTab_", [aWidget]);})]);})(smalltalk.send(html, "_span", []));})]);
  257. return self;},
  258. source: unescape('renderTabFor%3A%20aWidget%20on%3A%20html%0A%20%20%20%20%7C%20li%20%7C%0A%20%20%20%20li%20%3A%3D%20html%20li.%0A%20%20%20%20selectedTab%20%3D%20aWidget%20ifTrue%3A%20%5B%0A%09li%20class%3A%20%27selected%27%5D.%0A%20%20%20%20li%20with%3A%20%5B%0A%20%20%20%20%20%20%20%20aWidget%20canBeClosed%20ifTrue%3A%20%5B%0A%09%20%20%20%20html%20span%20%0A%09%09class%3A%20%27close%27%3B%0A%09%09with%3A%20%27x%27%3B%0A%09%09onClick%3A%20%5Bself%20closeTab%3A%20aWidget%5D%5D.%0A%09html%20span%0A%09%20%20%20%20with%3A%20aWidget%20label%3B%0A%09%20%20%20%20onClick%3A%20%5Bself%20selectTab%3A%20aWidget%5D%5D'),
  259. messageSends: ["li", "ifTrue:", unescape("%3D"), "class:", "with:", "canBeClosed", "onClick:", "closeTab:", "span", "label", "selectTab:"],
  260. referencedClasses: []
  261. }),
  262. smalltalk.TabManager);
  263. smalltalk.addMethod(
  264. '_renderTabs',
  265. smalltalk.method({
  266. selector: 'renderTabs',
  267. category: 'rendering',
  268. fn: function (){
  269. var self=this;
  270. smalltalk.send(self['@ul'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_class_", ["closeAll"]);smalltalk.send($rec, "_with_", ["x"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_close", []);})]);})(smalltalk.send(html, "_li", []));smalltalk.send(smalltalk.send(self, "_tabs", []), "_do_", [(function(each){return smalltalk.send(self, "_renderTabFor_on_", [each, html]);})]);return (function($rec){smalltalk.send($rec, "_class_", ["newtab"]);smalltalk.send($rec, "_with_", [unescape("%20+%20")]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_newBrowserTab", []);})]);})(smalltalk.send(html, "_li", []));})]);
  271. return self;},
  272. source: unescape('renderTabs%0A%09ul%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%20%20%20%20html%20li%20%0A%09%09class%3A%20%27closeAll%27%3B%0A%09%09with%3A%20%27x%27%3B%0A%09%09onClick%3A%20%5Bself%20close%5D.%0A%09%20%20%20%20self%20tabs%20do%3A%20%5B%3Aeach%20%7C%0A%09%09self%20renderTabFor%3A%20each%20on%3A%20html%5D.%0A%09%20%20%20%20html%20li%0A%09%09class%3A%20%27newtab%27%3B%0A%09%09with%3A%20%27%20+%20%27%3B%0A%09%09onClick%3A%20%5Bself%20newBrowserTab%5D%5D'),
  273. messageSends: ["contents:", "class:", "with:", "onClick:", "close", "li", "do:", "tabs", "renderTabFor:on:", "newBrowserTab"],
  274. referencedClasses: []
  275. }),
  276. smalltalk.TabManager);
  277. smalltalk.addMethod(
  278. '_update',
  279. smalltalk.method({
  280. selector: 'update',
  281. category: 'updating',
  282. fn: function (){
  283. var self=this;
  284. smalltalk.send(self, "_renderTabs", []);
  285. return self;},
  286. source: unescape('update%0A%09self%20renderTabs'),
  287. messageSends: ["renderTabs"],
  288. referencedClasses: []
  289. }),
  290. smalltalk.TabManager);
  291. smalltalk.TabManager.klass.iVarNames = ['current'];
  292. smalltalk.addMethod(
  293. '_current',
  294. smalltalk.method({
  295. selector: 'current',
  296. category: 'instance creation',
  297. fn: function (){
  298. var self=this;
  299. return (($receiver = self['@current']) == nil || $receiver == undefined) ? (function(){return self['@current']=smalltalk.send(self, "_new", [], smalltalk.Widget.klass);})() : $receiver;
  300. return self;},
  301. source: unescape('current%0A%20%20%20%20%5Ecurrent%20ifNil%3A%20%5Bcurrent%20%3A%3D%20super%20new%5D'),
  302. messageSends: ["ifNil:", "new"],
  303. referencedClasses: []
  304. }),
  305. smalltalk.TabManager.klass);
  306. smalltalk.addMethod(
  307. '_new',
  308. smalltalk.method({
  309. selector: 'new',
  310. category: 'instance creation',
  311. fn: function (){
  312. var self=this;
  313. smalltalk.send(self, "_shouldNotImplement", []);
  314. return self;},
  315. source: unescape('new%0A%20%20%20%20self%20shouldNotImplement'),
  316. messageSends: ["shouldNotImplement"],
  317. referencedClasses: []
  318. }),
  319. smalltalk.TabManager.klass);
  320. smalltalk.addClass('TabWidget', smalltalk.Widget, ['div'], 'IDE');
  321. smalltalk.addMethod(
  322. '_label',
  323. smalltalk.method({
  324. selector: 'label',
  325. category: 'accessing',
  326. fn: function (){
  327. var self=this;
  328. smalltalk.send(self, "_subclassResponsibility", []);
  329. return self;},
  330. source: unescape('label%0A%20%20%20%20self%20subclassResponsibility'),
  331. messageSends: ["subclassResponsibility"],
  332. referencedClasses: []
  333. }),
  334. smalltalk.TabWidget);
  335. smalltalk.addMethod(
  336. '_open',
  337. smalltalk.method({
  338. selector: 'open',
  339. category: 'actions',
  340. fn: function (){
  341. var self=this;
  342. smalltalk.send(smalltalk.send((smalltalk.TabManager || TabManager), "_current", []), "_addTab_", [self]);
  343. smalltalk.send(smalltalk.send((smalltalk.TabManager || TabManager), "_current", []), "_selectTab_", [self]);
  344. return self;},
  345. source: unescape('open%0A%20%20%20%20TabManager%20current%20addTab%3A%20self.%0A%20%20%20%20TabManager%20current%20selectTab%3A%20self'),
  346. messageSends: ["addTab:", "current", "selectTab:"],
  347. referencedClasses: [smalltalk.TabManager]
  348. }),
  349. smalltalk.TabWidget);
  350. smalltalk.addMethod(
  351. '_show',
  352. smalltalk.method({
  353. selector: 'show',
  354. category: 'actions',
  355. fn: function (){
  356. var self=this;
  357. smalltalk.send(smalltalk.send(self['@div'], "_asJQuery", []), "_show", []);
  358. return self;},
  359. source: unescape('show%0A%09div%20asJQuery%20show'),
  360. messageSends: ["show", "asJQuery"],
  361. referencedClasses: []
  362. }),
  363. smalltalk.TabWidget);
  364. smalltalk.addMethod(
  365. '_hide',
  366. smalltalk.method({
  367. selector: 'hide',
  368. category: 'actions',
  369. fn: function (){
  370. var self=this;
  371. smalltalk.send(smalltalk.send(self['@div'], "_asJQuery", []), "_hide", []);
  372. return self;},
  373. source: unescape('hide%0A%09div%20asJQuery%20hide'),
  374. messageSends: ["hide", "asJQuery"],
  375. referencedClasses: []
  376. }),
  377. smalltalk.TabWidget);
  378. smalltalk.addMethod(
  379. '_remove',
  380. smalltalk.method({
  381. selector: 'remove',
  382. category: 'actions',
  383. fn: function (){
  384. var self=this;
  385. smalltalk.send(smalltalk.send(self['@div'], "_asJQuery", []), "_remove", []);
  386. return self;},
  387. source: unescape('remove%0A%09div%20asJQuery%20remove'),
  388. messageSends: ["remove", "asJQuery"],
  389. referencedClasses: []
  390. }),
  391. smalltalk.TabWidget);
  392. smalltalk.addMethod(
  393. '_renderOn_',
  394. smalltalk.method({
  395. selector: 'renderOn:',
  396. category: 'rendering',
  397. fn: function (html){
  398. var self=this;
  399. self['@div']=(function($rec){smalltalk.send($rec, "_class_", ["jtalkTool"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_div", []));
  400. smalltalk.send(self, "_renderTab", []);
  401. return self;},
  402. source: unescape('renderOn%3A%20html%0A%09div%20%3A%3D%20html%20div%0A%09%09class%3A%20%27jtalkTool%27%3B%0A%09%09yourself.%0A%09self%20renderTab'),
  403. messageSends: ["class:", "yourself", "div", "renderTab"],
  404. referencedClasses: []
  405. }),
  406. smalltalk.TabWidget);
  407. smalltalk.addMethod(
  408. '_renderBoxOn_',
  409. smalltalk.method({
  410. selector: 'renderBoxOn:',
  411. category: 'rendering',
  412. fn: function (html){
  413. var self=this;
  414. return self;},
  415. source: unescape('renderBoxOn%3A%20html'),
  416. messageSends: [],
  417. referencedClasses: []
  418. }),
  419. smalltalk.TabWidget);
  420. smalltalk.addMethod(
  421. '_renderButtonsOn_',
  422. smalltalk.method({
  423. selector: 'renderButtonsOn:',
  424. category: 'rendering',
  425. fn: function (html){
  426. var self=this;
  427. return self;},
  428. source: unescape('renderButtonsOn%3A%20html'),
  429. messageSends: [],
  430. referencedClasses: []
  431. }),
  432. smalltalk.TabWidget);
  433. smalltalk.addMethod(
  434. '_update',
  435. smalltalk.method({
  436. selector: 'update',
  437. category: 'rendering',
  438. fn: function (){
  439. var self=this;
  440. smalltalk.send(self, "_renderTab", []);
  441. return self;},
  442. source: unescape('update%0A%09self%20renderTab'),
  443. messageSends: ["renderTab"],
  444. referencedClasses: []
  445. }),
  446. smalltalk.TabWidget);
  447. smalltalk.addMethod(
  448. '_renderTab',
  449. smalltalk.method({
  450. selector: 'renderTab',
  451. category: 'rendering',
  452. fn: function (){
  453. var self=this;
  454. 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", []));})]);
  455. return self;},
  456. source: unescape('renderTab%0A%09div%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%20%20%20%20html%20div%0A%09%09class%3A%20%27jt_box%27%3B%0A%09%09with%3A%20%5Bself%20renderBoxOn%3A%20html%5D.%0A%09%20%20%20%20html%20div%0A%09%09class%3A%20%27jt_buttons%27%3B%0A%09%09with%3A%20%5Bself%20renderButtonsOn%3A%20html%5D%5D'),
  457. messageSends: ["contents:", "class:", "with:", "renderBoxOn:", "div", "renderButtonsOn:"],
  458. referencedClasses: []
  459. }),
  460. smalltalk.TabWidget);
  461. smalltalk.addMethod(
  462. '_canBeClosed',
  463. smalltalk.method({
  464. selector: 'canBeClosed',
  465. category: 'testing',
  466. fn: function (){
  467. var self=this;
  468. return false;
  469. return self;},
  470. source: unescape('canBeClosed%0A%20%20%20%20%5Efalse'),
  471. messageSends: [],
  472. referencedClasses: []
  473. }),
  474. smalltalk.TabWidget);
  475. smalltalk.addMethod(
  476. '_open',
  477. smalltalk.method({
  478. selector: 'open',
  479. category: 'instance creation',
  480. fn: function (){
  481. var self=this;
  482. return smalltalk.send(smalltalk.send(self, "_new", []), "_open", []);
  483. return self;},
  484. source: unescape('open%0A%20%20%20%20%5Eself%20new%20open'),
  485. messageSends: ["open", "new"],
  486. referencedClasses: []
  487. }),
  488. smalltalk.TabWidget.klass);
  489. smalltalk.addClass('Workspace', smalltalk.TabWidget, ['sourceArea'], 'IDE');
  490. smalltalk.addMethod(
  491. '_label',
  492. smalltalk.method({
  493. selector: 'label',
  494. category: 'accessing',
  495. fn: function (){
  496. var self=this;
  497. return unescape("%5BWorkspace%5D");
  498. return self;},
  499. source: unescape('label%0A%20%20%20%20%5E%27%5BWorkspace%5D%27'),
  500. messageSends: [],
  501. referencedClasses: []
  502. }),
  503. smalltalk.Workspace);
  504. smalltalk.addMethod(
  505. '_clearWorkspace',
  506. smalltalk.method({
  507. selector: 'clearWorkspace',
  508. category: 'actions',
  509. fn: function (){
  510. var self=this;
  511. smalltalk.send(self['@sourceArea'], "_clear", []);
  512. return self;},
  513. source: unescape('clearWorkspace%0A%20%20%20%20sourceArea%20clear'),
  514. messageSends: ["clear"],
  515. referencedClasses: []
  516. }),
  517. smalltalk.Workspace);
  518. smalltalk.addMethod(
  519. '_doIt',
  520. smalltalk.method({
  521. selector: 'doIt',
  522. category: 'actions',
  523. fn: function (){
  524. var self=this;
  525. smalltalk.send(self['@sourceArea'], "_doIt", []);
  526. return self;},
  527. source: unescape('doIt%0A%20%20%20sourceArea%20doIt'),
  528. messageSends: ["doIt"],
  529. referencedClasses: []
  530. }),
  531. smalltalk.Workspace);
  532. smalltalk.addMethod(
  533. '_printIt',
  534. smalltalk.method({
  535. selector: 'printIt',
  536. category: 'actions',
  537. fn: function (){
  538. var self=this;
  539. smalltalk.send(self['@sourceArea'], "_printIt", []);
  540. return self;},
  541. source: unescape('printIt%0A%09sourceArea%20printIt'),
  542. messageSends: ["printIt"],
  543. referencedClasses: []
  544. }),
  545. smalltalk.Workspace);
  546. smalltalk.addMethod(
  547. '_inspectIt',
  548. smalltalk.method({
  549. selector: 'inspectIt',
  550. category: 'actions',
  551. fn: function (){
  552. var self=this;
  553. smalltalk.send(self['@sourceArea'], "_inspectIt", []);
  554. return self;},
  555. source: unescape('inspectIt%0A%20%20%20%20sourceArea%20inspectIt'),
  556. messageSends: ["inspectIt"],
  557. referencedClasses: []
  558. }),
  559. smalltalk.Workspace);
  560. smalltalk.addMethod(
  561. '_renderBoxOn_',
  562. smalltalk.method({
  563. selector: 'renderBoxOn:',
  564. category: 'rendering',
  565. fn: function (html){
  566. var self=this;
  567. self['@sourceArea']=smalltalk.send((smalltalk.SourceArea || SourceArea), "_new", []);
  568. smalltalk.send(self['@sourceArea'], "_renderOn_", [html]);
  569. return self;},
  570. source: unescape('renderBoxOn%3A%20html%0A%20%20%20%20sourceArea%20%3A%3D%20SourceArea%20new.%0A%20%20%20%20sourceArea%20renderOn%3A%20html'),
  571. messageSends: ["new", "renderOn:"],
  572. referencedClasses: []
  573. }),
  574. smalltalk.Workspace);
  575. smalltalk.addMethod(
  576. '_renderButtonsOn_',
  577. smalltalk.method({
  578. selector: 'renderButtonsOn:',
  579. category: 'rendering',
  580. fn: function (html){
  581. var self=this;
  582. (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", []));
  583. (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", []));
  584. (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", []));
  585. (function($rec){smalltalk.send($rec, "_with_", ["Clear workspace"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_clearWorkspace", []);})]);})(smalltalk.send(html, "_button", []));
  586. return self;},
  587. source: unescape('renderButtonsOn%3A%20html%0A%20%20%20%20html%20button%0A%09with%3A%20%27DoIt%27%3B%0A%09title%3A%20%27ctrl+d%27%3B%0A%09onClick%3A%20%5Bself%20doIt%5D.%0A%20%20%20%20html%20button%0A%09with%3A%20%27PrintIt%27%3B%0A%09title%3A%20%27ctrl+p%27%3B%0A%09onClick%3A%20%5Bself%20printIt%5D.%0A%20%20%20%20html%20button%0A%09with%3A%20%27InspectIt%27%3B%0A%09title%3A%20%27ctrl+i%27%3B%0A%09onClick%3A%20%5Bself%20inspectIt%5D.%0A%20%20%20%20html%20button%0A%09with%3A%20%27Clear%20workspace%27%3B%0A%09onClick%3A%20%5Bself%20clearWorkspace%5D'),
  588. messageSends: ["with:", "title:", "onClick:", "doIt", "button", "printIt", "inspectIt", "clearWorkspace"],
  589. referencedClasses: []
  590. }),
  591. smalltalk.Workspace);
  592. smalltalk.addClass('Transcript', smalltalk.TabWidget, ['textarea'], 'IDE');
  593. smalltalk.addMethod(
  594. '_label',
  595. smalltalk.method({
  596. selector: 'label',
  597. category: 'accessing',
  598. fn: function (){
  599. var self=this;
  600. return unescape("%5BTranscript%5D");
  601. return self;},
  602. source: unescape('label%0A%20%20%20%20%5E%27%5BTranscript%5D%27'),
  603. messageSends: [],
  604. referencedClasses: []
  605. }),
  606. smalltalk.Transcript);
  607. smalltalk.addMethod(
  608. '_show_',
  609. smalltalk.method({
  610. selector: 'show:',
  611. category: 'actions',
  612. fn: function (anObject){
  613. var self=this;
  614. smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val_", [smalltalk.send(smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val", []), "__comma", [smalltalk.send(anObject, "_asString", [])])]);
  615. return self;},
  616. source: unescape('show%3A%20anObject%0A%20%20%20%20textarea%20asJQuery%20val%3A%20textarea%20asJQuery%20val%2C%20anObject%20asString.'),
  617. messageSends: ["val:", "asJQuery", unescape("%2C"), "val", "asString"],
  618. referencedClasses: []
  619. }),
  620. smalltalk.Transcript);
  621. smalltalk.addMethod(
  622. '_cr',
  623. smalltalk.method({
  624. selector: 'cr',
  625. category: 'actions',
  626. fn: function (){
  627. var self=this;
  628. 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", [])])]);
  629. return self;},
  630. source: unescape('cr%0A%20%20%20%20textarea%20asJQuery%20val%3A%20textarea%20asJQuery%20val%2C%20String%20cr.'),
  631. messageSends: ["val:", "asJQuery", unescape("%2C"), "val", "cr"],
  632. referencedClasses: [smalltalk.String]
  633. }),
  634. smalltalk.Transcript);
  635. smalltalk.addMethod(
  636. '_clear',
  637. smalltalk.method({
  638. selector: 'clear',
  639. category: 'actions',
  640. fn: function (){
  641. var self=this;
  642. smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val_", [""]);
  643. return self;},
  644. source: unescape('clear%0A%20%20%20%20textarea%20asJQuery%20val%3A%20%27%27'),
  645. messageSends: ["val:", "asJQuery"],
  646. referencedClasses: []
  647. }),
  648. smalltalk.Transcript);
  649. smalltalk.addMethod(
  650. '_renderBoxOn_',
  651. smalltalk.method({
  652. selector: 'renderBoxOn:',
  653. category: 'rendering',
  654. fn: function (html){
  655. var self=this;
  656. self['@textarea']=smalltalk.send(html, "_textarea", []);
  657. smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_call_", ["tabby"]);
  658. (function($rec){smalltalk.send($rec, "_class_", ["jt_transcript"]);return smalltalk.send($rec, "_at_put_", ["spellcheck", "false"]);})(self['@textarea']);
  659. return self;},
  660. source: unescape('renderBoxOn%3A%20html%0A%20%20%20%20textarea%20%3A%3D%20html%20textarea.%0A%20%20%20%20textarea%20asJQuery%20call%3A%20%27tabby%27.%0A%20%20%20%20textarea%20%0A%09class%3A%20%27jt_transcript%27%3B%0A%09at%3A%20%27spellcheck%27%20put%3A%20%27false%27'),
  661. messageSends: ["textarea", "call:", "asJQuery", "class:", "at:put:"],
  662. referencedClasses: []
  663. }),
  664. smalltalk.Transcript);
  665. smalltalk.addMethod(
  666. '_renderButtonsOn_',
  667. smalltalk.method({
  668. selector: 'renderButtonsOn:',
  669. category: 'rendering',
  670. fn: function (html){
  671. var self=this;
  672. (function($rec){smalltalk.send($rec, "_with_", ["Clear transcript"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_clear", []);})]);})(smalltalk.send(html, "_button", []));
  673. return self;},
  674. source: unescape('renderButtonsOn%3A%20html%0A%20%20%20%20html%20button%0A%09with%3A%20%27Clear%20transcript%27%3B%0A%09onClick%3A%20%5Bself%20clear%5D'),
  675. messageSends: ["with:", "onClick:", "clear", "button"],
  676. referencedClasses: []
  677. }),
  678. smalltalk.Transcript);
  679. smalltalk.Transcript.klass.iVarNames = ['current'];
  680. smalltalk.addMethod(
  681. '_open',
  682. smalltalk.method({
  683. selector: 'open',
  684. category: 'instance creation',
  685. fn: function (){
  686. var self=this;
  687. (function($rec){smalltalk.send($rec, "_open", []);return smalltalk.send($rec, "_selectTab_", [smalltalk.send(self, "_current", [])]);})(smalltalk.send((smalltalk.TabManager || TabManager), "_current", []));
  688. return self;},
  689. source: unescape('open%0A%20%20%20%20TabManager%20current%20%0A%09open%3B%0A%09selectTab%3A%20self%20current'),
  690. messageSends: ["open", "selectTab:", "current"],
  691. referencedClasses: [smalltalk.TabManager]
  692. }),
  693. smalltalk.Transcript.klass);
  694. smalltalk.addMethod(
  695. '_new',
  696. smalltalk.method({
  697. selector: 'new',
  698. category: 'instance creation',
  699. fn: function (){
  700. var self=this;
  701. smalltalk.send(self, "_shouldNotImplement", []);
  702. return self;},
  703. source: unescape('new%0A%20%20%20%20self%20shouldNotImplement'),
  704. messageSends: ["shouldNotImplement"],
  705. referencedClasses: []
  706. }),
  707. smalltalk.Transcript.klass);
  708. smalltalk.addMethod(
  709. '_current',
  710. smalltalk.method({
  711. selector: 'current',
  712. category: 'instance creation',
  713. fn: function (){
  714. var self=this;
  715. return (($receiver = self['@current']) == nil || $receiver == undefined) ? (function(){return self['@current']=smalltalk.send(self, "_new", [], smalltalk.TabWidget.klass);})() : $receiver;
  716. return self;},
  717. source: unescape('current%0A%20%20%20%20%5Ecurrent%20ifNil%3A%20%5Bcurrent%20%3A%3D%20super%20new%5D'),
  718. messageSends: ["ifNil:", "new"],
  719. referencedClasses: []
  720. }),
  721. smalltalk.Transcript.klass);
  722. smalltalk.addMethod(
  723. '_show_',
  724. smalltalk.method({
  725. selector: 'show:',
  726. category: 'printing',
  727. fn: function (anObject){
  728. var self=this;
  729. smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [anObject]);
  730. return self;},
  731. source: unescape('show%3A%20anObject%0A%20%20%20%20self%20current%20show%3A%20anObject'),
  732. messageSends: ["show:", "current"],
  733. referencedClasses: []
  734. }),
  735. smalltalk.Transcript.klass);
  736. smalltalk.addMethod(
  737. '_cr',
  738. smalltalk.method({
  739. selector: 'cr',
  740. category: 'printing',
  741. fn: function (){
  742. var self=this;
  743. smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [smalltalk.send((smalltalk.String || String), "_cr", [])]);
  744. return self;},
  745. source: unescape('cr%0A%20%20%20%20self%20current%20show%3A%20String%20cr'),
  746. messageSends: ["show:", "current", "cr"],
  747. referencedClasses: [smalltalk.String]
  748. }),
  749. smalltalk.Transcript.klass);
  750. smalltalk.addMethod(
  751. '_clear',
  752. smalltalk.method({
  753. selector: 'clear',
  754. category: 'printing',
  755. fn: function (){
  756. var self=this;
  757. smalltalk.send(smalltalk.send(self, "_current", []), "_clear", []);
  758. return self;},
  759. source: unescape('clear%0A%20%20%20%20self%20current%20clear'),
  760. messageSends: ["clear", "current"],
  761. referencedClasses: []
  762. }),
  763. smalltalk.Transcript.klass);
  764. smalltalk.addClass('Browser', smalltalk.TabWidget, ['selectedCategory', 'selectedClass', 'selectedProtocol', 'selectedMethod', 'commitButton', 'categoriesList', 'classesList', 'protocolsList', 'methodsList', 'sourceArea', 'tabsList', 'selectedTab', 'saveButton', 'classButtons', 'methodButtons', 'unsavedChanges', 'input'], 'IDE');
  765. smalltalk.addMethod(
  766. '_label',
  767. smalltalk.method({
  768. selector: 'label',
  769. category: 'accessing',
  770. fn: function (){
  771. var self=this;
  772. return (($receiver = self['@selectedClass']) == nil || $receiver == undefined) ? (function(){return unescape("Browser%20%28nil%29");})() : (function(){return smalltalk.send(self['@selectedClass'], "_name", []);})();
  773. return self;},
  774. source: unescape('label%0A%20%20%20%20%5EselectedClass%20%0A%09ifNil%3A%20%5B%27Browser%20%28nil%29%27%5D%0A%09ifNotNil%3A%20%5BselectedClass%20name%5D'),
  775. messageSends: ["ifNil:ifNotNil:", "name"],
  776. referencedClasses: []
  777. }),
  778. smalltalk.Browser);
  779. smalltalk.addMethod(
  780. '_categories',
  781. smalltalk.method({
  782. selector: 'categories',
  783. category: 'accessing',
  784. fn: function (){
  785. var self=this;
  786. var categories=nil;
  787. categories=smalltalk.send((smalltalk.Array || Array), "_new", []);
  788. smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_classes", []), "_do_", [(function(each){return (($receiver = smalltalk.send(categories, "_includes_", [smalltalk.send(each, "_category", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(categories, "_add_", [smalltalk.send(each, "_category", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(categories, "_add_", [smalltalk.send(each, "_category", [])]);})]);})]);
  789. return smalltalk.send(categories, "_sort", []);
  790. return self;},
  791. source: unescape('categories%0A%20%20%20%20%7C%20categories%20%7C%0A%20%20%20%20categories%20%3A%3D%20Array%20new.%0A%20%20%20%20Smalltalk%20current%20classes%20do%3A%20%5B%3Aeach%20%7C%0A%09%28categories%20includes%3A%20each%20category%29%20ifFalse%3A%20%5B%0A%09%20%20%20%20categories%20add%3A%20each%20category%5D%5D.%0A%20%20%20%20%5Ecategories%20sort'),
  792. messageSends: ["new", "do:", "classes", "current", "ifFalse:", "includes:", "category", "add:", "sort"],
  793. referencedClasses: [smalltalk.Array,smalltalk.Smalltalk]
  794. }),
  795. smalltalk.Browser);
  796. smalltalk.addMethod(
  797. '_classes',
  798. smalltalk.method({
  799. selector: 'classes',
  800. category: 'accessing',
  801. fn: function (){
  802. var self=this;
  803. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_classes", []), "_select_", [(function(each){return smalltalk.send(smalltalk.send(each, "_category", []), "__eq", [self['@selectedCategory']]);})]), "_sort_", [(function(a, b){return (($receiver = smalltalk.send(a, "_name", [])).klass === smalltalk.Number) ? $receiver <smalltalk.send(b, "_name", []) : smalltalk.send($receiver, "__lt", [smalltalk.send(b, "_name", [])]);})]);
  804. return self;},
  805. source: unescape('classes%0A%20%20%20%20%5E%28Smalltalk%20current%20classes%20%0A%09select%3A%20%5B%3Aeach%20%7C%20each%20category%20%3D%20selectedCategory%5D%29%0A%09sort%3A%20%5B%3Aa%20%3Ab%20%7C%20a%20name%20%3C%20b%20name%5D'),
  806. messageSends: ["sort:", "select:", "classes", "current", unescape("%3D"), "category", unescape("%3C"), "name"],
  807. referencedClasses: [smalltalk.Smalltalk]
  808. }),
  809. smalltalk.Browser);
  810. smalltalk.addMethod(
  811. '_protocols',
  812. smalltalk.method({
  813. selector: 'protocols',
  814. category: 'accessing',
  815. fn: function (){
  816. var self=this;
  817. try{var klass=nil;
  818. (($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;
  819. (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send((smalltalk.Array || Array), "_new", [])}})})();
  820. return self;
  821. } catch(e) {if(e.name === 'stReturn' && e.selector === '_protocols'){return e.fn()} throw(e)}},
  822. source: unescape('protocols%0A%20%20%20%20%7C%20klass%20%7C%0A%20%20%20%20selectedClass%20ifNotNil%3A%20%5B%0A%09selectedTab%20%3D%20%23comment%20ifTrue%3A%20%5B%5E%23%28%29%5D.%0A%09klass%20%3A%3D%20selectedTab%20%3D%20%23instance%0A%09%20%20%20%20ifTrue%3A%20%5BselectedClass%5D%0A%09%20%20%20%20ifFalse%3A%20%5BselectedClass%20class%5D.%0A%09klass%20methodDictionary%20isEmpty%20ifTrue%3A%20%5B%0A%09%20%20%20%20%5EArray%20with%3A%20%27not%20yet%20classified%27%5D.%0A%09%5Eklass%20protocols%5D.%0A%20%20%20%20%5EArray%20new'),
  823. messageSends: ["ifNotNil:", "ifTrue:", unescape("%3D"), "ifTrue:ifFalse:", "class", "isEmpty", "methodDictionary", "with:", "protocols", "new"],
  824. referencedClasses: [smalltalk.Array]
  825. }),
  826. smalltalk.Browser);
  827. smalltalk.addMethod(
  828. '_methods',
  829. smalltalk.method({
  830. selector: 'methods',
  831. category: 'accessing',
  832. fn: function (){
  833. var self=this;
  834. try{var klass=nil;
  835. (($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 []}})})();})]);
  836. (($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;
  837. (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", [])]);})])}})})();
  838. return self;
  839. } catch(e) {if(e.name === 'stReturn' && e.selector === '_methods'){return e.fn()} throw(e)}},
  840. source: unescape('methods%0A%20%20%20%20%7C%20klass%20%7C%0A%20%20%20%20selectedTab%20%3D%20%23comment%20ifTrue%3A%20%5B%5E%23%28%29%5D.%0A%20%20%20%20selectedClass%20ifNotNil%3A%20%5B%0A%09klass%20%3A%3D%20selectedTab%20%3D%20%23instance%0A%09%20%20%20%20ifTrue%3A%20%5BselectedClass%5D%0A%09%20%20%20%20ifFalse%3A%20%5BselectedClass%20class%5D%5D.%0A%20%20%20%20%5E%28selectedProtocol%20%0A%09ifNil%3A%20%5B%0A%09%20%20%20%20klass%20%0A%09%09ifNil%3A%20%5B%23%28%29%5D%20%0A%09%09ifNotNil%3A%20%5Bklass%20methodDictionary%20values%5D%5D%0A%09ifNotNil%3A%20%5B%0A%09%20%20%20%20klass%20methodDictionary%20values%20select%3A%20%5B%3Aeach%20%7C%0A%09%09each%20category%20%3D%20selectedProtocol%5D%5D%29%20sort%3A%20%5B%3Aa%20%3Ab%20%7C%20a%20selector%20%3C%20b%20selector%5D'),
  841. messageSends: ["ifTrue:", unescape("%3D"), "ifNotNil:", "ifTrue:ifFalse:", "class", "sort:", "ifNil:ifNotNil:", "values", "methodDictionary", "select:", "category", unescape("%3C"), "selector"],
  842. referencedClasses: []
  843. }),
  844. smalltalk.Browser);
  845. smalltalk.addMethod(
  846. '_source',
  847. smalltalk.method({
  848. selector: 'source',
  849. category: 'accessing',
  850. fn: function (){
  851. var self=this;
  852. 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", []);})])}})})();})]);
  853. (function(){throw({name: 'stReturn', selector: '_source', fn: function(){return (($receiver = self['@selectedClass']) == nil || $receiver == undefined) ? (function(){return "";})() : (function(){return smalltalk.send(self, "_classCommentSource", []);})()}})})();
  854. return self;
  855. } catch(e) {if(e.name === 'stReturn' && e.selector === '_source'){return e.fn()} throw(e)}},
  856. source: unescape('source%0A%20%20%20%20selectedTab%20%3D%20%23comment%20ifFalse%3A%20%5B%0A%09%5E%28selectedProtocol%20notNil%20or%3A%20%5BselectedMethod%20notNil%5D%29%0A%09%20%20%20%20ifFalse%3A%20%5Bself%20declarationSource%5D%0A%09%20%20%20%20ifTrue%3A%20%5Bself%20methodSource%5D%5D.%0A%20%20%20%20%5EselectedClass%0A%09ifNil%3A%20%5B%27%27%5D%0A%09ifNotNil%3A%20%5Bself%20classCommentSource%5D'),
  857. messageSends: ["ifFalse:", unescape("%3D"), "ifFalse:ifTrue:", "or:", "notNil", "declarationSource", "methodSource", "ifNil:ifNotNil:", "classCommentSource"],
  858. referencedClasses: []
  859. }),
  860. smalltalk.Browser);
  861. smalltalk.addMethod(
  862. '_methodSource',
  863. smalltalk.method({
  864. selector: 'methodSource',
  865. category: 'accessing',
  866. fn: function (){
  867. var self=this;
  868. return (($receiver = self['@selectedMethod']) == nil || $receiver == undefined) ? (function(){return smalltalk.send(self, "_dummyMethodSource", []);})() : (function(){return smalltalk.send(self['@selectedMethod'], "_source", []);})();
  869. return self;},
  870. source: unescape('methodSource%0A%20%20%20%20%5EselectedMethod%0A%09ifNil%3A%20%5Bself%20dummyMethodSource%5D%0A%09ifNotNil%3A%20%5BselectedMethod%20source%5D'),
  871. messageSends: ["ifNil:ifNotNil:", "dummyMethodSource", "source"],
  872. referencedClasses: []
  873. }),
  874. smalltalk.Browser);
  875. smalltalk.addMethod(
  876. '_dummyMethodSource',
  877. smalltalk.method({
  878. selector: 'dummyMethodSource',
  879. category: 'accessing',
  880. fn: function (){
  881. var self=this;
  882. return unescape("messageSelectorAndArgumentNames%0A%09%22comment%20stating%20purpose%20of%20message%22%0A%0A%09%7C%20temporary%20variable%20names%20%7C%0A%09statements");
  883. return self;},
  884. source: unescape('dummyMethodSource%0A%20%20%20%20%5E%27messageSelectorAndArgumentNames%0A%09%22comment%20stating%20purpose%20of%20message%22%0A%0A%09%7C%20temporary%20variable%20names%20%7C%0A%09statements%27'),
  885. messageSends: [],
  886. referencedClasses: []
  887. }),
  888. smalltalk.Browser);
  889. smalltalk.addMethod(
  890. '_declarationSource',
  891. smalltalk.method({
  892. selector: 'declarationSource',
  893. category: 'accessing',
  894. fn: function (){
  895. var self=this;
  896. 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", []);})]);
  897. return self;},
  898. source: unescape('declarationSource%0A%20%20%20%20%5EselectedTab%20%3D%20%23instance%0A%09ifTrue%3A%20%5Bself%20classDeclarationSource%5D%0A%09ifFalse%3A%20%5Bself%20metaclassDeclarationSource%5D'),
  899. messageSends: ["ifTrue:ifFalse:", unescape("%3D"), "classDeclarationSource", "metaclassDeclarationSource"],
  900. referencedClasses: []
  901. }),
  902. smalltalk.Browser);
  903. smalltalk.addMethod(
  904. '_classDeclarationSource',
  905. smalltalk.method({
  906. selector: 'classDeclarationSource',
  907. category: 'accessing',
  908. fn: function (){
  909. var self=this;
  910. var stream=nil;
  911. stream=smalltalk.send("", "_writeStream", []);
  912. (($receiver = self['@selectedClass']) != nil && $receiver != undefined) ? (function(){(function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(self['@selectedClass'], "_superclass", []), "_asString", [])]);smalltalk.send($rec, "_nextPutAll_", [unescape("%20subclass%3A%20%23")]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self['@selectedClass'], "_name", [])]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send((smalltalk.String || String), "_lf", []), "__comma", [smalltalk.send((smalltalk.String || String), "_tab", [])])]);return smalltalk.send($rec, "_nextPutAll_", [unescape("instanceVariableNames%3A%20%27")]);})(stream);smalltalk.send(smalltalk.send(self['@selectedClass'], "_instanceVariableNames", []), "_do_separatedBy_", [(function(each){return smalltalk.send(stream, "_nextPutAll_", [each]);}), (function(){return smalltalk.send(stream, "_nextPutAll_", [" "]);})]);return (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("%27"), "__comma", [smalltalk.send((smalltalk.String || String), "_lf", [])]), "__comma", [smalltalk.send((smalltalk.String || String), "_tab", [])])]);smalltalk.send($rec, "_nextPutAll_", [unescape("category%3A%20%27")]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self['@selectedClass'], "_category", [])]);return smalltalk.send($rec, "_nextPutAll_", [unescape("%27")]);})(stream);})() : nil;
  913. return smalltalk.send(stream, "_contents", []);
  914. return self;},
  915. source: unescape('classDeclarationSource%0A%20%20%20%20%7C%20stream%20%7C%0A%20%20%20%20stream%20%3A%3D%20%27%27%20writeStream.%0A%20%20%20%20selectedClass%20ifNotNil%3A%20%5B%0A%09stream%20%0A%09%20%20%20%20nextPutAll%3A%20selectedClass%20superclass%20asString%3B%0A%09%20%20%20%20nextPutAll%3A%20%27%20subclass%3A%20%23%27%3B%0A%09%20%20%20%20nextPutAll%3A%20selectedClass%20name%3B%0A%09%20%20%20%20nextPutAll%3A%20String%20lf%2C%20String%20tab%3B%0A%09%20%20%20%20nextPutAll%3A%20%27instanceVariableNames%3A%20%27%27%27.%0A%09selectedClass%20instanceVariableNames%20%0A%09%20%20%20%20do%3A%20%5B%3Aeach%20%7C%20stream%20nextPutAll%3A%20each%5D%20%0A%09%20%20%20%20separatedBy%3A%20%5Bstream%20nextPutAll%3A%20%27%20%27%5D.%0A%09stream%0A%09%20%20%20%20nextPutAll%3A%20%27%27%27%27%2C%20String%20lf%2C%20String%20tab%3B%0A%09%20%20%20%20nextPutAll%3A%20%27category%3A%20%27%27%27%3B%0A%09%20%20%20%20nextPutAll%3A%20selectedClass%20category%3B%0A%09%20%20%20%20nextPutAll%3A%20%27%27%27%27%5D.%0A%20%20%20%20%5Estream%20contents'),
  916. messageSends: ["writeStream", "ifNotNil:", "nextPutAll:", "asString", "superclass", "name", unescape("%2C"), "lf", "tab", "do:separatedBy:", "instanceVariableNames", "category", "contents"],
  917. referencedClasses: [smalltalk.String]
  918. }),
  919. smalltalk.Browser);
  920. smalltalk.addMethod(
  921. '_metaclassDeclarationSource',
  922. smalltalk.method({
  923. selector: 'metaclassDeclarationSource',
  924. category: 'accessing',
  925. fn: function (){
  926. var self=this;
  927. var stream=nil;
  928. stream=smalltalk.send("", "_writeStream", []);
  929. (($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;
  930. return smalltalk.send(stream, "_contents", []);
  931. return self;},
  932. source: unescape('metaclassDeclarationSource%0A%20%20%20%20%7C%20stream%20%7C%0A%20%20%20%20stream%20%3A%3D%20%27%27%20writeStream.%0A%20%20%20%20selectedClass%20ifNotNil%3A%20%5B%0A%09stream%20%0A%09%20%20%20%20nextPutAll%3A%20selectedClass%20asString%3B%0A%09%20%20%20%20nextPutAll%3A%20%27%20class%20%27%3B%0A%09%20%20%20%20nextPutAll%3A%20%27instanceVariableNames%3A%20%27%27%27.%0A%09selectedClass%20class%20instanceVariableNames%0A%09%20%20%20%20do%3A%20%5B%3Aeach%20%7C%20stream%20nextPutAll%3A%20each%5D%0A%09%20%20%20%20separatedBy%3A%20%5Bstream%20nextPutAll%3A%20%27%20%27%5D.%0A%09stream%20nextPutAll%3A%20%27%27%27%27%5D.%0A%20%20%20%20%5Estream%20contents'),
  933. messageSends: ["writeStream", "ifNotNil:", "nextPutAll:", "asString", "do:separatedBy:", "instanceVariableNames", "class", "contents"],
  934. referencedClasses: []
  935. }),
  936. smalltalk.Browser);
  937. smalltalk.addMethod(
  938. '_classCommentSource',
  939. smalltalk.method({
  940. selector: 'classCommentSource',
  941. category: 'accessing',
  942. fn: function (){
  943. var self=this;
  944. return smalltalk.send(self['@selectedClass'], "_comment", []);
  945. return self;},
  946. source: unescape('classCommentSource%0A%20%20%20%20%5EselectedClass%20comment'),
  947. messageSends: ["comment"],
  948. referencedClasses: []
  949. }),
  950. smalltalk.Browser);
  951. smalltalk.addMethod(
  952. '_selectedClass',
  953. smalltalk.method({
  954. selector: 'selectedClass',
  955. category: 'accessing',
  956. fn: function (){
  957. var self=this;
  958. return self['@selectedClass'];
  959. return self;},
  960. source: unescape('selectedClass%0A%09%5EselectedClass'),
  961. messageSends: [],
  962. referencedClasses: []
  963. }),
  964. smalltalk.Browser);
  965. smalltalk.addMethod(
  966. '_disableSaveButton',
  967. smalltalk.method({
  968. selector: 'disableSaveButton',
  969. category: 'actions',
  970. fn: function (){
  971. var self=this;
  972. (($receiver = self['@saveButton']) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self['@saveButton'], "_at_put_", ["disabled", true]);})() : nil;
  973. self['@unsavedChanges']=false;
  974. return self;},
  975. source: unescape('disableSaveButton%0A%20%20%20%20saveButton%20ifNotNil%3A%20%5B%0A%09saveButton%20at%3A%20%27disabled%27%20put%3A%20true%5D.%0A%20%20%20%20unsavedChanges%20%3A%3D%20false'),
  976. messageSends: ["ifNotNil:", "at:put:"],
  977. referencedClasses: []
  978. }),
  979. smalltalk.Browser);
  980. smalltalk.addMethod(
  981. '_hideClassButtons',
  982. smalltalk.method({
  983. selector: 'hideClassButtons',
  984. category: 'actions',
  985. fn: function (){
  986. var self=this;
  987. smalltalk.send(smalltalk.send(self['@classButtons'], "_asJQuery", []), "_hide", []);
  988. return self;},
  989. source: unescape('hideClassButtons%0A%20%20%20%20classButtons%20asJQuery%20hide'),
  990. messageSends: ["hide", "asJQuery"],
  991. referencedClasses: []
  992. }),
  993. smalltalk.Browser);
  994. smalltalk.addMethod(
  995. '_showClassButtons',
  996. smalltalk.method({
  997. selector: 'showClassButtons',
  998. category: 'actions',
  999. fn: function (){
  1000. var self=this;
  1001. smalltalk.send(smalltalk.send(self['@classButtons'], "_asJQuery", []), "_show", []);
  1002. return self;},
  1003. source: unescape('showClassButtons%0A%20%20%20%20classButtons%20asJQuery%20show'),
  1004. messageSends: ["show", "asJQuery"],
  1005. referencedClasses: []
  1006. }),
  1007. smalltalk.Browser);
  1008. smalltalk.addMethod(
  1009. '_hideMethodButtons',
  1010. smalltalk.method({
  1011. selector: 'hideMethodButtons',
  1012. category: 'actions',
  1013. fn: function (){
  1014. var self=this;
  1015. smalltalk.send(smalltalk.send(self['@methodButtons'], "_asJQuery", []), "_hide", []);
  1016. return self;},
  1017. source: unescape('hideMethodButtons%0A%20%20%20%20methodButtons%20asJQuery%20hide'),
  1018. messageSends: ["hide", "asJQuery"],
  1019. referencedClasses: []
  1020. }),
  1021. smalltalk.Browser);
  1022. smalltalk.addMethod(
  1023. '_showMethodButtons',
  1024. smalltalk.method({
  1025. selector: 'showMethodButtons',
  1026. category: 'actions',
  1027. fn: function (){
  1028. var self=this;
  1029. smalltalk.send(smalltalk.send(self['@methodButtons'], "_asJQuery", []), "_show", []);
  1030. return self;},
  1031. source: unescape('showMethodButtons%0A%20%20%20%20methodButtons%20asJQuery%20show'),
  1032. messageSends: ["show", "asJQuery"],
  1033. referencedClasses: []
  1034. }),
  1035. smalltalk.Browser);
  1036. smalltalk.addMethod(
  1037. '_compile',
  1038. smalltalk.method({
  1039. selector: 'compile',
  1040. category: 'actions',
  1041. fn: function (){
  1042. var self=this;
  1043. smalltalk.send(self, "_disableSaveButton", []);
  1044. (($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", []);})]);})]);
  1045. return self;},
  1046. source: unescape('compile%0A%20%20%20%20self%20disableSaveButton.%0A%20%20%20%20selectedTab%20%3D%20%23comment%20%0A%09ifTrue%3A%20%5B%0A%09%09%09selectedClass%20ifNotNil%3A%20%5B%0A%09%20%20%20%20%09%09%09self%20compileClassComment%5D%09%5D%0A%09ifFalse%3A%20%5B%0A%09%09%20%20%20%20%09%28selectedProtocol%20notNil%20or%3A%20%5BselectedMethod%20notNil%5D%29%0A%09%09%09%09ifFalse%3A%20%5Bself%20compileDefinition%5D%0A%09%09%09%09ifTrue%3A%20%5Bself%20compileMethodDefinition%5D%09%5D%20%20'),
  1047. messageSends: ["disableSaveButton", "ifTrue:ifFalse:", unescape("%3D"), "ifNotNil:", "compileClassComment", "ifFalse:ifTrue:", "or:", "notNil", "compileDefinition", "compileMethodDefinition"],
  1048. referencedClasses: []
  1049. }),
  1050. smalltalk.Browser);
  1051. smalltalk.addMethod(
  1052. '_compileClassComment',
  1053. smalltalk.method({
  1054. selector: 'compileClassComment',
  1055. category: 'actions',
  1056. fn: function (){
  1057. var self=this;
  1058. smalltalk.send(self['@selectedClass'], "_comment_", [smalltalk.send(self['@sourceArea'], "_val", [])]);
  1059. return self;},
  1060. source: unescape('compileClassComment%0A%20%20%20%20selectedClass%20comment%3A%20sourceArea%20val'),
  1061. messageSends: ["comment:", "val"],
  1062. referencedClasses: []
  1063. }),
  1064. smalltalk.Browser);
  1065. smalltalk.addMethod(
  1066. '_compileMethodDefinition',
  1067. smalltalk.method({
  1068. selector: 'compileMethodDefinition',
  1069. category: 'actions',
  1070. fn: function (){
  1071. var self=this;
  1072. (($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", [])]);})]);
  1073. return self;},
  1074. source: unescape('compileMethodDefinition%0A%20%20%20%20selectedTab%20%3D%20%23instance%0A%09ifTrue%3A%20%5Bself%20compileMethodDefinitionFor%3A%20selectedClass%5D%0A%09ifFalse%3A%20%5Bself%20compileMethodDefinitionFor%3A%20selectedClass%20class%5D'),
  1075. messageSends: ["ifTrue:ifFalse:", unescape("%3D"), "compileMethodDefinitionFor:", "class"],
  1076. referencedClasses: []
  1077. }),
  1078. smalltalk.Browser);
  1079. smalltalk.addMethod(
  1080. '_compileMethodDefinitionFor_',
  1081. smalltalk.method({
  1082. selector: 'compileMethodDefinitionFor:',
  1083. category: 'actions',
  1084. fn: function (aClass){
  1085. var self=this;
  1086. try{var compiler=nil;
  1087. var method=nil;
  1088. var source=nil;
  1089. var node=nil;
  1090. source=smalltalk.send(self['@sourceArea'], "_val", []);
  1091. (($receiver = self['@selectedProtocol']) == nil || $receiver == undefined) ? (function(){return self['@selectedProtocol']=smalltalk.send(self['@selectedMethod'], "_category", []);})() : $receiver;
  1092. compiler=smalltalk.send((smalltalk.Compiler || Compiler), "_new", []);
  1093. smalltalk.send(compiler, "_source_", [source]);
  1094. node=smalltalk.send(compiler, "_parse_", [source]);
  1095. (($receiver = smalltalk.send(node, "_isParseFailure", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_compileMethodDefinitionFor_', fn: function(){return smalltalk.send(self, "_alert_", [smalltalk.send(smalltalk.send(smalltalk.send("PARSE ERROR: ", "__comma", [smalltalk.send(node, "_reason", [])]), "__comma", [unescape("%2C%20position%3A%20")]), "__comma", [smalltalk.send(smalltalk.send(node, "_position", []), "_asString", [])])])}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_compileMethodDefinitionFor_', fn: function(){return smalltalk.send(self, "_alert_", [smalltalk.send(smalltalk.send(smalltalk.send("PARSE ERROR: ", "__comma", [smalltalk.send(node, "_reason", [])]), "__comma", [unescape("%2C%20position%3A%20")]), "__comma", [smalltalk.send(smalltalk.send(node, "_position", []), "_asString", [])])])}})})();})]);
  1096. smalltalk.send(compiler, "_currentClass_", [aClass]);
  1097. method=smalltalk.send(compiler, "_eval_", [smalltalk.send(compiler, "_compileNode_", [node])]);
  1098. smalltalk.send(method, "_category_", [self['@selectedProtocol']]);
  1099. smalltalk.send(smalltalk.send(compiler, "_unknownVariables", []), "_do_", [(function(each){return (($receiver = smalltalk.send(self, "_confirm_", [smalltalk.send(smalltalk.send(unescape("Declare%20%27"), "__comma", [each]), "__comma", [unescape("%27%20as%20instance%20variable%3F")])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_addInstanceVariableNamed_toClass_", [each, aClass]);return (function(){throw({name: 'stReturn', selector: '_compileMethodDefinitionFor_', fn: function(){return smalltalk.send(self, "_compileMethodDefinitionFor_", [aClass])}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_addInstanceVariableNamed_toClass_", [each, aClass]);return (function(){throw({name: 'stReturn', selector: '_compileMethodDefinitionFor_', fn: function(){return smalltalk.send(self, "_compileMethodDefinitionFor_", [aClass])}})})();})]);})]);
  1100. smalltalk.send(aClass, "_addCompiledMethod_", [method]);
  1101. smalltalk.send(compiler, "_setupClass_", [aClass]);
  1102. smalltalk.send(self, "_updateMethodsList", []);
  1103. smalltalk.send(self, "_selectMethod_", [method]);
  1104. return self;
  1105. } catch(e) {if(e.name === 'stReturn' && e.selector === '_compileMethodDefinitionFor_'){return e.fn()} throw(e)}},
  1106. source: unescape('compileMethodDefinitionFor%3A%20aClass%0A%20%20%20%20%7C%20compiler%20method%20source%20node%20%7C%0A%20%20%20%20source%20%3A%3D%20sourceArea%20val.%0A%20%20%20%20selectedProtocol%20ifNil%3A%20%5BselectedProtocol%20%3A%3D%20selectedMethod%20category%5D.%0A%20%20%20%20compiler%20%3A%3D%20Compiler%20new.%0A%20%20%20%20compiler%20source%3A%20source.%0A%20%20%20%20node%20%3A%3D%20compiler%20parse%3A%20source.%0A%20%20%20%20node%20isParseFailure%20ifTrue%3A%20%5B%0A%09%5Eself%20alert%3A%20%27PARSE%20ERROR%3A%20%27%2C%20node%20reason%2C%20%27%2C%20position%3A%20%27%2C%20node%20position%20asString%5D.%0A%20%20%20%20compiler%20currentClass%3A%20aClass.%0A%20%20%20%20method%20%3A%3D%20compiler%20eval%3A%20%28compiler%20compileNode%3A%20node%29.%0A%20%20%20%20method%20category%3A%20selectedProtocol.%0A%20%20%20%20compiler%20unknownVariables%20do%3A%20%5B%3Aeach%20%7C%0A%09%28self%20confirm%3A%20%27Declare%20%27%27%27%2C%20each%2C%20%27%27%27%20as%20instance%20variable%3F%27%29%20ifTrue%3A%20%5B%0A%09%09self%20addInstanceVariableNamed%3A%20each%20toClass%3A%20aClass.%0A%09%09%5Eself%20compileMethodDefinitionFor%3A%20aClass%5D%5D.%0A%20%20%20%20aClass%20addCompiledMethod%3A%20method.%0A%20%20%20%20compiler%20setupClass%3A%20aClass.%0A%20%20%20%20self%20updateMethodsList.%0A%20%20%20%20self%20selectMethod%3A%20method'),
  1107. messageSends: ["val", "ifNil:", "category", "new", "source:", "parse:", "ifTrue:", "isParseFailure", "alert:", unescape("%2C"), "reason", "asString", "position", "currentClass:", "eval:", "compileNode:", "category:", "do:", "unknownVariables", "confirm:", "addInstanceVariableNamed:toClass:", "compileMethodDefinitionFor:", "addCompiledMethod:", "setupClass:", "updateMethodsList", "selectMethod:"],
  1108. referencedClasses: [smalltalk.Compiler]
  1109. }),
  1110. smalltalk.Browser);
  1111. smalltalk.addMethod(
  1112. '_compileDefinition',
  1113. smalltalk.method({
  1114. selector: 'compileDefinition',
  1115. category: 'actions',
  1116. fn: function (){
  1117. var self=this;
  1118. var newClass=nil;
  1119. newClass=smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_loadExpression_", [smalltalk.send(self['@sourceArea'], "_val", [])]);
  1120. (function($rec){smalltalk.send($rec, "_resetClassesList", []);smalltalk.send($rec, "_updateCategoriesList", []);return smalltalk.send($rec, "_updateClassesList", []);})(self);
  1121. return self;},
  1122. source: unescape('compileDefinition%0A%20%20%20%20%7C%20newClass%20%7C%0A%20%20%20%20newClass%20%3A%3D%20Compiler%20new%20loadExpression%3A%20sourceArea%20val.%0A%20%20%20%20self%20%0A%09resetClassesList%3B%0A%09updateCategoriesList%3B%0A%09updateClassesList'),
  1123. messageSends: ["loadExpression:", "new", "val", "resetClassesList", "updateCategoriesList", "updateClassesList"],
  1124. referencedClasses: [smalltalk.Compiler]
  1125. }),
  1126. smalltalk.Browser);
  1127. smalltalk.addMethod(
  1128. '_commitCategory',
  1129. smalltalk.method({
  1130. selector: 'commitCategory',
  1131. category: 'actions',
  1132. fn: function (){
  1133. var self=this;
  1134. (($receiver = self['@selectedCategory']) != nil && $receiver != undefined) ? (function(){(function($rec){smalltalk.send($rec, "_at_put_", ["type", "PUT"]);smalltalk.send($rec, "_at_put_", ["data", smalltalk.send(smalltalk.send((smalltalk.Exporter || Exporter), "_new", []), "_exportCategory_", [self['@selectedCategory']])]);smalltalk.send($rec, "_at_put_", ["error", (function(){return smalltalk.send(self, "_alert_", [unescape("Commit%20failed%21")]);})]);return smalltalk.send($rec, "_send", []);})(smalltalk.send((smalltalk.Ajax || Ajax), "_url_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_commitPathJs", []), "__comma", [unescape("/")]), "__comma", [self['@selectedCategory']]), "__comma", [".js"])]));(function($rec){smalltalk.send($rec, "_at_put_", ["type", "PUT"]);smalltalk.send($rec, "_at_put_", ["data", smalltalk.send(smalltalk.send((smalltalk.StrippedExporter || StrippedExporter), "_new", []), "_exportCategory_", [self['@selectedCategory']])]);smalltalk.send($rec, "_at_put_", ["error", (function(){return smalltalk.send(self, "_alert_", [unescape("Commit%20failed%21")]);})]);return smalltalk.send($rec, "_send", []);})(smalltalk.send((smalltalk.Ajax || Ajax), "_url_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_commitPathJs", []), "__comma", [unescape("/")]), "__comma", [self['@selectedCategory']]), "__comma", [".deploy.js"])]));return (function($rec){smalltalk.send($rec, "_at_put_", ["type", "PUT"]);smalltalk.send($rec, "_at_put_", ["data", smalltalk.send(smalltalk.send((smalltalk.ChunkExporter || ChunkExporter), "_new", []), "_exportCategory_", [self['@selectedCategory']])]);smalltalk.send($rec, "_at_put_", ["error", (function(){return smalltalk.send(self, "_alert_", [unescape("Commit%20failed%21")]);})]);return smalltalk.send($rec, "_send", []);})(smalltalk.send((smalltalk.Ajax || Ajax), "_url_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_commitPathSt", []), "__comma", [unescape("/")]), "__comma", [self['@selectedCategory']]), "__comma", [".st"])]));})() : nil;
  1135. return self;},
  1136. source: unescape('commitCategory%0A%20%20%20%20selectedCategory%20ifNotNil%3A%20%5B%0A%09%28Ajax%20url%3A%20self%20class%20commitPathJs%2C%20%27/%27%2C%20selectedCategory%2C%20%27.js%27%29%0A%09%20%20%20%20at%3A%20%27type%27%20put%3A%20%27PUT%27%3B%0A%09%20%20%20%20at%3A%20%27data%27%20put%3A%20%28Exporter%20new%20exportCategory%3A%20selectedCategory%29%3B%0A%09%20%20%20%20at%3A%20%27error%27%20put%3A%20%5Bself%20alert%3A%20%27Commit%20failed%21%27%5D%3B%0A%09%20%20%20%20send.%0A%09%28Ajax%20url%3A%20self%20class%20commitPathJs%2C%20%27/%27%2C%20selectedCategory%2C%20%27.deploy.js%27%29%0A%09%20%20%20%20at%3A%20%27type%27%20put%3A%20%27PUT%27%3B%0A%09%20%20%20%20at%3A%20%27data%27%20put%3A%20%28StrippedExporter%20new%20exportCategory%3A%20selectedCategory%29%3B%0A%09%20%20%20%20at%3A%20%27error%27%20put%3A%20%5Bself%20alert%3A%20%27Commit%20failed%21%27%5D%3B%0A%09%20%20%20%20send.%0A%09%28Ajax%20url%3A%20self%20class%20commitPathSt%2C%20%27/%27%2C%20selectedCategory%2C%20%27.st%27%29%0A%09%20%20%20%20at%3A%20%27type%27%20put%3A%20%27PUT%27%3B%0A%09%20%20%20%20at%3A%20%27data%27%20put%3A%20%28ChunkExporter%20new%20exportCategory%3A%20selectedCategory%29%3B%0A%09%20%20%20%20at%3A%20%27error%27%20put%3A%20%5Bself%20alert%3A%20%27Commit%20failed%21%27%5D%3B%0A%09%20%20%20%20send%5D'),
  1137. messageSends: ["ifNotNil:", "at:put:", "exportCategory:", "new", "alert:", "send", "url:", unescape("%2C"), "commitPathJs", "class", "commitPathSt"],
  1138. referencedClasses: [smalltalk.Exporter,smalltalk.Ajax,smalltalk.StrippedExporter,smalltalk.ChunkExporter]
  1139. }),
  1140. smalltalk.Browser);
  1141. smalltalk.addMethod(
  1142. '_cancelChanges',
  1143. smalltalk.method({
  1144. selector: 'cancelChanges',
  1145. category: 'actions',
  1146. fn: function (){
  1147. var self=this;
  1148. return (($receiver = self['@unsavedChanges']).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_confirm_", [unescape("Cancel%20changes%3F")]);})() : (function(){return true;})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_confirm_", [unescape("Cancel%20changes%3F")]);}), (function(){return true;})]);
  1149. return self;},
  1150. source: unescape('cancelChanges%0A%20%20%20%20%5EunsavedChanges%20%0A%09ifTrue%3A%20%5Bself%20confirm%3A%20%27Cancel%20changes%3F%27%5D%0A%09ifFalse%3A%20%5Btrue%5D'),
  1151. messageSends: ["ifTrue:ifFalse:", "confirm:"],
  1152. referencedClasses: []
  1153. }),
  1154. smalltalk.Browser);
  1155. smalltalk.addMethod(
  1156. '_removeClass',
  1157. smalltalk.method({
  1158. selector: 'removeClass',
  1159. category: 'actions',
  1160. fn: function (){
  1161. var self=this;
  1162. (($receiver = smalltalk.send(self, "_confirm_", [smalltalk.send(smalltalk.send("Do you really want to remove ", "__comma", [smalltalk.send(self['@selectedClass'], "_name", [])]), "__comma", [unescape("%3F")])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_removeClass_", [self['@selectedClass']]);smalltalk.send(self, "_resetClassesList", []);return smalltalk.send(self, "_selectClass_", [nil]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_removeClass_", [self['@selectedClass']]);smalltalk.send(self, "_resetClassesList", []);return smalltalk.send(self, "_selectClass_", [nil]);})]);
  1163. return self;},
  1164. source: unescape('removeClass%0A%20%20%20%20%28self%20confirm%3A%20%27Do%20you%20really%20want%20to%20remove%20%27%2C%20selectedClass%20name%2C%20%27%3F%27%29%0A%09ifTrue%3A%20%5B%0A%09%20%20%20%20Smalltalk%20current%20removeClass%3A%20selectedClass.%0A%09%20%20%20%20self%20resetClassesList.%0A%09%20%20%20%20self%20selectClass%3A%20nil%5D'),
  1165. messageSends: ["ifTrue:", "confirm:", unescape("%2C"), "name", "removeClass:", "current", "resetClassesList", "selectClass:"],
  1166. referencedClasses: [smalltalk.Smalltalk]
  1167. }),
  1168. smalltalk.Browser);
  1169. smalltalk.addMethod(
  1170. '_removeMethod',
  1171. smalltalk.method({
  1172. selector: 'removeMethod',
  1173. category: 'actions',
  1174. fn: function (){
  1175. var self=this;
  1176. (($receiver = smalltalk.send(self, "_cancelChanges", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (($receiver = smalltalk.send(self, "_confirm_", [smalltalk.send(smalltalk.send(unescape("Do%20you%20really%20want%20to%20remove%20%23"), "__comma", [smalltalk.send(self['@selectedMethod'], "_selector", [])]), "__comma", [unescape("%3F")])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);})() : (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);}), (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})]);return smalltalk.send(self, "_selectMethod_", [nil]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);})() : (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);}), (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})]);return smalltalk.send(self, "_selectMethod_", [nil]);})]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (($receiver = smalltalk.send(self, "_confirm_", [smalltalk.send(smalltalk.send(unescape("Do%20you%20really%20want%20to%20remove%20%23"), "__comma", [smalltalk.send(self['@selectedMethod'], "_selector", [])]), "__comma", [unescape("%3F")])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);})() : (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);}), (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})]);return smalltalk.send(self, "_selectMethod_", [nil]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);})() : (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);}), (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})]);return smalltalk.send(self, "_selectMethod_", [nil]);})]);})]);
  1177. return self;},
  1178. source: unescape('removeMethod%0A%20%20%20%20self%20cancelChanges%20ifTrue%3A%20%5B%0A%09%28self%20confirm%3A%20%27Do%20you%20really%20want%20to%20remove%20%23%27%2C%20selectedMethod%20selector%2C%20%27%3F%27%29%0A%09%20%20%20%20ifTrue%3A%20%5B%0A%09%09selectedTab%20%3D%20%23instance%20%0A%09%09%09ifTrue%3A%20%5BselectedClass%20removeCompiledMethod%3A%20selectedMethod%5D%0A%09%09%09ifFalse%3A%20%5BselectedClass%20class%20removeCompiledMethod%3A%20selectedMethod%5D.%0A%09%09self%20selectMethod%3A%20nil%5D%5D'),
  1179. messageSends: ["ifTrue:", "cancelChanges", "confirm:", unescape("%2C"), "selector", "ifTrue:ifFalse:", unescape("%3D"), "removeCompiledMethod:", "class", "selectMethod:"],
  1180. referencedClasses: []
  1181. }),
  1182. smalltalk.Browser);
  1183. smalltalk.addMethod(
  1184. '_setMethodProtocol_',
  1185. smalltalk.method({
  1186. selector: 'setMethodProtocol:',
  1187. category: 'actions',
  1188. fn: function (aString){
  1189. var self=this;
  1190. (($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);})]);})]);
  1191. return self;},
  1192. source: unescape('setMethodProtocol%3A%20aString%0A%20%20%20%20self%20cancelChanges%20ifTrue%3A%20%5B%0A%09%28self%20protocols%20includes%3A%20aString%29%0A%09%20%20%20%20ifFalse%3A%20%5Bself%20addNewProtocol%5D%0A%09%20%20%20%20ifTrue%3A%20%5B%0A%09%09selectedMethod%20category%3A%20aString.%0A%09%09selectedProtocol%20%3A%3D%20aString.%0A%09%09selectedMethod%20%3A%3D%20selectedMethod.%0A%09%09self%20%0A%09%09%20%20%20%20updateProtocolsList%3B%0A%09%09%20%20%20%20updateMethodsList%3B%0A%09%09%20%20%20%20updateSourceAndButtons%5D%5D'),
  1193. messageSends: ["ifTrue:", "cancelChanges", "ifFalse:ifTrue:", "includes:", "protocols", "addNewProtocol", "category:", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1194. referencedClasses: []
  1195. }),
  1196. smalltalk.Browser);
  1197. smalltalk.addMethod(
  1198. '_addNewProtocol',
  1199. smalltalk.method({
  1200. selector: 'addNewProtocol',
  1201. category: 'actions',
  1202. fn: function (){
  1203. var self=this;
  1204. var newProtocol=nil;
  1205. newProtocol=smalltalk.send(self, "_prompt_", ["New method protocol"]);
  1206. (($receiver = smalltalk.send(newProtocol, "_notEmpty", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@selectedMethod'], "_category_", [newProtocol]);return smalltalk.send(self, "_setMethodProtocol_", [newProtocol]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@selectedMethod'], "_category_", [newProtocol]);return smalltalk.send(self, "_setMethodProtocol_", [newProtocol]);})]);
  1207. return self;},
  1208. source: unescape('addNewProtocol%0A%20%20%20%20%7C%20newProtocol%20%7C%0A%20%20%20%20newProtocol%20%3A%3D%20self%20prompt%3A%20%27New%20method%20protocol%27.%0A%20%20%20%20newProtocol%20notEmpty%20ifTrue%3A%20%5B%0A%09selectedMethod%20category%3A%20newProtocol.%0A%09self%20setMethodProtocol%3A%20newProtocol%5D'),
  1209. messageSends: ["prompt:", "ifTrue:", "notEmpty", "category:", "setMethodProtocol:"],
  1210. referencedClasses: []
  1211. }),
  1212. smalltalk.Browser);
  1213. smalltalk.addMethod(
  1214. '_selectCategory_',
  1215. smalltalk.method({
  1216. selector: 'selectCategory:',
  1217. category: 'actions',
  1218. fn: function (aCategory){
  1219. var self=this;
  1220. (($receiver = smalltalk.send(self, "_cancelChanges", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){self['@selectedCategory']=aCategory;self['@selectedClass']=self['@selectedProtocol']=self['@selectedMethod']=nil;smalltalk.send(self, "_resetClassesList", []);return (function($rec){smalltalk.send($rec, "_updateCategoriesList", []);smalltalk.send($rec, "_updateClassesList", []);smalltalk.send($rec, "_updateProtocolsList", []);smalltalk.send($rec, "_updateMethodsList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){self['@selectedCategory']=aCategory;self['@selectedClass']=self['@selectedProtocol']=self['@selectedMethod']=nil;smalltalk.send(self, "_resetClassesList", []);return (function($rec){smalltalk.send($rec, "_updateCategoriesList", []);smalltalk.send($rec, "_updateClassesList", []);smalltalk.send($rec, "_updateProtocolsList", []);smalltalk.send($rec, "_updateMethodsList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})]);
  1221. return self;},
  1222. source: unescape('selectCategory%3A%20aCategory%0A%20%20%20%20self%20cancelChanges%20ifTrue%3A%20%5B%0A%09selectedCategory%20%3A%3D%20aCategory.%0A%09selectedClass%20%3A%3D%20selectedProtocol%20%3A%3D%20selectedMethod%20%3A%3D%20%20nil.%0A%09self%20resetClassesList.%0A%09self%20%0A%09%20%20%20%20updateCategoriesList%3B%0A%09%20%20%20%20updateClassesList%3B%0A%09%20%20%20%20updateProtocolsList%3B%0A%09%20%20%20%20updateMethodsList%3B%0A%09%20%20%20%20updateSourceAndButtons%5D'),
  1223. messageSends: ["ifTrue:", "cancelChanges", "resetClassesList", "updateCategoriesList", "updateClassesList", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1224. referencedClasses: []
  1225. }),
  1226. smalltalk.Browser);
  1227. smalltalk.addMethod(
  1228. '_selectClass_',
  1229. smalltalk.method({
  1230. selector: 'selectClass:',
  1231. category: 'actions',
  1232. fn: function (aClass){
  1233. var self=this;
  1234. (($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);})]);
  1235. return self;},
  1236. source: unescape('selectClass%3A%20aClass%0A%20%20%20%20self%20cancelChanges%20ifTrue%3A%20%5B%0A%09selectedClass%20%3A%3D%20aClass.%0A%09selectedProtocol%20%3A%3D%20selectedMethod%20%3A%3D%20nil.%0A%09self%20%0A%09%20%20%20%20updateClassesList%3B%0A%09%20%20%20%20updateProtocolsList%3B%0A%09%20%20%20%20updateMethodsList%3B%0A%09%20%20%20%20updateSourceAndButtons%5D'),
  1237. messageSends: ["ifTrue:", "cancelChanges", "updateClassesList", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1238. referencedClasses: []
  1239. }),
  1240. smalltalk.Browser);
  1241. smalltalk.addMethod(
  1242. '_selectProtocol_',
  1243. smalltalk.method({
  1244. selector: 'selectProtocol:',
  1245. category: 'actions',
  1246. fn: function (aString){
  1247. var self=this;
  1248. (($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);})]);
  1249. return self;},
  1250. source: unescape('selectProtocol%3A%20aString%0A%20%20%20%20self%20cancelChanges%20ifTrue%3A%20%5B%0A%09selectedProtocol%20%3A%3D%20aString.%0A%09selectedMethod%20%3A%3D%20nil.%0A%09self%20%0A%09%20%20%20%20updateProtocolsList%3B%0A%09%20%20%20%20updateMethodsList%3B%0A%09%20%20%20%20updateSourceAndButtons%5D'),
  1251. messageSends: ["ifTrue:", "cancelChanges", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1252. referencedClasses: []
  1253. }),
  1254. smalltalk.Browser);
  1255. smalltalk.addMethod(
  1256. '_selectMethod_',
  1257. smalltalk.method({
  1258. selector: 'selectMethod:',
  1259. category: 'actions',
  1260. fn: function (aMethod){
  1261. var self=this;
  1262. (($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);})]);
  1263. return self;},
  1264. source: unescape('selectMethod%3A%20aMethod%0A%20%20%20%20self%20cancelChanges%20ifTrue%3A%20%5B%0A%09selectedMethod%20%3A%3D%20aMethod.%0A%09self%20%0A%09%20%20%20%20updateProtocolsList%3B%0A%09%20%20%20%20updateMethodsList%3B%0A%09%20%20%20%20updateSourceAndButtons%5D'),
  1265. messageSends: ["ifTrue:", "cancelChanges", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1266. referencedClasses: []
  1267. }),
  1268. smalltalk.Browser);
  1269. smalltalk.addMethod(
  1270. '_selectTab_',
  1271. smalltalk.method({
  1272. selector: 'selectTab:',
  1273. category: 'actions',
  1274. fn: function (aString){
  1275. var self=this;
  1276. (($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", []);})]);
  1277. return self;},
  1278. source: unescape('selectTab%3A%20aString%0A%20%20%20%20self%20cancelChanges%20ifTrue%3A%20%5B%0A%09selectedTab%20%3A%3D%20aString.%0A%09self%20selectProtocol%3A%20nil.%0A%09self%20updateTabsList%5D'),
  1279. messageSends: ["ifTrue:", "cancelChanges", "selectProtocol:", "updateTabsList"],
  1280. referencedClasses: []
  1281. }),
  1282. smalltalk.Browser);
  1283. smalltalk.addMethod(
  1284. '_renameClass',
  1285. smalltalk.method({
  1286. selector: 'renameClass',
  1287. category: 'actions',
  1288. fn: function (){
  1289. var self=this;
  1290. var newName=nil;
  1291. newName=smalltalk.send(self, "_prompt_", [smalltalk.send("Rename class ", "__comma", [smalltalk.send(self['@selectedClass'], "_name", [])])]);
  1292. (($receiver = smalltalk.send(newName, "_notEmpty", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@selectedClass'], "_rename_", [newName]);return (function($rec){smalltalk.send($rec, "_updateClassesList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@selectedClass'], "_rename_", [newName]);return (function($rec){smalltalk.send($rec, "_updateClassesList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})]);
  1293. return self;},
  1294. source: unescape('renameClass%0A%20%20%20%20%7C%20newName%20%7C%0A%20%20%20%20newName%20%3A%3D%20self%20prompt%3A%20%27Rename%20class%20%27%2C%20selectedClass%20name.%0A%20%20%20%20newName%20notEmpty%20ifTrue%3A%20%5B%0A%09selectedClass%20rename%3A%20newName.%0A%09self%20%0A%09%09updateClassesList%3B%0A%09%09updateSourceAndButtons%5D'),
  1295. messageSends: ["prompt:", unescape("%2C"), "name", "ifTrue:", "notEmpty", "rename:", "updateClassesList", "updateSourceAndButtons"],
  1296. referencedClasses: []
  1297. }),
  1298. smalltalk.Browser);
  1299. smalltalk.addMethod(
  1300. '_addInstanceVariableNamed_toClass_',
  1301. smalltalk.method({
  1302. selector: 'addInstanceVariableNamed:toClass:',
  1303. category: 'actions',
  1304. fn: function (aString, aClass){
  1305. var self=this;
  1306. smalltalk.send(smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []), "_addSubclassOf_named_instanceVariableNames_", [smalltalk.send(aClass, "_superclass", []), smalltalk.send(aClass, "_name", []), (function($rec){smalltalk.send($rec, "_add_", [aString]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(smalltalk.send(aClass, "_instanceVariableNames", []), "_copy", []))]);
  1307. return self;},
  1308. source: unescape('addInstanceVariableNamed%3A%20aString%20toClass%3A%20aClass%0A%09ClassBuilder%20new%0A%09%09addSubclassOf%3A%20aClass%20superclass%20named%3A%20aClass%20name%20instanceVariableNames%3A%20%28aClass%20instanceVariableNames%20copy%20add%3A%20aString%3B%20yourself%29'),
  1309. messageSends: ["addSubclassOf:named:instanceVariableNames:", "new", "superclass", "name", "add:", "yourself", "copy", "instanceVariableNames"],
  1310. referencedClasses: [smalltalk.ClassBuilder]
  1311. }),
  1312. smalltalk.Browser);
  1313. smalltalk.addMethod(
  1314. '_searchReferencesOf_',
  1315. smalltalk.method({
  1316. selector: 'searchReferencesOf:',
  1317. category: 'actions',
  1318. fn: function (aString){
  1319. var self=this;
  1320. smalltalk.send((smalltalk.ReferencesBrowser || ReferencesBrowser), "_search_", [aString]);
  1321. return self;},
  1322. source: unescape('searchReferencesOf%3A%20aString%0A%09ReferencesBrowser%20search%3A%20aString'),
  1323. messageSends: ["search:"],
  1324. referencedClasses: []
  1325. }),
  1326. smalltalk.Browser);
  1327. smalltalk.addMethod(
  1328. '_searchClassReferences',
  1329. smalltalk.method({
  1330. selector: 'searchClassReferences',
  1331. category: 'actions',
  1332. fn: function (){
  1333. var self=this;
  1334. smalltalk.send((smalltalk.ReferencesBrowser || ReferencesBrowser), "_search_", [smalltalk.send(self['@selectedClass'], "_name", [])]);
  1335. return self;},
  1336. source: unescape('searchClassReferences%0A%09ReferencesBrowser%20search%3A%20selectedClass%20name'),
  1337. messageSends: ["search:", "name"],
  1338. referencedClasses: []
  1339. }),
  1340. smalltalk.Browser);
  1341. smalltalk.addMethod(
  1342. '_search_',
  1343. smalltalk.method({
  1344. selector: 'search:',
  1345. category: 'actions',
  1346. fn: function (aString){
  1347. var self=this;
  1348. (($receiver = smalltalk.send(self, "_cancelChanges", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){var searchedClass=nil;
  1349. 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;
  1350. 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]);})]);})]);
  1351. return self;},
  1352. source: unescape('search%3A%20aString%0A%09self%20cancelChanges%20ifTrue%3A%20%5B%7C%20searchedClass%20%7C%0A%09%09searchedClass%20%3A%3D%20Smalltalk%20current%20at%3A%20aString.%0A%09%09searchedClass%20isClass%0A%09%09%09ifTrue%3A%20%5Bself%20class%20openOn%3A%20searchedClass%5D%0A%09%09%09ifFalse%3A%20%5Bself%20searchReferencesOf%3A%20aString%5D%5D'),
  1353. messageSends: ["ifTrue:", "cancelChanges", "at:", "current", "ifTrue:ifFalse:", "isClass", "openOn:", "class", "searchReferencesOf:"],
  1354. referencedClasses: [smalltalk.Smalltalk]
  1355. }),
  1356. smalltalk.Browser);
  1357. smalltalk.addMethod(
  1358. '_initialize',
  1359. smalltalk.method({
  1360. selector: 'initialize',
  1361. category: 'initialization',
  1362. fn: function (){
  1363. var self=this;
  1364. smalltalk.send(self, "_initialize", [], smalltalk.TabWidget);
  1365. self['@selectedTab']="instance";
  1366. self['@unsavedChanges']=false;
  1367. return self;},
  1368. source: unescape('initialize%0A%20%20%20%20super%20initialize.%0A%20%20%20%20selectedTab%20%3A%3D%20%23instance.%0A%20%20%20%20unsavedChanges%20%3A%3D%20false'),
  1369. messageSends: ["initialize"],
  1370. referencedClasses: []
  1371. }),
  1372. smalltalk.Browser);
  1373. smalltalk.addMethod(
  1374. '_renderBoxOn_',
  1375. smalltalk.method({
  1376. selector: 'renderBoxOn:',
  1377. category: 'rendering',
  1378. fn: function (html){
  1379. var self=this;
  1380. (function($rec){smalltalk.send($rec, "_renderTopPanelOn_", [html]);smalltalk.send($rec, "_renderTabsOn_", [html]);return smalltalk.send($rec, "_renderBottomPanelOn_", [html]);})(self);
  1381. return self;},
  1382. source: unescape('renderBoxOn%3A%20html%0A%20%20%20%20self%20%0A%09renderTopPanelOn%3A%20html%3B%0A%09renderTabsOn%3A%20html%3B%0A%09renderBottomPanelOn%3A%20html'),
  1383. messageSends: ["renderTopPanelOn:", "renderTabsOn:", "renderBottomPanelOn:"],
  1384. referencedClasses: []
  1385. }),
  1386. smalltalk.Browser);
  1387. smalltalk.addMethod(
  1388. '_renderTopPanelOn_',
  1389. smalltalk.method({
  1390. selector: 'renderTopPanelOn:',
  1391. category: 'rendering',
  1392. fn: function (html){
  1393. var self=this;
  1394. (function($rec){smalltalk.send($rec, "_class_", ["top"]);return smalltalk.send($rec, "_with_", [(function(){smalltalk.send(self, "_renderInputOn_", [html]);self['@categoriesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column browser categories"]);self['@commitButton']=(function($rec){smalltalk.send($rec, "_class_", ["jt_commit"]);smalltalk.send($rec, "_title_", ["Commit classes in this category to disk"]);smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_commitCategory", []);})]);return smalltalk.send($rec, "_with_", ["Commit category"]);})(smalltalk.send(html, "_button", []));self['@classesList']=smalltalk.send((smalltalk.ClassesList || ClassesList), "_on_", [self]);smalltalk.send(self['@classesList'], "_renderOn_", [html]);self['@protocolsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column browser protocols"]);self['@methodsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column browser methods"]);(function($rec){smalltalk.send($rec, "_updateCategoriesList", []);smalltalk.send($rec, "_updateClassesList", []);smalltalk.send($rec, "_updateProtocolsList", []);return smalltalk.send($rec, "_updateMethodsList", []);})(self);return smalltalk.send(smalltalk.send(html, "_div", []), "_class_", ["jt_clear"]);})]);})(smalltalk.send(html, "_div", []));
  1395. return self;},
  1396. source: unescape('renderTopPanelOn%3A%20html%0A%20%20%20%20html%20div%20%0A%09class%3A%20%27top%27%3B%20%0A%09with%3A%20%5B%0A%09%20%20%20%20self%20renderInputOn%3A%20html.%0A%09%20%20%20%20categoriesList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20browser%20categories%27.%0A%09%20%20%20%20commitButton%20%3A%3D%20html%20button%20%0A%09%09class%3A%20%27jt_commit%27%3B%0A%09%09title%3A%20%27Commit%20classes%20in%20this%20category%20to%20disk%27%3B%0A%09%09onClick%3A%20%5Bself%20commitCategory%5D%3B%0A%09%09with%3A%20%27Commit%20category%27.%0A%09%20%20%20%20classesList%20%3A%3D%20ClassesList%20on%3A%20self.%0A%09%20%20%20%20classesList%20renderOn%3A%20html.%0A%09%20%20%20%20protocolsList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20browser%20protocols%27.%0A%09%20%20%20%20methodsList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20browser%20methods%27.%0A%09%20%20%20%20self%0A%09%09updateCategoriesList%3B%0A%09%09updateClassesList%3B%0A%09%09updateProtocolsList%3B%0A%09%09updateMethodsList.%0A%09%20%20%20%20html%20div%20class%3A%20%27jt_clear%27%5D'),
  1397. messageSends: ["class:", "with:", "renderInputOn:", "ul", "title:", "onClick:", "commitCategory", "button", "on:", "renderOn:", "updateCategoriesList", "updateClassesList", "updateProtocolsList", "updateMethodsList", "div"],
  1398. referencedClasses: []
  1399. }),
  1400. smalltalk.Browser);
  1401. smalltalk.addMethod(
  1402. '_renderTabsOn_',
  1403. smalltalk.method({
  1404. selector: 'renderTabsOn:',
  1405. category: 'rendering',
  1406. fn: function (html){
  1407. var self=this;
  1408. self['@tabsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_tabs"]);
  1409. smalltalk.send(self, "_updateTabsList", []);
  1410. return self;},
  1411. source: unescape('renderTabsOn%3A%20html%0A%20%20%20%20tabsList%20%3A%3D%20html%20ul%20class%3A%20%27jt_tabs%27.%0A%20%20%20%20self%20updateTabsList.'),
  1412. messageSends: ["class:", "ul", "updateTabsList"],
  1413. referencedClasses: []
  1414. }),
  1415. smalltalk.Browser);
  1416. smalltalk.addMethod(
  1417. '_renderBottomPanelOn_',
  1418. smalltalk.method({
  1419. selector: 'renderBottomPanelOn:',
  1420. category: 'rendering',
  1421. fn: function (html){
  1422. var self=this;
  1423. (function($rec){smalltalk.send($rec, "_class_", ["jt_sourceCode"]);return smalltalk.send($rec, "_with_", [(function(){self['@sourceArea']=smalltalk.send((smalltalk.SourceArea || SourceArea), "_new", []);smalltalk.send(self['@sourceArea'], "_renderOn_", [html]);return smalltalk.send(self['@sourceArea'], "_onKeyUp_", [(function(){return smalltalk.send(self, "_updateStatus", []);})]);})]);})(smalltalk.send(html, "_div", []));
  1424. return self;},
  1425. source: unescape('renderBottomPanelOn%3A%20html%0A%20%20%20%20html%20div%0A%09class%3A%20%27jt_sourceCode%27%3B%0A%09with%3A%20%5B%0A%09%20%20%20%20sourceArea%20%3A%3D%20SourceArea%20new.%0A%09%20%20%20%20sourceArea%20renderOn%3A%20html.%0A%09%20%20%20%20sourceArea%0A%09%09onKeyUp%3A%20%5Bself%20updateStatus%5D%5D'),
  1426. messageSends: ["class:", "with:", "new", "renderOn:", "onKeyUp:", "updateStatus", "div"],
  1427. referencedClasses: []
  1428. }),
  1429. smalltalk.Browser);
  1430. smalltalk.addMethod(
  1431. '_renderButtonsOn_',
  1432. smalltalk.method({
  1433. selector: 'renderButtonsOn:',
  1434. category: 'rendering',
  1435. fn: function (html){
  1436. var self=this;
  1437. self['@saveButton']=smalltalk.send(html, "_button", []);
  1438. (function($rec){smalltalk.send($rec, "_with_", ["Save"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_compile", []);})]);})(self['@saveButton']);
  1439. self['@methodButtons']=smalltalk.send(html, "_span", []);
  1440. self['@classButtons']=smalltalk.send(html, "_span", []);
  1441. (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", []));
  1442. smalltalk.send(self, "_updateSourceAndButtons", []);
  1443. return self;},
  1444. source: unescape('renderButtonsOn%3A%20html%0A%20%20%20%20saveButton%20%3A%3D%20html%20button.%0A%20%20%20%20saveButton%20%0A%09with%3A%20%27Save%27%3B%0A%09onClick%3A%20%5Bself%20compile%5D.%0A%20%20%20%20methodButtons%20%3A%3D%20html%20span.%0A%20%20%20%20classButtons%20%3A%3D%20html%20span.%0A%20%20%20%20html%20div%20%0A%09class%3A%20%27right%27%3B%0A%09with%3A%20%5B%0A%09%09html%20button%0A%09%09%09with%3A%20%27DoIt%27%3B%0A%09%09%09onClick%3A%20%5BsourceArea%20doIt%5D.%0A%09%09html%20button%0A%09%09%09with%3A%20%27PrintIt%27%3B%0A%09%09%09onClick%3A%20%5BsourceArea%20printIt%5D.%0A%09%09html%20button%20with%3A%20%27InspectIt%27%3B%0A%09%09%09onClick%3A%20%5BsourceArea%20inspectit%5D%5D.%20%0A%20%20%20%20self%20updateSourceAndButtons'),
  1445. messageSends: ["button", "with:", "onClick:", "compile", "span", "class:", "doIt", "printIt", "inspectit", "div", "updateSourceAndButtons"],
  1446. referencedClasses: []
  1447. }),
  1448. smalltalk.Browser);
  1449. smalltalk.addMethod(
  1450. '_renderInputOn_',
  1451. smalltalk.method({
  1452. selector: 'renderInputOn:',
  1453. category: 'rendering',
  1454. fn: function (html){
  1455. var self=this;
  1456. self['@input']=(function($rec){smalltalk.send($rec, "_class_", ["implementors"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_input", []));
  1457. 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", [])]);})]);})]);
  1458. return self;},
  1459. source: unescape('renderInputOn%3A%20html%20%0A%09input%20%3A%3D%20html%20input%20%0A%09%09class%3A%20%27implementors%27%3B%0A%09%09yourself.%0A%09input%20onKeyPress%3A%20%5B%3Aevent%20%7C%0A%09%09event%20keyCode%20%3D%2013%20ifTrue%3A%20%5B%0A%09%09%09self%20search%3A%20input%20asJQuery%20val%5D%5D'),
  1460. messageSends: ["class:", "yourself", "input", "onKeyPress:", "ifTrue:", unescape("%3D"), "keyCode", "search:", "val", "asJQuery"],
  1461. referencedClasses: []
  1462. }),
  1463. smalltalk.Browser);
  1464. smalltalk.addMethod(
  1465. '_canBeClosed',
  1466. smalltalk.method({
  1467. selector: 'canBeClosed',
  1468. category: 'testing',
  1469. fn: function (){
  1470. var self=this;
  1471. return true;
  1472. return self;},
  1473. source: unescape('canBeClosed%0A%09%5Etrue'),
  1474. messageSends: [],
  1475. referencedClasses: []
  1476. }),
  1477. smalltalk.Browser);
  1478. smalltalk.addMethod(
  1479. '_updateCategoriesList',
  1480. smalltalk.method({
  1481. selector: 'updateCategoriesList',
  1482. category: 'updating',
  1483. fn: function (){
  1484. var self=this;
  1485. smalltalk.send(self['@categoriesList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_categories", []), "_do_", [(function(each){var li=nil;
  1486. var label=nil;
  1487. (($receiver = smalltalk.send(each, "_isEmpty", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return label="Unclassified";})() : (function(){return label=each;})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return label="Unclassified";}), (function(){return label=each;})]);li=smalltalk.send(html, "_li", []);(($receiver = smalltalk.send(self['@selectedCategory'], "__eq", [each])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(li, "_class_", ["selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);return (function($rec){smalltalk.send($rec, "_with_", [label]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectCategory_", [each]);})]);})(li);})]);})]);
  1488. return self;},
  1489. source: unescape('updateCategoriesList%0A%20%20%20%20categoriesList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09self%20categories%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20label%20%7C%0A%09%20%20%20%20each%20isEmpty%20%0A%09%09ifTrue%3A%20%5Blabel%20%3A%3D%20%27Unclassified%27%5D%0A%09%09ifFalse%3A%20%5Blabel%20%3A%3D%20each%5D.%0A%09%20%20%20%20li%20%3A%3D%20html%20li.%0A%09%20%20%20%20selectedCategory%20%3D%20each%20ifTrue%3A%20%5B%0A%09%09li%20class%3A%20%27selected%27%5D.%0A%09%20%20%20%20li%0A%09%09with%3A%20label%3B%0A%09%09onClick%3A%20%5Bself%20selectCategory%3A%20each%5D%5D%5D'),
  1490. messageSends: ["contents:", "do:", "categories", "ifTrue:ifFalse:", "isEmpty", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "onClick:", "selectCategory:"],
  1491. referencedClasses: []
  1492. }),
  1493. smalltalk.Browser);
  1494. smalltalk.addMethod(
  1495. '_updateClassesList',
  1496. smalltalk.method({
  1497. selector: 'updateClassesList',
  1498. category: 'updating',
  1499. fn: function (){
  1500. var self=this;
  1501. smalltalk.send(smalltalk.send((smalltalk.TabManager || TabManager), "_current", []), "_update", []);
  1502. smalltalk.send(self['@classesList'], "_updateNodes", []);
  1503. return self;},
  1504. source: unescape('updateClassesList%0A%20%20%20%20TabManager%20current%20update.%0A%20%20%20%20classesList%20updateNodes.%0A%20%20%20%20%22classesList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09self%20classes%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20%7C%0A%09%20%20%20%20li%20%3A%3D%20html%20li.%0A%09%20%20%20%20selectedClass%20%3D%20each%20ifTrue%3A%20%5B%0A%09%09li%20class%3A%20%27selected%27%5D.%0A%09%20%20%20%20li%0A%09%09with%3A%20each%20name%3B%0A%09%09onClick%3A%20%5Bself%20selectClass%3A%20each%5D%5D%5D%22'),
  1505. messageSends: ["update", "current", "updateNodes"],
  1506. referencedClasses: [smalltalk.TabManager]
  1507. }),
  1508. smalltalk.Browser);
  1509. smalltalk.addMethod(
  1510. '_updateProtocolsList',
  1511. smalltalk.method({
  1512. selector: 'updateProtocolsList',
  1513. category: 'updating',
  1514. fn: function (){
  1515. var self=this;
  1516. smalltalk.send(self['@protocolsList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_protocols", []), "_do_", [(function(each){var li=nil;
  1517. 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);})]);})]);
  1518. return self;},
  1519. source: unescape('updateProtocolsList%0A%20%20%20%20protocolsList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09self%20protocols%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20%7C%0A%09%20%20%20%20li%20%3A%3D%20html%20li.%0A%09%20%20%20%20selectedProtocol%20%3D%20each%20ifTrue%3A%20%5B%0A%09%09li%20class%3A%20%27selected%27%5D.%0A%09%20%20%20%20li%20%0A%09%09with%3A%20each%3B%0A%09%09onClick%3A%20%5Bself%20selectProtocol%3A%20each%5D%5D%5D'),
  1520. messageSends: ["contents:", "do:", "protocols", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "onClick:", "selectProtocol:"],
  1521. referencedClasses: []
  1522. }),
  1523. smalltalk.Browser);
  1524. smalltalk.addMethod(
  1525. '_updateMethodsList',
  1526. smalltalk.method({
  1527. selector: 'updateMethodsList',
  1528. category: 'updating',
  1529. fn: function (){
  1530. var self=this;
  1531. smalltalk.send(self['@methodsList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_methods", []), "_do_", [(function(each){var li=nil;
  1532. 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);})]);})]);
  1533. return self;},
  1534. source: unescape('updateMethodsList%0A%20%20%20%20methodsList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09self%20methods%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20%7C%0A%09%20%20%20%20li%20%3A%3D%20html%20li.%0A%09%20%20%20%20selectedMethod%20%3D%20each%20ifTrue%3A%20%5B%0A%09%09li%20class%3A%20%27selected%27%5D.%0A%09%20%20%20%20li%0A%09%09with%3A%20each%20selector%3B%0A%09%09onClick%3A%20%5Bself%20selectMethod%3A%20each%5D%5D%5D'),
  1535. messageSends: ["contents:", "do:", "methods", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "selector", "onClick:", "selectMethod:"],
  1536. referencedClasses: []
  1537. }),
  1538. smalltalk.Browser);
  1539. smalltalk.addMethod(
  1540. '_updateTabsList',
  1541. smalltalk.method({
  1542. selector: 'updateTabsList',
  1543. category: 'updating',
  1544. fn: function (){
  1545. var self=this;
  1546. smalltalk.send(self['@tabsList'], "_contents_", [(function(html){var li=nil;
  1547. li=smalltalk.send(html, "_li", []);(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(li, "_class_", ["selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);(function($rec){smalltalk.send($rec, "_with_", ["Instance"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectTab_", ["instance"]);})]);})(li);li=smalltalk.send(html, "_li", []);(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["class"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(li, "_class_", ["selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);(function($rec){smalltalk.send($rec, "_with_", ["Class"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectTab_", ["class"]);})]);})(li);li=smalltalk.send(html, "_li", []);(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["comment"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(li, "_class_", ["selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);return (function($rec){smalltalk.send($rec, "_with_", ["Comment"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectTab_", ["comment"]);})]);})(li);})]);
  1548. return self;},
  1549. source: unescape('updateTabsList%0A%20%20%20%20tabsList%20contents%3A%20%5B%3Ahtml%20%7C%7C%20li%20%7C%0A%09li%20%3A%3D%20html%20li.%0A%09selectedTab%20%3D%20%23instance%20ifTrue%3A%20%5Bli%20class%3A%20%27selected%27%5D.%0A%09li%0A%09%20%20%20%20with%3A%20%27Instance%27%3B%0A%09%20%20%20%20onClick%3A%20%5Bself%20selectTab%3A%20%23instance%5D.%0A%09li%20%3A%3D%20html%20li.%0A%09selectedTab%20%3D%20%23class%20ifTrue%3A%20%5Bli%20class%3A%20%27selected%27%5D.%0A%09li%0A%09%20%20%20%20with%3A%20%27Class%27%3B%0A%09%20%20%20%20onClick%3A%20%5Bself%20selectTab%3A%20%23class%5D.%0A%09li%20%3A%3D%20html%20li.%0A%09selectedTab%20%3D%20%23comment%20ifTrue%3A%20%5Bli%20class%3A%20%27selected%27%5D.%0A%09li%0A%09%20%20%20%20with%3A%20%27Comment%27%3B%0A%09%20%20%20%20onClick%3A%20%5Bself%20selectTab%3A%20%23comment%5D%5D'),
  1550. messageSends: ["contents:", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "onClick:", "selectTab:"],
  1551. referencedClasses: []
  1552. }),
  1553. smalltalk.Browser);
  1554. smalltalk.addMethod(
  1555. '_updateSourceAndButtons',
  1556. smalltalk.method({
  1557. selector: 'updateSourceAndButtons',
  1558. category: 'updating',
  1559. fn: function (){
  1560. var self=this;
  1561. smalltalk.send(self, "_disableSaveButton", []);
  1562. smalltalk.send(self['@classButtons'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_with_", ["Rename class"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_renameClass", []);})]);})(smalltalk.send(html, "_button", []));(function($rec){smalltalk.send($rec, "_with_", ["Remove class"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_removeClass", []);})]);})(smalltalk.send(html, "_button", []));return (function($rec){smalltalk.send($rec, "_with_", ["References"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_searchClassReferences", []);})]);})(smalltalk.send(html, "_button", []));})]);
  1563. smalltalk.send(self['@methodButtons'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_with_", ["Remove method"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_removeMethod", []);})]);})(smalltalk.send(html, "_button", []));(function($rec){smalltalk.send($rec, "_onChange_", [(function(e, select){return smalltalk.send(self, "_setMethodProtocol_", [smalltalk.send(select, "_val", [])]);})]);return smalltalk.send($rec, "_with_", [(function(){(function($rec){smalltalk.send($rec, "_with_", ["Method protocol"]);return smalltalk.send($rec, "_at_put_", ["disabled", "disabled"]);})(smalltalk.send(html, "_option", []));(function($rec){smalltalk.send($rec, "_class_", ["important"]);return smalltalk.send($rec, "_with_", ["New..."]);})(smalltalk.send(html, "_option", []));return smalltalk.send(smalltalk.send(self, "_protocols", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(html, "_option", []), "_with_", [each]);})]);})]);})(smalltalk.send(html, "_select", []));return (($receiver = smalltalk.send(self['@selectedMethod'], "_isNil", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function($rec){smalltalk.send($rec, "_onChange_", [(function(e, select){return smalltalk.send(self, "_searchReferencesOf_", [smalltalk.send(select, "_val", [])]);})]);return smalltalk.send($rec, "_with_", [(function(){(function($rec){smalltalk.send($rec, "_with_", ["References"]);return smalltalk.send($rec, "_at_put_", ["disabled", "disabled"]);})(smalltalk.send(html, "_option", []));(function($rec){smalltalk.send($rec, "_class_", ["important"]);return smalltalk.send($rec, "_with_", [smalltalk.send(self['@selectedMethod'], "_selector", [])]);})(smalltalk.send(html, "_option", []));return smalltalk.send(smalltalk.send(smalltalk.send(self['@selectedMethod'], "_messageSends", []), "_sorted", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(html, "_option", []), "_with_", [each]);})]);})]);})(smalltalk.send(html, "_select", []));})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function($rec){smalltalk.send($rec, "_onChange_", [(function(e, select){return smalltalk.send(self, "_searchReferencesOf_", [smalltalk.send(select, "_val", [])]);})]);return smalltalk.send($rec, "_with_", [(function(){(function($rec){smalltalk.send($rec, "_with_", ["References"]);return smalltalk.send($rec, "_at_put_", ["disabled", "disabled"]);})(smalltalk.send(html, "_option", []));(function($rec){smalltalk.send($rec, "_class_", ["important"]);return smalltalk.send($rec, "_with_", [smalltalk.send(self['@selectedMethod'], "_selector", [])]);})(smalltalk.send(html, "_option", []));return smalltalk.send(smalltalk.send(smalltalk.send(self['@selectedMethod'], "_messageSends", []), "_sorted", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(html, "_option", []), "_with_", [each]);})]);})]);})(smalltalk.send(html, "_select", []));})]);})]);
  1564. (($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", []);})]);
  1565. smalltalk.send(self['@sourceArea'], "_val_", [smalltalk.send(self, "_source", [])]);
  1566. return self;},
  1567. source: unescape('updateSourceAndButtons%0A%09self%20disableSaveButton.%0A%09classButtons%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09html%20button%0A%09%09%09with%3A%20%27Rename%20class%27%3B%0A%09%09%09onClick%3A%20%5Bself%20renameClass%5D.%0A%09%09html%20button%0A%09%09%09with%3A%20%27Remove%20class%27%3B%0A%09%09%09onClick%3A%20%5Bself%20removeClass%5D.%0A%09%09html%20button%0A%09%09%09with%3A%20%27References%27%3B%0A%09%09%09onClick%3A%20%5Bself%20searchClassReferences%5D%5D.%0A%09methodButtons%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09html%20button%0A%09%09%09with%3A%20%27Remove%20method%27%3B%0A%09%09%09onClick%3A%20%5Bself%20removeMethod%5D.%0A%09%09html%20select%20%0A%09%20%20%20%20%09%09onChange%3A%20%5B%3Ae%20%3Aselect%20%7C%20self%20setMethodProtocol%3A%20select%20val%5D%3B%0A%09%20%20%20%20%09%09with%3A%20%5B%0A%09%09%09%09html%20option%0A%09%09%20%20%20%20%09%09%09with%3A%20%27Method%20protocol%27%3B%0A%09%09%09%09%09at%3A%20%27disabled%27%20put%3A%20%27disabled%27.%0A%09%09%09%09html%20option%0A%09%09%20%20%20%20%09%09%09class%3A%20%27important%27%3B%0A%09%09%20%20%20%20%09%09%09with%3A%20%27New...%27.%0A%09%09%09%09self%20protocols%20do%3A%20%5B%3Aeach%20%7C%0A%09%09%20%20%20%20%09%09%09html%20option%20with%3A%20each%5D%5D.%0A%09%09selectedMethod%20isNil%20ifFalse%3A%20%5B%0A%09%09%09html%20select%20%0A%09%20%20%20%20%09%09%09onChange%3A%20%5B%3Ae%20%3Aselect%20%7C%20self%20searchReferencesOf%3A%20select%20val%5D%3B%0A%09%20%20%20%20%09%09%09with%3A%20%5B%0A%09%09%09%09%09html%20option%0A%09%09%20%20%20%20%09%09%09%09with%3A%20%27References%27%3B%0A%09%09%09%09%09%09at%3A%20%27disabled%27%20put%3A%20%27disabled%27.%0A%09%09%09%09%09html%20option%0A%09%09%20%20%20%20%09%09%09%09class%3A%20%27important%27%3B%0A%09%09%20%20%20%20%09%09%09%09with%3A%20selectedMethod%20selector.%0A%09%09%09%09%09selectedMethod%20messageSends%20sorted%20do%3A%20%5B%3Aeach%20%7C%0A%09%09%20%20%20%20%09%09%09%09html%20option%20with%3A%20each%5D%5D%5D%5D.%0A%20%20%20%20%09selectedMethod%20isNil%0A%09%09ifTrue%3A%20%5B%0A%09%20%20%20%20%09%09self%20hideMethodButtons.%0A%09%20%20%20%20%09%09%09%28selectedClass%20isNil%20or%3A%20%5BselectedProtocol%20notNil%5D%29%0A%09%09%09%09%09ifTrue%3A%20%5Bself%20hideClassButtons%5D%0A%09%20%20%20%20%09%09%09%09ifFalse%3A%20%5Bself%20showClassButtons%5D%5D%0A%09%09ifFalse%3A%20%5B%0A%09%20%20%20%20%09%09self%20hideClassButtons.%0A%09%20%20%20%20%09%09self%20showMethodButtons%5D.%0A%20%20%20%20%09sourceArea%20val%3A%20self%20source'),
  1568. messageSends: ["disableSaveButton", "contents:", "with:", "onClick:", "renameClass", "button", "removeClass", "searchClassReferences", "removeMethod", "onChange:", "setMethodProtocol:", "val", "at:put:", "option", "class:", "do:", "protocols", "select", "ifFalse:", "isNil", "searchReferencesOf:", "selector", "sorted", "messageSends", "ifTrue:ifFalse:", "hideMethodButtons", "or:", "notNil", "hideClassButtons", "showClassButtons", "showMethodButtons", "val:", "source"],
  1569. referencedClasses: []
  1570. }),
  1571. smalltalk.Browser);
  1572. smalltalk.addMethod(
  1573. '_updateStatus',
  1574. smalltalk.method({
  1575. selector: 'updateStatus',
  1576. category: 'updating',
  1577. fn: function (){
  1578. var self=this;
  1579. (($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;})]);
  1580. return self;},
  1581. source: unescape('updateStatus%0A%09sourceArea%20val%20%3D%20self%20source%0A%09%09ifTrue%3A%20%5B%0A%09%09%09saveButton%20ifNotNil%3A%20%5B%0A%09%09%09%09saveButton%20at%3A%20%27disabled%27%20put%3A%20true%5D.%0A%20%20%20%20%09%09%09unsavedChanges%20%3A%3D%20false%5D%0A%09%09ifFalse%3A%20%5B%0A%09%09%09saveButton%20ifNotNil%3A%20%5B%0A%20%20%20%20%09%09%09%09saveButton%20removeAt%3A%20%27disabled%27%5D.%0A%20%20%20%20%09%09%09unsavedChanges%20%3A%3D%20true%5D'),
  1582. messageSends: ["ifTrue:ifFalse:", unescape("%3D"), "val", "source", "ifNotNil:", "at:put:", "removeAt:"],
  1583. referencedClasses: []
  1584. }),
  1585. smalltalk.Browser);
  1586. smalltalk.addMethod(
  1587. '_resetClassesList',
  1588. smalltalk.method({
  1589. selector: 'resetClassesList',
  1590. category: 'updating',
  1591. fn: function (){
  1592. var self=this;
  1593. smalltalk.send(self['@classesList'], "_resetNodes", []);
  1594. return self;},
  1595. source: unescape('resetClassesList%0A%09classesList%20resetNodes'),
  1596. messageSends: ["resetNodes"],
  1597. referencedClasses: []
  1598. }),
  1599. smalltalk.Browser);
  1600. smalltalk.addMethod(
  1601. '_commitPathJs',
  1602. smalltalk.method({
  1603. selector: 'commitPathJs',
  1604. category: 'accessing',
  1605. fn: function (){
  1606. var self=this;
  1607. return "js";
  1608. return self;},
  1609. source: unescape('commitPathJs%0A%09%5E%27js%27'),
  1610. messageSends: [],
  1611. referencedClasses: []
  1612. }),
  1613. smalltalk.Browser.klass);
  1614. smalltalk.addMethod(
  1615. '_commitPathSt',
  1616. smalltalk.method({
  1617. selector: 'commitPathSt',
  1618. category: 'accessing',
  1619. fn: function (){
  1620. var self=this;
  1621. return "st";
  1622. return self;},
  1623. source: unescape('commitPathSt%0A%09%5E%27st%27'),
  1624. messageSends: [],
  1625. referencedClasses: []
  1626. }),
  1627. smalltalk.Browser.klass);
  1628. smalltalk.addMethod(
  1629. '_openOn_',
  1630. smalltalk.method({
  1631. selector: 'openOn:',
  1632. category: 'convenience',
  1633. fn: function (aClass){
  1634. var self=this;
  1635. 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", []));
  1636. return self;},
  1637. source: unescape('openOn%3A%20aClass%0A%20%20%20%20%5Eself%20new%0A%09open%3B%0A%09selectCategory%3A%20aClass%20category%3B%0A%09selectClass%3A%20aClass'),
  1638. messageSends: ["open", "selectCategory:", "category", "selectClass:", "new"],
  1639. referencedClasses: []
  1640. }),
  1641. smalltalk.Browser.klass);
  1642. smalltalk.addMethod(
  1643. '_open',
  1644. smalltalk.method({
  1645. selector: 'open',
  1646. category: 'convenience',
  1647. fn: function (){
  1648. var self=this;
  1649. smalltalk.send(smalltalk.send(self, "_new", []), "_open", []);
  1650. return self;},
  1651. source: unescape('open%0A%20%20%20%20self%20new%20open'),
  1652. messageSends: ["open", "new"],
  1653. referencedClasses: []
  1654. }),
  1655. smalltalk.Browser.klass);
  1656. smalltalk.addClass('Inspector', smalltalk.TabWidget, ['label', 'variables', 'object', 'selectedVariable', 'variablesList', 'valueTextarea', 'workspaceTextarea', 'diveButton'], 'IDE');
  1657. smalltalk.addMethod(
  1658. '_label',
  1659. smalltalk.method({
  1660. selector: 'label',
  1661. category: 'accessing',
  1662. fn: function (){
  1663. var self=this;
  1664. return (($receiver = self['@label']) == nil || $receiver == undefined) ? (function(){return unescape("Inspector%20%28nil%29");})() : $receiver;
  1665. return self;},
  1666. source: unescape('label%0A%09%5Elabel%20ifNil%3A%20%5B%27Inspector%20%28nil%29%27%5D'),
  1667. messageSends: ["ifNil:"],
  1668. referencedClasses: []
  1669. }),
  1670. smalltalk.Inspector);
  1671. smalltalk.addMethod(
  1672. '_variables',
  1673. smalltalk.method({
  1674. selector: 'variables',
  1675. category: 'accessing',
  1676. fn: function (){
  1677. var self=this;
  1678. return self['@variables'];
  1679. return self;},
  1680. source: unescape('variables%0A%09%5Evariables'),
  1681. messageSends: [],
  1682. referencedClasses: []
  1683. }),
  1684. smalltalk.Inspector);
  1685. smalltalk.addMethod(
  1686. '_setVariables_',
  1687. smalltalk.method({
  1688. selector: 'setVariables:',
  1689. category: 'accessing',
  1690. fn: function (aCollection){
  1691. var self=this;
  1692. self['@variables']=aCollection;
  1693. return self;},
  1694. source: unescape('setVariables%3A%20aCollection%0A%09variables%20%3A%3D%20aCollection'),
  1695. messageSends: [],
  1696. referencedClasses: []
  1697. }),
  1698. smalltalk.Inspector);
  1699. smalltalk.addMethod(
  1700. '_setLabel_',
  1701. smalltalk.method({
  1702. selector: 'setLabel:',
  1703. category: 'accessing',
  1704. fn: function (aString){
  1705. var self=this;
  1706. self['@label']=aString;
  1707. return self;},
  1708. source: unescape('setLabel%3A%20aString%0A%09label%20%3A%3D%20aString'),
  1709. messageSends: [],
  1710. referencedClasses: []
  1711. }),
  1712. smalltalk.Inspector);
  1713. smalltalk.addMethod(
  1714. '_selectedVariable',
  1715. smalltalk.method({
  1716. selector: 'selectedVariable',
  1717. category: 'accessing',
  1718. fn: function (){
  1719. var self=this;
  1720. return self['@selectedVariable'];
  1721. return self;},
  1722. source: unescape('selectedVariable%0A%09%5EselectedVariable'),
  1723. messageSends: [],
  1724. referencedClasses: []
  1725. }),
  1726. smalltalk.Inspector);
  1727. smalltalk.addMethod(
  1728. '_selectedVariable_',
  1729. smalltalk.method({
  1730. selector: 'selectedVariable:',
  1731. category: 'accessing',
  1732. fn: function (aString){
  1733. var self=this;
  1734. self['@selectedVariable']=aString;
  1735. return self;},
  1736. source: unescape('selectedVariable%3A%20aString%0A%09selectedVariable%20%3A%3D%20aString'),
  1737. messageSends: [],
  1738. referencedClasses: []
  1739. }),
  1740. smalltalk.Inspector);
  1741. smalltalk.addMethod(
  1742. '_inspect_',
  1743. smalltalk.method({
  1744. selector: 'inspect:',
  1745. category: 'actions',
  1746. fn: function (anObject){
  1747. var self=this;
  1748. self['@object']=anObject;
  1749. self['@variables']=[];
  1750. smalltalk.send(self['@object'], "_inspectOn_", [self]);
  1751. return self;},
  1752. source: unescape('inspect%3A%20anObject%0A%09object%20%3A%3D%20anObject.%0A%09variables%20%3A%3D%20%23%28%29.%0A%09object%20inspectOn%3A%20self'),
  1753. messageSends: ["inspectOn:"],
  1754. referencedClasses: []
  1755. }),
  1756. smalltalk.Inspector);
  1757. smalltalk.addMethod(
  1758. '_dive',
  1759. smalltalk.method({
  1760. selector: 'dive',
  1761. category: 'actions',
  1762. fn: function (){
  1763. var self=this;
  1764. smalltalk.send(smalltalk.send(smalltalk.send(self, "_variables", []), "_at_", [smalltalk.send(self, "_selectedVariable", [])]), "_inspect", []);
  1765. return self;},
  1766. source: unescape('dive%0A%09%28self%20variables%20at%3A%20self%20selectedVariable%29%20inspect'),
  1767. messageSends: ["inspect", "at:", "variables", "selectedVariable"],
  1768. referencedClasses: []
  1769. }),
  1770. smalltalk.Inspector);
  1771. smalltalk.addMethod(
  1772. '_refresh',
  1773. smalltalk.method({
  1774. selector: 'refresh',
  1775. category: 'actions',
  1776. fn: function (){
  1777. var self=this;
  1778. (function($rec){smalltalk.send($rec, "_inspect_", [self['@object']]);smalltalk.send($rec, "_updateVariablesList", []);return smalltalk.send($rec, "_updateValueTextarea", []);})(self);
  1779. return self;},
  1780. source: unescape('refresh%0A%09self%20%0A%09%09inspect%3A%20object%3B%20%0A%09%09updateVariablesList%3B%0A%09%09updateValueTextarea'),
  1781. messageSends: ["inspect:", "updateVariablesList", "updateValueTextarea"],
  1782. referencedClasses: []
  1783. }),
  1784. smalltalk.Inspector);
  1785. smalltalk.addMethod(
  1786. '_renderBoxOn_',
  1787. smalltalk.method({
  1788. selector: 'renderBoxOn:',
  1789. category: 'rendering',
  1790. fn: function (html){
  1791. var self=this;
  1792. (function($rec){smalltalk.send($rec, "_renderTopPanelOn_", [html]);return smalltalk.send($rec, "_renderBottomPanelOn_", [html]);})(self);
  1793. return self;},
  1794. source: unescape('renderBoxOn%3A%20html%0A%09self%20%0A%09%09renderTopPanelOn%3A%20html%3B%0A%09%09renderBottomPanelOn%3A%20html'),
  1795. messageSends: ["renderTopPanelOn:", "renderBottomPanelOn:"],
  1796. referencedClasses: []
  1797. }),
  1798. smalltalk.Inspector);
  1799. smalltalk.addMethod(
  1800. '_renderTopPanelOn_',
  1801. smalltalk.method({
  1802. selector: 'renderTopPanelOn:',
  1803. category: 'rendering',
  1804. fn: function (html){
  1805. var self=this;
  1806. (function($rec){smalltalk.send($rec, "_class_", ["top"]);return smalltalk.send($rec, "_with_", [(function(){self['@variablesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column variables"]);self['@valueTextarea']=(function($rec){smalltalk.send($rec, "_class_", ["jt_column value"]);return smalltalk.send($rec, "_at_put_", ["readonly", "readonly"]);})(smalltalk.send(html, "_textarea", []));(function($rec){smalltalk.send($rec, "_updateVariablesList", []);return smalltalk.send($rec, "_updateValueTextarea", []);})(self);return smalltalk.send(smalltalk.send(html, "_div", []), "_class_", ["jt_clear"]);})]);})(smalltalk.send(html, "_div", []));
  1807. return self;},
  1808. source: unescape('renderTopPanelOn%3A%20html%0A%20%20%20%20html%20div%20%0A%09class%3A%20%27top%27%3B%20%0A%09with%3A%20%5B%0A%09%20%20%20%20variablesList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20variables%27.%0A%09%20%20%20%20valueTextarea%20%3A%3D%20html%20textarea%20class%3A%20%27jt_column%20value%27%3B%20at%3A%20%27readonly%27%20put%3A%20%27readonly%27.%0A%09%20%20%20%20self%0A%09%09updateVariablesList%3B%0A%09%09updateValueTextarea.%0A%09%20%20%20%20html%20div%20class%3A%20%27jt_clear%27%5D'),
  1809. messageSends: ["class:", "with:", "ul", "at:put:", "textarea", "updateVariablesList", "updateValueTextarea", "div"],
  1810. referencedClasses: []
  1811. }),
  1812. smalltalk.Inspector);
  1813. smalltalk.addMethod(
  1814. '_renderBottomPanelOn_',
  1815. smalltalk.method({
  1816. selector: 'renderBottomPanelOn:',
  1817. category: 'rendering',
  1818. fn: function (html){
  1819. var self=this;
  1820. (function($rec){smalltalk.send($rec, "_class_", ["jt_sourceCode"]);return smalltalk.send($rec, "_with_", [(function(){self['@workspaceTextarea']=(function($rec){smalltalk.send($rec, "_class_", ["source"]);return smalltalk.send($rec, "_at_put_", ["spellcheck", "false"]);})(smalltalk.send(html, "_textarea", []));return smalltalk.send(smalltalk.send(self['@workspaceTextarea'], "_asJQuery", []), "_call_", ["tabby"]);})]);})(smalltalk.send(html, "_div", []));
  1821. return self;},
  1822. source: unescape('renderBottomPanelOn%3A%20html%0A%20%20%20%20html%20div%0A%09class%3A%20%27jt_sourceCode%27%3B%0A%09with%3A%20%5B%0A%09%20%20%20%20workspaceTextarea%20%3A%3D%20html%20textarea%20%0A%09%09class%3A%20%27source%27%3B%0A%09%09at%3A%20%27spellcheck%27%20put%3A%20%27false%27.%0A%09%20%20%20%20workspaceTextarea%20asJQuery%20call%3A%20%27tabby%27%5D'),
  1823. messageSends: ["class:", "with:", "at:put:", "textarea", "call:", "asJQuery", "div"],
  1824. referencedClasses: []
  1825. }),
  1826. smalltalk.Inspector);
  1827. smalltalk.addMethod(
  1828. '_renderButtonsOn_',
  1829. smalltalk.method({
  1830. selector: 'renderButtonsOn:',
  1831. category: 'rendering',
  1832. fn: function (html){
  1833. var self=this;
  1834. (function($rec){smalltalk.send($rec, "_with_", ["Refresh"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_refresh", []);})]);})(smalltalk.send(html, "_button", []));
  1835. self['@diveButton']=(function($rec){smalltalk.send($rec, "_with_", ["Dive"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_dive", []);})]);})(smalltalk.send(html, "_button", []));
  1836. smalltalk.send(self, "_updateButtons", []);
  1837. return self;},
  1838. source: unescape('renderButtonsOn%3A%20html%0A%09html%20button%0A%09%09with%3A%20%27Refresh%27%3B%0A%09%09onClick%3A%20%5Bself%20refresh%5D.%0A%09diveButton%20%3A%3D%20html%20button%20%0A%09%09with%3A%20%27Dive%27%3B%20%0A%09%09onClick%3A%20%5Bself%20dive%5D.%0A%09self%20updateButtons'),
  1839. messageSends: ["with:", "onClick:", "refresh", "button", "dive", "updateButtons"],
  1840. referencedClasses: []
  1841. }),
  1842. smalltalk.Inspector);
  1843. smalltalk.addMethod(
  1844. '_canBeClosed',
  1845. smalltalk.method({
  1846. selector: 'canBeClosed',
  1847. category: 'testing',
  1848. fn: function (){
  1849. var self=this;
  1850. return true;
  1851. return self;},
  1852. source: unescape('canBeClosed%0A%09%5Etrue'),
  1853. messageSends: [],
  1854. referencedClasses: []
  1855. }),
  1856. smalltalk.Inspector);
  1857. smalltalk.addMethod(
  1858. '_updateVariablesList',
  1859. smalltalk.method({
  1860. selector: 'updateVariablesList',
  1861. category: 'updating',
  1862. fn: function (){
  1863. var self=this;
  1864. smalltalk.send(self['@variablesList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_variables", []), "_keys", []), "_do_", [(function(each){var li=nil;
  1865. 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"]);})]);})]);})]);
  1866. return self;},
  1867. source: unescape('updateVariablesList%0A%09variablesList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09self%20variables%20keys%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20%7C%0A%09%09%09li%20%3A%3D%20html%20li.%0A%09%09%09li%0A%09%09%09%09with%3A%20each%3B%0A%09%09%09%09onClick%3A%20%5Bself%20selectVariable%3A%20each%5D.%0A%09%09%09self%20selectedVariable%20%3D%20each%20ifTrue%3A%20%5B%0A%09%09%09%09li%20class%3A%20%27selected%27%5D%5D%5D'),
  1868. messageSends: ["contents:", "do:", "keys", "variables", "li", "with:", "onClick:", "selectVariable:", "ifTrue:", unescape("%3D"), "selectedVariable", "class:"],
  1869. referencedClasses: []
  1870. }),
  1871. smalltalk.Inspector);
  1872. smalltalk.addMethod(
  1873. '_selectVariable_',
  1874. smalltalk.method({
  1875. selector: 'selectVariable:',
  1876. category: 'updating',
  1877. fn: function (aString){
  1878. var self=this;
  1879. smalltalk.send(self, "_selectedVariable_", [aString]);
  1880. (function($rec){smalltalk.send($rec, "_updateVariablesList", []);smalltalk.send($rec, "_updateValueTextarea", []);return smalltalk.send($rec, "_updateButtons", []);})(self);
  1881. return self;},
  1882. source: unescape('selectVariable%3A%20aString%0A%09self%20selectedVariable%3A%20aString.%0A%09self%20%0A%09%09updateVariablesList%3B%0A%09%09updateValueTextarea%3B%0A%09%09updateButtons'),
  1883. messageSends: ["selectedVariable:", "updateVariablesList", "updateValueTextarea", "updateButtons"],
  1884. referencedClasses: []
  1885. }),
  1886. smalltalk.Inspector);
  1887. smalltalk.addMethod(
  1888. '_updateValueTextarea',
  1889. smalltalk.method({
  1890. selector: 'updateValueTextarea',
  1891. category: 'updating',
  1892. fn: function (){
  1893. var self=this;
  1894. 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", []);})])]);
  1895. return self;},
  1896. source: unescape('updateValueTextarea%0A%09valueTextarea%20asJQuery%20val%3A%20%28self%20selectedVariable%20isNil%0A%09%09ifTrue%3A%20%5B%27%27%5D%0A%09%09ifFalse%3A%20%5B%28self%20variables%20at%3A%20self%20selectedVariable%29%20printString%5D%29'),
  1897. messageSends: ["val:", "asJQuery", "ifTrue:ifFalse:", "isNil", "selectedVariable", "printString", "at:", "variables"],
  1898. referencedClasses: []
  1899. }),
  1900. smalltalk.Inspector);
  1901. smalltalk.addMethod(
  1902. '_updateButtons',
  1903. smalltalk.method({
  1904. selector: 'updateButtons',
  1905. category: 'updating',
  1906. fn: function (){
  1907. var self=this;
  1908. (($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"]);})]);
  1909. return self;},
  1910. source: unescape('updateButtons%0A%09%28self%20selectedVariable%20notNil%20and%3A%20%5B%28self%20variables%20at%3A%20self%20selectedVariable%29%20notNil%5D%29%0A%09%09ifFalse%3A%20%5BdiveButton%20at%3A%20%27disabled%27%20put%3A%20true%5D%20%0A%09%09ifTrue%3A%20%5BdiveButton%20removeAt%3A%20%27disabled%27%5D'),
  1911. messageSends: ["ifFalse:ifTrue:", "and:", "notNil", "selectedVariable", "at:", "variables", "at:put:", "removeAt:"],
  1912. referencedClasses: []
  1913. }),
  1914. smalltalk.Inspector);
  1915. smalltalk.addMethod(
  1916. '_on_',
  1917. smalltalk.method({
  1918. selector: 'on:',
  1919. category: 'instance creation',
  1920. fn: function (anObject){
  1921. var self=this;
  1922. return (function($rec){smalltalk.send($rec, "_inspect_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  1923. return self;},
  1924. source: unescape('on%3A%20anObject%0A%09%5Eself%20new%0A%09%09inspect%3A%20anObject%3B%0A%09%09yourself'),
  1925. messageSends: ["inspect:", "yourself", "new"],
  1926. referencedClasses: []
  1927. }),
  1928. smalltalk.Inspector.klass);
  1929. smalltalk.addClass('ReferencesBrowser', smalltalk.TabWidget, ['implementors', 'senders', 'implementorsList', 'input', 'timer', 'selector', 'sendersList', 'referencedClasses', 'referencedClassesList'], 'IDE');
  1930. smalltalk.addMethod(
  1931. '_implementors',
  1932. smalltalk.method({
  1933. selector: 'implementors',
  1934. category: 'accessing',
  1935. fn: function (){
  1936. var self=this;
  1937. return (($receiver = self['@implementors']) == nil || $receiver == undefined) ? (function(){return self['@implementors']=smalltalk.send((smalltalk.Array || Array), "_new", []);})() : $receiver;
  1938. return self;},
  1939. source: unescape('implementors%0A%09%5Eimplementors%20ifNil%3A%20%5Bimplementors%20%3A%3D%20Array%20new%5D'),
  1940. messageSends: ["ifNil:", "new"],
  1941. referencedClasses: [smalltalk.Array]
  1942. }),
  1943. smalltalk.ReferencesBrowser);
  1944. smalltalk.addMethod(
  1945. '_label',
  1946. smalltalk.method({
  1947. selector: 'label',
  1948. category: 'accessing',
  1949. fn: function (){
  1950. var self=this;
  1951. return unescape("%5BReferencesBrowser%5D");
  1952. return self;},
  1953. source: unescape('label%0A%09%5E%27%5BReferencesBrowser%5D%27'),
  1954. messageSends: [],
  1955. referencedClasses: []
  1956. }),
  1957. smalltalk.ReferencesBrowser);
  1958. smalltalk.addMethod(
  1959. '_selector',
  1960. smalltalk.method({
  1961. selector: 'selector',
  1962. category: 'accessing',
  1963. fn: function (){
  1964. var self=this;
  1965. return self['@selector'];
  1966. return self;},
  1967. source: unescape('selector%0A%09%5Eselector'),
  1968. messageSends: [],
  1969. referencedClasses: []
  1970. }),
  1971. smalltalk.ReferencesBrowser);
  1972. smalltalk.addMethod(
  1973. '_senders',
  1974. smalltalk.method({
  1975. selector: 'senders',
  1976. category: 'accessing',
  1977. fn: function (){
  1978. var self=this;
  1979. return (($receiver = self['@senders']) == nil || $receiver == undefined) ? (function(){return self['@senders']=smalltalk.send((smalltalk.Array || Array), "_new", []);})() : $receiver;
  1980. return self;},
  1981. source: unescape('senders%0A%09%5Esenders%20ifNil%3A%20%5Bsenders%20%3A%3D%20Array%20new%5D'),
  1982. messageSends: ["ifNil:", "new"],
  1983. referencedClasses: [smalltalk.Array]
  1984. }),
  1985. smalltalk.ReferencesBrowser);
  1986. smalltalk.addMethod(
  1987. '_classesAndMetaclasses',
  1988. smalltalk.method({
  1989. selector: 'classesAndMetaclasses',
  1990. category: 'accessing',
  1991. fn: function (){
  1992. var self=this;
  1993. 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", []);})])]);
  1994. return self;},
  1995. source: unescape('classesAndMetaclasses%0A%09%5ESmalltalk%20current%20classes%2C%20%28Smalltalk%20current%20classes%20collect%3A%20%5B%3Aeach%20%7C%20each%20class%5D%29'),
  1996. messageSends: [unescape("%2C"), "classes", "current", "collect:", "class"],
  1997. referencedClasses: [smalltalk.Smalltalk]
  1998. }),
  1999. smalltalk.ReferencesBrowser);
  2000. smalltalk.addMethod(
  2001. '_referencedClasses',
  2002. smalltalk.method({
  2003. selector: 'referencedClasses',
  2004. category: 'accessing',
  2005. fn: function (){
  2006. var self=this;
  2007. return (($receiver = self['@referencedClasses']) == nil || $receiver == undefined) ? (function(){return self['@referencedClasses']=smalltalk.send((smalltalk.Array || Array), "_new", []);})() : $receiver;
  2008. return self;},
  2009. source: unescape('referencedClasses%0A%09%5EreferencedClasses%20ifNil%3A%20%5BreferencedClasses%20%3A%3D%20Array%20new%5D'),
  2010. messageSends: ["ifNil:", "new"],
  2011. referencedClasses: [smalltalk.Array]
  2012. }),
  2013. smalltalk.ReferencesBrowser);
  2014. smalltalk.addMethod(
  2015. '_openBrowserOn_',
  2016. smalltalk.method({
  2017. selector: 'openBrowserOn:',
  2018. category: 'actions',
  2019. fn: function (aMethod){
  2020. var self=this;
  2021. var browser=nil;
  2022. browser=smalltalk.send((smalltalk.Browser || Browser), "_openOn_", [(($receiver = smalltalk.send(smalltalk.send(aMethod, "_class", []), "_isMetaclass", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(smalltalk.send(aMethod, "_methodClass", []), "_instanceClass", []);})() : (function(){return smalltalk.send(aMethod, "_methodClass", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(aMethod, "_methodClass", []), "_instanceClass", []);}), (function(){return smalltalk.send(aMethod, "_methodClass", []);})])]);
  2023. (($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"]);})]);
  2024. (function($rec){smalltalk.send($rec, "_selectProtocol_", [smalltalk.send(aMethod, "_category", [])]);return smalltalk.send($rec, "_selectMethod_", [aMethod]);})(browser);
  2025. return self;},
  2026. source: unescape('openBrowserOn%3A%20aMethod%0A%20%20%20%20%20%20%20%7C%20browser%20%7C%0A%20%20%20%20%20%20%20browser%20%3A%3D%20Browser%20openOn%3A%20%28aMethod%20class%20isMetaclass%20%0A%09%09ifTrue%3A%20%5BaMethod%20methodClass%20instanceClass%5D%20ifFalse%3A%20%5BaMethod%20methodClass%5D%29.%0A%20%20%20%20%20%20%20aMethod%20methodClass%20isMetaclass%20ifTrue%3A%20%5Bbrowser%20selectTab%3A%20%23class%5D.%0A%20%20%20%20%20%20%20browser%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20selectProtocol%3A%20aMethod%20category%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20selectMethod%3A%20aMethod'),
  2027. messageSends: ["openOn:", "ifTrue:ifFalse:", "isMetaclass", "class", "instanceClass", "methodClass", "ifTrue:", "selectTab:", "selectProtocol:", "category", "selectMethod:"],
  2028. referencedClasses: [smalltalk.Browser]
  2029. }),
  2030. smalltalk.ReferencesBrowser);
  2031. smalltalk.addMethod(
  2032. '_searchReferencesFor_',
  2033. smalltalk.method({
  2034. selector: 'searchReferencesFor:',
  2035. category: 'actions',
  2036. fn: function (aString){
  2037. var self=this;
  2038. self['@selector']=aString;
  2039. self['@implementors']=smalltalk.send((smalltalk.Array || Array), "_new", []);
  2040. self['@senders']=smalltalk.send((smalltalk.Array || Array), "_new", []);
  2041. self['@referencedClasses']=smalltalk.send((smalltalk.Array || Array), "_new", []);
  2042. (($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']]);})]);
  2043. return self;},
  2044. source: unescape('searchReferencesFor%3A%20aString%0A%09selector%20%3A%3D%20aString.%0A%09implementors%20%3A%3D%20Array%20new.%0A%09senders%20%3A%3D%20Array%20new.%0A%09referencedClasses%20%3A%3D%20Array%20new.%0A%09%28selector%20match%3A%20%27%5E%5BA-Z%5D%27%29%20%0A%09%09ifFalse%3A%20%5Bself%20searchSelectorReferencesFor%3A%20selector%5D%0A%09%09ifTrue%3A%20%5Bself%20searchReferencedClassesFor%3A%20selector%5D'),
  2045. messageSends: ["new", "ifFalse:ifTrue:", "match:", "searchSelectorReferencesFor:", "searchReferencedClassesFor:"],
  2046. referencedClasses: [smalltalk.Array]
  2047. }),
  2048. smalltalk.ReferencesBrowser);
  2049. smalltalk.addMethod(
  2050. '_search_',
  2051. smalltalk.method({
  2052. selector: 'search:',
  2053. category: 'actions',
  2054. fn: function (aString){
  2055. var self=this;
  2056. (function($rec){smalltalk.send($rec, "_searchReferencesFor_", [aString]);smalltalk.send($rec, "_updateImplementorsList", []);smalltalk.send($rec, "_updateSendersList", []);return smalltalk.send($rec, "_updateReferencedClassesList", []);})(self);
  2057. return self;},
  2058. source: unescape('search%3A%20aString%0A%09self%20%0A%09%09searchReferencesFor%3A%20aString%3B%0A%09%09updateImplementorsList%3B%0A%09%09updateSendersList%3B%0A%09%09updateReferencedClassesList'),
  2059. messageSends: ["searchReferencesFor:", "updateImplementorsList", "updateSendersList", "updateReferencedClassesList"],
  2060. referencedClasses: []
  2061. }),
  2062. smalltalk.ReferencesBrowser);
  2063. smalltalk.addMethod(
  2064. '_searchReferencedClassesFor_',
  2065. smalltalk.method({
  2066. selector: 'searchReferencedClassesFor:',
  2067. category: 'actions',
  2068. fn: function (aString){
  2069. var self=this;
  2070. smalltalk.send(smalltalk.send(self, "_classesAndMetaclasses", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(smalltalk.send(each, "_methodDictionary", []), "_values", []), "_do_", [(function(value){return (($receiver = smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(value, "_referencedClasses", []), "_select_", [(function(each){return smalltalk.send(each, "_notNil", []);})]), "_collect_", [(function(each){return smalltalk.send(each, "_name", []);})]), "_includes_", [self['@selector']])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(smalltalk.send(self, "_referencedClasses", []), "_add_", [value]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(smalltalk.send(self, "_referencedClasses", []), "_add_", [value]);})]);})]);})]);
  2071. return self;},
  2072. source: unescape('searchReferencedClassesFor%3A%20aString%0A%09self%20classesAndMetaclasses%20do%3A%20%5B%3Aeach%20%7C%0A%09%09each%20methodDictionary%20values%20do%3A%20%5B%3Avalue%20%7C%0A%09%09%09%28%28%28value%20referencedClasses%20select%3A%20%5B%3Aeach%20%7C%20each%20notNil%5D%29collect%3A%20%5B%3Aeach%20%7C%20each%20name%5D%29%20includes%3A%20selector%29%20ifTrue%3A%20%5B%0A%09%09%09%09self%20referencedClasses%20add%3A%20value%5D%5D%5D'),
  2073. messageSends: ["do:", "classesAndMetaclasses", "values", "methodDictionary", "ifTrue:", "includes:", "collect:", "select:", "referencedClasses", "notNil", "name", "add:"],
  2074. referencedClasses: []
  2075. }),
  2076. smalltalk.ReferencesBrowser);
  2077. smalltalk.addMethod(
  2078. '_searchSelectorReferencesFor_',
  2079. smalltalk.method({
  2080. selector: 'searchSelectorReferencesFor:',
  2081. category: 'actions',
  2082. fn: function (aString){
  2083. var self=this;
  2084. 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]);})]);})]);})]);
  2085. return self;},
  2086. source: unescape('searchSelectorReferencesFor%3A%20aString%0A%09self%20classesAndMetaclasses%20do%3A%20%5B%3Aeach%20%7C%20%0A%09%09each%20methodDictionary%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%20%0A%09%09%09key%20%3D%20selector%20ifTrue%3A%20%5Bself%20implementors%20add%3A%20value%5D%5D.%0A%09%09each%20methodDictionary%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%20%0A%09%09%09%28value%20messageSends%20includes%3A%20selector%29%20ifTrue%3A%20%5B%0A%09%09%09%09self%20senders%20add%3A%20value%5D%5D%5D'),
  2087. messageSends: ["do:", "classesAndMetaclasses", "keysAndValuesDo:", "methodDictionary", "ifTrue:", unescape("%3D"), "add:", "implementors", "includes:", "messageSends", "senders"],
  2088. referencedClasses: []
  2089. }),
  2090. smalltalk.ReferencesBrowser);
  2091. smalltalk.addMethod(
  2092. '_initialize',
  2093. smalltalk.method({
  2094. selector: 'initialize',
  2095. category: 'initialization',
  2096. fn: function (){
  2097. var self=this;
  2098. smalltalk.send(self, "_initialize", [], smalltalk.TabWidget);
  2099. self['@selector']="";
  2100. return self;},
  2101. source: unescape('initialize%0A%09super%20initialize.%0A%09selector%20%3A%3D%20%27%27'),
  2102. messageSends: ["initialize"],
  2103. referencedClasses: []
  2104. }),
  2105. smalltalk.ReferencesBrowser);
  2106. smalltalk.addMethod(
  2107. '_setInputEvents',
  2108. smalltalk.method({
  2109. selector: 'setInputEvents',
  2110. category: 'private',
  2111. fn: function (){
  2112. var self=this;
  2113. (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']);
  2114. return self;},
  2115. source: unescape('setInputEvents%0A%09input%0A%09%09onKeyUp%3A%20%5Btimer%20%3A%3D%20%5Bself%20search%3A%20input%20asJQuery%20val%5D%20valueWithTimeout%3A%20100%5D%3B%0A%09%09onKeyDown%3A%20%5Btimer%20ifNotNil%3A%20%5Btimer%20clearTimeout%5D%5D'),
  2116. messageSends: ["onKeyUp:", "valueWithTimeout:", "search:", "val", "asJQuery", "onKeyDown:", "ifNotNil:", "clearTimeout"],
  2117. referencedClasses: []
  2118. }),
  2119. smalltalk.ReferencesBrowser);
  2120. smalltalk.addMethod(
  2121. '_renderBoxOn_',
  2122. smalltalk.method({
  2123. selector: 'renderBoxOn:',
  2124. category: 'rendering',
  2125. fn: function (html){
  2126. var self=this;
  2127. (function($rec){smalltalk.send($rec, "_renderInputOn_", [html]);smalltalk.send($rec, "_renderImplementorsOn_", [html]);smalltalk.send($rec, "_renderSendersOn_", [html]);return smalltalk.send($rec, "_renderReferencedClassesOn_", [html]);})(self);
  2128. return self;},
  2129. source: unescape('renderBoxOn%3A%20html%0A%09self%20%0A%09%09renderInputOn%3A%20html%3B%0A%09%09renderImplementorsOn%3A%20html%3B%0A%09%09renderSendersOn%3A%20html%3B%0A%09%09renderReferencedClassesOn%3A%20html'),
  2130. messageSends: ["renderInputOn:", "renderImplementorsOn:", "renderSendersOn:", "renderReferencedClassesOn:"],
  2131. referencedClasses: []
  2132. }),
  2133. smalltalk.ReferencesBrowser);
  2134. smalltalk.addMethod(
  2135. '_renderInputOn_',
  2136. smalltalk.method({
  2137. selector: 'renderInputOn:',
  2138. category: 'rendering',
  2139. fn: function (html){
  2140. var self=this;
  2141. self['@input']=(function($rec){smalltalk.send($rec, "_class_", ["implementors"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_input", []));
  2142. smalltalk.send(smalltalk.send(self['@input'], "_asJQuery", []), "_val_", [self['@selector']]);
  2143. smalltalk.send(self, "_setInputEvents", []);
  2144. return self;},
  2145. source: unescape('renderInputOn%3A%20html%0A%09input%20%3A%3D%20html%20input%20%0A%09%09class%3A%20%27implementors%27%3B%0A%09%09yourself.%0A%09input%20asJQuery%20val%3A%20selector.%0A%09self%20setInputEvents'),
  2146. messageSends: ["class:", "yourself", "input", "val:", "asJQuery", "setInputEvents"],
  2147. referencedClasses: []
  2148. }),
  2149. smalltalk.ReferencesBrowser);
  2150. smalltalk.addMethod(
  2151. '_renderImplementorsOn_',
  2152. smalltalk.method({
  2153. selector: 'renderImplementorsOn:',
  2154. category: 'rendering',
  2155. fn: function (html){
  2156. var self=this;
  2157. self['@implementorsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column implementors"]);
  2158. smalltalk.send(self, "_updateImplementorsList", []);
  2159. return self;},
  2160. source: unescape('renderImplementorsOn%3A%20html%0A%20%20%20%20%09implementorsList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20implementors%27.%0A%09self%20updateImplementorsList'),
  2161. messageSends: ["class:", "ul", "updateImplementorsList"],
  2162. referencedClasses: []
  2163. }),
  2164. smalltalk.ReferencesBrowser);
  2165. smalltalk.addMethod(
  2166. '_renderSendersOn_',
  2167. smalltalk.method({
  2168. selector: 'renderSendersOn:',
  2169. category: 'rendering',
  2170. fn: function (html){
  2171. var self=this;
  2172. self['@sendersList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column senders"]);
  2173. smalltalk.send(self, "_updateSendersList", []);
  2174. return self;},
  2175. source: unescape('renderSendersOn%3A%20html%0A%20%20%20%20%09sendersList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20senders%27.%0A%09self%20updateSendersList'),
  2176. messageSends: ["class:", "ul", "updateSendersList"],
  2177. referencedClasses: []
  2178. }),
  2179. smalltalk.ReferencesBrowser);
  2180. smalltalk.addMethod(
  2181. '_renderReferencedClassesOn_',
  2182. smalltalk.method({
  2183. selector: 'renderReferencedClassesOn:',
  2184. category: 'rendering',
  2185. fn: function (html){
  2186. var self=this;
  2187. self['@referencedClassesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column referenced_classes"]);
  2188. smalltalk.send(self, "_updateReferencedClassesList", []);
  2189. return self;},
  2190. source: unescape('renderReferencedClassesOn%3A%20html%0A%20%20%20%20%09referencedClassesList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20referenced_classes%27.%0A%09self%20updateReferencedClassesList'),
  2191. messageSends: ["class:", "ul", "updateReferencedClassesList"],
  2192. referencedClasses: []
  2193. }),
  2194. smalltalk.ReferencesBrowser);
  2195. smalltalk.addMethod(
  2196. '_canBeClosed',
  2197. smalltalk.method({
  2198. selector: 'canBeClosed',
  2199. category: 'testing',
  2200. fn: function (){
  2201. var self=this;
  2202. return true;
  2203. return self;},
  2204. source: unescape('canBeClosed%0A%09%5Etrue'),
  2205. messageSends: [],
  2206. referencedClasses: []
  2207. }),
  2208. smalltalk.ReferencesBrowser);
  2209. smalltalk.addMethod(
  2210. '_updateImplementorsList',
  2211. smalltalk.method({
  2212. selector: 'updateImplementorsList',
  2213. category: 'updating',
  2214. fn: function (){
  2215. var self=this;
  2216. 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;
  2217. 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);})]);})]);
  2218. return self;},
  2219. source: unescape('updateImplementorsList%0A%20%20%20%20implementorsList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09html%20li%0A%09%09class%3A%20%27column_label%27%3B%20%0A%09%09with%3A%20%27Implementors%20%28%27%2C%20self%20implementors%20size%20asString%2C%20%27%29%27%3B%0A%09%09style%3A%20%27font-weight%3A%20bold%27.%0A%09self%20implementors%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20%7C%0A%09%20%20%20%20li%20%3A%3D%20html%20li.%0A%09%20%20%20%20li%0A%09%09with%3A%20%28each%20methodClass%20asString%2C%20%27%20%3E%3E%20%27%2C%20self%20selector%29%3B%0A%09%09onClick%3A%20%5Bself%20openBrowserOn%3A%20each%5D%5D%5D'),
  2220. messageSends: ["contents:", "class:", "with:", unescape("%2C"), "asString", "size", "implementors", "style:", "li", "do:", "methodClass", "selector", "onClick:", "openBrowserOn:"],
  2221. referencedClasses: []
  2222. }),
  2223. smalltalk.ReferencesBrowser);
  2224. smalltalk.addMethod(
  2225. '_updateSendersList',
  2226. smalltalk.method({
  2227. selector: 'updateSendersList',
  2228. category: 'updating',
  2229. fn: function (){
  2230. var self=this;
  2231. 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", []));})]);})]);
  2232. return self;},
  2233. source: unescape('updateSendersList%0A%20%20%20%20%09sendersList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09html%20li%0A%09%09class%3A%20%27column_label%27%3B%20%0A%09%09with%3A%20%27Senders%20%28%27%2C%20self%20senders%20size%20asString%2C%20%27%29%27%3B%0A%09%09style%3A%20%27font-weight%3A%20bold%27.%0A%09self%20senders%20do%3A%20%5B%3Aeach%20%7C%0A%09%09html%20li%0A%09%20%20%20%20%09%09with%3A%20%28each%20methodClass%20asString%2C%20%27%20%3E%3E%20%27%2C%20each%20selector%29%3B%0A%09%09%09onClick%3A%20%5Bself%20openBrowserOn%3A%20each%5D%5D%5D'),
  2234. messageSends: ["contents:", "class:", "with:", unescape("%2C"), "asString", "size", "senders", "style:", "li", "do:", "methodClass", "selector", "onClick:", "openBrowserOn:"],
  2235. referencedClasses: []
  2236. }),
  2237. smalltalk.ReferencesBrowser);
  2238. smalltalk.addMethod(
  2239. '_updateReferencedClassesList',
  2240. smalltalk.method({
  2241. selector: 'updateReferencedClassesList',
  2242. category: 'updating',
  2243. fn: function (){
  2244. var self=this;
  2245. 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", []));})]);})]);
  2246. return self;},
  2247. source: unescape('updateReferencedClassesList%0A%20%20%20%20%09referencedClassesList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09html%20li%0A%09%09class%3A%20%27column_label%27%3B%20%0A%09%09with%3A%20%27Class%20references%20%28%27%2C%20self%20referencedClasses%20size%20asString%2C%20%27%29%27%3B%0A%09%09style%3A%20%27font-weight%3A%20bold%27.%0A%09self%20referencedClasses%20do%3A%20%5B%3Aeach%20%7C%0A%09%09html%20li%0A%09%20%20%20%20%09%09with%3A%20%28each%20methodClass%20asString%2C%20%27%20%3E%3E%20%27%2C%20each%20selector%29%3B%0A%09%09%09onClick%3A%20%5Bself%20openBrowserOn%3A%20each%5D%5D%5D'),
  2248. messageSends: ["contents:", "class:", "with:", unescape("%2C"), "asString", "size", "referencedClasses", "style:", "li", "do:", "methodClass", "selector", "onClick:", "openBrowserOn:"],
  2249. referencedClasses: []
  2250. }),
  2251. smalltalk.ReferencesBrowser);
  2252. smalltalk.addMethod(
  2253. '_search_',
  2254. smalltalk.method({
  2255. selector: 'search:',
  2256. category: 'instance creation',
  2257. fn: function (aString){
  2258. var self=this;
  2259. return (function($rec){smalltalk.send($rec, "_searchReferencesFor_", [aString]);return smalltalk.send($rec, "_open", []);})(smalltalk.send(self, "_new", []));
  2260. return self;},
  2261. source: unescape('search%3A%20aString%0A%09%5Eself%20new%0A%09%09searchReferencesFor%3A%20aString%3B%0A%09%09open'),
  2262. messageSends: ["searchReferencesFor:", "open", "new"],
  2263. referencedClasses: []
  2264. }),
  2265. smalltalk.ReferencesBrowser.klass);
  2266. smalltalk.addClass('SourceArea', smalltalk.Widget, ['editor', 'div'], 'IDE');
  2267. smalltalk.addMethod(
  2268. '_val',
  2269. smalltalk.method({
  2270. selector: 'val',
  2271. category: 'accessing',
  2272. fn: function (){
  2273. var self=this;
  2274. return smalltalk.send(self['@editor'], "_getValue", []);
  2275. return self;},
  2276. source: unescape('val%0A%20%20%20%20%5Eeditor%20getValue'),
  2277. messageSends: ["getValue"],
  2278. referencedClasses: []
  2279. }),
  2280. smalltalk.SourceArea);
  2281. smalltalk.addMethod(
  2282. '_val_',
  2283. smalltalk.method({
  2284. selector: 'val:',
  2285. category: 'accessing',
  2286. fn: function (aString){
  2287. var self=this;
  2288. smalltalk.send(self['@editor'], "_setValue_", [aString]);
  2289. return self;},
  2290. source: unescape('val%3A%20aString%0A%20%20%20%20editor%20setValue%3A%20aString'),
  2291. messageSends: ["setValue:"],
  2292. referencedClasses: []
  2293. }),
  2294. smalltalk.SourceArea);
  2295. smalltalk.addMethod(
  2296. '_currentLine',
  2297. smalltalk.method({
  2298. selector: 'currentLine',
  2299. category: 'accessing',
  2300. fn: function (){
  2301. var self=this;
  2302. return smalltalk.send(self['@editor'], "_getLine_", [smalltalk.send(smalltalk.send(self['@editor'], "_getCursor", []), "_line", [])]);
  2303. return self;},
  2304. source: unescape('currentLine%0A%20%20%20%20%5Eeditor%20getLine%3A%20%28editor%20getCursor%20line%29'),
  2305. messageSends: ["getLine:", "line", "getCursor"],
  2306. referencedClasses: []
  2307. }),
  2308. smalltalk.SourceArea);
  2309. smalltalk.addMethod(
  2310. '_selection',
  2311. smalltalk.method({
  2312. selector: 'selection',
  2313. category: 'accessing',
  2314. fn: function (){
  2315. var self=this;
  2316. return smalltalk.send(self['@editor'], "_getSelection", []);
  2317. return self;},
  2318. source: unescape('selection%0A%09%5Eeditor%20getSelection'),
  2319. messageSends: ["getSelection"],
  2320. referencedClasses: []
  2321. }),
  2322. smalltalk.SourceArea);
  2323. smalltalk.addMethod(
  2324. '_selectionEnd',
  2325. smalltalk.method({
  2326. selector: 'selectionEnd',
  2327. category: 'accessing',
  2328. fn: function (){
  2329. var self=this;
  2330. return smalltalk.send(smalltalk.send((typeof textarea == 'undefined' ? nil : textarea), "_element", []), "_selectionEnd", []);
  2331. return self;},
  2332. source: unescape('selectionEnd%0A%20%20%20%5Etextarea%20element%20selectionEnd'),
  2333. messageSends: ["selectionEnd", "element"],
  2334. referencedClasses: []
  2335. }),
  2336. smalltalk.SourceArea);
  2337. smalltalk.addMethod(
  2338. '_selectionStart',
  2339. smalltalk.method({
  2340. selector: 'selectionStart',
  2341. category: 'accessing',
  2342. fn: function (){
  2343. var self=this;
  2344. return smalltalk.send(smalltalk.send((typeof textarea == 'undefined' ? nil : textarea), "_element", []), "_selectionStart", []);
  2345. return self;},
  2346. source: unescape('selectionStart%0A%20%20%20%5Etextarea%20element%20selectionStart'),
  2347. messageSends: ["selectionStart", "element"],
  2348. referencedClasses: []
  2349. }),
  2350. smalltalk.SourceArea);
  2351. smalltalk.addMethod(
  2352. '_selectionStart_',
  2353. smalltalk.method({
  2354. selector: 'selectionStart:',
  2355. category: 'accessing',
  2356. fn: function (anInteger){
  2357. var self=this;
  2358. smalltalk.send(smalltalk.send((typeof textarea == 'undefined' ? nil : textarea), "_element", []), "_selectionStart_", [anInteger]);
  2359. return self;},
  2360. source: unescape('selectionStart%3A%20anInteger%0A%20%20%20textarea%20element%20selectionStart%3A%20anInteger'),
  2361. messageSends: ["selectionStart:", "element"],
  2362. referencedClasses: []
  2363. }),
  2364. smalltalk.SourceArea);
  2365. smalltalk.addMethod(
  2366. '_selectionEnd_',
  2367. smalltalk.method({
  2368. selector: 'selectionEnd:',
  2369. category: 'accessing',
  2370. fn: function (anInteger){
  2371. var self=this;
  2372. smalltalk.send(smalltalk.send((typeof textarea == 'undefined' ? nil : textarea), "_element", []), "_selectionEnd_", [anInteger]);
  2373. return self;},
  2374. source: unescape('selectionEnd%3A%20anInteger%0A%20%20%20textarea%20element%20selectionEnd%3A%20anInteger'),
  2375. messageSends: ["selectionEnd:", "element"],
  2376. referencedClasses: []
  2377. }),
  2378. smalltalk.SourceArea);
  2379. smalltalk.addMethod(
  2380. '_setEditorOn_',
  2381. smalltalk.method({
  2382. selector: 'setEditorOn:',
  2383. category: 'accessing',
  2384. fn: function (aTextarea){
  2385. var self=this;
  2386. self['@editor'] = CodeMirror.fromTextArea(aTextarea, {
  2387. theme: 'jtalk',
  2388. lineNumbers: true,
  2389. enterMode: 'classic',
  2390. matchBrackets: true,
  2391. electricChars: false,
  2392. });
  2393. return self;},
  2394. source: unescape('setEditorOn%3A%20aTextarea%0A%09%3Cself%5B%27@editor%27%5D%20%3D%20CodeMirror.fromTextArea%28aTextarea%2C%20%7B%0A%20%20%20%20%20%20%20%20%09theme%3A%20%27jtalk%27%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20lineNumbers%3A%20true%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20enterMode%3A%20%27classic%27%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20matchBrackets%3A%20true%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20electricChars%3A%20false%2C%0A%09%7D%29%3E'),
  2395. messageSends: [],
  2396. referencedClasses: []
  2397. }),
  2398. smalltalk.SourceArea);
  2399. smalltalk.addMethod(
  2400. '_editor',
  2401. smalltalk.method({
  2402. selector: 'editor',
  2403. category: 'accessing',
  2404. fn: function (){
  2405. var self=this;
  2406. return self['@editor'];
  2407. return self;},
  2408. source: unescape('editor%0A%09%5Eeditor'),
  2409. messageSends: [],
  2410. referencedClasses: []
  2411. }),
  2412. smalltalk.SourceArea);
  2413. smalltalk.addMethod(
  2414. '_clear',
  2415. smalltalk.method({
  2416. selector: 'clear',
  2417. category: 'actions',
  2418. fn: function (){
  2419. var self=this;
  2420. smalltalk.send(smalltalk.send((typeof textarea == 'undefined' ? nil : textarea), "_asJQuery", []), "_val_", [""]);
  2421. return self;},
  2422. source: unescape('clear%0A%20%20%20%20textarea%20asJQuery%20val%3A%20%27%27'),
  2423. messageSends: ["val:", "asJQuery"],
  2424. referencedClasses: []
  2425. }),
  2426. smalltalk.SourceArea);
  2427. smalltalk.addMethod(
  2428. '_doIt',
  2429. smalltalk.method({
  2430. selector: 'doIt',
  2431. category: 'actions',
  2432. fn: function (){
  2433. var self=this;
  2434. var selection=nil;
  2435. (($receiver = smalltalk.send(self['@editor'], "_somethingSelected", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return selection=smalltalk.send(self, "_currentLine", []);})() : (function(){return selection=smalltalk.send(self, "_selection", []);})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){return selection=smalltalk.send(self, "_currentLine", []);}), (function(){return selection=smalltalk.send(self, "_selection", []);})]);
  2436. return smalltalk.send(self, "_eval_", [selection]);
  2437. return self;},
  2438. source: unescape('doIt%0A%20%20%20%20%7C%20selection%20%7C%0A%20%20%20%20editor%20somethingSelected%0A%09ifFalse%3A%20%5Bselection%20%3A%3D%20self%20currentLine%5D%0A%09ifTrue%3A%20%5Bselection%20%3A%3D%20self%20selection%5D.%0A%20%20%20%20%5Eself%20eval%3A%20selection'),
  2439. messageSends: ["ifFalse:ifTrue:", "somethingSelected", "currentLine", "selection", "eval:"],
  2440. referencedClasses: []
  2441. }),
  2442. smalltalk.SourceArea);
  2443. smalltalk.addMethod(
  2444. '_eval_',
  2445. smalltalk.method({
  2446. selector: 'eval:',
  2447. category: 'actions',
  2448. fn: function (aString){
  2449. var self=this;
  2450. try{var compiler=nil;
  2451. var node=nil;
  2452. compiler=smalltalk.send((smalltalk.Compiler || Compiler), "_new", []);
  2453. node=smalltalk.send(compiler, "_parseExpression_", [aString]);
  2454. (($receiver = smalltalk.send(node, "_isParseFailure", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_eval_', fn: function(){return smalltalk.send(self, "_alert_", [smalltalk.send(smalltalk.send(smalltalk.send(node, "_reason", []), "__comma", [unescape("%2C%20position%3A%20")]), "__comma", [smalltalk.send(node, "_position", [])])])}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_eval_', fn: function(){return smalltalk.send(self, "_alert_", [smalltalk.send(smalltalk.send(smalltalk.send(node, "_reason", []), "__comma", [unescape("%2C%20position%3A%20")]), "__comma", [smalltalk.send(node, "_position", [])])])}})})();})]);
  2455. (function(){throw({name: 'stReturn', selector: '_eval_', fn: function(){return smalltalk.send(compiler, "_loadExpression_", [aString])}})})();
  2456. return self;
  2457. } catch(e) {if(e.name === 'stReturn' && e.selector === '_eval_'){return e.fn()} throw(e)}},
  2458. source: unescape('eval%3A%20aString%0A%20%20%20%20%7C%20compiler%20node%20%7C%0A%20%20%20%20compiler%20%3A%3D%20Compiler%20new.%0A%20%20%20%20node%20%3A%3D%20compiler%20parseExpression%3A%20aString.%0A%20%20%20%20node%20isParseFailure%20ifTrue%3A%20%5B%0A%09%5Eself%20alert%3A%20node%20reason%2C%20%27%2C%20position%3A%20%27%2C%20node%20position%5D.%0A%20%20%20%20%5Ecompiler%20loadExpression%3A%20aString'),
  2459. messageSends: ["new", "parseExpression:", "ifTrue:", "isParseFailure", "alert:", unescape("%2C"), "reason", "position", "loadExpression:"],
  2460. referencedClasses: [smalltalk.Compiler]
  2461. }),
  2462. smalltalk.SourceArea);
  2463. smalltalk.addMethod(
  2464. '_handleKeyDown_',
  2465. smalltalk.method({
  2466. selector: 'handleKeyDown:',
  2467. category: 'actions',
  2468. fn: function (anEvent){
  2469. var self=this;
  2470. if(anEvent.ctrlKey) {
  2471. if(anEvent.keyCode === 80) { //ctrl+p
  2472. self._printIt();
  2473. anEvent.preventDefault();
  2474. return false;
  2475. }
  2476. if(anEvent.keyCode === 68) { //ctrl+d
  2477. self._doIt();
  2478. anEvent.preventDefault();
  2479. return false;
  2480. }
  2481. if(anEvent.keyCode === 73) { //ctrl+i
  2482. self._inspectIt();
  2483. anEvent.preventDefault();
  2484. return false;
  2485. }
  2486. };
  2487. return self;},
  2488. source: unescape('handleKeyDown%3A%20anEvent%0A%20%20%20%20%3Cif%28anEvent.ctrlKey%29%20%7B%0A%09%09if%28anEvent.keyCode%20%3D%3D%3D%2080%29%20%7B%20//ctrl+p%0A%09%09%09self._printIt%28%29%3B%0A%09%09%09anEvent.preventDefault%28%29%3B%0A%09%09%09return%20false%3B%0A%09%09%7D%0A%09%09if%28anEvent.keyCode%20%3D%3D%3D%2068%29%20%7B%20//ctrl+d%0A%09%09%09self._doIt%28%29%3B%0A%09%09%09anEvent.preventDefault%28%29%3B%0A%09%09%09return%20false%3B%0A%09%09%7D%0A%09%09if%28anEvent.keyCode%20%3D%3D%3D%2073%29%20%7B%20//ctrl+i%0A%09%09%09self._inspectIt%28%29%3B%0A%09%09%09anEvent.preventDefault%28%29%3B%0A%09%09%09return%20false%3B%0A%09%09%7D%0A%09%7D%3E'),
  2489. messageSends: [],
  2490. referencedClasses: []
  2491. }),
  2492. smalltalk.SourceArea);
  2493. smalltalk.addMethod(
  2494. '_inspectIt',
  2495. smalltalk.method({
  2496. selector: 'inspectIt',
  2497. category: 'actions',
  2498. fn: function (){
  2499. var self=this;
  2500. smalltalk.send(smalltalk.send(self, "_doIt", []), "_inspect", []);
  2501. return self;},
  2502. source: unescape('inspectIt%0A%20%20%20%20self%20doIt%20inspect'),
  2503. messageSends: ["inspect", "doIt"],
  2504. referencedClasses: []
  2505. }),
  2506. smalltalk.SourceArea);
  2507. smalltalk.addMethod(
  2508. '_print_',
  2509. smalltalk.method({
  2510. selector: 'print:',
  2511. category: 'actions',
  2512. fn: function (aString){
  2513. var self=this;
  2514. var start=nil;
  2515. var stop=nil;
  2516. start=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  2517. stop=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  2518. smalltalk.send(start, "_at_put_", ["line", smalltalk.send(smalltalk.send(self['@editor'], "_getCursor_", [false]), "_line", [])]);
  2519. smalltalk.send(start, "_at_put_", ["ch", smalltalk.send(smalltalk.send(self['@editor'], "_getCursor_", [false]), "_ch", [])]);
  2520. smalltalk.send(stop, "_at_put_", ["line", smalltalk.send(start, "_at_", ["line"])]);
  2521. 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)])]);
  2522. smalltalk.send(self['@editor'], "_replaceSelection_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self['@editor'], "_getSelection", []), "__comma", [" "]), "__comma", [aString]), "__comma", [" "])]);
  2523. smalltalk.send(self['@editor'], "_setCursor_", [smalltalk.send(self['@editor'], "_getCursor_", [true])]);
  2524. smalltalk.send(self['@editor'], "_setSelection_end_", [stop, start]);
  2525. return self;},
  2526. source: unescape('print%3A%20aString%0A%09%7C%20start%20stop%20%7C%0A%09start%20%3A%3D%20Dictionary%20new.%0A%09stop%20%3A%3D%20Dictionary%20new.%0A%09start%20at%3A%20%27line%27%20put%3A%20%28editor%20getCursor%3A%20false%29%20line.%0A%09start%20at%3A%20%27ch%27%20put%3A%20%28editor%20getCursor%3A%20false%29%20ch.%0A%09stop%20at%3A%20%27line%27%20put%3A%20%28start%20at%3A%20%27line%27%29.%0A%09stop%20at%3A%20%27ch%27%20put%3A%20%28%28start%20at%3A%20%27ch%27%29%20+%20aString%20size%20+%202%29.%0A%09editor%20replaceSelection%3A%20%28editor%20getSelection%2C%20%27%20%27%2C%20aString%2C%20%27%20%27%29.%0A%09editor%20setCursor%3A%20%28editor%20getCursor%3A%20true%29.%0A%09editor%20setSelection%3A%20stop%20end%3A%20start'),
  2527. messageSends: ["new", "at:put:", "line", "getCursor:", "ch", "at:", unescape("+"), "size", "replaceSelection:", unescape("%2C"), "getSelection", "setCursor:", "setSelection:end:"],
  2528. referencedClasses: [smalltalk.Dictionary]
  2529. }),
  2530. smalltalk.SourceArea);
  2531. smalltalk.addMethod(
  2532. '_printIt',
  2533. smalltalk.method({
  2534. selector: 'printIt',
  2535. category: 'actions',
  2536. fn: function (){
  2537. var self=this;
  2538. smalltalk.send(self, "_print_", [smalltalk.send(smalltalk.send(self, "_doIt", []), "_printString", [])]);
  2539. return self;},
  2540. source: unescape('printIt%0A%20%20%20%20self%20print%3A%20self%20doIt%20printString'),
  2541. messageSends: ["print:", "printString", "doIt"],
  2542. referencedClasses: []
  2543. }),
  2544. smalltalk.SourceArea);
  2545. smalltalk.addMethod(
  2546. '_onKeyUp_',
  2547. smalltalk.method({
  2548. selector: 'onKeyUp:',
  2549. category: 'events',
  2550. fn: function (aBlock){
  2551. var self=this;
  2552. smalltalk.send(self['@div'], "_onKeyUp_", [aBlock]);
  2553. return self;},
  2554. source: unescape('onKeyUp%3A%20aBlock%0A%09div%20onKeyUp%3A%20aBlock'),
  2555. messageSends: ["onKeyUp:"],
  2556. referencedClasses: []
  2557. }),
  2558. smalltalk.SourceArea);
  2559. smalltalk.addMethod(
  2560. '_onKeyDown_',
  2561. smalltalk.method({
  2562. selector: 'onKeyDown:',
  2563. category: 'events',
  2564. fn: function (aBlock){
  2565. var self=this;
  2566. smalltalk.send(self['@div'], "_onKeyDown_", [aBlock]);
  2567. return self;},
  2568. source: unescape('onKeyDown%3A%20aBlock%0A%09div%20onKeyDown%3A%20aBlock'),
  2569. messageSends: ["onKeyDown:"],
  2570. referencedClasses: []
  2571. }),
  2572. smalltalk.SourceArea);
  2573. smalltalk.addMethod(
  2574. '_renderOn_',
  2575. smalltalk.method({
  2576. selector: 'renderOn:',
  2577. category: 'rendering',
  2578. fn: function (html){
  2579. var self=this;
  2580. var textarea=nil;
  2581. self['@div']=smalltalk.send(smalltalk.send(html, "_div", []), "_class_", ["source"]);
  2582. smalltalk.send(self['@div'], "_with_", [(function(){return textarea=smalltalk.send(html, "_textarea", []);})]);
  2583. smalltalk.send(self, "_setEditorOn_", [smalltalk.send(textarea, "_element", [])]);
  2584. smalltalk.send(self['@div'], "_onKeyDown_", [(function(e){return smalltalk.send(self, "_handleKeyDown_", [e]);})]);
  2585. return self;},
  2586. source: unescape('renderOn%3A%20html%0A%20%20%20%20%7C%20textarea%20%7C%0A%20%20%20%20div%20%3A%3D%20html%20div%20class%3A%20%27source%27.%0A%20%20%20%20div%20with%3A%20%5Btextarea%20%3A%3D%20html%20textarea%5D.%0A%20%20%20%20self%20setEditorOn%3A%20textarea%20element.%0A%20%20%20%20div%20onKeyDown%3A%20%5B%3Ae%20%7C%20self%20handleKeyDown%3A%20e%5D'),
  2587. messageSends: ["class:", "div", "with:", "textarea", "setEditorOn:", "element", "onKeyDown:", "handleKeyDown:"],
  2588. referencedClasses: []
  2589. }),
  2590. smalltalk.SourceArea);
  2591. smalltalk.addClass('ClassesList', smalltalk.Widget, ['browser', 'ul', 'nodes'], 'IDE');
  2592. smalltalk.addMethod(
  2593. '_category',
  2594. smalltalk.method({
  2595. selector: 'category',
  2596. category: 'accessing',
  2597. fn: function (){
  2598. var self=this;
  2599. return smalltalk.send(smalltalk.send(self, "_browser", []), "_selectedCategory", []);
  2600. return self;},
  2601. source: unescape('category%0A%09%5Eself%20browser%20selectedCategory'),
  2602. messageSends: ["selectedCategory", "browser"],
  2603. referencedClasses: []
  2604. }),
  2605. smalltalk.ClassesList);
  2606. smalltalk.addMethod(
  2607. '_nodes',
  2608. smalltalk.method({
  2609. selector: 'nodes',
  2610. category: 'accessing',
  2611. fn: function (){
  2612. var self=this;
  2613. (($receiver = self['@nodes']) == nil || $receiver == undefined) ? (function(){return self['@nodes']=smalltalk.send(self, "_getNodes", []);})() : $receiver;
  2614. return self['@nodes'];
  2615. return self;},
  2616. source: unescape('nodes%0A%09nodes%20ifNil%3A%20%5Bnodes%20%3A%3D%20self%20getNodes%5D.%0A%09%5Enodes'),
  2617. messageSends: ["ifNil:", "getNodes"],
  2618. referencedClasses: []
  2619. }),
  2620. smalltalk.ClassesList);
  2621. smalltalk.addMethod(
  2622. '_browser',
  2623. smalltalk.method({
  2624. selector: 'browser',
  2625. category: 'accessing',
  2626. fn: function (){
  2627. var self=this;
  2628. return self['@browser'];
  2629. return self;},
  2630. source: unescape('browser%0A%09%5Ebrowser'),
  2631. messageSends: [],
  2632. referencedClasses: []
  2633. }),
  2634. smalltalk.ClassesList);
  2635. smalltalk.addMethod(
  2636. '_browser_',
  2637. smalltalk.method({
  2638. selector: 'browser:',
  2639. category: 'accessing',
  2640. fn: function (aBrowser){
  2641. var self=this;
  2642. self['@browser']=aBrowser;
  2643. return self;},
  2644. source: unescape('browser%3A%20aBrowser%0A%09browser%20%3A%3D%20aBrowser'),
  2645. messageSends: [],
  2646. referencedClasses: []
  2647. }),
  2648. smalltalk.ClassesList);
  2649. smalltalk.addMethod(
  2650. '_getNodes',
  2651. smalltalk.method({
  2652. selector: 'getNodes',
  2653. category: 'accessing',
  2654. fn: function (){
  2655. var self=this;
  2656. var classes=nil;
  2657. var children=nil;
  2658. var others=nil;
  2659. classes=smalltalk.send(smalltalk.send(self, "_browser", []), "_classes", []);
  2660. children=[];
  2661. others=[];
  2662. 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]);})]);})]);
  2663. return smalltalk.send(children, "_collect_", [(function(each){return smalltalk.send((smalltalk.ClassesListNode || ClassesListNode), "_on_browser_classes_level_", [each, smalltalk.send(self, "_browser", []), others, (0)]);})]);
  2664. return self;},
  2665. source: unescape('getNodes%0A%09%7C%20classes%20children%20others%20%7C%0A%09classes%20%3A%3D%20self%20browser%20classes.%0A%09children%20%3A%3D%20%23%28%29.%0A%09others%20%3A%3D%20%23%28%29.%0A%09classes%20do%3A%20%5B%3Aeach%20%7C%0A%09%09%28classes%20includes%3A%20each%20superclass%29%0A%09%09%09ifFalse%3A%20%5Bchildren%20add%3A%20each%5D%0A%09%09%09ifTrue%3A%20%5Bothers%20add%3A%20each%5D%5D.%0A%09%5Echildren%20collect%3A%20%5B%3Aeach%20%7C%0A%09%09ClassesListNode%20on%3A%20each%20browser%3A%20self%20browser%20classes%3A%20others%20level%3A%200%5D'),
  2666. messageSends: ["classes", "browser", "do:", "ifFalse:ifTrue:", "includes:", "superclass", "add:", "collect:", "on:browser:classes:level:"],
  2667. referencedClasses: []
  2668. }),
  2669. smalltalk.ClassesList);
  2670. smalltalk.addMethod(
  2671. '_resetNodes',
  2672. smalltalk.method({
  2673. selector: 'resetNodes',
  2674. category: 'accessing',
  2675. fn: function (){
  2676. var self=this;
  2677. self['@nodes']=nil;
  2678. return self;},
  2679. source: unescape('resetNodes%0A%09nodes%20%3A%3D%20nil'),
  2680. messageSends: [],
  2681. referencedClasses: []
  2682. }),
  2683. smalltalk.ClassesList);
  2684. smalltalk.addMethod(
  2685. '_renderOn_',
  2686. smalltalk.method({
  2687. selector: 'renderOn:',
  2688. category: 'rendering',
  2689. fn: function (html){
  2690. var self=this;
  2691. self['@ul']=(function($rec){smalltalk.send($rec, "_class_", ["jt_column browser classes"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_ul", []));
  2692. smalltalk.send(self, "_updateNodes", []);
  2693. return self;},
  2694. source: unescape('renderOn%3A%20html%0A%09ul%20%3A%3D%20html%20ul%0A%09%09class%3A%20%27jt_column%20browser%20classes%27%3B%0A%09%09yourself.%0A%09self%20updateNodes'),
  2695. messageSends: ["class:", "yourself", "ul", "updateNodes"],
  2696. referencedClasses: []
  2697. }),
  2698. smalltalk.ClassesList);
  2699. smalltalk.addMethod(
  2700. '_updateNodes',
  2701. smalltalk.method({
  2702. selector: 'updateNodes',
  2703. category: 'rendering',
  2704. fn: function (){
  2705. var self=this;
  2706. smalltalk.send(self['@ul'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_nodes", []), "_do_", [(function(each){return smalltalk.send(each, "_renderOn_", [html]);})]);})]);
  2707. return self;},
  2708. source: unescape('updateNodes%0A%09ul%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09self%20nodes%20do%3A%20%5B%3Aeach%20%7C%0A%09%09%09each%20renderOn%3A%20html%5D%5D'),
  2709. messageSends: ["contents:", "do:", "nodes", "renderOn:"],
  2710. referencedClasses: []
  2711. }),
  2712. smalltalk.ClassesList);
  2713. smalltalk.addMethod(
  2714. '_on_',
  2715. smalltalk.method({
  2716. selector: 'on:',
  2717. category: 'instance creation',
  2718. fn: function (aBrowser){
  2719. var self=this;
  2720. return (function($rec){smalltalk.send($rec, "_browser_", [aBrowser]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  2721. return self;},
  2722. source: unescape('on%3A%20aBrowser%0A%09%5Eself%20new%20%0A%09%09browser%3A%20aBrowser%3B%20%0A%09%09yourself'),
  2723. messageSends: ["browser:", "yourself", "new"],
  2724. referencedClasses: []
  2725. }),
  2726. smalltalk.ClassesList.klass);
  2727. smalltalk.addClass('ClassesListNode', smalltalk.Widget, ['browser', 'theClass', 'level', 'nodes'], 'IDE');
  2728. smalltalk.addMethod(
  2729. '_nodes',
  2730. smalltalk.method({
  2731. selector: 'nodes',
  2732. category: 'accessing',
  2733. fn: function (){
  2734. var self=this;
  2735. return self['@nodes'];
  2736. return self;},
  2737. source: unescape('nodes%0A%09%5Enodes'),
  2738. messageSends: [],
  2739. referencedClasses: []
  2740. }),
  2741. smalltalk.ClassesListNode);
  2742. smalltalk.addMethod(
  2743. '_theClass',
  2744. smalltalk.method({
  2745. selector: 'theClass',
  2746. category: 'accessing',
  2747. fn: function (){
  2748. var self=this;
  2749. return self['@theClass'];
  2750. return self;},
  2751. source: unescape('theClass%0A%09%5EtheClass'),
  2752. messageSends: [],
  2753. referencedClasses: []
  2754. }),
  2755. smalltalk.ClassesListNode);
  2756. smalltalk.addMethod(
  2757. '_theClass_',
  2758. smalltalk.method({
  2759. selector: 'theClass:',
  2760. category: 'accessing',
  2761. fn: function (aClass){
  2762. var self=this;
  2763. self['@theClass']=aClass;
  2764. return self;},
  2765. source: unescape('theClass%3A%20aClass%0A%09theClass%20%3A%3D%20aClass'),
  2766. messageSends: [],
  2767. referencedClasses: []
  2768. }),
  2769. smalltalk.ClassesListNode);
  2770. smalltalk.addMethod(
  2771. '_browser',
  2772. smalltalk.method({
  2773. selector: 'browser',
  2774. category: 'accessing',
  2775. fn: function (){
  2776. var self=this;
  2777. return self['@browser'];
  2778. return self;},
  2779. source: unescape('browser%0A%09%5Ebrowser'),
  2780. messageSends: [],
  2781. referencedClasses: []
  2782. }),
  2783. smalltalk.ClassesListNode);
  2784. smalltalk.addMethod(
  2785. '_browser_',
  2786. smalltalk.method({
  2787. selector: 'browser:',
  2788. category: 'accessing',
  2789. fn: function (aBrowser){
  2790. var self=this;
  2791. self['@browser']=aBrowser;
  2792. return self;},
  2793. source: unescape('browser%3A%20aBrowser%0A%09browser%20%3A%3D%20aBrowser'),
  2794. messageSends: [],
  2795. referencedClasses: []
  2796. }),
  2797. smalltalk.ClassesListNode);
  2798. smalltalk.addMethod(
  2799. '_level',
  2800. smalltalk.method({
  2801. selector: 'level',
  2802. category: 'accessing',
  2803. fn: function (){
  2804. var self=this;
  2805. return self['@level'];
  2806. return self;},
  2807. source: unescape('level%0A%09%5Elevel'),
  2808. messageSends: [],
  2809. referencedClasses: []
  2810. }),
  2811. smalltalk.ClassesListNode);
  2812. smalltalk.addMethod(
  2813. '_level_',
  2814. smalltalk.method({
  2815. selector: 'level:',
  2816. category: 'accessing',
  2817. fn: function (anInteger){
  2818. var self=this;
  2819. self['@level']=anInteger;
  2820. return self;},
  2821. source: unescape('level%3A%20anInteger%0A%09level%20%3A%3D%20anInteger'),
  2822. messageSends: [],
  2823. referencedClasses: []
  2824. }),
  2825. smalltalk.ClassesListNode);
  2826. smalltalk.addMethod(
  2827. '_label',
  2828. smalltalk.method({
  2829. selector: 'label',
  2830. category: 'accessing',
  2831. fn: function (){
  2832. var self=this;
  2833. var str=nil;
  2834. str=smalltalk.send(smalltalk.send((smalltalk.String || String), "_new", []), "_writeStream", []);
  2835. smalltalk.send(smalltalk.send(self, "_level", []), "_timesRepeat_", [(function(){return smalltalk.send(str, "_nextPutAll_", [unescape("%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B")]);})]);
  2836. smalltalk.send(str, "_nextPutAll_", [smalltalk.send(smalltalk.send(self, "_theClass", []), "_name", [])]);
  2837. return smalltalk.send(str, "_contents", []);
  2838. return self;},
  2839. source: unescape('label%0A%09%7C%20str%20%7C%0A%09str%20%3A%3D%20String%20new%20writeStream.%0A%09self%20level%20timesRepeat%3A%20%5B%0A%09%09str%20nextPutAll%3A%20%27%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%27%5D.%0A%09str%20nextPutAll%3A%20self%20theClass%20name.%0A%09%5Estr%20contents'),
  2840. messageSends: ["writeStream", "new", "timesRepeat:", "level", "nextPutAll:", "name", "theClass", "contents"],
  2841. referencedClasses: [smalltalk.String]
  2842. }),
  2843. smalltalk.ClassesListNode);
  2844. smalltalk.addMethod(
  2845. '_getNodesFrom_',
  2846. smalltalk.method({
  2847. selector: 'getNodesFrom:',
  2848. category: 'accessing',
  2849. fn: function (aCollection){
  2850. var self=this;
  2851. var children=nil;
  2852. var others=nil;
  2853. children=[];
  2854. others=[];
  2855. 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]);})]);})]);
  2856. 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)])]);})]);
  2857. return self;},
  2858. source: unescape('getNodesFrom%3A%20aCollection%0A%09%7C%20children%20others%20%7C%0A%09children%20%3A%3D%20%23%28%29.%0A%09others%20%3A%3D%20%23%28%29.%0A%09aCollection%20do%3A%20%5B%3Aeach%20%7C%0A%09%09%28each%20superclass%20%3D%20self%20theClass%29%0A%09%09%09ifTrue%3A%20%5Bchildren%20add%3A%20each%5D%0A%09%09%09ifFalse%3A%20%5Bothers%20add%3A%20each%5D%5D.%0A%09nodes%3A%3D%20children%20collect%3A%20%5B%3Aeach%20%7C%0A%09%09ClassesListNode%20on%3A%20each%20browser%3A%20self%20browser%20classes%3A%20others%20level%3A%20self%20level%20+%201%5D'),
  2859. messageSends: ["do:", "ifTrue:ifFalse:", unescape("%3D"), "superclass", "theClass", "add:", "collect:", "on:browser:classes:level:", "browser", unescape("+"), "level"],
  2860. referencedClasses: [smalltalk.ClassesListNode]
  2861. }),
  2862. smalltalk.ClassesListNode);
  2863. smalltalk.addMethod(
  2864. '_renderOn_',
  2865. smalltalk.method({
  2866. selector: 'renderOn:',
  2867. category: '',
  2868. fn: function (html){
  2869. var self=this;
  2870. var li=nil;
  2871. li=smalltalk.send(smalltalk.send(html, "_li", []), "_onClick_", [(function(){return smalltalk.send(smalltalk.send(self, "_browser", []), "_selectClass_", [smalltalk.send(self, "_theClass", [])]);})]);
  2872. smalltalk.send(smalltalk.send(li, "_asJQuery", []), "_contents_", [smalltalk.send(self, "_label", [])]);
  2873. (($receiver = smalltalk.send(smalltalk.send(smalltalk.send(self, "_browser", []), "_selectedClass", []), "__eq", [smalltalk.send(self, "_theClass", [])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(li, "_class_", ["selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);
  2874. (($receiver = smalltalk.send(smalltalk.send(smalltalk.send(self, "_theClass", []), "_comment", []), "_isEmpty", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(li, "_class_", ["commented"]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(li, "_class_", ["commented"]);})]);
  2875. smalltalk.send(smalltalk.send(self, "_nodes", []), "_do_", [(function(each){return smalltalk.send(each, "_renderOn_", [html]);})]);
  2876. return self;},
  2877. source: unescape('renderOn%3A%20html%0A%09%7C%20li%20%7C%0A%09li%20%3A%3D%20html%20li%20%0A%09%09onClick%3A%20%5Bself%20browser%20selectClass%3A%20self%20theClass%5D.%20%0A%09li%20asJQuery%20contents%3A%20self%20label.%0A%0A%09self%20browser%20selectedClass%20%3D%20self%20theClass%20ifTrue%3A%20%20%5B%0A%09%09li%20class%3A%20%27selected%27%5D.%0A%0A%09self%20theClass%20comment%20isEmpty%20ifFalse%3A%20%5B%0A%20%20%20%20%20%20%20%20%20%20%09li%20class%3A%20%27commented%27%0A%20%20%20%20%20%20%20%20%5D.%0A%0A%09self%20nodes%20do%3A%20%5B%3Aeach%20%7C%0A%09%09each%20renderOn%3A%20html%5D'),
  2878. messageSends: ["onClick:", "li", "selectClass:", "browser", "theClass", "contents:", "asJQuery", "label", "ifTrue:", unescape("%3D"), "selectedClass", "class:", "ifFalse:", "isEmpty", "comment", "do:", "nodes", "renderOn:"],
  2879. referencedClasses: []
  2880. }),
  2881. smalltalk.ClassesListNode);
  2882. smalltalk.addMethod(
  2883. '_on_browser_classes_level_',
  2884. smalltalk.method({
  2885. selector: 'on:browser:classes:level:',
  2886. category: 'instance creation',
  2887. fn: function (aClass, aBrowser, aCollection, anInteger){
  2888. var self=this;
  2889. 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", []));
  2890. return self;},
  2891. source: unescape('on%3A%20aClass%20browser%3A%20aBrowser%20classes%3A%20aCollection%20level%3A%20anInteger%0A%09%5Eself%20new%0A%09%09theClass%3A%20aClass%3B%0A%09%09browser%3A%20aBrowser%3B%0A%09%09level%3A%20anInteger%3B%0A%09%09getNodesFrom%3A%20aCollection%3B%0A%09%09yourself'),
  2892. messageSends: ["theClass:", "browser:", "level:", "getNodesFrom:", "yourself", "new"],
  2893. referencedClasses: []
  2894. }),
  2895. smalltalk.ClassesListNode.klass);
  2896. smalltalk.addClass('Debugger', smalltalk.TabWidget, ['error', 'selectedContext', 'sourceArea', 'ul'], 'IDE');
  2897. smalltalk.addMethod(
  2898. '_error',
  2899. smalltalk.method({
  2900. selector: 'error',
  2901. category: 'accessing',
  2902. fn: function (){
  2903. var self=this;
  2904. return self['@error'];
  2905. return self;},
  2906. source: unescape('error%0A%09%5Eerror'),
  2907. messageSends: [],
  2908. referencedClasses: []
  2909. }),
  2910. smalltalk.Debugger);
  2911. smalltalk.addMethod(
  2912. '_error_',
  2913. smalltalk.method({
  2914. selector: 'error:',
  2915. category: 'accessing',
  2916. fn: function (anError){
  2917. var self=this;
  2918. self['@error']=anError;
  2919. return self;},
  2920. source: unescape('error%3A%20anError%0A%09error%20%3A%3D%20anError'),
  2921. messageSends: [],
  2922. referencedClasses: []
  2923. }),
  2924. smalltalk.Debugger);
  2925. smalltalk.addMethod(
  2926. '_label',
  2927. smalltalk.method({
  2928. selector: 'label',
  2929. category: 'accessing',
  2930. fn: function (){
  2931. var self=this;
  2932. return unescape("%5BDebugger%5D");
  2933. return self;},
  2934. source: unescape('label%0A%09%5E%27%5BDebugger%5D%27'),
  2935. messageSends: [],
  2936. referencedClasses: []
  2937. }),
  2938. smalltalk.Debugger);
  2939. smalltalk.addMethod(
  2940. '_selectContext_',
  2941. smalltalk.method({
  2942. selector: 'selectContext:',
  2943. category: 'actions',
  2944. fn: function (aContext){
  2945. var self=this;
  2946. self['@selectedContext']=aContext;
  2947. smalltalk.send(self, "_updateContextsList", []);
  2948. smalltalk.send(self, "_updateSourceArea", []);
  2949. return self;},
  2950. source: unescape('selectContext%3A%20aContext%0A%09selectedContext%20%3A%3D%20aContext.%0A%09self%20updateContextsList.%0A%09self%20updateSourceArea'),
  2951. messageSends: ["updateContextsList", "updateSourceArea"],
  2952. referencedClasses: []
  2953. }),
  2954. smalltalk.Debugger);
  2955. smalltalk.addMethod(
  2956. '_renderBoxOn_',
  2957. smalltalk.method({
  2958. selector: 'renderBoxOn:',
  2959. category: 'rendering',
  2960. fn: function (html){
  2961. var self=this;
  2962. (function($rec){smalltalk.send($rec, "_renderTopPanelOn_", [html]);return smalltalk.send($rec, "_renderBottomPanelOn_", [html]);})(self);
  2963. return self;},
  2964. source: unescape('renderBoxOn%3A%20html%0A%20%20%20%20self%20%0A%09renderTopPanelOn%3A%20html%3B%0A%09renderBottomPanelOn%3A%20html'),
  2965. messageSends: ["renderTopPanelOn:", "renderBottomPanelOn:"],
  2966. referencedClasses: []
  2967. }),
  2968. smalltalk.Debugger);
  2969. smalltalk.addMethod(
  2970. '_renderTopPanelOn_',
  2971. smalltalk.method({
  2972. selector: 'renderTopPanelOn:',
  2973. category: 'rendering',
  2974. fn: function (html){
  2975. var self=this;
  2976. self['@selectedContext']=smalltalk.send(smalltalk.send(self, "_error", []), "_context", []);
  2977. (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", []));
  2978. return self;},
  2979. source: unescape('renderTopPanelOn%3A%20html%0A%09selectedContext%20%3A%3D%20self%20error%20context.%0A%09html%20div%20%0A%09%09class%3A%20%27top%27%3B%20%0A%09%09with%3A%20%5B%0A%09%09%09html%20div%20%0A%09%09%09%09class%3A%20%27label%27%3B%0A%09%09%09%09with%3A%20self%20error%20messageText.%0A%09%20%20%20%20%09%09ul%20%3A%3D%20html%20ul%20%0A%09%09%09class%3A%20%27jt_column%20debugger%20contexts%27%3B%0A%09%09%09with%3A%20%5Bself%20renderContext%3A%20self%20error%20context%20on%3A%20html%5D%5D'),
  2980. messageSends: ["context", "error", "class:", "with:", "messageText", "div", "renderContext:on:", "ul"],
  2981. referencedClasses: []
  2982. }),
  2983. smalltalk.Debugger);
  2984. smalltalk.addMethod(
  2985. '_renderContext_on_',
  2986. smalltalk.method({
  2987. selector: 'renderContext:on:',
  2988. category: 'rendering',
  2989. fn: function (aContext, html){
  2990. var self=this;
  2991. var li=nil;
  2992. li=smalltalk.send(html, "_li", []);
  2993. (($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"]);})]);
  2994. (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(aContext, "_asString", [])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectContext_", [aContext]);})]);})(li);
  2995. (($receiver = smalltalk.send(aContext, "_home", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_renderContext_on_", [smalltalk.send(aContext, "_home", []), html]);})() : nil;
  2996. return self;},
  2997. source: unescape('renderContext%3A%20aContext%20on%3A%20html%0A%09%7C%20li%20%7C%0A%09li%20%3A%3D%20html%20li.%0A%09selectedContext%20%3D%20aContext%20ifTrue%3A%20%5B%0A%09%09li%20class%3A%20%27selected%27%5D.%0A%09li%20%0A%09%09with%3A%20aContext%20asString%3B%0A%09%09onClick%3A%20%5Bself%20selectContext%3A%20aContext%5D.%0A%09aContext%20home%20ifNotNil%3A%20%5Bself%20renderContext%3A%20aContext%20home%20on%3A%20html%5D'),
  2998. messageSends: ["li", "ifTrue:", unescape("%3D"), "class:", "with:", "asString", "onClick:", "selectContext:", "ifNotNil:", "home", "renderContext:on:"],
  2999. referencedClasses: []
  3000. }),
  3001. smalltalk.Debugger);
  3002. smalltalk.addMethod(
  3003. '_renderBottomPanelOn_',
  3004. smalltalk.method({
  3005. selector: 'renderBottomPanelOn:',
  3006. category: 'rendering',
  3007. fn: function (html){
  3008. var self=this;
  3009. (function($rec){smalltalk.send($rec, "_class_", ["jt_sourceCode"]);return smalltalk.send($rec, "_with_", [(function(){self['@sourceArea']=smalltalk.send((smalltalk.SourceArea || SourceArea), "_new", []);return smalltalk.send(self['@sourceArea'], "_renderOn_", [html]);})]);})(smalltalk.send(html, "_div", []));
  3010. smalltalk.send(self, "_updateSourceArea", []);
  3011. return self;},
  3012. source: unescape('renderBottomPanelOn%3A%20html%0A%20%20%20%20html%20div%0A%09class%3A%20%27jt_sourceCode%27%3B%0A%09with%3A%20%5B%0A%09%20%20%20%20sourceArea%20%3A%3D%20SourceArea%20new.%0A%09%20%20%20%20sourceArea%20renderOn%3A%20html%5D.%0A%20%20%20%20self%20updateSourceArea'),
  3013. messageSends: ["class:", "with:", "new", "renderOn:", "div", "updateSourceArea"],
  3014. referencedClasses: [smalltalk.SourceArea]
  3015. }),
  3016. smalltalk.Debugger);
  3017. smalltalk.addMethod(
  3018. '_canBeClosed',
  3019. smalltalk.method({
  3020. selector: 'canBeClosed',
  3021. category: 'testing',
  3022. fn: function (){
  3023. var self=this;
  3024. return true;
  3025. return self;},
  3026. source: unescape('canBeClosed%0A%20%20%20%20%5Etrue'),
  3027. messageSends: [],
  3028. referencedClasses: []
  3029. }),
  3030. smalltalk.Debugger);
  3031. smalltalk.addMethod(
  3032. '_updateContextsList',
  3033. smalltalk.method({
  3034. selector: 'updateContextsList',
  3035. category: 'updating',
  3036. fn: function (){
  3037. var self=this;
  3038. smalltalk.send(self['@ul'], "_contents_", [(function(html){return smalltalk.send(self, "_renderContext_on_", [smalltalk.send(smalltalk.send(self, "_error", []), "_context", []), html]);})]);
  3039. return self;},
  3040. source: unescape('updateContextsList%0A%09ul%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09self%20renderContext%3A%20self%20error%20context%20on%3A%20html%5D'),
  3041. messageSends: ["contents:", "renderContext:on:", "context", "error"],
  3042. referencedClasses: []
  3043. }),
  3044. smalltalk.Debugger);
  3045. smalltalk.addMethod(
  3046. '_updateSourceArea',
  3047. smalltalk.method({
  3048. selector: 'updateSourceArea',
  3049. category: 'updating',
  3050. fn: function (){
  3051. var self=this;
  3052. smalltalk.send(self['@sourceArea'], "_val_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self['@selectedContext'], "_receiver", []), "_class", []), "_methodAt_", [smalltalk.send(self['@selectedContext'], "_selector", [])]), "_source", [])]);
  3053. return self;},
  3054. source: unescape('updateSourceArea%0A%09%20sourceArea%20val%3A%20%28selectedContext%20receiver%20class%20methodAt%3A%20selectedContext%20selector%29%20source'),
  3055. messageSends: ["val:", "source", "methodAt:", "class", "receiver", "selector"],
  3056. referencedClasses: []
  3057. }),
  3058. smalltalk.Debugger);
  3059. smalltalk.addClass('DebugErrorHandler', smalltalk.ErrorHandler, [], 'IDE');
  3060. smalltalk.addMethod(
  3061. '_handleError_',
  3062. smalltalk.method({
  3063. selector: 'handleError:',
  3064. category: 'error handling',
  3065. fn: function (anError){
  3066. var self=this;
  3067. 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]);})]);
  3068. return self;},
  3069. source: unescape('handleError%3A%20anError%0A%09%5BDebugger%20new%0A%09%09error%3A%20anError%3B%0A%09%09open%5D%20on%3A%20Error%20do%3A%20%5B%3Aerror%20%7C%0A%09%09%09ErrorHandler%20new%20handleError%3A%20error%5D'),
  3070. messageSends: ["on:do:", "error:", "open", "new", "handleError:"],
  3071. referencedClasses: [smalltalk.Debugger,smalltalk.Error,smalltalk.ErrorHandler]
  3072. }),
  3073. smalltalk.DebugErrorHandler);
  3074. smalltalk.addMethod(
  3075. '_initialize',
  3076. smalltalk.method({
  3077. selector: 'initialize',
  3078. category: 'initialization',
  3079. fn: function (){
  3080. var self=this;
  3081. smalltalk.send(self, "_register", []);
  3082. return self;},
  3083. source: unescape('initialize%0A%09self%20register'),
  3084. messageSends: ["register"],
  3085. referencedClasses: []
  3086. }),
  3087. smalltalk.DebugErrorHandler.klass);
  3088. smalltalk.addClass('ProgressBar', smalltalk.TabWidget, ['percent', 'progressDiv', 'div'], 'IDE');
  3089. smalltalk.addMethod(
  3090. '_percent',
  3091. smalltalk.method({
  3092. selector: 'percent',
  3093. category: 'accessing',
  3094. fn: function (){
  3095. var self=this;
  3096. return (($receiver = self['@percent']) == nil || $receiver == undefined) ? (function(){return (0);})() : $receiver;
  3097. return self;},
  3098. source: unescape('percent%0A%09%5Epercent%20ifNil%3A%20%5B0%5D'),
  3099. messageSends: ["ifNil:"],
  3100. referencedClasses: []
  3101. }),
  3102. smalltalk.ProgressBar);
  3103. smalltalk.addMethod(
  3104. '_percent_',
  3105. smalltalk.method({
  3106. selector: 'percent:',
  3107. category: 'accessing',
  3108. fn: function (aNumber){
  3109. var self=this;
  3110. self['@percent']=aNumber;
  3111. return self;},
  3112. source: unescape('percent%3A%20aNumber%0A%09percent%20%3A%3D%20aNumber'),
  3113. messageSends: [],
  3114. referencedClasses: []
  3115. }),
  3116. smalltalk.ProgressBar);
  3117. smalltalk.addMethod(
  3118. '_renderOn_',
  3119. smalltalk.method({
  3120. selector: 'renderOn:',
  3121. category: 'rendering',
  3122. fn: function (html){
  3123. var self=this;
  3124. self['@div']=(function($rec){smalltalk.send($rec, "_class_", ["progress_bar"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_div", []));
  3125. smalltalk.send(self, "_renderProgressBar", []);
  3126. return self;},
  3127. source: unescape('renderOn%3A%20html%20%0A%09div%20%3A%3D%20html%20div%20%0A%09%09class%3A%20%27progress_bar%27%3B%0A%09%09yourself.%0A%09self%20renderProgressBar'),
  3128. messageSends: ["class:", "yourself", "div", "renderProgressBar"],
  3129. referencedClasses: []
  3130. }),
  3131. smalltalk.ProgressBar);
  3132. smalltalk.addMethod(
  3133. '_renderProgressBar',
  3134. smalltalk.method({
  3135. selector: 'renderProgressBar',
  3136. category: 'rendering',
  3137. fn: function (){
  3138. var self=this;
  3139. 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", []));})]);
  3140. return self;},
  3141. source: unescape('renderProgressBar%0A%09div%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09html%20div%20%0A%09%09%09class%3A%20%27progress%27%3B%0A%09%09%09style%3A%20%27width%3A%27%2C%20self%20percent%20asString%2C%20%27%25%27%5D'),
  3142. messageSends: ["contents:", "class:", "style:", unescape("%2C"), "asString", "percent", "div"],
  3143. referencedClasses: []
  3144. }),
  3145. smalltalk.ProgressBar);
  3146. smalltalk.addMethod(
  3147. '_updatePercent_',
  3148. smalltalk.method({
  3149. selector: 'updatePercent:',
  3150. category: 'updating',
  3151. fn: function (aNumber){
  3152. var self=this;
  3153. smalltalk.send(self, "_percent_", [aNumber]);
  3154. smalltalk.send(self, "_renderProgressBar", []);
  3155. return self;},
  3156. source: unescape('updatePercent%3A%20aNumber%0A%09self%20percent%3A%20aNumber.%0A%09self%20renderProgressBar'),
  3157. messageSends: ["percent:", "renderProgressBar"],
  3158. referencedClasses: []
  3159. }),
  3160. smalltalk.ProgressBar);
  3161. smalltalk.addClass('TestRunner', smalltalk.TabWidget, ['selectedCategories', 'categoriesList', 'selectedClasses', 'classesList', 'selectedMethods', 'progressBar', 'methodsList', 'result', 'statusDiv'], 'IDE');
  3162. smalltalk.addMethod(
  3163. '_label',
  3164. smalltalk.method({
  3165. selector: 'label',
  3166. category: 'accessing',
  3167. fn: function (){
  3168. var self=this;
  3169. return unescape("%5BTest%20runner%5D");
  3170. return self;},
  3171. source: unescape('label%0A%20%20%20%20%5E%27%5BTest%20runner%5D%27'),
  3172. messageSends: [],
  3173. referencedClasses: []
  3174. }),
  3175. smalltalk.TestRunner);
  3176. smalltalk.addMethod(
  3177. '_categories',
  3178. smalltalk.method({
  3179. selector: 'categories',
  3180. category: 'accessing',
  3181. fn: function (){
  3182. var self=this;
  3183. var categories=nil;
  3184. categories=smalltalk.send((smalltalk.Array || Array), "_new", []);
  3185. smalltalk.send(smalltalk.send(self, "_allClasses", []), "_do_", [(function(each){return (($receiver = smalltalk.send(categories, "_includes_", [smalltalk.send(each, "_category", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(categories, "_add_", [smalltalk.send(each, "_category", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(categories, "_add_", [smalltalk.send(each, "_category", [])]);})]);})]);
  3186. return smalltalk.send(categories, "_sort", []);
  3187. return self;},
  3188. source: unescape('categories%0A%20%20%20%20%7C%20categories%20%7C%0A%20%20%20%20categories%20%3A%3D%20Array%20new.%0A%20%20%20%20self%20allClasses%20do%3A%20%5B%3Aeach%20%7C%0A%09%28categories%20includes%3A%20each%20category%29%20ifFalse%3A%20%5B%0A%09%20%20%20%20categories%20add%3A%20each%20category%5D%5D.%0A%20%20%20%20%5Ecategories%20sort'),
  3189. messageSends: ["new", "do:", "allClasses", "ifFalse:", "includes:", "category", "add:", "sort"],
  3190. referencedClasses: [smalltalk.Array]
  3191. }),
  3192. smalltalk.TestRunner);
  3193. smalltalk.addMethod(
  3194. '_classes',
  3195. smalltalk.method({
  3196. selector: 'classes',
  3197. category: 'accessing',
  3198. fn: function (){
  3199. var self=this;
  3200. 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", [])]);})]);
  3201. return self;},
  3202. source: unescape('classes%0A%20%20%20%20%5E%28self%20allClasses%20%0A%09select%3A%20%5B%3Aeach%20%7C%20self%20selectedCategories%20includes%3A%20each%20category%5D%29%0A%09sort%3A%20%5B%3Aa%20%3Ab%20%7C%20a%20name%20%3E%20b%20name%5D'),
  3203. messageSends: ["sort:", "select:", "allClasses", "includes:", "selectedCategories", "category", unescape("%3E"), "name"],
  3204. referencedClasses: []
  3205. }),
  3206. smalltalk.TestRunner);
  3207. smalltalk.addMethod(
  3208. '_selectedCategories',
  3209. smalltalk.method({
  3210. selector: 'selectedCategories',
  3211. category: 'accessing',
  3212. fn: function (){
  3213. var self=this;
  3214. return (($receiver = self['@selectedCategories']) == nil || $receiver == undefined) ? (function(){return self['@selectedCategories']=smalltalk.send((smalltalk.Array || Array), "_new", []);})() : $receiver;
  3215. return self;},
  3216. source: unescape('selectedCategories%0A%09%5EselectedCategories%20ifNil%3A%20%5BselectedCategories%20%3A%3D%20Array%20new%5D'),
  3217. messageSends: ["ifNil:", "new"],
  3218. referencedClasses: [smalltalk.Array]
  3219. }),
  3220. smalltalk.TestRunner);
  3221. smalltalk.addMethod(
  3222. '_allClasses',
  3223. smalltalk.method({
  3224. selector: 'allClasses',
  3225. category: 'accessing',
  3226. fn: function (){
  3227. var self=this;
  3228. return smalltalk.send((smalltalk.TestCase || TestCase), "_allSubclasses", []);
  3229. return self;},
  3230. source: unescape('allClasses%0A%09%5ETestCase%20allSubclasses'),
  3231. messageSends: ["allSubclasses"],
  3232. referencedClasses: []
  3233. }),
  3234. smalltalk.TestRunner);
  3235. smalltalk.addMethod(
  3236. '_selectedClasses',
  3237. smalltalk.method({
  3238. selector: 'selectedClasses',
  3239. category: 'accessing',
  3240. fn: function (){
  3241. var self=this;
  3242. return (($receiver = self['@selectedClasses']) == nil || $receiver == undefined) ? (function(){return self['@selectedClasses']=smalltalk.send((smalltalk.Array || Array), "_new", []);})() : $receiver;
  3243. return self;},
  3244. source: unescape('selectedClasses%0A%09%5EselectedClasses%20%20ifNil%3A%20%5BselectedClasses%20%3A%3D%20Array%20new%5D'),
  3245. messageSends: ["ifNil:", "new"],
  3246. referencedClasses: [smalltalk.Array]
  3247. }),
  3248. smalltalk.TestRunner);
  3249. smalltalk.addMethod(
  3250. '_progressBar',
  3251. smalltalk.method({
  3252. selector: 'progressBar',
  3253. category: 'accessing',
  3254. fn: function (){
  3255. var self=this;
  3256. return (($receiver = self['@progressBar']) == nil || $receiver == undefined) ? (function(){return self['@progressBar']=smalltalk.send((smalltalk.ProgressBar || ProgressBar), "_new", []);})() : $receiver;
  3257. return self;},
  3258. source: unescape('progressBar%0A%09%5EprogressBar%20ifNil%3A%20%5BprogressBar%20%3A%3D%20ProgressBar%20new%5D'),
  3259. messageSends: ["ifNil:", "new"],
  3260. referencedClasses: [smalltalk.ProgressBar]
  3261. }),
  3262. smalltalk.TestRunner);
  3263. smalltalk.addMethod(
  3264. '_selectedMethods',
  3265. smalltalk.method({
  3266. selector: 'selectedMethods',
  3267. category: 'accessing',
  3268. fn: function (){
  3269. var self=this;
  3270. return (($receiver = self['@selectedMethods']) == nil || $receiver == undefined) ? (function(){return smalltalk.send(smalltalk.send(self, "_selectedClasses", []), "_collect_", [(function(each){return smalltalk.send(smalltalk.send(smalltalk.send(each, "_methodDictionary", []), "_keys", []), "_select_", [(function(key){return smalltalk.send(key, "_beginsWith_", ["test"]);})]);})]);})() : $receiver;
  3271. return self;},
  3272. source: unescape('selectedMethods%0A%09%5EselectedMethods%20ifNil%3A%20%5Bself%20selectedClasses%20collect%3A%20%5B%3Aeach%20%7C%0A%09%09each%20methodDictionary%20keys%20select%3A%20%5B%3Akey%20%7C%20%20key%20beginsWith%3A%20%27test%27%20%5D%5D%5D'),
  3273. messageSends: ["ifNil:", "collect:", "selectedClasses", "select:", "keys", "methodDictionary", "beginsWith:"],
  3274. referencedClasses: []
  3275. }),
  3276. smalltalk.TestRunner);
  3277. smalltalk.addMethod(
  3278. '_statusInfo',
  3279. smalltalk.method({
  3280. selector: 'statusInfo',
  3281. category: 'accessing',
  3282. fn: function (){
  3283. var self=this;
  3284. 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", [])]);
  3285. return self;},
  3286. source: unescape('statusInfo%0A%09%5Eself%20printTotal%2C%20self%20printPasses%2C%20self%20printErrors%2C%20self%20printFailures'),
  3287. messageSends: [unescape("%2C"), "printTotal", "printPasses", "printErrors", "printFailures"],
  3288. referencedClasses: []
  3289. }),
  3290. smalltalk.TestRunner);
  3291. smalltalk.addMethod(
  3292. '_result',
  3293. smalltalk.method({
  3294. selector: 'result',
  3295. category: 'accessing',
  3296. fn: function (){
  3297. var self=this;
  3298. return self['@result'];
  3299. return self;},
  3300. source: unescape('result%0A%09%5Eresult'),
  3301. messageSends: [],
  3302. referencedClasses: []
  3303. }),
  3304. smalltalk.TestRunner);
  3305. smalltalk.addMethod(
  3306. '_failedMethods',
  3307. smalltalk.method({
  3308. selector: 'failedMethods',
  3309. category: 'accessing',
  3310. fn: function (){
  3311. var self=this;
  3312. smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_failures", []), "_collect_", [(function(each){return (function($rec){smalltalk.send($rec, "_class_", ["failures"]);return smalltalk.send($rec, "_with_", [each]);})(smalltalk.send((typeof html == 'undefined' ? nil : html), "_li", []));})]);
  3313. return self;},
  3314. source: unescape('failedMethods%0A%09self%20result%20failures%20collect%3A%20%5B%3Aeach%20%7C%0A%09%09html%20li%20%0A%09%09%09class%3A%20%27failures%27%3B%0A%09%09%09with%3A%20each%5D'),
  3315. messageSends: ["collect:", "failures", "result", "class:", "with:", "li"],
  3316. referencedClasses: []
  3317. }),
  3318. smalltalk.TestRunner);
  3319. smalltalk.addMethod(
  3320. '_selectAllCategories',
  3321. smalltalk.method({
  3322. selector: 'selectAllCategories',
  3323. category: 'actions',
  3324. fn: function (){
  3325. var self=this;
  3326. smalltalk.send(smalltalk.send(self, "_categories", []), "_do_", [(function(each){return (($receiver = smalltalk.send(self['@selectedCategories'], "_includes_", [each])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(smalltalk.send(self, "_selectedCategories", []), "_add_", [each]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(self, "_selectedCategories", []), "_add_", [each]);})]);})]);
  3327. (function($rec){smalltalk.send($rec, "_updateCategoriesList", []);return smalltalk.send($rec, "_updateClassesList", []);})(self);
  3328. return self;},
  3329. source: unescape('selectAllCategories%0A%09self%20categories%20do%3A%20%5B%3Aeach%20%7C%20%0A%09%09%28selectedCategories%20includes%3A%20each%29%20ifFalse%3A%20%5B%0A%09%09%09self%20selectedCategories%20add%3A%20each%5D%5D.%0A%09self%20%0A%09%20%20%20%20updateCategoriesList%3B%0A%09%20%20%20%20updateClassesList'),
  3330. messageSends: ["do:", "categories", "ifFalse:", "includes:", "add:", "selectedCategories", "updateCategoriesList", "updateClassesList"],
  3331. referencedClasses: []
  3332. }),
  3333. smalltalk.TestRunner);
  3334. smalltalk.addMethod(
  3335. '_toggleCategory_',
  3336. smalltalk.method({
  3337. selector: 'toggleCategory:',
  3338. category: 'actions',
  3339. fn: function (aCategory){
  3340. var self=this;
  3341. (($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]);})]);
  3342. (function($rec){smalltalk.send($rec, "_updateCategoriesList", []);return smalltalk.send($rec, "_updateClassesList", []);})(self);
  3343. return self;},
  3344. source: unescape('toggleCategory%3A%20aCategory%0A%09%28self%20isSelectedCategory%3A%20aCategory%29%20%0A%09%09ifFalse%3A%20%5BselectedCategories%20add%3A%20aCategory%5D%0A%09%09ifTrue%3A%20%5BselectedCategories%20remove%3A%20aCategory%5D.%0A%09self%20%0A%09%20%20%20%20updateCategoriesList%3B%0A%09%20%20%20%20updateClassesList'),
  3345. messageSends: ["ifFalse:ifTrue:", "isSelectedCategory:", "add:", "remove:", "updateCategoriesList", "updateClassesList"],
  3346. referencedClasses: []
  3347. }),
  3348. smalltalk.TestRunner);
  3349. smalltalk.addMethod(
  3350. '_toggleClass_',
  3351. smalltalk.method({
  3352. selector: 'toggleClass:',
  3353. category: 'actions',
  3354. fn: function (aClass){
  3355. var self=this;
  3356. (($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]);})]);
  3357. smalltalk.send(self, "_updateClassesList", []);
  3358. return self;},
  3359. source: unescape('toggleClass%3A%20aClass%0A%09%28self%20isSelectedClass%3A%20aClass%29%20%0A%09%09ifFalse%3A%20%5BselectedClasses%20add%3A%20aClass%5D%0A%09%09ifTrue%3A%20%5BselectedClasses%20remove%3A%20aClass%5D.%0A%09self%20%0A%09%20%20%20%20updateClassesList'),
  3360. messageSends: ["ifFalse:ifTrue:", "isSelectedClass:", "add:", "remove:", "updateClassesList"],
  3361. referencedClasses: []
  3362. }),
  3363. smalltalk.TestRunner);
  3364. smalltalk.addMethod(
  3365. '_selectAllClasses',
  3366. smalltalk.method({
  3367. selector: 'selectAllClasses',
  3368. category: 'actions',
  3369. fn: function (){
  3370. var self=this;
  3371. 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]);})]);})]);
  3372. (function($rec){smalltalk.send($rec, "_updateCategoriesList", []);return smalltalk.send($rec, "_updateClassesList", []);})(self);
  3373. return self;},
  3374. source: unescape('selectAllClasses%0A%09self%20classes%20do%3A%20%5B%3Aeach%20%7C%20%0A%09%09%28selectedClasses%20includes%3A%20each%29%20ifFalse%3A%20%5B%0A%09%09%09self%20selectedClasses%20add%3A%20each%5D%5D.%0A%09self%20%0A%09%20%20%20%20updateCategoriesList%3B%0A%09%20%20%20%20updateClassesList'),
  3375. messageSends: ["do:", "classes", "ifFalse:", "includes:", "add:", "selectedClasses", "updateCategoriesList", "updateClassesList"],
  3376. referencedClasses: []
  3377. }),
  3378. smalltalk.TestRunner);
  3379. smalltalk.addMethod(
  3380. '_run_',
  3381. smalltalk.method({
  3382. selector: 'run:',
  3383. category: 'actions',
  3384. fn: function (aCollection){
  3385. var self=this;
  3386. self['@result']=smalltalk.send((smalltalk.TestResult || TestResult), "_new", []);
  3387. (function($rec){smalltalk.send($rec, "_updateStatusDiv", []);return smalltalk.send($rec, "_updateMethodsList", []);})(self);
  3388. smalltalk.send(smalltalk.send(self, "_progressBar", []), "_updatePercent_", [(0)]);
  3389. smalltalk.send(self['@result'], "_total_", [smalltalk.send(aCollection, "_inject_into_", [(0), (function(acc, each){return (($receiver = acc).klass === smalltalk.Number) ? $receiver +smalltalk.send(smalltalk.send(each, "_methods", []), "_size", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(smalltalk.send(each, "_methods", []), "_size", [])]);})])]);
  3390. 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)]);})]);
  3391. return self;},
  3392. source: unescape('run%3A%20aCollection%0A%09result%20%3A%3D%20TestResult%20new.%0A%09self%20%0A%09%09updateStatusDiv%3B%0A%09%09updateMethodsList.%0A%09self%20progressBar%20updatePercent%3A%200.%0A%09result%20total%3A%20%28aCollection%20inject%3A%200%20into%3A%20%5B%3Aacc%20%3Aeach%20%7C%20acc%20+%20each%20methods%20size%5D%29.%0A%09aCollection%20do%3A%20%5B%3Aeach%20%7C%20%0A%09%09%5Beach%20runCaseFor%3A%20result.%0A%09%09self%20progressBar%20updatePercent%3A%20result%20runs%20/%20result%20total%20*%20100.%0A%09%09self%20updateStatusDiv.%0A%09%09self%20updateMethodsList%5D%20valueWithTimeout%3A%20100%5D.'),
  3393. messageSends: ["new", "updateStatusDiv", "updateMethodsList", "updatePercent:", "progressBar", "total:", "inject:into:", unescape("+"), "size", "methods", "do:", "valueWithTimeout:", "runCaseFor:", unescape("*"), unescape("/"), "runs", "total"],
  3394. referencedClasses: []
  3395. }),
  3396. smalltalk.TestRunner);
  3397. smalltalk.addMethod(
  3398. '_initialize',
  3399. smalltalk.method({
  3400. selector: 'initialize',
  3401. category: 'initialization',
  3402. fn: function (){
  3403. var self=this;
  3404. smalltalk.send(self, "_initialize", [], smalltalk.TabWidget);
  3405. self['@result']=smalltalk.send((smalltalk.TestResult || TestResult), "_new", []);
  3406. return self;},
  3407. source: unescape('initialize%0A%09super%20initialize.%0A%09result%20%3A%3D%20TestResult%20new'),
  3408. messageSends: ["initialize", "new"],
  3409. referencedClasses: []
  3410. }),
  3411. smalltalk.TestRunner);
  3412. smalltalk.addMethod(
  3413. '_printErrors',
  3414. smalltalk.method({
  3415. selector: 'printErrors',
  3416. category: 'printing',
  3417. fn: function (){
  3418. var self=this;
  3419. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_errors", []), "_size", []), "_asString", []), "__comma", [unescape("%20errors%2C%20")]);
  3420. return self;},
  3421. source: unescape('printErrors%0A%09%5Eself%20result%20errors%20size%20asString%20%2C%20%27%20errors%2C%20%27'),
  3422. messageSends: [unescape("%2C"), "asString", "size", "errors", "result"],
  3423. referencedClasses: []
  3424. }),
  3425. smalltalk.TestRunner);
  3426. smalltalk.addMethod(
  3427. '_printFailures',
  3428. smalltalk.method({
  3429. selector: 'printFailures',
  3430. category: 'printing',
  3431. fn: function (){
  3432. var self=this;
  3433. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_failures", []), "_size", []), "_asString", []), "__comma", [" failures"]);
  3434. return self;},
  3435. source: unescape('printFailures%0A%09%5Eself%20result%20failures%20size%20asString%2C%20%27%20failures%27'),
  3436. messageSends: [unescape("%2C"), "asString", "size", "failures", "result"],
  3437. referencedClasses: []
  3438. }),
  3439. smalltalk.TestRunner);
  3440. smalltalk.addMethod(
  3441. '_printPasses',
  3442. smalltalk.method({
  3443. selector: 'printPasses',
  3444. category: 'printing',
  3445. fn: function (){
  3446. var self=this;
  3447. return smalltalk.send(smalltalk.send((($receiver = smalltalk.send(smalltalk.send(self, "_result", []), "_total", [])).klass === smalltalk.Number) ? $receiver -(($receiver = smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_errors", []), "_size", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_failures", []), "_size", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_failures", []), "_size", [])]) : smalltalk.send($receiver, "__minus", [(($receiver = smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_errors", []), "_size", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_failures", []), "_size", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_failures", []), "_size", [])])]), "_asString", []), "__comma", [unescape("%20passes%2C%20")]);
  3448. return self;},
  3449. source: unescape('printPasses%0A%09%5E%28%28%28self%20result%20total%29%20-%20%28self%20result%20errors%20size%20+%20%28self%20result%20failures%20size%29%29%29%20asString%29%20%2C%20%27%20passes%2C%20%27'),
  3450. messageSends: [unescape("%2C"), "asString", unescape("-"), "total", "result", unescape("+"), "size", "errors", "failures"],
  3451. referencedClasses: []
  3452. }),
  3453. smalltalk.TestRunner);
  3454. smalltalk.addMethod(
  3455. '_printTotal',
  3456. smalltalk.method({
  3457. selector: 'printTotal',
  3458. category: 'printing',
  3459. fn: function (){
  3460. var self=this;
  3461. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_total", []), "_asString", []), "__comma", [unescape("%20runs%2C%20")]);
  3462. return self;},
  3463. source: unescape('printTotal%0A%09%5Eself%20result%20total%20asString%2C%20%27%20runs%2C%20%27'),
  3464. messageSends: [unescape("%2C"), "asString", "total", "result"],
  3465. referencedClasses: []
  3466. }),
  3467. smalltalk.TestRunner);
  3468. smalltalk.addMethod(
  3469. '_renderBoxOn_',
  3470. smalltalk.method({
  3471. selector: 'renderBoxOn:',
  3472. category: 'rendering',
  3473. fn: function (html){
  3474. var self=this;
  3475. (function($rec){smalltalk.send($rec, "_renderCategoriesOn_", [html]);smalltalk.send($rec, "_renderClassesOn_", [html]);return smalltalk.send($rec, "_renderResultsOn_", [html]);})(self);
  3476. return self;},
  3477. source: unescape('renderBoxOn%3A%20html%0A%20%20%20%20self%20%0A%09renderCategoriesOn%3A%20html%3B%0A%09renderClassesOn%3A%20html%3B%0A%09renderResultsOn%3A%20html'),
  3478. messageSends: ["renderCategoriesOn:", "renderClassesOn:", "renderResultsOn:"],
  3479. referencedClasses: []
  3480. }),
  3481. smalltalk.TestRunner);
  3482. smalltalk.addMethod(
  3483. '_renderButtonsOn_',
  3484. smalltalk.method({
  3485. selector: 'renderButtonsOn:',
  3486. category: 'rendering',
  3487. fn: function (html){
  3488. var self=this;
  3489. (function($rec){smalltalk.send($rec, "_with_", ["Run selected"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_run_", [smalltalk.send(smalltalk.send(self, "_selectedClasses", []), "_collect_", [(function(each){return smalltalk.send(each, "_new", []);})])]);})]);})(smalltalk.send(html, "_button", []));
  3490. return self;},
  3491. source: unescape('renderButtonsOn%3A%20html%0A%20%20%20%20html%20button%0A%09with%3A%20%27Run%20selected%27%3B%0A%09onClick%3A%20%5Bself%20run%3A%20%28self%20selectedClasses%20collect%3A%20%5B%3Aeach%20%7C%20each%20new%5D%29%5D'),
  3492. messageSends: ["with:", "onClick:", "run:", "collect:", "selectedClasses", "new", "button"],
  3493. referencedClasses: []
  3494. }),
  3495. smalltalk.TestRunner);
  3496. smalltalk.addMethod(
  3497. '_renderCategoriesOn_',
  3498. smalltalk.method({
  3499. selector: 'renderCategoriesOn:',
  3500. category: 'rendering',
  3501. fn: function (html){
  3502. var self=this;
  3503. self['@categoriesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column sunit categories"]);
  3504. smalltalk.send(self, "_updateCategoriesList", []);
  3505. return self;},
  3506. source: unescape('renderCategoriesOn%3A%20html%0A%20%20%20%20%09categoriesList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20sunit%20categories%27.%0A%09self%20updateCategoriesList'),
  3507. messageSends: ["class:", "ul", "updateCategoriesList"],
  3508. referencedClasses: []
  3509. }),
  3510. smalltalk.TestRunner);
  3511. smalltalk.addMethod(
  3512. '_renderClassesOn_',
  3513. smalltalk.method({
  3514. selector: 'renderClassesOn:',
  3515. category: 'rendering',
  3516. fn: function (html){
  3517. var self=this;
  3518. self['@classesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column sunit classes"]);
  3519. smalltalk.send(self, "_updateClassesList", []);
  3520. return self;},
  3521. source: unescape('renderClassesOn%3A%20html%0A%20%20%20%20%09classesList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20sunit%20classes%27.%0A%09self%20updateClassesList'),
  3522. messageSends: ["class:", "ul", "updateClassesList"],
  3523. referencedClasses: []
  3524. }),
  3525. smalltalk.TestRunner);
  3526. smalltalk.addMethod(
  3527. '_renderResultsOn_',
  3528. smalltalk.method({
  3529. selector: 'renderResultsOn:',
  3530. category: 'rendering',
  3531. fn: function (html){
  3532. var self=this;
  3533. self['@statusDiv']=smalltalk.send(html, "_div", []);
  3534. smalltalk.send(html, "_with_", [smalltalk.send(self, "_progressBar", [])]);
  3535. self['@methodsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column sunit methods"]);
  3536. smalltalk.send(self, "_updateMethodsList", []);
  3537. smalltalk.send(self, "_updateStatusDiv", []);
  3538. return self;},
  3539. source: unescape('renderResultsOn%3A%20html%0A%20%20%20%20%09statusDiv%20%3A%3D%20html%20div.%0A%09html%20with%3A%20self%20progressBar.%0A%20%20%20%09methodsList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20sunit%20methods%27.%0A%09self%20updateMethodsList.%0A%09self%20updateStatusDiv'),
  3540. messageSends: ["div", "with:", "progressBar", "class:", "ul", "updateMethodsList", "updateStatusDiv"],
  3541. referencedClasses: []
  3542. }),
  3543. smalltalk.TestRunner);
  3544. smalltalk.addMethod(
  3545. '_renderFailuresOn_',
  3546. smalltalk.method({
  3547. selector: 'renderFailuresOn:',
  3548. category: 'rendering',
  3549. fn: function (html){
  3550. var self=this;
  3551. smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_failures", []), "_do_", [(function(each){return (function($rec){smalltalk.send($rec, "_class_", ["failures"]);return smalltalk.send($rec, "_with_", [each]);})(smalltalk.send(html, "_li", []));})]);
  3552. return self;},
  3553. source: unescape('renderFailuresOn%3A%20html%0A%09self%20result%20failures%20do%3A%20%5B%3Aeach%20%7C%0A%09%09html%20li%20%0A%09%09%09class%3A%20%27failures%27%3B%0A%09%09%09with%3A%20each%5D'),
  3554. messageSends: ["do:", "failures", "result", "class:", "with:", "li"],
  3555. referencedClasses: []
  3556. }),
  3557. smalltalk.TestRunner);
  3558. smalltalk.addMethod(
  3559. '_renderErrorsOn_',
  3560. smalltalk.method({
  3561. selector: 'renderErrorsOn:',
  3562. category: 'rendering',
  3563. fn: function (html){
  3564. var self=this;
  3565. smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_errors", []), "_do_", [(function(each){return (function($rec){smalltalk.send($rec, "_class_", ["errors"]);return smalltalk.send($rec, "_with_", [each]);})(smalltalk.send(html, "_li", []));})]);
  3566. return self;},
  3567. source: unescape('renderErrorsOn%3A%20html%0A%09self%20result%20errors%20do%3A%20%5B%3Aeach%20%7C%0A%09%09html%20li%20%0A%09%09%09class%3A%20%27errors%27%3B%0A%09%09%09with%3A%20each%5D'),
  3568. messageSends: ["do:", "errors", "result", "class:", "with:", "li"],
  3569. referencedClasses: []
  3570. }),
  3571. smalltalk.TestRunner);
  3572. smalltalk.addMethod(
  3573. '_isSelectedClass_',
  3574. smalltalk.method({
  3575. selector: 'isSelectedClass:',
  3576. category: 'testing',
  3577. fn: function (aClass){
  3578. var self=this;
  3579. return smalltalk.send(smalltalk.send(self, "_selectedClasses", []), "_includes_", [aClass]);
  3580. return self;},
  3581. source: unescape('isSelectedClass%3A%20aClass%0A%09%5E%28self%20selectedClasses%20includes%3A%20aClass%29'),
  3582. messageSends: ["includes:", "selectedClasses"],
  3583. referencedClasses: []
  3584. }),
  3585. smalltalk.TestRunner);
  3586. smalltalk.addMethod(
  3587. '_isSelectedCategory_',
  3588. smalltalk.method({
  3589. selector: 'isSelectedCategory:',
  3590. category: 'testing',
  3591. fn: function (aCategory){
  3592. var self=this;
  3593. return smalltalk.send(smalltalk.send(self, "_selectedCategories", []), "_includes_", [aCategory]);
  3594. return self;},
  3595. source: unescape('isSelectedCategory%3A%20aCategory%0A%09%5E%28self%20selectedCategories%20includes%3A%20aCategory%29'),
  3596. messageSends: ["includes:", "selectedCategories"],
  3597. referencedClasses: []
  3598. }),
  3599. smalltalk.TestRunner);
  3600. smalltalk.addMethod(
  3601. '_updateCategoriesList',
  3602. smalltalk.method({
  3603. selector: 'updateCategoriesList',
  3604. category: 'updating',
  3605. fn: function (){
  3606. var self=this;
  3607. smalltalk.send(self['@categoriesList'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_class_", ["all"]);smalltalk.send($rec, "_with_", ["All"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectAllCategories", []);})]);})(smalltalk.send(html, "_li", []));return smalltalk.send(smalltalk.send(self, "_categories", []), "_do_", [(function(each){var li=nil;
  3608. 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);})]);})]);
  3609. return self;},
  3610. source: unescape('updateCategoriesList%0A%20%20%20%20categoriesList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%20%20%20%20html%20li%20%0A%09%09class%3A%20%27all%27%3B%0A%09%09with%3A%20%27All%27%3B%0A%09%09onClick%3A%20%5Bself%20selectAllCategories%5D.%0A%09self%20categories%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20%7C%0A%09%20%20%20%20li%20%3A%3D%20html%20li.%0A%09%20%20%20%20%28self%20selectedCategories%20includes%3A%20each%29%20ifTrue%3A%20%5B%0A%09%09li%20class%3A%20%27selected%27%5D.%0A%09%20%20%20%20li%0A%09%09with%3A%20each%3B%0A%09%09onClick%3A%20%5Bself%20toggleCategory%3A%20each%5D%5D%5D'),
  3611. messageSends: ["contents:", "class:", "with:", "onClick:", "selectAllCategories", "li", "do:", "categories", "ifTrue:", "includes:", "selectedCategories", "toggleCategory:"],
  3612. referencedClasses: []
  3613. }),
  3614. smalltalk.TestRunner);
  3615. smalltalk.addMethod(
  3616. '_updateClassesList',
  3617. smalltalk.method({
  3618. selector: 'updateClassesList',
  3619. category: 'updating',
  3620. fn: function (){
  3621. var self=this;
  3622. 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;
  3623. 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);})]);})]);
  3624. return self;},
  3625. source: unescape('updateClassesList%0A%20%20%20%20classesList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%28self%20selectedCategories%20isEmpty%29%20ifFalse%3A%20%5B%0A%09%09html%20li%0A%09%09%09class%3A%20%27all%27%3B%0A%09%09%09with%3A%20%27All%27%3B%0A%09%09%09onClick%3A%20%5Bself%20selectAllClasses%5D%5D.%0A%09self%20classes%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20%7C%0A%09%09li%20%3A%3D%20html%20li.%0A%09%09%28self%20selectedClasses%20includes%3A%20each%29%20ifTrue%3A%20%5B%0A%09%09%09li%20class%3A%20%27selected%27%5D.%0A%09%09li%0A%09%09%09with%3A%20each%20name%3B%0A%09%09%09onClick%3A%20%5Bself%20toggleClass%3A%20each%5D%5D%5D'),
  3626. messageSends: ["contents:", "ifFalse:", "isEmpty", "selectedCategories", "class:", "with:", "onClick:", "selectAllClasses", "li", "do:", "classes", "ifTrue:", "includes:", "selectedClasses", "name", "toggleClass:"],
  3627. referencedClasses: []
  3628. }),
  3629. smalltalk.TestRunner);
  3630. smalltalk.addMethod(
  3631. '_updateMethodsList',
  3632. smalltalk.method({
  3633. selector: 'updateMethodsList',
  3634. category: 'updating',
  3635. fn: function (){
  3636. var self=this;
  3637. smalltalk.send(self['@methodsList'], "_contents_", [(function(html){smalltalk.send(self, "_renderFailuresOn_", [html]);return smalltalk.send(self, "_renderErrorsOn_", [html]);})]);
  3638. return self;},
  3639. source: unescape('updateMethodsList%0A%09methodsList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09self%20renderFailuresOn%3A%20html.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20self%20renderErrorsOn%3A%20html%5D'),
  3640. messageSends: ["contents:", "renderFailuresOn:", "renderErrorsOn:"],
  3641. referencedClasses: []
  3642. }),
  3643. smalltalk.TestRunner);
  3644. smalltalk.addMethod(
  3645. '_updateStatusDiv',
  3646. smalltalk.method({
  3647. selector: 'updateStatusDiv',
  3648. category: 'updating',
  3649. fn: function (){
  3650. var self=this;
  3651. smalltalk.send(self['@statusDiv'], "_class_", [smalltalk.send("sunit status ", "__comma", [smalltalk.send(self['@result'], "_status", [])])]);
  3652. smalltalk.send(self['@statusDiv'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(html, "_span", []), "_with_", [smalltalk.send(self, "_statusInfo", [])]);})]);
  3653. return self;},
  3654. source: unescape('updateStatusDiv%0A%09statusDiv%20class%3A%20%27sunit%20status%20%27%2C%20result%20status.%0A%09statusDiv%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09html%20span%20with%3A%20self%20statusInfo%5D'),
  3655. messageSends: ["class:", unescape("%2C"), "status", "contents:", "with:", "span", "statusInfo"],
  3656. referencedClasses: []
  3657. }),
  3658. smalltalk.TestRunner);
  3659. smalltalk.addMethod(
  3660. '_inspect',
  3661. smalltalk.method({
  3662. selector: 'inspect',
  3663. category: '*IDE',
  3664. fn: function (){
  3665. var self=this;
  3666. (function($rec){smalltalk.send($rec, "_inspect_", [self]);return smalltalk.send($rec, "_open", []);})(smalltalk.send((smalltalk.Inspector || Inspector), "_new", []));
  3667. return self;},
  3668. source: unescape('inspect%0A%09Inspector%20new%20%0A%09%09inspect%3A%20self%3B%0A%09%09open'),
  3669. messageSends: ["inspect:", "open", "new"],
  3670. referencedClasses: [smalltalk.Inspector]
  3671. }),
  3672. smalltalk.Object);
  3673. smalltalk.addMethod(
  3674. '_inspectOn_',
  3675. smalltalk.method({
  3676. selector: 'inspectOn:',
  3677. category: '*IDE',
  3678. fn: function (anInspector){
  3679. var self=this;
  3680. var variables=nil;
  3681. variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  3682. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  3683. smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_allInstanceVariableNames", []), "_do_", [(function(each){return smalltalk.send(variables, "_at_put_", [each, smalltalk.send(self, "_instVarAt_", [each])]);})]);
  3684. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  3685. return self;},
  3686. source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self.%0A%09self%20class%20allInstanceVariableNames%20do%3A%20%5B%3Aeach%20%7C%0A%09%09variables%20at%3A%20each%20put%3A%20%28self%20instVarAt%3A%20each%29%5D.%0A%09anInspector%20%0A%09%09setLabel%3A%20self%20printString%3B%0A%09%09setVariables%3A%20variables'),
  3687. messageSends: ["new", "at:put:", "do:", "allInstanceVariableNames", "class", "instVarAt:", "setLabel:", "printString", "setVariables:"],
  3688. referencedClasses: [smalltalk.Dictionary]
  3689. }),
  3690. smalltalk.Object);
  3691. smalltalk.addMethod(
  3692. '_inspectOn_',
  3693. smalltalk.method({
  3694. selector: 'inspectOn:',
  3695. category: '*IDE',
  3696. fn: function (anInspector){
  3697. var self=this;
  3698. var variables=nil;
  3699. variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  3700. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  3701. smalltalk.send(variables, "_at_put_", [unescape("%23year"), smalltalk.send(self, "_year", [])]);
  3702. smalltalk.send(variables, "_at_put_", [unescape("%23month"), smalltalk.send(self, "_month", [])]);
  3703. smalltalk.send(variables, "_at_put_", [unescape("%23day"), smalltalk.send(self, "_day", [])]);
  3704. smalltalk.send(variables, "_at_put_", [unescape("%23hours"), smalltalk.send(self, "_hours", [])]);
  3705. smalltalk.send(variables, "_at_put_", [unescape("%23minutes"), smalltalk.send(self, "_minutes", [])]);
  3706. smalltalk.send(variables, "_at_put_", [unescape("%23seconds"), smalltalk.send(self, "_seconds", [])]);
  3707. smalltalk.send(variables, "_at_put_", [unescape("%23milliseconds"), smalltalk.send(self, "_milliseconds", [])]);
  3708. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  3709. return self;},
  3710. source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self.%0A%09variables%20at%3A%20%27%23year%27%20put%3A%20self%20year.%0A%09variables%20at%3A%20%27%23month%27%20put%3A%20self%20month.%0A%09variables%20at%3A%20%27%23day%27%20put%3A%20self%20day.%0A%09variables%20at%3A%20%27%23hours%27%20put%3A%20self%20hours.%0A%09variables%20at%3A%20%27%23minutes%27%20put%3A%20self%20minutes.%0A%09variables%20at%3A%20%27%23seconds%27%20put%3A%20self%20seconds.%0A%09variables%20at%3A%20%27%23milliseconds%27%20put%3A%20self%20milliseconds.%0A%09anInspector%20%0A%09%09setLabel%3A%20self%20printString%3B%0A%09%09setVariables%3A%20variables'),
  3711. messageSends: ["new", "at:put:", "year", "month", "day", "hours", "minutes", "seconds", "milliseconds", "setLabel:", "printString", "setVariables:"],
  3712. referencedClasses: [smalltalk.Dictionary]
  3713. }),
  3714. smalltalk.Date);
  3715. smalltalk.addMethod(
  3716. '_inspectOn_',
  3717. smalltalk.method({
  3718. selector: 'inspectOn:',
  3719. category: '*IDE',
  3720. fn: function (anInspector){
  3721. var self=this;
  3722. var variables=nil;
  3723. variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  3724. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  3725. smalltalk.send(self, "_withIndexDo_", [(function(each, i){return smalltalk.send(variables, "_at_put_", [i, each]);})]);
  3726. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  3727. return self;},
  3728. source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self.%0A%09self%20withIndexDo%3A%20%5B%3Aeach%20%3Ai%20%7C%0A%09%09variables%20at%3A%20i%20put%3A%20each%5D.%0A%09anInspector%20%0A%09%09setLabel%3A%20self%20printString%3B%0A%09%09setVariables%3A%20variables'),
  3729. messageSends: ["new", "at:put:", "withIndexDo:", "setLabel:", "printString", "setVariables:"],
  3730. referencedClasses: [smalltalk.Dictionary]
  3731. }),
  3732. smalltalk.Collection);
  3733. smalltalk.addMethod(
  3734. '_inspectOn_',
  3735. smalltalk.method({
  3736. selector: 'inspectOn:',
  3737. category: '*IDE',
  3738. fn: function (anInspector){
  3739. var self=this;
  3740. var label=nil;
  3741. smalltalk.send(self, "_inspectOn_", [anInspector], smalltalk.SequenceableCollection);
  3742. (($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", []);})]);
  3743. smalltalk.send(anInspector, "_setLabel_", [label]);
  3744. return self;},
  3745. source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20label%20%7C%0A%09super%20inspectOn%3A%20anInspector.%0A%09self%20printString%20size%20%3E%2030%20%0A%09%09ifTrue%3A%20%5Blabel%20%3A%3D%20%28self%20printString%20copyFrom%3A%201%20to%3A%2030%29%2C%20%27...%27%27%27%5D%0A%09%09ifFalse%3A%20%5Blabel%20%3A%3D%20self%20printString%5D.%20%0A%09anInspector%20setLabel%3A%20label'),
  3746. messageSends: ["inspectOn:", "ifTrue:ifFalse:", unescape("%3E"), "size", "printString", unescape("%2C"), "copyFrom:to:", "setLabel:"],
  3747. referencedClasses: []
  3748. }),
  3749. smalltalk.String);
  3750. smalltalk.addMethod(
  3751. '_inspectOn_',
  3752. smalltalk.method({
  3753. selector: 'inspectOn:',
  3754. category: '*IDE',
  3755. fn: function (anInspector){
  3756. var self=this;
  3757. var variables=nil;
  3758. variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  3759. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  3760. smalltalk.send(variables, "_at_put_", [unescape("%23home"), smalltalk.send(self, "_home", [])]);
  3761. smalltalk.send(variables, "_at_put_", [unescape("%23receiver"), smalltalk.send(self, "_receiver", [])]);
  3762. smalltalk.send(variables, "_at_put_", [unescape("%23selector"), smalltalk.send(self, "_selector", [])]);
  3763. smalltalk.send(variables, "_at_put_", [unescape("%23temps"), smalltalk.send(self, "_temps", [])]);
  3764. smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_instanceVariableNames", []), "_do_", [(function(each){return smalltalk.send(variables, "_at_put_", [each, smalltalk.send(self, "_instVarAt_", [each])]);})]);
  3765. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  3766. return self;},
  3767. source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self.%0A%09variables%20at%3A%20%27%23home%27%20put%3A%20self%20home.%0A%09variables%20at%3A%20%27%23receiver%27%20put%3A%20self%20receiver.%0A%09variables%20at%3A%20%27%23selector%27%20put%3A%20self%20selector.%0A%09variables%20at%3A%20%27%23temps%27%20put%3A%20self%20temps.%0A%09self%20class%20instanceVariableNames%20do%3A%20%5B%3Aeach%20%7C%0A%09%09variables%20at%3A%20each%20put%3A%20%28self%20instVarAt%3A%20each%29%5D.%0A%09anInspector%20%0A%09%09setLabel%3A%20self%20printString%3B%0A%09%09setVariables%3A%20variables'),
  3768. messageSends: ["new", "at:put:", "home", "receiver", "selector", "temps", "do:", "instanceVariableNames", "class", "instVarAt:", "setLabel:", "printString", "setVariables:"],
  3769. referencedClasses: [smalltalk.Dictionary]
  3770. }),
  3771. smalltalk.MethodContext);
  3772. smalltalk.addMethod(
  3773. '_inspectOn_',
  3774. smalltalk.method({
  3775. selector: 'inspectOn:',
  3776. category: '*IDE',
  3777. fn: function (anInspector){
  3778. var self=this;
  3779. var variables=nil;
  3780. variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  3781. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  3782. smalltalk.send(variables, "_at_put_", [unescape("%23keys"), smalltalk.send(self, "_keys", [])]);
  3783. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(variables, "_at_put_", [key, value]);})]);
  3784. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  3785. return self;},
  3786. source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self.%0A%09variables%20at%3A%20%27%23keys%27%20put%3A%20self%20keys.%0A%09self%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%0A%09%09variables%20at%3A%20key%20put%3A%20value%5D.%0A%09anInspector%20%0A%09%09setLabel%3A%20self%20printString%3B%0A%09%09setVariables%3A%20variables'),
  3787. messageSends: ["new", "at:put:", "keys", "keysAndValuesDo:", "setLabel:", "printString", "setVariables:"],
  3788. referencedClasses: [smalltalk.Dictionary]
  3789. }),
  3790. smalltalk.Dictionary);