IDE.js 291 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932
  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'], '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('_openBrowserOn_'),
  3493. smalltalk.method({
  3494. selector: unescape('openBrowserOn%3A'),
  3495. category: 'actions',
  3496. fn: function (aMethod){
  3497. var self=this;
  3498. var browser=nil;
  3499. (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", []);})]))]));
  3500. ((($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")]);})]));
  3501. (function($rec){smalltalk.send($rec, "_selectProtocol_", [smalltalk.send(aMethod, "_category", [])]);return smalltalk.send($rec, "_selectMethod_", [aMethod]);})(browser);
  3502. return self;},
  3503. args: ["aMethod"],
  3504. 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'),
  3505. messageSends: ["openOn:", "ifTrue:ifFalse:", "isMetaclass", "methodClass", "instanceClass", "ifTrue:", "selectTab:", "selectProtocol:", "category", "selectMethod:"],
  3506. referencedClasses: ["Browser"]
  3507. }),
  3508. smalltalk.ReferencesBrowser);
  3509. smalltalk.addMethod(
  3510. unescape('_referencedClasses'),
  3511. smalltalk.method({
  3512. selector: unescape('referencedClasses'),
  3513. category: 'accessing',
  3514. fn: function (){
  3515. var self=this;
  3516. return (($receiver = self['@referencedClasses']) == nil || $receiver == undefined) ? (function(){return (self['@referencedClasses']=smalltalk.send((smalltalk.Array || Array), "_new", []));})() : $receiver;
  3517. return self;},
  3518. args: [],
  3519. source: unescape('referencedClasses%0A%09%5EreferencedClasses%20ifNil%3A%20%5BreferencedClasses%20%3A%3D%20Array%20new%5D'),
  3520. messageSends: ["ifNil:", "new"],
  3521. referencedClasses: ["Array"]
  3522. }),
  3523. smalltalk.ReferencesBrowser);
  3524. smalltalk.addMethod(
  3525. unescape('_renderBoxOn_'),
  3526. smalltalk.method({
  3527. selector: unescape('renderBoxOn%3A'),
  3528. category: 'rendering',
  3529. fn: function (html){
  3530. var self=this;
  3531. (function($rec){smalltalk.send($rec, "_renderInputOn_", [html]);smalltalk.send($rec, "_renderImplementorsOn_", [html]);smalltalk.send($rec, "_renderSendersOn_", [html]);return smalltalk.send($rec, "_renderReferencedClassesOn_", [html]);})(self);
  3532. return self;},
  3533. args: ["html"],
  3534. 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'),
  3535. messageSends: ["renderInputOn:", "renderImplementorsOn:", "renderSendersOn:", "renderReferencedClassesOn:"],
  3536. referencedClasses: []
  3537. }),
  3538. smalltalk.ReferencesBrowser);
  3539. smalltalk.addMethod(
  3540. unescape('_renderImplementorsOn_'),
  3541. smalltalk.method({
  3542. selector: unescape('renderImplementorsOn%3A'),
  3543. category: 'rendering',
  3544. fn: function (html){
  3545. var self=this;
  3546. (self['@implementorsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column implementors"]));
  3547. smalltalk.send(self, "_updateImplementorsList", []);
  3548. return self;},
  3549. args: ["html"],
  3550. source: unescape('renderImplementorsOn%3A%20html%0A%09implementorsList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20implementors%27.%0A%09self%20updateImplementorsList'),
  3551. messageSends: ["class:", "ul", "updateImplementorsList"],
  3552. referencedClasses: []
  3553. }),
  3554. smalltalk.ReferencesBrowser);
  3555. smalltalk.addMethod(
  3556. unescape('_renderInputOn_'),
  3557. smalltalk.method({
  3558. selector: unescape('renderInputOn%3A'),
  3559. category: 'rendering',
  3560. fn: function (html){
  3561. var self=this;
  3562. (self['@input']=(function($rec){smalltalk.send($rec, "_class_", ["implementors"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_input", [])));
  3563. smalltalk.send(smalltalk.send(self['@input'], "_asJQuery", []), "_val_", [self['@selector']]);
  3564. smalltalk.send(self, "_setInputEvents", []);
  3565. return self;},
  3566. args: ["html"],
  3567. 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'),
  3568. messageSends: ["class:", "yourself", "input", "val:", "asJQuery", "setInputEvents"],
  3569. referencedClasses: []
  3570. }),
  3571. smalltalk.ReferencesBrowser);
  3572. smalltalk.addMethod(
  3573. unescape('_renderReferencedClassesOn_'),
  3574. smalltalk.method({
  3575. selector: unescape('renderReferencedClassesOn%3A'),
  3576. category: 'rendering',
  3577. fn: function (html){
  3578. var self=this;
  3579. (self['@referencedClassesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column referenced_classes"]));
  3580. smalltalk.send(self, "_updateReferencedClassesList", []);
  3581. return self;},
  3582. args: ["html"],
  3583. source: unescape('renderReferencedClassesOn%3A%20html%0A%09referencedClassesList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20referenced_classes%27.%0A%09self%20updateReferencedClassesList'),
  3584. messageSends: ["class:", "ul", "updateReferencedClassesList"],
  3585. referencedClasses: []
  3586. }),
  3587. smalltalk.ReferencesBrowser);
  3588. smalltalk.addMethod(
  3589. unescape('_renderSendersOn_'),
  3590. smalltalk.method({
  3591. selector: unescape('renderSendersOn%3A'),
  3592. category: 'rendering',
  3593. fn: function (html){
  3594. var self=this;
  3595. (self['@sendersList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column senders"]));
  3596. smalltalk.send(self, "_updateSendersList", []);
  3597. return self;},
  3598. args: ["html"],
  3599. source: unescape('renderSendersOn%3A%20html%0A%09sendersList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20senders%27.%0A%09self%20updateSendersList'),
  3600. messageSends: ["class:", "ul", "updateSendersList"],
  3601. referencedClasses: []
  3602. }),
  3603. smalltalk.ReferencesBrowser);
  3604. smalltalk.addMethod(
  3605. unescape('_search_'),
  3606. smalltalk.method({
  3607. selector: unescape('search%3A'),
  3608. category: 'actions',
  3609. fn: function (aString){
  3610. var self=this;
  3611. (function($rec){smalltalk.send($rec, "_searchReferencesFor_", [aString]);smalltalk.send($rec, "_updateImplementorsList", []);smalltalk.send($rec, "_updateSendersList", []);return smalltalk.send($rec, "_updateReferencedClassesList", []);})(self);
  3612. return self;},
  3613. args: ["aString"],
  3614. 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'),
  3615. messageSends: ["searchReferencesFor:", "updateImplementorsList", "updateSendersList", "updateReferencedClassesList"],
  3616. referencedClasses: []
  3617. }),
  3618. smalltalk.ReferencesBrowser);
  3619. smalltalk.addMethod(
  3620. unescape('_searchReferencedClassesFor_'),
  3621. smalltalk.method({
  3622. selector: unescape('searchReferencedClassesFor%3A'),
  3623. category: 'actions',
  3624. fn: function (aString){
  3625. var self=this;
  3626. 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]);})]));})]);})]);
  3627. return self;},
  3628. args: ["aString"],
  3629. source: unescape('searchReferencedClassesFor%3A%20aString%0A%09self%20classesAndMetaclasses%20do%3A%20%5B%3Aeach%20%7C%0A%09%09each%20methodDictionary%20values%20do%3A%20%5B%3Avalue%20%7C%0A%09%09%09%28value%20referencedClasses%20includes%3A%20selector%29%20ifTrue%3A%20%5B%0A%09%09%09%09self%20referencedClasses%20add%3A%20value%5D%5D%5D'),
  3630. messageSends: ["do:", "classesAndMetaclasses", "values", "methodDictionary", "ifTrue:", "includes:", "referencedClasses", "add:"],
  3631. referencedClasses: []
  3632. }),
  3633. smalltalk.ReferencesBrowser);
  3634. smalltalk.addMethod(
  3635. unescape('_searchReferencesFor_'),
  3636. smalltalk.method({
  3637. selector: unescape('searchReferencesFor%3A'),
  3638. category: 'actions',
  3639. fn: function (aString){
  3640. var self=this;
  3641. (self['@selector']=aString);
  3642. (self['@implementors']=smalltalk.send((smalltalk.Array || Array), "_new", []));
  3643. (self['@senders']=smalltalk.send((smalltalk.Array || Array), "_new", []));
  3644. (self['@referencedClasses']=smalltalk.send((smalltalk.Array || Array), "_new", []));
  3645. ((($receiver = smalltalk.send(self['@selector'], "_match_", [unescape("%5E%5BA-Z%5D")])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_searchSelectorReferencesFor_", [self['@selector']]);})() : (function(){return smalltalk.send(self, "_searchReferencedClassesFor_", [self['@selector']]);})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self, "_searchSelectorReferencesFor_", [self['@selector']]);}), (function(){return smalltalk.send(self, "_searchReferencedClassesFor_", [self['@selector']]);})]));
  3646. return self;},
  3647. args: ["aString"],
  3648. source: unescape('searchReferencesFor%3A%20aString%0A%09selector%20%3A%3D%20aString.%0A%09implementors%20%3A%3D%20Array%20new.%0A%09senders%20%3A%3D%20Array%20new.%0A%09referencedClasses%20%3A%3D%20Array%20new.%0A%09%28selector%20match%3A%20%27%5E%5BA-Z%5D%27%29%20%0A%09%09ifFalse%3A%20%5Bself%20searchSelectorReferencesFor%3A%20selector%5D%0A%09%09ifTrue%3A%20%5Bself%20searchReferencedClassesFor%3A%20selector%5D'),
  3649. messageSends: ["new", "ifFalse:ifTrue:", "match:", "searchSelectorReferencesFor:", "searchReferencedClassesFor:"],
  3650. referencedClasses: ["Array"]
  3651. }),
  3652. smalltalk.ReferencesBrowser);
  3653. smalltalk.addMethod(
  3654. unescape('_searchSelectorReferencesFor_'),
  3655. smalltalk.method({
  3656. selector: unescape('searchSelectorReferencesFor%3A'),
  3657. category: 'actions',
  3658. fn: function (aString){
  3659. var self=this;
  3660. 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]);})]));})]);})]);
  3661. return self;},
  3662. args: ["aString"],
  3663. source: unescape('searchSelectorReferencesFor%3A%20aString%0A%09self%20classesAndMetaclasses%20do%3A%20%5B%3Aeach%20%7C%20%0A%09%09each%20methodDictionary%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%20%0A%09%09%09key%20%3D%20selector%20ifTrue%3A%20%5Bself%20implementors%20add%3A%20value%5D.%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'),
  3664. messageSends: ["do:", "classesAndMetaclasses", "keysAndValuesDo:", "methodDictionary", "ifTrue:", unescape("%3D"), "add:", "implementors", "includes:", "messageSends", "senders"],
  3665. referencedClasses: []
  3666. }),
  3667. smalltalk.ReferencesBrowser);
  3668. smalltalk.addMethod(
  3669. unescape('_selector'),
  3670. smalltalk.method({
  3671. selector: unescape('selector'),
  3672. category: 'accessing',
  3673. fn: function (){
  3674. var self=this;
  3675. return self['@selector'];
  3676. return self;},
  3677. args: [],
  3678. source: unescape('selector%0A%09%5Eselector'),
  3679. messageSends: [],
  3680. referencedClasses: []
  3681. }),
  3682. smalltalk.ReferencesBrowser);
  3683. smalltalk.addMethod(
  3684. unescape('_senders'),
  3685. smalltalk.method({
  3686. selector: unescape('senders'),
  3687. category: 'accessing',
  3688. fn: function (){
  3689. var self=this;
  3690. return (($receiver = self['@senders']) == nil || $receiver == undefined) ? (function(){return (self['@senders']=smalltalk.send((smalltalk.Array || Array), "_new", []));})() : $receiver;
  3691. return self;},
  3692. args: [],
  3693. source: unescape('senders%0A%09%5Esenders%20ifNil%3A%20%5Bsenders%20%3A%3D%20Array%20new%5D'),
  3694. messageSends: ["ifNil:", "new"],
  3695. referencedClasses: ["Array"]
  3696. }),
  3697. smalltalk.ReferencesBrowser);
  3698. smalltalk.addMethod(
  3699. unescape('_setInputEvents'),
  3700. smalltalk.method({
  3701. selector: unescape('setInputEvents'),
  3702. category: 'private',
  3703. fn: function (){
  3704. var self=this;
  3705. (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']);
  3706. return self;},
  3707. args: [],
  3708. 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'),
  3709. messageSends: ["onKeyUp:", "valueWithTimeout:", "search:", "val", "asJQuery", "onKeyDown:", "ifNotNil:", "clearTimeout"],
  3710. referencedClasses: []
  3711. }),
  3712. smalltalk.ReferencesBrowser);
  3713. smalltalk.addMethod(
  3714. unescape('_updateImplementorsList'),
  3715. smalltalk.method({
  3716. selector: unescape('updateImplementorsList'),
  3717. category: 'updating',
  3718. fn: function (){
  3719. var self=this;
  3720. 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;
  3721. (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);})]);})]);
  3722. return self;},
  3723. args: [],
  3724. 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'),
  3725. messageSends: ["contents:", "class:", "with:", unescape("%2C"), "asString", "size", "implementors", "style:", "li", "do:", "methodClass", "selector", "onClick:", "openBrowserOn:"],
  3726. referencedClasses: []
  3727. }),
  3728. smalltalk.ReferencesBrowser);
  3729. smalltalk.addMethod(
  3730. unescape('_updateReferencedClassesList'),
  3731. smalltalk.method({
  3732. selector: unescape('updateReferencedClassesList'),
  3733. category: 'updating',
  3734. fn: function (){
  3735. var self=this;
  3736. 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", []));})]);})]);
  3737. return self;},
  3738. args: [],
  3739. 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'),
  3740. messageSends: ["contents:", "class:", "with:", unescape("%2C"), "asString", "size", "referencedClasses", "style:", "li", "do:", "methodClass", "selector", "onClick:", "openBrowserOn:"],
  3741. referencedClasses: []
  3742. }),
  3743. smalltalk.ReferencesBrowser);
  3744. smalltalk.addMethod(
  3745. unescape('_updateSendersList'),
  3746. smalltalk.method({
  3747. selector: unescape('updateSendersList'),
  3748. category: 'updating',
  3749. fn: function (){
  3750. var self=this;
  3751. 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", []));})]);})]);
  3752. return self;},
  3753. args: [],
  3754. 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'),
  3755. messageSends: ["contents:", "class:", "with:", unescape("%2C"), "asString", "size", "senders", "style:", "li", "do:", "methodClass", "selector", "onClick:", "openBrowserOn:"],
  3756. referencedClasses: []
  3757. }),
  3758. smalltalk.ReferencesBrowser);
  3759. smalltalk.addMethod(
  3760. unescape('_search_'),
  3761. smalltalk.method({
  3762. selector: unescape('search%3A'),
  3763. category: 'instance creation',
  3764. fn: function (aString){
  3765. var self=this;
  3766. return (function($rec){smalltalk.send($rec, "_searchReferencesFor_", [aString]);return smalltalk.send($rec, "_open", []);})(smalltalk.send(self, "_new", []));
  3767. return self;},
  3768. args: ["aString"],
  3769. source: unescape('search%3A%20aString%0A%09%5Eself%20new%0A%09%09searchReferencesFor%3A%20aString%3B%0A%09%09open'),
  3770. messageSends: ["searchReferencesFor:", "open", "new"],
  3771. referencedClasses: []
  3772. }),
  3773. smalltalk.ReferencesBrowser.klass);
  3774. smalltalk.addClass('TestRunner', smalltalk.TabWidget, ['selectedCategories', 'packagesList', 'selectedClasses', 'classesList', 'selectedMethods', 'progressBar', 'methodsList', 'result', 'statusDiv'], 'IDE');
  3775. smalltalk.addMethod(
  3776. unescape('_allClasses'),
  3777. smalltalk.method({
  3778. selector: unescape('allClasses'),
  3779. category: 'accessing',
  3780. fn: function (){
  3781. var self=this;
  3782. return smalltalk.send((smalltalk.TestCase || TestCase), "_allSubclasses", []);
  3783. return self;},
  3784. args: [],
  3785. source: unescape('allClasses%0A%09%5ETestCase%20allSubclasses'),
  3786. messageSends: ["allSubclasses"],
  3787. referencedClasses: ["TestCase"]
  3788. }),
  3789. smalltalk.TestRunner);
  3790. smalltalk.addMethod(
  3791. unescape('_classes'),
  3792. smalltalk.method({
  3793. selector: unescape('classes'),
  3794. category: 'accessing',
  3795. fn: function (){
  3796. var self=this;
  3797. 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", [])]));})]);
  3798. return self;},
  3799. args: [],
  3800. 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'),
  3801. messageSends: ["sort:", "select:", "allClasses", "includes:", "selectedCategories", "category", unescape("%3E"), "name"],
  3802. referencedClasses: []
  3803. }),
  3804. smalltalk.TestRunner);
  3805. smalltalk.addMethod(
  3806. unescape('_initialize'),
  3807. smalltalk.method({
  3808. selector: unescape('initialize'),
  3809. category: 'initialization',
  3810. fn: function (){
  3811. var self=this;
  3812. smalltalk.send(self, "_initialize", [], smalltalk.TabWidget);
  3813. (self['@result']=smalltalk.send((smalltalk.TestResult || TestResult), "_new", []));
  3814. return self;},
  3815. args: [],
  3816. source: unescape('initialize%0A%09super%20initialize.%0A%09result%20%3A%3D%20TestResult%20new'),
  3817. messageSends: ["initialize", "new"],
  3818. referencedClasses: ["TestResult"]
  3819. }),
  3820. smalltalk.TestRunner);
  3821. smalltalk.addMethod(
  3822. unescape('_isSelectedCategory_'),
  3823. smalltalk.method({
  3824. selector: unescape('isSelectedCategory%3A'),
  3825. category: 'testing',
  3826. fn: function (aCategory){
  3827. var self=this;
  3828. return smalltalk.send(smalltalk.send(self, "_selectedCategories", []), "_includes_", [aCategory]);
  3829. return self;},
  3830. args: ["aCategory"],
  3831. source: unescape('isSelectedCategory%3A%20aCategory%0A%09%5E%28self%20selectedCategories%20includes%3A%20aCategory%29'),
  3832. messageSends: ["includes:", "selectedCategories"],
  3833. referencedClasses: []
  3834. }),
  3835. smalltalk.TestRunner);
  3836. smalltalk.addMethod(
  3837. unescape('_isSelectedClass_'),
  3838. smalltalk.method({
  3839. selector: unescape('isSelectedClass%3A'),
  3840. category: 'testing',
  3841. fn: function (aClass){
  3842. var self=this;
  3843. return smalltalk.send(smalltalk.send(self, "_selectedClasses", []), "_includes_", [aClass]);
  3844. return self;},
  3845. args: ["aClass"],
  3846. source: unescape('isSelectedClass%3A%20aClass%0A%09%5E%28self%20selectedClasses%20includes%3A%20aClass%29'),
  3847. messageSends: ["includes:", "selectedClasses"],
  3848. referencedClasses: []
  3849. }),
  3850. smalltalk.TestRunner);
  3851. smalltalk.addMethod(
  3852. unescape('_label'),
  3853. smalltalk.method({
  3854. selector: unescape('label'),
  3855. category: 'accessing',
  3856. fn: function (){
  3857. var self=this;
  3858. return "SUnit";
  3859. return self;},
  3860. args: [],
  3861. source: unescape('label%0A%20%20%20%20%5E%27SUnit%27'),
  3862. messageSends: [],
  3863. referencedClasses: []
  3864. }),
  3865. smalltalk.TestRunner);
  3866. smalltalk.addMethod(
  3867. unescape('_packages'),
  3868. smalltalk.method({
  3869. selector: unescape('packages'),
  3870. category: 'accessing',
  3871. fn: function (){
  3872. var self=this;
  3873. var packages=nil;
  3874. (packages=smalltalk.send((smalltalk.Array || Array), "_new", []));
  3875. 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", [])]);})]));})]);
  3876. return smalltalk.send(packages, "_sort", []);
  3877. return self;},
  3878. args: [],
  3879. 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'),
  3880. messageSends: ["new", "do:", "allClasses", "ifFalse:", "includes:", "category", "add:", "sort"],
  3881. referencedClasses: ["Array"]
  3882. }),
  3883. smalltalk.TestRunner);
  3884. smalltalk.addMethod(
  3885. unescape('_performFailure_'),
  3886. smalltalk.method({
  3887. selector: unescape('performFailure%3A'),
  3888. category: 'actions',
  3889. fn: function (aTestCase){
  3890. var self=this;
  3891. smalltalk.send(aTestCase, "_perform_", [smalltalk.send(aTestCase, "_selector", [])]);
  3892. return self;},
  3893. args: ["aTestCase"],
  3894. source: unescape('performFailure%3A%20aTestCase%0A%09aTestCase%20perform%3A%20aTestCase%20selector'),
  3895. messageSends: ["perform:", "selector"],
  3896. referencedClasses: []
  3897. }),
  3898. smalltalk.TestRunner);
  3899. smalltalk.addMethod(
  3900. unescape('_printErrors'),
  3901. smalltalk.method({
  3902. selector: unescape('printErrors'),
  3903. category: 'printing',
  3904. fn: function (){
  3905. var self=this;
  3906. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_errors", []), "_size", []), "_asString", []), "__comma", [unescape("%20errors%2C%20")]);
  3907. return self;},
  3908. args: [],
  3909. source: unescape('printErrors%0A%09%5Eself%20result%20errors%20size%20asString%20%2C%20%27%20errors%2C%20%27'),
  3910. messageSends: [unescape("%2C"), "asString", "size", "errors", "result"],
  3911. referencedClasses: []
  3912. }),
  3913. smalltalk.TestRunner);
  3914. smalltalk.addMethod(
  3915. unescape('_printFailures'),
  3916. smalltalk.method({
  3917. selector: unescape('printFailures'),
  3918. category: 'printing',
  3919. fn: function (){
  3920. var self=this;
  3921. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_failures", []), "_size", []), "_asString", []), "__comma", [" failures"]);
  3922. return self;},
  3923. args: [],
  3924. source: unescape('printFailures%0A%09%5Eself%20result%20failures%20size%20asString%2C%20%27%20failures%27'),
  3925. messageSends: [unescape("%2C"), "asString", "size", "failures", "result"],
  3926. referencedClasses: []
  3927. }),
  3928. smalltalk.TestRunner);
  3929. smalltalk.addMethod(
  3930. unescape('_printPasses'),
  3931. smalltalk.method({
  3932. selector: unescape('printPasses'),
  3933. category: 'printing',
  3934. fn: function (){
  3935. var self=this;
  3936. 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")]);
  3937. return self;},
  3938. args: [],
  3939. 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'),
  3940. messageSends: [unescape("%2C"), "asString", unescape("-"), "total", "result", "size", "errors", "failures"],
  3941. referencedClasses: []
  3942. }),
  3943. smalltalk.TestRunner);
  3944. smalltalk.addMethod(
  3945. unescape('_printTotal'),
  3946. smalltalk.method({
  3947. selector: unescape('printTotal'),
  3948. category: 'printing',
  3949. fn: function (){
  3950. var self=this;
  3951. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_total", []), "_asString", []), "__comma", [unescape("%20runs%2C%20")]);
  3952. return self;},
  3953. args: [],
  3954. source: unescape('printTotal%0A%09%5Eself%20result%20total%20asString%2C%20%27%20runs%2C%20%27'),
  3955. messageSends: [unescape("%2C"), "asString", "total", "result"],
  3956. referencedClasses: []
  3957. }),
  3958. smalltalk.TestRunner);
  3959. smalltalk.addMethod(
  3960. unescape('_progressBar'),
  3961. smalltalk.method({
  3962. selector: unescape('progressBar'),
  3963. category: 'accessing',
  3964. fn: function (){
  3965. var self=this;
  3966. return (($receiver = self['@progressBar']) == nil || $receiver == undefined) ? (function(){return (self['@progressBar']=smalltalk.send((smalltalk.ProgressBar || ProgressBar), "_new", []));})() : $receiver;
  3967. return self;},
  3968. args: [],
  3969. source: unescape('progressBar%0A%09%5EprogressBar%20ifNil%3A%20%5BprogressBar%20%3A%3D%20ProgressBar%20new%5D'),
  3970. messageSends: ["ifNil:", "new"],
  3971. referencedClasses: ["ProgressBar"]
  3972. }),
  3973. smalltalk.TestRunner);
  3974. smalltalk.addMethod(
  3975. unescape('_renderBoxOn_'),
  3976. smalltalk.method({
  3977. selector: unescape('renderBoxOn%3A'),
  3978. category: 'rendering',
  3979. fn: function (html){
  3980. var self=this;
  3981. (function($rec){smalltalk.send($rec, "_renderCategoriesOn_", [html]);smalltalk.send($rec, "_renderClassesOn_", [html]);return smalltalk.send($rec, "_renderResultsOn_", [html]);})(self);
  3982. return self;},
  3983. args: ["html"],
  3984. 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'),
  3985. messageSends: ["renderCategoriesOn:", "renderClassesOn:", "renderResultsOn:"],
  3986. referencedClasses: []
  3987. }),
  3988. smalltalk.TestRunner);
  3989. smalltalk.addMethod(
  3990. unescape('_renderButtonsOn_'),
  3991. smalltalk.method({
  3992. selector: unescape('renderButtonsOn%3A'),
  3993. category: 'rendering',
  3994. fn: function (html){
  3995. var self=this;
  3996. (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", []));
  3997. return self;},
  3998. args: ["html"],
  3999. 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'),
  4000. messageSends: ["with:", "onClick:", "run:", "testCases", "button"],
  4001. referencedClasses: []
  4002. }),
  4003. smalltalk.TestRunner);
  4004. smalltalk.addMethod(
  4005. unescape('_renderCategoriesOn_'),
  4006. smalltalk.method({
  4007. selector: unescape('renderCategoriesOn%3A'),
  4008. category: 'rendering',
  4009. fn: function (html){
  4010. var self=this;
  4011. (self['@packagesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column sunit packages"]));
  4012. smalltalk.send(self, "_updateCategoriesList", []);
  4013. return self;},
  4014. args: ["html"],
  4015. source: unescape('renderCategoriesOn%3A%20html%0A%09packagesList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20sunit%20packages%27.%0A%09self%20updateCategoriesList'),
  4016. messageSends: ["class:", "ul", "updateCategoriesList"],
  4017. referencedClasses: []
  4018. }),
  4019. smalltalk.TestRunner);
  4020. smalltalk.addMethod(
  4021. unescape('_renderClassesOn_'),
  4022. smalltalk.method({
  4023. selector: unescape('renderClassesOn%3A'),
  4024. category: 'rendering',
  4025. fn: function (html){
  4026. var self=this;
  4027. (self['@classesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column sunit classes"]));
  4028. smalltalk.send(self, "_updateClassesList", []);
  4029. return self;},
  4030. args: ["html"],
  4031. source: unescape('renderClassesOn%3A%20html%0A%09classesList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20sunit%20classes%27.%0A%09self%20updateClassesList'),
  4032. messageSends: ["class:", "ul", "updateClassesList"],
  4033. referencedClasses: []
  4034. }),
  4035. smalltalk.TestRunner);
  4036. smalltalk.addMethod(
  4037. unescape('_renderErrorsOn_'),
  4038. smalltalk.method({
  4039. selector: unescape('renderErrorsOn%3A'),
  4040. category: 'rendering',
  4041. fn: function (html){
  4042. var self=this;
  4043. 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", []));})]);
  4044. return self;},
  4045. args: ["html"],
  4046. 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'),
  4047. messageSends: ["do:", "errors", "result", "class:", "with:", unescape("%2C"), "name", "class", "selector", "onClick:", "performFailure:", "li"],
  4048. referencedClasses: []
  4049. }),
  4050. smalltalk.TestRunner);
  4051. smalltalk.addMethod(
  4052. unescape('_renderFailuresOn_'),
  4053. smalltalk.method({
  4054. selector: unescape('renderFailuresOn%3A'),
  4055. category: 'rendering',
  4056. fn: function (html){
  4057. var self=this;
  4058. 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", []));})]);
  4059. return self;},
  4060. args: ["html"],
  4061. 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'),
  4062. messageSends: ["do:", "failures", "result", "class:", "with:", unescape("%2C"), "name", "class", "selector", "onClick:", "performFailure:", "li"],
  4063. referencedClasses: []
  4064. }),
  4065. smalltalk.TestRunner);
  4066. smalltalk.addMethod(
  4067. unescape('_renderResultsOn_'),
  4068. smalltalk.method({
  4069. selector: unescape('renderResultsOn%3A'),
  4070. category: 'rendering',
  4071. fn: function (html){
  4072. var self=this;
  4073. (self['@statusDiv']=smalltalk.send(html, "_div", []));
  4074. smalltalk.send(html, "_with_", [smalltalk.send(self, "_progressBar", [])]);
  4075. (self['@methodsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column sunit results"]));
  4076. smalltalk.send(self, "_updateMethodsList", []);
  4077. smalltalk.send(self, "_updateStatusDiv", []);
  4078. return self;},
  4079. args: ["html"],
  4080. 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'),
  4081. messageSends: ["div", "with:", "progressBar", "class:", "ul", "updateMethodsList", "updateStatusDiv"],
  4082. referencedClasses: []
  4083. }),
  4084. smalltalk.TestRunner);
  4085. smalltalk.addMethod(
  4086. unescape('_result'),
  4087. smalltalk.method({
  4088. selector: unescape('result'),
  4089. category: 'accessing',
  4090. fn: function (){
  4091. var self=this;
  4092. return self['@result'];
  4093. return self;},
  4094. args: [],
  4095. source: unescape('result%0A%09%5Eresult'),
  4096. messageSends: [],
  4097. referencedClasses: []
  4098. }),
  4099. smalltalk.TestRunner);
  4100. smalltalk.addMethod(
  4101. unescape('_run_'),
  4102. smalltalk.method({
  4103. selector: unescape('run%3A'),
  4104. category: 'actions',
  4105. fn: function (aCollection){
  4106. var self=this;
  4107. (self['@result']=smalltalk.send((smalltalk.TestResult || TestResult), "_new", []));
  4108. (function($rec){smalltalk.send($rec, "_updateStatusDiv", []);return smalltalk.send($rec, "_updateMethodsList", []);})(self);
  4109. smalltalk.send(smalltalk.send(self, "_progressBar", []), "_updatePercent_", [(0)]);
  4110. smalltalk.send(self['@result'], "_total_", [smalltalk.send(aCollection, "_size", [])]);
  4111. 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)]);})]);
  4112. return self;},
  4113. args: ["aCollection"],
  4114. 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.'),
  4115. messageSends: ["new", "updateStatusDiv", "updateMethodsList", "updatePercent:", "progressBar", "total:", "size", "do:", "valueWithTimeout:", "runCaseFor:", unescape("*"), unescape("/"), "runs", "total"],
  4116. referencedClasses: ["TestResult"]
  4117. }),
  4118. smalltalk.TestRunner);
  4119. smalltalk.addMethod(
  4120. unescape('_selectAllCategories'),
  4121. smalltalk.method({
  4122. selector: unescape('selectAllCategories'),
  4123. category: 'actions',
  4124. fn: function (){
  4125. var self=this;
  4126. 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]);})]));})]);
  4127. (function($rec){smalltalk.send($rec, "_updateCategoriesList", []);return smalltalk.send($rec, "_updateClassesList", []);})(self);
  4128. return self;},
  4129. args: [],
  4130. 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'),
  4131. messageSends: ["do:", "packages", "ifFalse:", "includes:", "add:", "selectedCategories", "updateCategoriesList", "updateClassesList"],
  4132. referencedClasses: []
  4133. }),
  4134. smalltalk.TestRunner);
  4135. smalltalk.addMethod(
  4136. unescape('_selectAllClasses'),
  4137. smalltalk.method({
  4138. selector: unescape('selectAllClasses'),
  4139. category: 'actions',
  4140. fn: function (){
  4141. var self=this;
  4142. 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]);})]));})]);
  4143. (function($rec){smalltalk.send($rec, "_updateCategoriesList", []);return smalltalk.send($rec, "_updateClassesList", []);})(self);
  4144. return self;},
  4145. args: [],
  4146. 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'),
  4147. messageSends: ["do:", "classes", "ifFalse:", "includes:", "add:", "selectedClasses", "updateCategoriesList", "updateClassesList"],
  4148. referencedClasses: []
  4149. }),
  4150. smalltalk.TestRunner);
  4151. smalltalk.addMethod(
  4152. unescape('_selectedCategories'),
  4153. smalltalk.method({
  4154. selector: unescape('selectedCategories'),
  4155. category: 'accessing',
  4156. fn: function (){
  4157. var self=this;
  4158. return (($receiver = self['@selectedCategories']) == nil || $receiver == undefined) ? (function(){return (self['@selectedCategories']=smalltalk.send((smalltalk.Array || Array), "_new", []));})() : $receiver;
  4159. return self;},
  4160. args: [],
  4161. source: unescape('selectedCategories%0A%09%5EselectedCategories%20ifNil%3A%20%5BselectedCategories%20%3A%3D%20Array%20new%5D'),
  4162. messageSends: ["ifNil:", "new"],
  4163. referencedClasses: ["Array"]
  4164. }),
  4165. smalltalk.TestRunner);
  4166. smalltalk.addMethod(
  4167. unescape('_selectedClasses'),
  4168. smalltalk.method({
  4169. selector: unescape('selectedClasses'),
  4170. category: 'accessing',
  4171. fn: function (){
  4172. var self=this;
  4173. return (($receiver = self['@selectedClasses']) == nil || $receiver == undefined) ? (function(){return (self['@selectedClasses']=smalltalk.send((smalltalk.Array || Array), "_new", []));})() : $receiver;
  4174. return self;},
  4175. args: [],
  4176. source: unescape('selectedClasses%0A%09%5EselectedClasses%20%20ifNil%3A%20%5BselectedClasses%20%3A%3D%20Array%20new%5D'),
  4177. messageSends: ["ifNil:", "new"],
  4178. referencedClasses: ["Array"]
  4179. }),
  4180. smalltalk.TestRunner);
  4181. smalltalk.addMethod(
  4182. unescape('_statusInfo'),
  4183. smalltalk.method({
  4184. selector: unescape('statusInfo'),
  4185. category: 'accessing',
  4186. fn: function (){
  4187. var self=this;
  4188. 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", [])]);
  4189. return self;},
  4190. args: [],
  4191. source: unescape('statusInfo%0A%09%5Eself%20printTotal%2C%20self%20printPasses%2C%20self%20printErrors%2C%20self%20printFailures'),
  4192. messageSends: [unescape("%2C"), "printTotal", "printPasses", "printErrors", "printFailures"],
  4193. referencedClasses: []
  4194. }),
  4195. smalltalk.TestRunner);
  4196. smalltalk.addMethod(
  4197. unescape('_testCases'),
  4198. smalltalk.method({
  4199. selector: unescape('testCases'),
  4200. category: 'accessing',
  4201. fn: function (){
  4202. var self=this;
  4203. var testCases=nil;
  4204. (testCases=[]);
  4205. smalltalk.send(smalltalk.send(self, "_selectedClasses", []), "_do_", [(function(each){return smalltalk.send(testCases, "_addAll_", [smalltalk.send(each, "_buildSuite", [])]);})]);
  4206. return testCases;
  4207. return self;},
  4208. args: [],
  4209. 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'),
  4210. messageSends: ["do:", "selectedClasses", "addAll:", "buildSuite"],
  4211. referencedClasses: []
  4212. }),
  4213. smalltalk.TestRunner);
  4214. smalltalk.addMethod(
  4215. unescape('_toggleCategory_'),
  4216. smalltalk.method({
  4217. selector: unescape('toggleCategory%3A'),
  4218. category: 'actions',
  4219. fn: function (aCategory){
  4220. var self=this;
  4221. ((($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]);})]));
  4222. (function($rec){smalltalk.send($rec, "_updateCategoriesList", []);return smalltalk.send($rec, "_updateClassesList", []);})(self);
  4223. return self;},
  4224. args: ["aCategory"],
  4225. 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'),
  4226. messageSends: ["ifFalse:ifTrue:", "isSelectedCategory:", "add:", "remove:", "updateCategoriesList", "updateClassesList"],
  4227. referencedClasses: []
  4228. }),
  4229. smalltalk.TestRunner);
  4230. smalltalk.addMethod(
  4231. unescape('_toggleClass_'),
  4232. smalltalk.method({
  4233. selector: unescape('toggleClass%3A'),
  4234. category: 'actions',
  4235. fn: function (aClass){
  4236. var self=this;
  4237. ((($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]);})]));
  4238. smalltalk.send(self, "_updateClassesList", []);
  4239. return self;},
  4240. args: ["aClass"],
  4241. 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'),
  4242. messageSends: ["ifFalse:ifTrue:", "isSelectedClass:", "add:", "remove:", "updateClassesList"],
  4243. referencedClasses: []
  4244. }),
  4245. smalltalk.TestRunner);
  4246. smalltalk.addMethod(
  4247. unescape('_updateCategoriesList'),
  4248. smalltalk.method({
  4249. selector: unescape('updateCategoriesList'),
  4250. category: 'updating',
  4251. fn: function (){
  4252. var self=this;
  4253. 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;
  4254. (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);})]);})]);
  4255. return self;},
  4256. args: [],
  4257. 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'),
  4258. messageSends: ["contents:", "class:", "with:", "onClick:", "selectAllCategories", "li", "do:", "packages", "ifTrue:", "includes:", "selectedCategories", "toggleCategory:"],
  4259. referencedClasses: []
  4260. }),
  4261. smalltalk.TestRunner);
  4262. smalltalk.addMethod(
  4263. unescape('_updateClassesList'),
  4264. smalltalk.method({
  4265. selector: unescape('updateClassesList'),
  4266. category: 'updating',
  4267. fn: function (){
  4268. var self=this;
  4269. 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;
  4270. (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);})]);})]);
  4271. return self;},
  4272. args: [],
  4273. 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'),
  4274. messageSends: ["contents:", "ifFalse:", "isEmpty", "selectedCategories", "class:", "with:", "onClick:", "selectAllClasses", "li", "do:", "classes", "ifTrue:", "includes:", "selectedClasses", "name", "toggleClass:"],
  4275. referencedClasses: []
  4276. }),
  4277. smalltalk.TestRunner);
  4278. smalltalk.addMethod(
  4279. unescape('_updateMethodsList'),
  4280. smalltalk.method({
  4281. selector: unescape('updateMethodsList'),
  4282. category: 'updating',
  4283. fn: function (){
  4284. var self=this;
  4285. smalltalk.send(self['@methodsList'], "_contents_", [(function(html){smalltalk.send(self, "_renderErrorsOn_", [html]);return smalltalk.send(self, "_renderFailuresOn_", [html]);})]);
  4286. return self;},
  4287. args: [],
  4288. 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'),
  4289. messageSends: ["contents:", "renderErrorsOn:", "renderFailuresOn:"],
  4290. referencedClasses: []
  4291. }),
  4292. smalltalk.TestRunner);
  4293. smalltalk.addMethod(
  4294. unescape('_updateStatusDiv'),
  4295. smalltalk.method({
  4296. selector: unescape('updateStatusDiv'),
  4297. category: 'updating',
  4298. fn: function (){
  4299. var self=this;
  4300. smalltalk.send(self['@statusDiv'], "_class_", [smalltalk.send("sunit status ", "__comma", [smalltalk.send(self['@result'], "_status", [])])]);
  4301. smalltalk.send(self['@statusDiv'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(html, "_span", []), "_with_", [smalltalk.send(self, "_statusInfo", [])]);})]);
  4302. return self;},
  4303. args: [],
  4304. 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'),
  4305. messageSends: ["class:", unescape("%2C"), "status", "contents:", "with:", "span", "statusInfo"],
  4306. referencedClasses: []
  4307. }),
  4308. smalltalk.TestRunner);
  4309. smalltalk.addClass('Workspace', smalltalk.TabWidget, ['sourceArea'], 'IDE');
  4310. smalltalk.addMethod(
  4311. unescape('_clearWorkspace'),
  4312. smalltalk.method({
  4313. selector: unescape('clearWorkspace'),
  4314. category: 'actions',
  4315. fn: function (){
  4316. var self=this;
  4317. smalltalk.send(self['@sourceArea'], "_clear", []);
  4318. return self;},
  4319. args: [],
  4320. source: unescape('clearWorkspace%0A%20%20%20%20sourceArea%20clear'),
  4321. messageSends: ["clear"],
  4322. referencedClasses: []
  4323. }),
  4324. smalltalk.Workspace);
  4325. smalltalk.addMethod(
  4326. unescape('_doIt'),
  4327. smalltalk.method({
  4328. selector: unescape('doIt'),
  4329. category: 'actions',
  4330. fn: function (){
  4331. var self=this;
  4332. smalltalk.send(self['@sourceArea'], "_doIt", []);
  4333. return self;},
  4334. args: [],
  4335. source: unescape('doIt%0A%20%20%20sourceArea%20doIt'),
  4336. messageSends: ["doIt"],
  4337. referencedClasses: []
  4338. }),
  4339. smalltalk.Workspace);
  4340. smalltalk.addMethod(
  4341. unescape('_fileIn'),
  4342. smalltalk.method({
  4343. selector: unescape('fileIn'),
  4344. category: 'actions',
  4345. fn: function (){
  4346. var self=this;
  4347. smalltalk.send(self['@sourceArea'], "_fileIn", []);
  4348. return self;},
  4349. args: [],
  4350. source: unescape('fileIn%0A%20%20%20%20sourceArea%20fileIn'),
  4351. messageSends: ["fileIn"],
  4352. referencedClasses: []
  4353. }),
  4354. smalltalk.Workspace);
  4355. smalltalk.addMethod(
  4356. unescape('_inspectIt'),
  4357. smalltalk.method({
  4358. selector: unescape('inspectIt'),
  4359. category: 'actions',
  4360. fn: function (){
  4361. var self=this;
  4362. smalltalk.send(self['@sourceArea'], "_inspectIt", []);
  4363. return self;},
  4364. args: [],
  4365. source: unescape('inspectIt%0A%20%20%20%20sourceArea%20inspectIt'),
  4366. messageSends: ["inspectIt"],
  4367. referencedClasses: []
  4368. }),
  4369. smalltalk.Workspace);
  4370. smalltalk.addMethod(
  4371. unescape('_label'),
  4372. smalltalk.method({
  4373. selector: unescape('label'),
  4374. category: 'accessing',
  4375. fn: function (){
  4376. var self=this;
  4377. return "Workspace";
  4378. return self;},
  4379. args: [],
  4380. source: unescape('label%0A%20%20%20%20%5E%27Workspace%27'),
  4381. messageSends: [],
  4382. referencedClasses: []
  4383. }),
  4384. smalltalk.Workspace);
  4385. smalltalk.addMethod(
  4386. unescape('_printIt'),
  4387. smalltalk.method({
  4388. selector: unescape('printIt'),
  4389. category: 'actions',
  4390. fn: function (){
  4391. var self=this;
  4392. smalltalk.send(self['@sourceArea'], "_printIt", []);
  4393. return self;},
  4394. args: [],
  4395. source: unescape('printIt%0A%09sourceArea%20printIt'),
  4396. messageSends: ["printIt"],
  4397. referencedClasses: []
  4398. }),
  4399. smalltalk.Workspace);
  4400. smalltalk.addMethod(
  4401. unescape('_renderBoxOn_'),
  4402. smalltalk.method({
  4403. selector: unescape('renderBoxOn%3A'),
  4404. category: 'rendering',
  4405. fn: function (html){
  4406. var self=this;
  4407. (self['@sourceArea']=smalltalk.send((smalltalk.SourceArea || SourceArea), "_new", []));
  4408. smalltalk.send(self['@sourceArea'], "_renderOn_", [html]);
  4409. return self;},
  4410. args: ["html"],
  4411. source: unescape('renderBoxOn%3A%20html%0A%20%20%20%20sourceArea%20%3A%3D%20SourceArea%20new.%0A%20%20%20%20sourceArea%20renderOn%3A%20html'),
  4412. messageSends: ["new", "renderOn:"],
  4413. referencedClasses: ["SourceArea"]
  4414. }),
  4415. smalltalk.Workspace);
  4416. smalltalk.addMethod(
  4417. unescape('_renderButtonsOn_'),
  4418. smalltalk.method({
  4419. selector: unescape('renderButtonsOn%3A'),
  4420. category: 'rendering',
  4421. fn: function (html){
  4422. var self=this;
  4423. (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", []));
  4424. (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", []));
  4425. (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", []));
  4426. (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", []));
  4427. (function($rec){smalltalk.send($rec, "_with_", ["Clear workspace"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_clearWorkspace", []);})]);})(smalltalk.send(html, "_button", []));
  4428. return self;},
  4429. args: ["html"],
  4430. 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'),
  4431. messageSends: ["with:", "title:", "onClick:", "doIt", "button", "printIt", "inspectIt", "fileIn", "clearWorkspace"],
  4432. referencedClasses: []
  4433. }),
  4434. smalltalk.Workspace);
  4435. smalltalk.addMethod(
  4436. unescape('_inspect'),
  4437. smalltalk.method({
  4438. selector: unescape('inspect'),
  4439. category: '*IDE',
  4440. fn: function (){
  4441. var self=this;
  4442. (function($rec){smalltalk.send($rec, "_inspect_", [self]);return smalltalk.send($rec, "_open", []);})(smalltalk.send((smalltalk.Inspector || Inspector), "_new", []));
  4443. return self;},
  4444. args: [],
  4445. source: unescape('inspect%0A%09Inspector%20new%20%0A%09%09inspect%3A%20self%3B%0A%09%09open'),
  4446. messageSends: ["inspect:", "open", "new"],
  4447. referencedClasses: ["Inspector"]
  4448. }),
  4449. smalltalk.Object);
  4450. smalltalk.addMethod(
  4451. unescape('_inspectOn_'),
  4452. smalltalk.method({
  4453. selector: unescape('inspectOn%3A'),
  4454. category: '*IDE',
  4455. fn: function (anInspector){
  4456. var self=this;
  4457. var variables=nil;
  4458. (variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []));
  4459. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  4460. smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_allInstanceVariableNames", []), "_do_", [(function(each){return smalltalk.send(variables, "_at_put_", [each, smalltalk.send(self, "_instVarAt_", [each])]);})]);
  4461. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  4462. return self;},
  4463. args: ["anInspector"],
  4464. 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'),
  4465. messageSends: ["new", "at:put:", "do:", "allInstanceVariableNames", "class", "instVarAt:", "setLabel:", "printString", "setVariables:"],
  4466. referencedClasses: ["Dictionary"]
  4467. }),
  4468. smalltalk.Object);
  4469. smalltalk.addMethod(
  4470. unescape('_inspectOn_'),
  4471. smalltalk.method({
  4472. selector: unescape('inspectOn%3A'),
  4473. category: '*IDE',
  4474. fn: function (anInspector){
  4475. var self=this;
  4476. var variables=nil;
  4477. (variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []));
  4478. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  4479. smalltalk.send(self, "_withIndexDo_", [(function(each, i){return smalltalk.send(variables, "_at_put_", [i, each]);})]);
  4480. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  4481. return self;},
  4482. args: ["anInspector"],
  4483. 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'),
  4484. messageSends: ["new", "at:put:", "withIndexDo:", "setLabel:", "printString", "setVariables:"],
  4485. referencedClasses: ["Dictionary"]
  4486. }),
  4487. smalltalk.Collection);
  4488. smalltalk.addMethod(
  4489. unescape('_inspectOn_'),
  4490. smalltalk.method({
  4491. selector: unescape('inspectOn%3A'),
  4492. category: '*IDE',
  4493. fn: function (anInspector){
  4494. var self=this;
  4495. var variables=nil;
  4496. (variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []));
  4497. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  4498. smalltalk.send(variables, "_at_put_", [unescape("%23keys"), smalltalk.send(self, "_keys", [])]);
  4499. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(variables, "_at_put_", [key, value]);})]);
  4500. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  4501. return self;},
  4502. args: ["anInspector"],
  4503. 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'),
  4504. messageSends: ["new", "at:put:", "keys", "keysAndValuesDo:", "setLabel:", "printString", "setVariables:"],
  4505. referencedClasses: ["Dictionary"]
  4506. }),
  4507. smalltalk.HashedCollection);
  4508. smalltalk.addMethod(
  4509. unescape('_inspectOn_'),
  4510. smalltalk.method({
  4511. selector: unescape('inspectOn%3A'),
  4512. category: '*IDE',
  4513. fn: function (anInspector){
  4514. var self=this;
  4515. var label=nil;
  4516. smalltalk.send(self, "_inspectOn_", [anInspector], smalltalk.CharacterArray);
  4517. ((($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", []));})]));
  4518. smalltalk.send(anInspector, "_setLabel_", [label]);
  4519. return self;},
  4520. args: ["anInspector"],
  4521. 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'),
  4522. messageSends: ["inspectOn:", "ifTrue:ifFalse:", unescape("%3E"), "size", "printString", unescape("%2C"), "copyFrom:to:", "setLabel:"],
  4523. referencedClasses: []
  4524. }),
  4525. smalltalk.String);
  4526. smalltalk.addMethod(
  4527. unescape('_inspectOn_'),
  4528. smalltalk.method({
  4529. selector: unescape('inspectOn%3A'),
  4530. category: '*IDE',
  4531. fn: function (anInspector){
  4532. var self=this;
  4533. var variables=nil;
  4534. (variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []));
  4535. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  4536. smalltalk.send(self['@elements'], "_withIndexDo_", [(function(each, i){return smalltalk.send(variables, "_at_put_", [i, each]);})]);
  4537. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  4538. return self;},
  4539. args: ["anInspector"],
  4540. 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'),
  4541. messageSends: ["new", "at:put:", "withIndexDo:", "setLabel:", "printString", "setVariables:"],
  4542. referencedClasses: ["Dictionary"]
  4543. }),
  4544. smalltalk.Set);
  4545. smalltalk.addMethod(
  4546. unescape('_inspectOn_'),
  4547. smalltalk.method({
  4548. selector: unescape('inspectOn%3A'),
  4549. category: '*IDE',
  4550. fn: function (anInspector){
  4551. var self=this;
  4552. var variables=nil;
  4553. (variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []));
  4554. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  4555. smalltalk.send(variables, "_at_put_", [unescape("%23year"), smalltalk.send(self, "_year", [])]);
  4556. smalltalk.send(variables, "_at_put_", [unescape("%23month"), smalltalk.send(self, "_month", [])]);
  4557. smalltalk.send(variables, "_at_put_", [unescape("%23day"), smalltalk.send(self, "_day", [])]);
  4558. smalltalk.send(variables, "_at_put_", [unescape("%23hours"), smalltalk.send(self, "_hours", [])]);
  4559. smalltalk.send(variables, "_at_put_", [unescape("%23minutes"), smalltalk.send(self, "_minutes", [])]);
  4560. smalltalk.send(variables, "_at_put_", [unescape("%23seconds"), smalltalk.send(self, "_seconds", [])]);
  4561. smalltalk.send(variables, "_at_put_", [unescape("%23milliseconds"), smalltalk.send(self, "_milliseconds", [])]);
  4562. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  4563. return self;},
  4564. args: ["anInspector"],
  4565. source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self.%0A%09variables%20at%3A%20%27%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'),
  4566. messageSends: ["new", "at:put:", "year", "month", "day", "hours", "minutes", "seconds", "milliseconds", "setLabel:", "printString", "setVariables:"],
  4567. referencedClasses: ["Dictionary"]
  4568. }),
  4569. smalltalk.Date);
  4570. smalltalk.addMethod(
  4571. unescape('_inspectOn_'),
  4572. smalltalk.method({
  4573. selector: unescape('inspectOn%3A'),
  4574. category: '*IDE',
  4575. fn: function (anInspector){
  4576. var self=this;
  4577. var variables=nil;
  4578. (variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []));
  4579. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  4580. smalltalk.send(variables, "_at_put_", [unescape("%23year"), smalltalk.send(self, "_year", [])]);
  4581. smalltalk.send(variables, "_at_put_", [unescape("%23month"), smalltalk.send(self, "_month", [])]);
  4582. smalltalk.send(variables, "_at_put_", [unescape("%23day"), smalltalk.send(self, "_day", [])]);
  4583. smalltalk.send(variables, "_at_put_", [unescape("%23hours"), smalltalk.send(self, "_hours", [])]);
  4584. smalltalk.send(variables, "_at_put_", [unescape("%23minutes"), smalltalk.send(self, "_minutes", [])]);
  4585. smalltalk.send(variables, "_at_put_", [unescape("%23seconds"), smalltalk.send(self, "_seconds", [])]);
  4586. smalltalk.send(variables, "_at_put_", [unescape("%23milliseconds"), smalltalk.send(self, "_milliseconds", [])]);
  4587. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  4588. return self;},
  4589. args: ["anInspector"],
  4590. 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'),
  4591. messageSends: ["new", "at:put:", "year", "month", "day", "hours", "minutes", "seconds", "milliseconds", "setLabel:", "printString", "setVariables:"],
  4592. referencedClasses: ["Dictionary"]
  4593. }),
  4594. smalltalk.Date);
  4595. smalltalk.addMethod(
  4596. unescape('_inspectOn_'),
  4597. smalltalk.method({
  4598. selector: unescape('inspectOn%3A'),
  4599. category: '*IDE',
  4600. fn: function (anInspector){
  4601. var self=this;
  4602. var variables=nil;
  4603. (variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []));
  4604. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  4605. smalltalk.send(variables, "_at_put_", [unescape("%23home"), smalltalk.send(self, "_home", [])]);
  4606. smalltalk.send(variables, "_at_put_", [unescape("%23receiver"), smalltalk.send(self, "_receiver", [])]);
  4607. smalltalk.send(variables, "_at_put_", [unescape("%23selector"), smalltalk.send(self, "_selector", [])]);
  4608. smalltalk.send(variables, "_at_put_", [unescape("%23temps"), smalltalk.send(self, "_temps", [])]);
  4609. smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_instanceVariableNames", []), "_do_", [(function(each){return smalltalk.send(variables, "_at_put_", [each, smalltalk.send(self, "_instVarAt_", [each])]);})]);
  4610. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  4611. return self;},
  4612. args: ["anInspector"],
  4613. 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'),
  4614. messageSends: ["new", "at:put:", "home", "receiver", "selector", "temps", "do:", "instanceVariableNames", "class", "instVarAt:", "setLabel:", "printString", "setVariables:"],
  4615. referencedClasses: ["Dictionary"]
  4616. }),
  4617. smalltalk.MethodContext);