IDE.js 278 KB

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