1
0

IDE.js 286 KB

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