1
0

IDE.js 296 KB

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