2
0

IDE.js 279 KB

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