IDE.js 290 KB

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