Helios-Browser.js 220 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252
  1. define(["amber/boot", "require", "amber/core/Kernel-Objects", "helios/Helios-Core"], function($boot,requirejs){"use strict";
  2. var $core=$boot.api,nil=$boot.nilAsValue,$nil=$boot.nilAsReceiver,$recv=$boot.asReceiver,$globals=$boot.globals;
  3. var $pkg = $core.addPackage("Helios-Browser");
  4. $pkg.transport = {"type":"amd","amdNamespace":"helios"};
  5. $core.addClass("HLBrowser", $globals.HLWidget, "Helios-Browser");
  6. $core.setSlots($globals.HLBrowser, ["model", "packagesListWidget", "classesListWidget", "protocolsListWidget", "methodsListWidget", "sourceWidget", "bottomDiv"]);
  7. //>>excludeStart("ide", pragmas.excludeIdeData);
  8. $globals.HLBrowser.comment="I render a system browser with 4 panes (Packages, Classes, Protocols, Methods) and a source area.";
  9. //>>excludeEnd("ide");
  10. $core.addMethod(
  11. $core.method({
  12. selector: "canHaveFocus",
  13. protocol: "testing",
  14. //>>excludeStart("ide", pragmas.excludeIdeData);
  15. args: [],
  16. source: "canHaveFocus\x0a\x09^ true",
  17. referencedClasses: [],
  18. //>>excludeEnd("ide");
  19. pragmas: [],
  20. messageSends: []
  21. }, function ($methodClass){ return function (){
  22. var self=this,$self=this;
  23. return true;
  24. }; }),
  25. $globals.HLBrowser);
  26. $core.addMethod(
  27. $core.method({
  28. selector: "classesListWidget",
  29. protocol: "widgets",
  30. //>>excludeStart("ide", pragmas.excludeIdeData);
  31. args: [],
  32. source: "classesListWidget\x0a\x09^ classesListWidget ifNil: [\x0a \x09classesListWidget := HLClassesListWidget on: self model.\x0a\x09\x09classesListWidget next: self protocolsListWidget ]",
  33. referencedClasses: ["HLClassesListWidget"],
  34. //>>excludeEnd("ide");
  35. pragmas: [],
  36. messageSends: ["ifNil:", "on:", "model", "next:", "protocolsListWidget"]
  37. }, function ($methodClass){ return function (){
  38. var self=this,$self=this;
  39. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  40. return $core.withContext(function($ctx1) {
  41. //>>excludeEnd("ctx");
  42. var $1;
  43. $1=$self.classesListWidget;
  44. if($1 == null || $1.a$nil){
  45. $self.classesListWidget=$recv($globals.HLClassesListWidget)._on_($self._model());
  46. return $recv($self.classesListWidget)._next_($self._protocolsListWidget());
  47. } else {
  48. return $1;
  49. }
  50. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  51. }, function($ctx1) {$ctx1.fill(self,"classesListWidget",{})});
  52. //>>excludeEnd("ctx");
  53. }; }),
  54. $globals.HLBrowser);
  55. $core.addMethod(
  56. $core.method({
  57. selector: "environment",
  58. protocol: "accessing",
  59. //>>excludeStart("ide", pragmas.excludeIdeData);
  60. args: [],
  61. source: "environment\x0a\x09^ self model environment",
  62. referencedClasses: [],
  63. //>>excludeEnd("ide");
  64. pragmas: [],
  65. messageSends: ["environment", "model"]
  66. }, function ($methodClass){ return function (){
  67. var self=this,$self=this;
  68. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  69. return $core.withContext(function($ctx1) {
  70. //>>excludeEnd("ctx");
  71. return $recv($self._model())._environment();
  72. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  73. }, function($ctx1) {$ctx1.fill(self,"environment",{})});
  74. //>>excludeEnd("ctx");
  75. }; }),
  76. $globals.HLBrowser);
  77. $core.addMethod(
  78. $core.method({
  79. selector: "focus",
  80. protocol: "actions",
  81. //>>excludeStart("ide", pragmas.excludeIdeData);
  82. args: [],
  83. source: "focus\x0a\x09^ self packagesListWidget focus",
  84. referencedClasses: [],
  85. //>>excludeEnd("ide");
  86. pragmas: [],
  87. messageSends: ["focus", "packagesListWidget"]
  88. }, function ($methodClass){ return function (){
  89. var self=this,$self=this;
  90. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  91. return $core.withContext(function($ctx1) {
  92. //>>excludeEnd("ctx");
  93. return $recv($self._packagesListWidget())._focus();
  94. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  95. }, function($ctx1) {$ctx1.fill(self,"focus",{})});
  96. //>>excludeEnd("ctx");
  97. }; }),
  98. $globals.HLBrowser);
  99. $core.addMethod(
  100. $core.method({
  101. selector: "methodsListWidget",
  102. protocol: "widgets",
  103. //>>excludeStart("ide", pragmas.excludeIdeData);
  104. args: [],
  105. source: "methodsListWidget\x0a\x09^ methodsListWidget ifNil: [\x0a \x09methodsListWidget := HLMethodsListWidget on: self model.\x0a\x09\x09methodsListWidget next: self sourceWidget ]",
  106. referencedClasses: ["HLMethodsListWidget"],
  107. //>>excludeEnd("ide");
  108. pragmas: [],
  109. messageSends: ["ifNil:", "on:", "model", "next:", "sourceWidget"]
  110. }, function ($methodClass){ return function (){
  111. var self=this,$self=this;
  112. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  113. return $core.withContext(function($ctx1) {
  114. //>>excludeEnd("ctx");
  115. var $1;
  116. $1=$self.methodsListWidget;
  117. if($1 == null || $1.a$nil){
  118. $self.methodsListWidget=$recv($globals.HLMethodsListWidget)._on_($self._model());
  119. return $recv($self.methodsListWidget)._next_($self._sourceWidget());
  120. } else {
  121. return $1;
  122. }
  123. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  124. }, function($ctx1) {$ctx1.fill(self,"methodsListWidget",{})});
  125. //>>excludeEnd("ctx");
  126. }; }),
  127. $globals.HLBrowser);
  128. $core.addMethod(
  129. $core.method({
  130. selector: "model",
  131. protocol: "accessing",
  132. //>>excludeStart("ide", pragmas.excludeIdeData);
  133. args: [],
  134. source: "model\x0a\x09^ model ifNil: [ self model: HLBrowserModel new. model ]",
  135. referencedClasses: ["HLBrowserModel"],
  136. //>>excludeEnd("ide");
  137. pragmas: [],
  138. messageSends: ["ifNil:", "model:", "new"]
  139. }, function ($methodClass){ return function (){
  140. var self=this,$self=this;
  141. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  142. return $core.withContext(function($ctx1) {
  143. //>>excludeEnd("ctx");
  144. var $1;
  145. $1=$self.model;
  146. if($1 == null || $1.a$nil){
  147. $self._model_($recv($globals.HLBrowserModel)._new());
  148. return $self.model;
  149. } else {
  150. return $1;
  151. }
  152. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  153. }, function($ctx1) {$ctx1.fill(self,"model",{})});
  154. //>>excludeEnd("ctx");
  155. }; }),
  156. $globals.HLBrowser);
  157. $core.addMethod(
  158. $core.method({
  159. selector: "model:",
  160. protocol: "accessing",
  161. //>>excludeStart("ide", pragmas.excludeIdeData);
  162. args: ["aModel"],
  163. source: "model: aModel\x0a\x09model := aModel.\x0a\x09self observeModel",
  164. referencedClasses: [],
  165. //>>excludeEnd("ide");
  166. pragmas: [],
  167. messageSends: ["observeModel"]
  168. }, function ($methodClass){ return function (aModel){
  169. var self=this,$self=this;
  170. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  171. return $core.withContext(function($ctx1) {
  172. //>>excludeEnd("ctx");
  173. $self.model=aModel;
  174. $self._observeModel();
  175. return self;
  176. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  177. }, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel})});
  178. //>>excludeEnd("ctx");
  179. }; }),
  180. $globals.HLBrowser);
  181. $core.addMethod(
  182. $core.method({
  183. selector: "observeModel",
  184. protocol: "actions",
  185. //>>excludeStart("ide", pragmas.excludeIdeData);
  186. args: [],
  187. source: "observeModel\x0a\x09self model announcer\x0a\x09\x09on: HLPackageSelected\x0a\x09\x09send: #onPackageSelected:\x0a\x09\x09to: self.\x0a\x09\x09\x0a\x09self model announcer\x0a\x09\x09on: HLClassSelected\x0a\x09\x09send: #onClassSelected:\x0a\x09\x09to: self",
  188. referencedClasses: ["HLPackageSelected", "HLClassSelected"],
  189. //>>excludeEnd("ide");
  190. pragmas: [],
  191. messageSends: ["on:send:to:", "announcer", "model"]
  192. }, function ($methodClass){ return function (){
  193. var self=this,$self=this;
  194. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  195. return $core.withContext(function($ctx1) {
  196. //>>excludeEnd("ctx");
  197. [$recv([$recv([$self._model()
  198. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  199. ,$ctx1.sendIdx["model"]=1
  200. //>>excludeEnd("ctx");
  201. ][0])._announcer()
  202. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  203. ,$ctx1.sendIdx["announcer"]=1
  204. //>>excludeEnd("ctx");
  205. ][0])._on_send_to_($globals.HLPackageSelected,"onPackageSelected:",self)
  206. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  207. ,$ctx1.sendIdx["on:send:to:"]=1
  208. //>>excludeEnd("ctx");
  209. ][0];
  210. $recv($recv($self._model())._announcer())._on_send_to_($globals.HLClassSelected,"onClassSelected:",self);
  211. return self;
  212. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  213. }, function($ctx1) {$ctx1.fill(self,"observeModel",{})});
  214. //>>excludeEnd("ctx");
  215. }; }),
  216. $globals.HLBrowser);
  217. $core.addMethod(
  218. $core.method({
  219. selector: "onClassSelected:",
  220. protocol: "reactions",
  221. //>>excludeStart("ide", pragmas.excludeIdeData);
  222. args: ["anAnnouncement"],
  223. source: "onClassSelected: anAnnouncement\x0a\x09anAnnouncement item \x0a\x09\x09ifNil: [ self setTabLabel: (self model selectedPackage \x0a\x09\x09\x09ifNil: [ self defaultTabLabel ]\x0a\x09\x09\x09ifNotNil: [ :package | package name ]) ] \x0a\x09\x09ifNotNil: [ :item | self setTabLabel: item name ]",
  224. referencedClasses: [],
  225. //>>excludeEnd("ide");
  226. pragmas: [],
  227. messageSends: ["ifNil:ifNotNil:", "item", "setTabLabel:", "selectedPackage", "model", "defaultTabLabel", "name"]
  228. }, function ($methodClass){ return function (anAnnouncement){
  229. var self=this,$self=this;
  230. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  231. return $core.withContext(function($ctx1) {
  232. //>>excludeEnd("ctx");
  233. var $1,$2,$3;
  234. $1=$recv(anAnnouncement)._item();
  235. if($1 == null || $1.a$nil){
  236. $2=$recv($self._model())._selectedPackage();
  237. if($2 == null || $2.a$nil){
  238. $3=$self._defaultTabLabel();
  239. } else {
  240. var package_;
  241. package_=$2;
  242. $3=[$recv(package_)._name()
  243. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  244. ,$ctx1.sendIdx["name"]=1
  245. //>>excludeEnd("ctx");
  246. ][0];
  247. }
  248. [$self._setTabLabel_($3)
  249. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  250. ,$ctx1.sendIdx["setTabLabel:"]=1
  251. //>>excludeEnd("ctx");
  252. ][0];
  253. } else {
  254. var item;
  255. item=$1;
  256. $self._setTabLabel_($recv(item)._name());
  257. }
  258. return self;
  259. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  260. }, function($ctx1) {$ctx1.fill(self,"onClassSelected:",{anAnnouncement:anAnnouncement})});
  261. //>>excludeEnd("ctx");
  262. }; }),
  263. $globals.HLBrowser);
  264. $core.addMethod(
  265. $core.method({
  266. selector: "onPackageSelected:",
  267. protocol: "reactions",
  268. //>>excludeStart("ide", pragmas.excludeIdeData);
  269. args: ["anAnnouncement"],
  270. source: "onPackageSelected: anAnnouncement\x0a\x09anAnnouncement item ifNotNil: [ :item |\x0a\x09self setTabLabel: item name ]",
  271. referencedClasses: [],
  272. //>>excludeEnd("ide");
  273. pragmas: [],
  274. messageSends: ["ifNotNil:", "item", "setTabLabel:", "name"]
  275. }, function ($methodClass){ return function (anAnnouncement){
  276. var self=this,$self=this;
  277. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  278. return $core.withContext(function($ctx1) {
  279. //>>excludeEnd("ctx");
  280. var $1;
  281. $1=$recv(anAnnouncement)._item();
  282. if($1 == null || $1.a$nil){
  283. $1;
  284. } else {
  285. var item;
  286. item=$1;
  287. $self._setTabLabel_($recv(item)._name());
  288. }
  289. return self;
  290. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  291. }, function($ctx1) {$ctx1.fill(self,"onPackageSelected:",{anAnnouncement:anAnnouncement})});
  292. //>>excludeEnd("ctx");
  293. }; }),
  294. $globals.HLBrowser);
  295. $core.addMethod(
  296. $core.method({
  297. selector: "openClassNamed:",
  298. protocol: "actions",
  299. //>>excludeStart("ide", pragmas.excludeIdeData);
  300. args: ["aString"],
  301. source: "openClassNamed: aString\x0a\x09self model openClassNamed: aString",
  302. referencedClasses: [],
  303. //>>excludeEnd("ide");
  304. pragmas: [],
  305. messageSends: ["openClassNamed:", "model"]
  306. }, function ($methodClass){ return function (aString){
  307. var self=this,$self=this;
  308. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  309. return $core.withContext(function($ctx1) {
  310. //>>excludeEnd("ctx");
  311. $recv($self._model())._openClassNamed_(aString);
  312. return self;
  313. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  314. }, function($ctx1) {$ctx1.fill(self,"openClassNamed:",{aString:aString})});
  315. //>>excludeEnd("ctx");
  316. }; }),
  317. $globals.HLBrowser);
  318. $core.addMethod(
  319. $core.method({
  320. selector: "openMethod:",
  321. protocol: "actions",
  322. //>>excludeStart("ide", pragmas.excludeIdeData);
  323. args: ["aCompiledMethod"],
  324. source: "openMethod: aCompiledMethod\x0a\x09self model\x0a\x09\x09\x22Workaround for the package selection announcement when the package list is focused\x22\x09\x0a\x09\x09focusOnSourceCode;\x0a\x09\x09selectedPackage: aCompiledMethod methodClass package;\x0a\x09\x09showInstance: aCompiledMethod methodClass isMetaclass not;\x0a\x09\x09selectedClass: aCompiledMethod methodClass;\x0a\x09\x09selectedProtocol: aCompiledMethod protocol;\x0a\x09\x09selectedMethod: aCompiledMethod;\x0a\x09\x09focusOnSourceCode",
  325. referencedClasses: [],
  326. //>>excludeEnd("ide");
  327. pragmas: [],
  328. messageSends: ["focusOnSourceCode", "model", "selectedPackage:", "package", "methodClass", "showInstance:", "not", "isMetaclass", "selectedClass:", "selectedProtocol:", "protocol", "selectedMethod:"]
  329. }, function ($methodClass){ return function (aCompiledMethod){
  330. var self=this,$self=this;
  331. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  332. return $core.withContext(function($ctx1) {
  333. //>>excludeEnd("ctx");
  334. var $1;
  335. $1=$self._model();
  336. [$recv($1)._focusOnSourceCode()
  337. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  338. ,$ctx1.sendIdx["focusOnSourceCode"]=1
  339. //>>excludeEnd("ctx");
  340. ][0];
  341. $recv($1)._selectedPackage_($recv([$recv(aCompiledMethod)._methodClass()
  342. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  343. ,$ctx1.sendIdx["methodClass"]=1
  344. //>>excludeEnd("ctx");
  345. ][0])._package());
  346. $recv($1)._showInstance_($recv($recv([$recv(aCompiledMethod)._methodClass()
  347. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  348. ,$ctx1.sendIdx["methodClass"]=2
  349. //>>excludeEnd("ctx");
  350. ][0])._isMetaclass())._not());
  351. $recv($1)._selectedClass_($recv(aCompiledMethod)._methodClass());
  352. $recv($1)._selectedProtocol_($recv(aCompiledMethod)._protocol());
  353. $recv($1)._selectedMethod_(aCompiledMethod);
  354. $recv($1)._focusOnSourceCode();
  355. return self;
  356. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  357. }, function($ctx1) {$ctx1.fill(self,"openMethod:",{aCompiledMethod:aCompiledMethod})});
  358. //>>excludeEnd("ctx");
  359. }; }),
  360. $globals.HLBrowser);
  361. $core.addMethod(
  362. $core.method({
  363. selector: "packagesListWidget",
  364. protocol: "widgets",
  365. //>>excludeStart("ide", pragmas.excludeIdeData);
  366. args: [],
  367. source: "packagesListWidget\x0a\x09^ packagesListWidget ifNil: [\x0a \x09packagesListWidget := HLPackagesListWidget on: self model.\x0a\x09\x09packagesListWidget next: self classesListWidget ]",
  368. referencedClasses: ["HLPackagesListWidget"],
  369. //>>excludeEnd("ide");
  370. pragmas: [],
  371. messageSends: ["ifNil:", "on:", "model", "next:", "classesListWidget"]
  372. }, function ($methodClass){ return function (){
  373. var self=this,$self=this;
  374. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  375. return $core.withContext(function($ctx1) {
  376. //>>excludeEnd("ctx");
  377. var $1;
  378. $1=$self.packagesListWidget;
  379. if($1 == null || $1.a$nil){
  380. $self.packagesListWidget=$recv($globals.HLPackagesListWidget)._on_($self._model());
  381. return $recv($self.packagesListWidget)._next_($self._classesListWidget());
  382. } else {
  383. return $1;
  384. }
  385. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  386. }, function($ctx1) {$ctx1.fill(self,"packagesListWidget",{})});
  387. //>>excludeEnd("ctx");
  388. }; }),
  389. $globals.HLBrowser);
  390. $core.addMethod(
  391. $core.method({
  392. selector: "protocolsListWidget",
  393. protocol: "widgets",
  394. //>>excludeStart("ide", pragmas.excludeIdeData);
  395. args: [],
  396. source: "protocolsListWidget\x0a\x09^ protocolsListWidget ifNil: [\x0a \x09protocolsListWidget := HLProtocolsListWidget on: self model.\x0a\x09\x09protocolsListWidget next: self methodsListWidget ]",
  397. referencedClasses: ["HLProtocolsListWidget"],
  398. //>>excludeEnd("ide");
  399. pragmas: [],
  400. messageSends: ["ifNil:", "on:", "model", "next:", "methodsListWidget"]
  401. }, function ($methodClass){ return function (){
  402. var self=this,$self=this;
  403. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  404. return $core.withContext(function($ctx1) {
  405. //>>excludeEnd("ctx");
  406. var $1;
  407. $1=$self.protocolsListWidget;
  408. if($1 == null || $1.a$nil){
  409. $self.protocolsListWidget=$recv($globals.HLProtocolsListWidget)._on_($self._model());
  410. return $recv($self.protocolsListWidget)._next_($self._methodsListWidget());
  411. } else {
  412. return $1;
  413. }
  414. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  415. }, function($ctx1) {$ctx1.fill(self,"protocolsListWidget",{})});
  416. //>>excludeEnd("ctx");
  417. }; }),
  418. $globals.HLBrowser);
  419. $core.addMethod(
  420. $core.method({
  421. selector: "registerBindingsOn:",
  422. protocol: "keybindings",
  423. //>>excludeStart("ide", pragmas.excludeIdeData);
  424. args: ["aBindingGroup"],
  425. source: "registerBindingsOn: aBindingGroup\x0a\x09HLToolCommand \x0a\x09\x09registerConcreteClassesOn: aBindingGroup \x0a\x09\x09for: self model",
  426. referencedClasses: ["HLToolCommand"],
  427. //>>excludeEnd("ide");
  428. pragmas: [],
  429. messageSends: ["registerConcreteClassesOn:for:", "model"]
  430. }, function ($methodClass){ return function (aBindingGroup){
  431. var self=this,$self=this;
  432. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  433. return $core.withContext(function($ctx1) {
  434. //>>excludeEnd("ctx");
  435. $recv($globals.HLToolCommand)._registerConcreteClassesOn_for_(aBindingGroup,$self._model());
  436. return self;
  437. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  438. }, function($ctx1) {$ctx1.fill(self,"registerBindingsOn:",{aBindingGroup:aBindingGroup})});
  439. //>>excludeEnd("ctx");
  440. }; }),
  441. $globals.HLBrowser);
  442. $core.addMethod(
  443. $core.method({
  444. selector: "renderContentOn:",
  445. protocol: "rendering",
  446. //>>excludeStart("ide", pragmas.excludeIdeData);
  447. args: ["html"],
  448. source: "renderContentOn: html\x0a\x09html with: (HLContainer with: (HLHorizontalSplitter \x0a \x09with: (HLVerticalSplitter\x0a \x09with: (HLVerticalSplitter\x0a \x09with: self packagesListWidget\x0a with: self classesListWidget)\x0a with: (HLVerticalSplitter\x0a \x09with: self protocolsListWidget\x0a with: self methodsListWidget)) \x0a with: self sourceWidget)).\x0a\x09\x0a\x09self packagesListWidget focus",
  449. referencedClasses: ["HLContainer", "HLHorizontalSplitter", "HLVerticalSplitter"],
  450. //>>excludeEnd("ide");
  451. pragmas: [],
  452. messageSends: ["with:", "with:with:", "packagesListWidget", "classesListWidget", "protocolsListWidget", "methodsListWidget", "sourceWidget", "focus"]
  453. }, function ($methodClass){ return function (html){
  454. var self=this,$self=this;
  455. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  456. return $core.withContext(function($ctx1) {
  457. //>>excludeEnd("ctx");
  458. [$recv(html)._with_($recv($globals.HLContainer)._with_([$recv($globals.HLHorizontalSplitter)._with_with_([$recv($globals.HLVerticalSplitter)._with_with_([$recv($globals.HLVerticalSplitter)._with_with_([$self._packagesListWidget()
  459. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  460. ,$ctx1.sendIdx["packagesListWidget"]=1
  461. //>>excludeEnd("ctx");
  462. ][0],$self._classesListWidget())
  463. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  464. ,$ctx1.sendIdx["with:with:"]=3
  465. //>>excludeEnd("ctx");
  466. ][0],$recv($globals.HLVerticalSplitter)._with_with_($self._protocolsListWidget(),$self._methodsListWidget()))
  467. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  468. ,$ctx1.sendIdx["with:with:"]=2
  469. //>>excludeEnd("ctx");
  470. ][0],$self._sourceWidget())
  471. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  472. ,$ctx1.sendIdx["with:with:"]=1
  473. //>>excludeEnd("ctx");
  474. ][0]))
  475. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  476. ,$ctx1.sendIdx["with:"]=1
  477. //>>excludeEnd("ctx");
  478. ][0];
  479. $recv($self._packagesListWidget())._focus();
  480. return self;
  481. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  482. }, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html})});
  483. //>>excludeEnd("ctx");
  484. }; }),
  485. $globals.HLBrowser);
  486. $core.addMethod(
  487. $core.method({
  488. selector: "sourceWidget",
  489. protocol: "widgets",
  490. //>>excludeStart("ide", pragmas.excludeIdeData);
  491. args: [],
  492. source: "sourceWidget\x0a\x09^ sourceWidget ifNil: [\x0a \x09sourceWidget := HLBrowserBottomWidget new\x0a\x09\x09\x09model: self model;\x0a\x09\x09\x09yourself ]",
  493. referencedClasses: ["HLBrowserBottomWidget"],
  494. //>>excludeEnd("ide");
  495. pragmas: [],
  496. messageSends: ["ifNil:", "model:", "new", "model", "yourself"]
  497. }, function ($methodClass){ return function (){
  498. var self=this,$self=this;
  499. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  500. return $core.withContext(function($ctx1) {
  501. //>>excludeEnd("ctx");
  502. var $1,$2;
  503. $1=$self.sourceWidget;
  504. if($1 == null || $1.a$nil){
  505. $2=$recv($globals.HLBrowserBottomWidget)._new();
  506. $recv($2)._model_($self._model());
  507. $self.sourceWidget=$recv($2)._yourself();
  508. return $self.sourceWidget;
  509. } else {
  510. return $1;
  511. }
  512. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  513. }, function($ctx1) {$ctx1.fill(self,"sourceWidget",{})});
  514. //>>excludeEnd("ctx");
  515. }; }),
  516. $globals.HLBrowser);
  517. $core.addMethod(
  518. $core.method({
  519. selector: "unregister",
  520. protocol: "actions",
  521. //>>excludeStart("ide", pragmas.excludeIdeData);
  522. args: [],
  523. source: "unregister\x0a\x09super unregister.\x0a\x0a\x09{ \x0a\x09\x09self packagesListWidget.\x0a\x09\x09self classesListWidget.\x0a\x09\x09self protocolsListWidget.\x0a\x09\x09self methodsListWidget.\x0a\x09\x09self sourceWidget\x0a\x09} \x0a\x09\x09do: [ :each | each unregister ]",
  524. referencedClasses: [],
  525. //>>excludeEnd("ide");
  526. pragmas: [],
  527. messageSends: ["unregister", "do:", "packagesListWidget", "classesListWidget", "protocolsListWidget", "methodsListWidget", "sourceWidget"]
  528. }, function ($methodClass){ return function (){
  529. var self=this,$self=this;
  530. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  531. return $core.withContext(function($ctx1) {
  532. //>>excludeEnd("ctx");
  533. [(
  534. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  535. $ctx1.supercall = true,
  536. //>>excludeEnd("ctx");
  537. ($methodClass.superclass||$boot.nilAsClass).fn.prototype._unregister.call($self))
  538. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  539. ,$ctx1.sendIdx["unregister"]=1,$ctx1.supercall = false
  540. //>>excludeEnd("ctx");
  541. ][0];
  542. $recv([$self._packagesListWidget(),$self._classesListWidget(),$self._protocolsListWidget(),$self._methodsListWidget(),$self._sourceWidget()])._do_((function(each){
  543. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  544. return $core.withContext(function($ctx2) {
  545. //>>excludeEnd("ctx");
  546. return $recv(each)._unregister();
  547. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  548. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,1)});
  549. //>>excludeEnd("ctx");
  550. }));
  551. return self;
  552. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  553. }, function($ctx1) {$ctx1.fill(self,"unregister",{})});
  554. //>>excludeEnd("ctx");
  555. }; }),
  556. $globals.HLBrowser);
  557. $core.setSlots($globals.HLBrowser.a$cls, ["nextId"]);
  558. $core.addMethod(
  559. $core.method({
  560. selector: "canBeOpenAsTab",
  561. protocol: "testing",
  562. //>>excludeStart("ide", pragmas.excludeIdeData);
  563. args: [],
  564. source: "canBeOpenAsTab\x0a\x09^ true",
  565. referencedClasses: [],
  566. //>>excludeEnd("ide");
  567. pragmas: [],
  568. messageSends: []
  569. }, function ($methodClass){ return function (){
  570. var self=this,$self=this;
  571. return true;
  572. }; }),
  573. $globals.HLBrowser.a$cls);
  574. $core.addMethod(
  575. $core.method({
  576. selector: "nextId",
  577. protocol: "accessing",
  578. //>>excludeStart("ide", pragmas.excludeIdeData);
  579. args: [],
  580. source: "nextId\x0a\x09nextId ifNil: [ nextId := 0 ].\x0a ^ 'browser_', (nextId + 1) asString",
  581. referencedClasses: [],
  582. //>>excludeEnd("ide");
  583. pragmas: [],
  584. messageSends: ["ifNil:", ",", "asString", "+"]
  585. }, function ($methodClass){ return function (){
  586. var self=this,$self=this;
  587. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  588. return $core.withContext(function($ctx1) {
  589. //>>excludeEnd("ctx");
  590. var $1;
  591. $1=$self.nextId;
  592. if($1 == null || $1.a$nil){
  593. $self.nextId=(0);
  594. $self.nextId;
  595. } else {
  596. $1;
  597. }
  598. return "browser_".__comma($recv($recv($self.nextId).__plus((1)))._asString());
  599. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  600. }, function($ctx1) {$ctx1.fill(self,"nextId",{})});
  601. //>>excludeEnd("ctx");
  602. }; }),
  603. $globals.HLBrowser.a$cls);
  604. $core.addMethod(
  605. $core.method({
  606. selector: "tabClass",
  607. protocol: "accessing",
  608. //>>excludeStart("ide", pragmas.excludeIdeData);
  609. args: [],
  610. source: "tabClass\x0a\x09^ 'browser'",
  611. referencedClasses: [],
  612. //>>excludeEnd("ide");
  613. pragmas: [],
  614. messageSends: []
  615. }, function ($methodClass){ return function (){
  616. var self=this,$self=this;
  617. return "browser";
  618. }; }),
  619. $globals.HLBrowser.a$cls);
  620. $core.addMethod(
  621. $core.method({
  622. selector: "tabLabel",
  623. protocol: "accessing",
  624. //>>excludeStart("ide", pragmas.excludeIdeData);
  625. args: [],
  626. source: "tabLabel\x0a\x09^ 'Browser'",
  627. referencedClasses: [],
  628. //>>excludeEnd("ide");
  629. pragmas: [],
  630. messageSends: []
  631. }, function ($methodClass){ return function (){
  632. var self=this,$self=this;
  633. return "Browser";
  634. }; }),
  635. $globals.HLBrowser.a$cls);
  636. $core.addMethod(
  637. $core.method({
  638. selector: "tabPriority",
  639. protocol: "accessing",
  640. //>>excludeStart("ide", pragmas.excludeIdeData);
  641. args: [],
  642. source: "tabPriority\x0a\x09^ 0",
  643. referencedClasses: [],
  644. //>>excludeEnd("ide");
  645. pragmas: [],
  646. messageSends: []
  647. }, function ($methodClass){ return function (){
  648. var self=this,$self=this;
  649. return (0);
  650. }; }),
  651. $globals.HLBrowser.a$cls);
  652. $core.addClass("HLBrowserBottomWidget", $globals.HLWidget, "Helios-Browser");
  653. $core.setSlots($globals.HLBrowserBottomWidget, ["model", "codeWidget", "documentationWidget"]);
  654. //>>excludeStart("ide", pragmas.excludeIdeData);
  655. $globals.HLBrowserBottomWidget.comment="I render the code area of a browser and optionally the documentation for the selected class.";
  656. //>>excludeEnd("ide");
  657. $core.addMethod(
  658. $core.method({
  659. selector: "canHaveFocus",
  660. protocol: "testing",
  661. //>>excludeStart("ide", pragmas.excludeIdeData);
  662. args: [],
  663. source: "canHaveFocus\x0a\x09^ true",
  664. referencedClasses: [],
  665. //>>excludeEnd("ide");
  666. pragmas: [],
  667. messageSends: []
  668. }, function ($methodClass){ return function (){
  669. var self=this,$self=this;
  670. return true;
  671. }; }),
  672. $globals.HLBrowserBottomWidget);
  673. $core.addMethod(
  674. $core.method({
  675. selector: "codeWidget",
  676. protocol: "accessing",
  677. //>>excludeStart("ide", pragmas.excludeIdeData);
  678. args: [],
  679. source: "codeWidget\x0a\x09^ codeWidget ifNil: [ codeWidget := HLBrowserCodeWidget new\x0a\x09\x09browserModel: self model;\x0a\x09\x09yourself ]",
  680. referencedClasses: ["HLBrowserCodeWidget"],
  681. //>>excludeEnd("ide");
  682. pragmas: [],
  683. messageSends: ["ifNil:", "browserModel:", "new", "model", "yourself"]
  684. }, function ($methodClass){ return function (){
  685. var self=this,$self=this;
  686. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  687. return $core.withContext(function($ctx1) {
  688. //>>excludeEnd("ctx");
  689. var $1,$2;
  690. $1=$self.codeWidget;
  691. if($1 == null || $1.a$nil){
  692. $2=$recv($globals.HLBrowserCodeWidget)._new();
  693. $recv($2)._browserModel_($self._model());
  694. $self.codeWidget=$recv($2)._yourself();
  695. return $self.codeWidget;
  696. } else {
  697. return $1;
  698. }
  699. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  700. }, function($ctx1) {$ctx1.fill(self,"codeWidget",{})});
  701. //>>excludeEnd("ctx");
  702. }; }),
  703. $globals.HLBrowserBottomWidget);
  704. $core.addMethod(
  705. $core.method({
  706. selector: "documentationWidget",
  707. protocol: "accessing",
  708. //>>excludeStart("ide", pragmas.excludeIdeData);
  709. args: [],
  710. source: "documentationWidget\x0a\x09^ documentationWidget ifNil: [ documentationWidget := HLDocumentationWidget new\x0a\x09\x09model: self model;\x0a\x09\x09yourself ]",
  711. referencedClasses: ["HLDocumentationWidget"],
  712. //>>excludeEnd("ide");
  713. pragmas: [],
  714. messageSends: ["ifNil:", "model:", "new", "model", "yourself"]
  715. }, function ($methodClass){ return function (){
  716. var self=this,$self=this;
  717. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  718. return $core.withContext(function($ctx1) {
  719. //>>excludeEnd("ctx");
  720. var $1,$2;
  721. $1=$self.documentationWidget;
  722. if($1 == null || $1.a$nil){
  723. $2=$recv($globals.HLDocumentationWidget)._new();
  724. $recv($2)._model_($self._model());
  725. $self.documentationWidget=$recv($2)._yourself();
  726. return $self.documentationWidget;
  727. } else {
  728. return $1;
  729. }
  730. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  731. }, function($ctx1) {$ctx1.fill(self,"documentationWidget",{})});
  732. //>>excludeEnd("ctx");
  733. }; }),
  734. $globals.HLBrowserBottomWidget);
  735. $core.addMethod(
  736. $core.method({
  737. selector: "focus",
  738. protocol: "actions",
  739. //>>excludeStart("ide", pragmas.excludeIdeData);
  740. args: [],
  741. source: "focus\x0a\x09self codeWidget focus",
  742. referencedClasses: [],
  743. //>>excludeEnd("ide");
  744. pragmas: [],
  745. messageSends: ["focus", "codeWidget"]
  746. }, function ($methodClass){ return function (){
  747. var self=this,$self=this;
  748. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  749. return $core.withContext(function($ctx1) {
  750. //>>excludeEnd("ctx");
  751. $recv($self._codeWidget())._focus();
  752. return self;
  753. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  754. }, function($ctx1) {$ctx1.fill(self,"focus",{})});
  755. //>>excludeEnd("ctx");
  756. }; }),
  757. $globals.HLBrowserBottomWidget);
  758. $core.addMethod(
  759. $core.method({
  760. selector: "model",
  761. protocol: "accessing",
  762. //>>excludeStart("ide", pragmas.excludeIdeData);
  763. args: [],
  764. source: "model\x0a\x09^ model",
  765. referencedClasses: [],
  766. //>>excludeEnd("ide");
  767. pragmas: [],
  768. messageSends: []
  769. }, function ($methodClass){ return function (){
  770. var self=this,$self=this;
  771. return $self.model;
  772. }; }),
  773. $globals.HLBrowserBottomWidget);
  774. $core.addMethod(
  775. $core.method({
  776. selector: "model:",
  777. protocol: "accessing",
  778. //>>excludeStart("ide", pragmas.excludeIdeData);
  779. args: ["aModel"],
  780. source: "model: aModel\x0a\x09model := aModel.\x0a\x09self observeModel",
  781. referencedClasses: [],
  782. //>>excludeEnd("ide");
  783. pragmas: [],
  784. messageSends: ["observeModel"]
  785. }, function ($methodClass){ return function (aModel){
  786. var self=this,$self=this;
  787. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  788. return $core.withContext(function($ctx1) {
  789. //>>excludeEnd("ctx");
  790. $self.model=aModel;
  791. $self._observeModel();
  792. return self;
  793. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  794. }, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel})});
  795. //>>excludeEnd("ctx");
  796. }; }),
  797. $globals.HLBrowserBottomWidget);
  798. $core.addMethod(
  799. $core.method({
  800. selector: "observeModel",
  801. protocol: "actions",
  802. //>>excludeStart("ide", pragmas.excludeIdeData);
  803. args: [],
  804. source: "observeModel\x0a\x09self model announcer \x0a\x09\x09on: HLShowInstanceToggled\x0a\x09\x09send: #onShowInstanceToggled\x0a\x09\x09to: self;\x0a\x09\x09on: HLShowCommentToggled\x0a\x09\x09send: #onShowCommentToggled\x0a\x09\x09to: self",
  805. referencedClasses: ["HLShowInstanceToggled", "HLShowCommentToggled"],
  806. //>>excludeEnd("ide");
  807. pragmas: [],
  808. messageSends: ["on:send:to:", "announcer", "model"]
  809. }, function ($methodClass){ return function (){
  810. var self=this,$self=this;
  811. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  812. return $core.withContext(function($ctx1) {
  813. //>>excludeEnd("ctx");
  814. var $1;
  815. $1=$recv($self._model())._announcer();
  816. [$recv($1)._on_send_to_($globals.HLShowInstanceToggled,"onShowInstanceToggled",self)
  817. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  818. ,$ctx1.sendIdx["on:send:to:"]=1
  819. //>>excludeEnd("ctx");
  820. ][0];
  821. $recv($1)._on_send_to_($globals.HLShowCommentToggled,"onShowCommentToggled",self);
  822. return self;
  823. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  824. }, function($ctx1) {$ctx1.fill(self,"observeModel",{})});
  825. //>>excludeEnd("ctx");
  826. }; }),
  827. $globals.HLBrowserBottomWidget);
  828. $core.addMethod(
  829. $core.method({
  830. selector: "onShowCommentToggled",
  831. protocol: "reactions",
  832. //>>excludeStart("ide", pragmas.excludeIdeData);
  833. args: [],
  834. source: "onShowCommentToggled\x0a\x09self refresh",
  835. referencedClasses: [],
  836. //>>excludeEnd("ide");
  837. pragmas: [],
  838. messageSends: ["refresh"]
  839. }, function ($methodClass){ return function (){
  840. var self=this,$self=this;
  841. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  842. return $core.withContext(function($ctx1) {
  843. //>>excludeEnd("ctx");
  844. $self._refresh();
  845. return self;
  846. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  847. }, function($ctx1) {$ctx1.fill(self,"onShowCommentToggled",{})});
  848. //>>excludeEnd("ctx");
  849. }; }),
  850. $globals.HLBrowserBottomWidget);
  851. $core.addMethod(
  852. $core.method({
  853. selector: "onShowInstanceToggled",
  854. protocol: "reactions",
  855. //>>excludeStart("ide", pragmas.excludeIdeData);
  856. args: [],
  857. source: "onShowInstanceToggled\x0a\x09self refresh",
  858. referencedClasses: [],
  859. //>>excludeEnd("ide");
  860. pragmas: [],
  861. messageSends: ["refresh"]
  862. }, function ($methodClass){ return function (){
  863. var self=this,$self=this;
  864. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  865. return $core.withContext(function($ctx1) {
  866. //>>excludeEnd("ctx");
  867. $self._refresh();
  868. return self;
  869. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  870. }, function($ctx1) {$ctx1.fill(self,"onShowInstanceToggled",{})});
  871. //>>excludeEnd("ctx");
  872. }; }),
  873. $globals.HLBrowserBottomWidget);
  874. $core.addMethod(
  875. $core.method({
  876. selector: "previous",
  877. protocol: "accessing",
  878. //>>excludeStart("ide", pragmas.excludeIdeData);
  879. args: [],
  880. source: "previous\x0a\x09\x22For navigation\x22",
  881. referencedClasses: [],
  882. //>>excludeEnd("ide");
  883. pragmas: [],
  884. messageSends: []
  885. }, function ($methodClass){ return function (){
  886. var self=this,$self=this;
  887. return self;
  888. }; }),
  889. $globals.HLBrowserBottomWidget);
  890. $core.addMethod(
  891. $core.method({
  892. selector: "previous:",
  893. protocol: "accessing",
  894. //>>excludeStart("ide", pragmas.excludeIdeData);
  895. args: ["aWidget"],
  896. source: "previous: aWidget\x0a\x09\x22For navigation\x22",
  897. referencedClasses: [],
  898. //>>excludeEnd("ide");
  899. pragmas: [],
  900. messageSends: []
  901. }, function ($methodClass){ return function (aWidget){
  902. var self=this,$self=this;
  903. return self;
  904. }; }),
  905. $globals.HLBrowserBottomWidget);
  906. $core.addMethod(
  907. $core.method({
  908. selector: "renderContentOn:",
  909. protocol: "rendering",
  910. //>>excludeStart("ide", pragmas.excludeIdeData);
  911. args: ["html"],
  912. source: "renderContentOn: html\x0a\x09self model showComment \x0a\x09\x09ifTrue: [ self renderPanesOn: html ]\x0a\x09\x09ifFalse: [ html with: self codeWidget ]",
  913. referencedClasses: [],
  914. //>>excludeEnd("ide");
  915. pragmas: [],
  916. messageSends: ["ifTrue:ifFalse:", "showComment", "model", "renderPanesOn:", "with:", "codeWidget"]
  917. }, function ($methodClass){ return function (html){
  918. var self=this,$self=this;
  919. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  920. return $core.withContext(function($ctx1) {
  921. //>>excludeEnd("ctx");
  922. if($core.assert($recv($self._model())._showComment())){
  923. $self._renderPanesOn_(html);
  924. } else {
  925. $recv(html)._with_($self._codeWidget());
  926. }
  927. return self;
  928. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  929. }, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html})});
  930. //>>excludeEnd("ctx");
  931. }; }),
  932. $globals.HLBrowserBottomWidget);
  933. $core.addMethod(
  934. $core.method({
  935. selector: "renderPanesOn:",
  936. protocol: "rendering",
  937. //>>excludeStart("ide", pragmas.excludeIdeData);
  938. args: ["html"],
  939. source: "renderPanesOn: html\x0a\x09html with: (HLVerticalSplitter\x0a\x09\x09with: self codeWidget\x0a\x09\x09with: self documentationWidget)",
  940. referencedClasses: ["HLVerticalSplitter"],
  941. //>>excludeEnd("ide");
  942. pragmas: [],
  943. messageSends: ["with:", "with:with:", "codeWidget", "documentationWidget"]
  944. }, function ($methodClass){ return function (html){
  945. var self=this,$self=this;
  946. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  947. return $core.withContext(function($ctx1) {
  948. //>>excludeEnd("ctx");
  949. $recv(html)._with_($recv($globals.HLVerticalSplitter)._with_with_($self._codeWidget(),$self._documentationWidget()));
  950. return self;
  951. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  952. }, function($ctx1) {$ctx1.fill(self,"renderPanesOn:",{html:html})});
  953. //>>excludeEnd("ctx");
  954. }; }),
  955. $globals.HLBrowserBottomWidget);
  956. $core.addClass("HLBrowserModel", $globals.HLToolModel, "Helios-Browser");
  957. $core.setSlots($globals.HLBrowserModel, ["showInstance", "showComment"]);
  958. $core.addMethod(
  959. $core.method({
  960. selector: "editComment",
  961. protocol: "commands actions",
  962. //>>excludeStart("ide", pragmas.excludeIdeData);
  963. args: [],
  964. source: "editComment\x0a\x09self announcer announce: HLEditComment new",
  965. referencedClasses: ["HLEditComment"],
  966. //>>excludeEnd("ide");
  967. pragmas: [],
  968. messageSends: ["announce:", "announcer", "new"]
  969. }, function ($methodClass){ return function (){
  970. var self=this,$self=this;
  971. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  972. return $core.withContext(function($ctx1) {
  973. //>>excludeEnd("ctx");
  974. $recv($self._announcer())._announce_($recv($globals.HLEditComment)._new());
  975. return self;
  976. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  977. }, function($ctx1) {$ctx1.fill(self,"editComment",{})});
  978. //>>excludeEnd("ctx");
  979. }; }),
  980. $globals.HLBrowserModel);
  981. $core.addMethod(
  982. $core.method({
  983. selector: "focusOnClasses",
  984. protocol: "actions",
  985. //>>excludeStart("ide", pragmas.excludeIdeData);
  986. args: [],
  987. source: "focusOnClasses\x0a\x09self announcer announce: HLClassesFocusRequested new",
  988. referencedClasses: ["HLClassesFocusRequested"],
  989. //>>excludeEnd("ide");
  990. pragmas: [],
  991. messageSends: ["announce:", "announcer", "new"]
  992. }, function ($methodClass){ return function (){
  993. var self=this,$self=this;
  994. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  995. return $core.withContext(function($ctx1) {
  996. //>>excludeEnd("ctx");
  997. $recv($self._announcer())._announce_($recv($globals.HLClassesFocusRequested)._new());
  998. return self;
  999. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1000. }, function($ctx1) {$ctx1.fill(self,"focusOnClasses",{})});
  1001. //>>excludeEnd("ctx");
  1002. }; }),
  1003. $globals.HLBrowserModel);
  1004. $core.addMethod(
  1005. $core.method({
  1006. selector: "focusOnDocumentation",
  1007. protocol: "actions",
  1008. //>>excludeStart("ide", pragmas.excludeIdeData);
  1009. args: [],
  1010. source: "focusOnDocumentation\x0a\x09self announcer announce: HLDocumentationFocusRequested new",
  1011. referencedClasses: ["HLDocumentationFocusRequested"],
  1012. //>>excludeEnd("ide");
  1013. pragmas: [],
  1014. messageSends: ["announce:", "announcer", "new"]
  1015. }, function ($methodClass){ return function (){
  1016. var self=this,$self=this;
  1017. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1018. return $core.withContext(function($ctx1) {
  1019. //>>excludeEnd("ctx");
  1020. $recv($self._announcer())._announce_($recv($globals.HLDocumentationFocusRequested)._new());
  1021. return self;
  1022. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1023. }, function($ctx1) {$ctx1.fill(self,"focusOnDocumentation",{})});
  1024. //>>excludeEnd("ctx");
  1025. }; }),
  1026. $globals.HLBrowserModel);
  1027. $core.addMethod(
  1028. $core.method({
  1029. selector: "focusOnMethods",
  1030. protocol: "actions",
  1031. //>>excludeStart("ide", pragmas.excludeIdeData);
  1032. args: [],
  1033. source: "focusOnMethods\x0a\x09self announcer announce: HLMethodsFocusRequested new",
  1034. referencedClasses: ["HLMethodsFocusRequested"],
  1035. //>>excludeEnd("ide");
  1036. pragmas: [],
  1037. messageSends: ["announce:", "announcer", "new"]
  1038. }, function ($methodClass){ return function (){
  1039. var self=this,$self=this;
  1040. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1041. return $core.withContext(function($ctx1) {
  1042. //>>excludeEnd("ctx");
  1043. $recv($self._announcer())._announce_($recv($globals.HLMethodsFocusRequested)._new());
  1044. return self;
  1045. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1046. }, function($ctx1) {$ctx1.fill(self,"focusOnMethods",{})});
  1047. //>>excludeEnd("ctx");
  1048. }; }),
  1049. $globals.HLBrowserModel);
  1050. $core.addMethod(
  1051. $core.method({
  1052. selector: "focusOnPackages",
  1053. protocol: "actions",
  1054. //>>excludeStart("ide", pragmas.excludeIdeData);
  1055. args: [],
  1056. source: "focusOnPackages\x0a\x09self announcer announce: HLPackagesFocusRequested new",
  1057. referencedClasses: ["HLPackagesFocusRequested"],
  1058. //>>excludeEnd("ide");
  1059. pragmas: [],
  1060. messageSends: ["announce:", "announcer", "new"]
  1061. }, function ($methodClass){ return function (){
  1062. var self=this,$self=this;
  1063. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1064. return $core.withContext(function($ctx1) {
  1065. //>>excludeEnd("ctx");
  1066. $recv($self._announcer())._announce_($recv($globals.HLPackagesFocusRequested)._new());
  1067. return self;
  1068. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1069. }, function($ctx1) {$ctx1.fill(self,"focusOnPackages",{})});
  1070. //>>excludeEnd("ctx");
  1071. }; }),
  1072. $globals.HLBrowserModel);
  1073. $core.addMethod(
  1074. $core.method({
  1075. selector: "focusOnProtocols",
  1076. protocol: "actions",
  1077. //>>excludeStart("ide", pragmas.excludeIdeData);
  1078. args: [],
  1079. source: "focusOnProtocols\x0a\x09self announcer announce: HLProtocolsFocusRequested new",
  1080. referencedClasses: ["HLProtocolsFocusRequested"],
  1081. //>>excludeEnd("ide");
  1082. pragmas: [],
  1083. messageSends: ["announce:", "announcer", "new"]
  1084. }, function ($methodClass){ return function (){
  1085. var self=this,$self=this;
  1086. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1087. return $core.withContext(function($ctx1) {
  1088. //>>excludeEnd("ctx");
  1089. $recv($self._announcer())._announce_($recv($globals.HLProtocolsFocusRequested)._new());
  1090. return self;
  1091. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1092. }, function($ctx1) {$ctx1.fill(self,"focusOnProtocols",{})});
  1093. //>>excludeEnd("ctx");
  1094. }; }),
  1095. $globals.HLBrowserModel);
  1096. $core.addMethod(
  1097. $core.method({
  1098. selector: "focusOnSourceCode",
  1099. protocol: "actions",
  1100. //>>excludeStart("ide", pragmas.excludeIdeData);
  1101. args: [],
  1102. source: "focusOnSourceCode\x0a\x09self announcer announce: HLSourceCodeFocusRequested new",
  1103. referencedClasses: ["HLSourceCodeFocusRequested"],
  1104. //>>excludeEnd("ide");
  1105. pragmas: [],
  1106. messageSends: ["announce:", "announcer", "new"]
  1107. }, function ($methodClass){ return function (){
  1108. var self=this,$self=this;
  1109. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1110. return $core.withContext(function($ctx1) {
  1111. //>>excludeEnd("ctx");
  1112. $recv($self._announcer())._announce_($recv($globals.HLSourceCodeFocusRequested)._new());
  1113. return self;
  1114. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1115. }, function($ctx1) {$ctx1.fill(self,"focusOnSourceCode",{})});
  1116. //>>excludeEnd("ctx");
  1117. }; }),
  1118. $globals.HLBrowserModel);
  1119. $core.addMethod(
  1120. $core.method({
  1121. selector: "isBrowserModel",
  1122. protocol: "testing",
  1123. //>>excludeStart("ide", pragmas.excludeIdeData);
  1124. args: [],
  1125. source: "isBrowserModel\x0a\x09^ true",
  1126. referencedClasses: [],
  1127. //>>excludeEnd("ide");
  1128. pragmas: [],
  1129. messageSends: []
  1130. }, function ($methodClass){ return function (){
  1131. var self=this,$self=this;
  1132. return true;
  1133. }; }),
  1134. $globals.HLBrowserModel);
  1135. $core.addMethod(
  1136. $core.method({
  1137. selector: "setClassComment:",
  1138. protocol: "actions",
  1139. //>>excludeStart("ide", pragmas.excludeIdeData);
  1140. args: ["aString"],
  1141. source: "setClassComment: aString\x0a\x09self environment\x0a\x09\x09setClassCommentOf: self selectedClass theNonMetaClass\x0a\x09\x09to: aString",
  1142. referencedClasses: [],
  1143. //>>excludeEnd("ide");
  1144. pragmas: [],
  1145. messageSends: ["setClassCommentOf:to:", "environment", "theNonMetaClass", "selectedClass"]
  1146. }, function ($methodClass){ return function (aString){
  1147. var self=this,$self=this;
  1148. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1149. return $core.withContext(function($ctx1) {
  1150. //>>excludeEnd("ctx");
  1151. $recv($self._environment())._setClassCommentOf_to_($recv($self._selectedClass())._theNonMetaClass(),aString);
  1152. return self;
  1153. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1154. }, function($ctx1) {$ctx1.fill(self,"setClassComment:",{aString:aString})});
  1155. //>>excludeEnd("ctx");
  1156. }; }),
  1157. $globals.HLBrowserModel);
  1158. $core.addMethod(
  1159. $core.method({
  1160. selector: "showClassTemplate",
  1161. protocol: "actions",
  1162. //>>excludeStart("ide", pragmas.excludeIdeData);
  1163. args: [],
  1164. source: "showClassTemplate\x0a\x09self selectedPackage ifNotNil: [ :package |\x0a\x09\x09self announcer announce: (HLShowTemplate new\x0a\x09\x09\x09template: package classTemplate;\x0a\x09\x09\x09yourself) ]",
  1165. referencedClasses: ["HLShowTemplate"],
  1166. //>>excludeEnd("ide");
  1167. pragmas: [],
  1168. messageSends: ["ifNotNil:", "selectedPackage", "announce:", "announcer", "template:", "new", "classTemplate", "yourself"]
  1169. }, function ($methodClass){ return function (){
  1170. var self=this,$self=this;
  1171. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1172. return $core.withContext(function($ctx1) {
  1173. //>>excludeEnd("ctx");
  1174. var $1,$2,$3;
  1175. $1=$self._selectedPackage();
  1176. if($1 == null || $1.a$nil){
  1177. $1;
  1178. } else {
  1179. var package_;
  1180. package_=$1;
  1181. $2=$self._announcer();
  1182. $3=$recv($globals.HLShowTemplate)._new();
  1183. $recv($3)._template_($recv(package_)._classTemplate());
  1184. $recv($2)._announce_($recv($3)._yourself());
  1185. }
  1186. return self;
  1187. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1188. }, function($ctx1) {$ctx1.fill(self,"showClassTemplate",{})});
  1189. //>>excludeEnd("ctx");
  1190. }; }),
  1191. $globals.HLBrowserModel);
  1192. $core.addMethod(
  1193. $core.method({
  1194. selector: "showComment",
  1195. protocol: "accessing",
  1196. //>>excludeStart("ide", pragmas.excludeIdeData);
  1197. args: [],
  1198. source: "showComment\x0a\x09^ showComment ifNil: [ \x0a\x09\x09showComment := 'helios.browser.showComment' settingValueIfAbsent: false ]",
  1199. referencedClasses: [],
  1200. //>>excludeEnd("ide");
  1201. pragmas: [],
  1202. messageSends: ["ifNil:", "settingValueIfAbsent:"]
  1203. }, function ($methodClass){ return function (){
  1204. var self=this,$self=this;
  1205. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1206. return $core.withContext(function($ctx1) {
  1207. //>>excludeEnd("ctx");
  1208. var $1;
  1209. $1=$self.showComment;
  1210. if($1 == null || $1.a$nil){
  1211. $self.showComment="helios.browser.showComment"._settingValueIfAbsent_(false);
  1212. return $self.showComment;
  1213. } else {
  1214. return $1;
  1215. }
  1216. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1217. }, function($ctx1) {$ctx1.fill(self,"showComment",{})});
  1218. //>>excludeEnd("ctx");
  1219. }; }),
  1220. $globals.HLBrowserModel);
  1221. $core.addMethod(
  1222. $core.method({
  1223. selector: "showComment:",
  1224. protocol: "accessing",
  1225. //>>excludeStart("ide", pragmas.excludeIdeData);
  1226. args: ["aBoolean"],
  1227. source: "showComment: aBoolean\x0a\x09self withChangesDo: [\x0a\x09\x09showComment := aBoolean.\x0a\x09\x09'helios.browser.showComment' settingValue: aBoolean.\x0a\x09\x09self announcer announce: HLShowCommentToggled new ]",
  1228. referencedClasses: ["HLShowCommentToggled"],
  1229. //>>excludeEnd("ide");
  1230. pragmas: [],
  1231. messageSends: ["withChangesDo:", "settingValue:", "announce:", "announcer", "new"]
  1232. }, function ($methodClass){ return function (aBoolean){
  1233. var self=this,$self=this;
  1234. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1235. return $core.withContext(function($ctx1) {
  1236. //>>excludeEnd("ctx");
  1237. $self._withChangesDo_((function(){
  1238. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1239. return $core.withContext(function($ctx2) {
  1240. //>>excludeEnd("ctx");
  1241. $self.showComment=aBoolean;
  1242. "helios.browser.showComment"._settingValue_(aBoolean);
  1243. return $recv($self._announcer())._announce_($recv($globals.HLShowCommentToggled)._new());
  1244. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1245. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
  1246. //>>excludeEnd("ctx");
  1247. }));
  1248. return self;
  1249. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1250. }, function($ctx1) {$ctx1.fill(self,"showComment:",{aBoolean:aBoolean})});
  1251. //>>excludeEnd("ctx");
  1252. }; }),
  1253. $globals.HLBrowserModel);
  1254. $core.addMethod(
  1255. $core.method({
  1256. selector: "showInstance",
  1257. protocol: "accessing",
  1258. //>>excludeStart("ide", pragmas.excludeIdeData);
  1259. args: [],
  1260. source: "showInstance\x0a\x09^ showInstance ifNil: [ true ]",
  1261. referencedClasses: [],
  1262. //>>excludeEnd("ide");
  1263. pragmas: [],
  1264. messageSends: ["ifNil:"]
  1265. }, function ($methodClass){ return function (){
  1266. var self=this,$self=this;
  1267. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1268. return $core.withContext(function($ctx1) {
  1269. //>>excludeEnd("ctx");
  1270. var $1;
  1271. $1=$self.showInstance;
  1272. if($1 == null || $1.a$nil){
  1273. return true;
  1274. } else {
  1275. return $1;
  1276. }
  1277. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1278. }, function($ctx1) {$ctx1.fill(self,"showInstance",{})});
  1279. //>>excludeEnd("ctx");
  1280. }; }),
  1281. $globals.HLBrowserModel);
  1282. $core.addMethod(
  1283. $core.method({
  1284. selector: "showInstance:",
  1285. protocol: "accessing",
  1286. //>>excludeStart("ide", pragmas.excludeIdeData);
  1287. args: ["aBoolean"],
  1288. source: "showInstance: aBoolean\x0a\x0a\x09self withChangesDo: [\x0a\x09\x09showInstance := aBoolean.\x0a\x0a \x09self selectedClass ifNotNil: [\x0a \x09\x09self selectedClass: (aBoolean\x0a \x09\x09\x09ifTrue: [ self selectedClass theNonMetaClass ]\x0a\x09 \x09 \x09ifFalse: [ self selectedClass theMetaClass ]) ].\x0a \x0a\x09\x09self announcer announce: HLShowInstanceToggled new ]",
  1289. referencedClasses: ["HLShowInstanceToggled"],
  1290. //>>excludeEnd("ide");
  1291. pragmas: [],
  1292. messageSends: ["withChangesDo:", "ifNotNil:", "selectedClass", "selectedClass:", "ifTrue:ifFalse:", "theNonMetaClass", "theMetaClass", "announce:", "announcer", "new"]
  1293. }, function ($methodClass){ return function (aBoolean){
  1294. var self=this,$self=this;
  1295. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1296. return $core.withContext(function($ctx1) {
  1297. //>>excludeEnd("ctx");
  1298. var $1,$2;
  1299. $self._withChangesDo_((function(){
  1300. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1301. return $core.withContext(function($ctx2) {
  1302. //>>excludeEnd("ctx");
  1303. $self.showInstance=aBoolean;
  1304. $1=[$self._selectedClass()
  1305. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1306. ,$ctx2.sendIdx["selectedClass"]=1
  1307. //>>excludeEnd("ctx");
  1308. ][0];
  1309. if($1 == null || $1.a$nil){
  1310. $1;
  1311. } else {
  1312. if($core.assert(aBoolean)){
  1313. $2=$recv([$self._selectedClass()
  1314. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1315. ,$ctx2.sendIdx["selectedClass"]=2
  1316. //>>excludeEnd("ctx");
  1317. ][0])._theNonMetaClass();
  1318. } else {
  1319. $2=$recv($self._selectedClass())._theMetaClass();
  1320. }
  1321. $self._selectedClass_($2);
  1322. }
  1323. return $recv($self._announcer())._announce_($recv($globals.HLShowInstanceToggled)._new());
  1324. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1325. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
  1326. //>>excludeEnd("ctx");
  1327. }));
  1328. return self;
  1329. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1330. }, function($ctx1) {$ctx1.fill(self,"showInstance:",{aBoolean:aBoolean})});
  1331. //>>excludeEnd("ctx");
  1332. }; }),
  1333. $globals.HLBrowserModel);
  1334. $core.addMethod(
  1335. $core.method({
  1336. selector: "showMethodTemplate",
  1337. protocol: "actions",
  1338. //>>excludeStart("ide", pragmas.excludeIdeData);
  1339. args: [],
  1340. source: "showMethodTemplate\x0a\x09self selectedClass ifNotNil: [ :theClass |\x0a\x09\x09self announcer announce: (HLShowTemplate new\x0a\x09\x09\x09template: theClass methodTemplate;\x0a\x09\x09\x09yourself) ]",
  1341. referencedClasses: ["HLShowTemplate"],
  1342. //>>excludeEnd("ide");
  1343. pragmas: [],
  1344. messageSends: ["ifNotNil:", "selectedClass", "announce:", "announcer", "template:", "new", "methodTemplate", "yourself"]
  1345. }, function ($methodClass){ return function (){
  1346. var self=this,$self=this;
  1347. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1348. return $core.withContext(function($ctx1) {
  1349. //>>excludeEnd("ctx");
  1350. var $1,$2,$3;
  1351. $1=$self._selectedClass();
  1352. if($1 == null || $1.a$nil){
  1353. $1;
  1354. } else {
  1355. var theClass;
  1356. theClass=$1;
  1357. $2=$self._announcer();
  1358. $3=$recv($globals.HLShowTemplate)._new();
  1359. $recv($3)._template_($recv(theClass)._methodTemplate());
  1360. $recv($2)._announce_($recv($3)._yourself());
  1361. }
  1362. return self;
  1363. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1364. }, function($ctx1) {$ctx1.fill(self,"showMethodTemplate",{})});
  1365. //>>excludeEnd("ctx");
  1366. }; }),
  1367. $globals.HLBrowserModel);
  1368. $core.addMethod(
  1369. $core.method({
  1370. selector: "on:",
  1371. protocol: "instance creation",
  1372. //>>excludeStart("ide", pragmas.excludeIdeData);
  1373. args: ["anEnvironment"],
  1374. source: "on: anEnvironment\x0a\x0a\x09^ self new\x0a \x09environment: anEnvironment;\x0a yourself",
  1375. referencedClasses: [],
  1376. //>>excludeEnd("ide");
  1377. pragmas: [],
  1378. messageSends: ["environment:", "new", "yourself"]
  1379. }, function ($methodClass){ return function (anEnvironment){
  1380. var self=this,$self=this;
  1381. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1382. return $core.withContext(function($ctx1) {
  1383. //>>excludeEnd("ctx");
  1384. var $1;
  1385. $1=$self._new();
  1386. $recv($1)._environment_(anEnvironment);
  1387. return $recv($1)._yourself();
  1388. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1389. }, function($ctx1) {$ctx1.fill(self,"on:",{anEnvironment:anEnvironment})});
  1390. //>>excludeEnd("ctx");
  1391. }; }),
  1392. $globals.HLBrowserModel.a$cls);
  1393. $core.addClass("HLClassCache", $globals.Object, "Helios-Browser");
  1394. $core.setSlots($globals.HLClassCache, ["class", "selectorsCache", "overrideCache", "overriddenCache"]);
  1395. $core.addMethod(
  1396. $core.method({
  1397. selector: "invalidateChildrenSelector:",
  1398. protocol: "actions",
  1399. //>>excludeStart("ide", pragmas.excludeIdeData);
  1400. args: ["aSelector"],
  1401. source: "invalidateChildrenSelector: aSelector\x0a\x09self theClass subclasses do: [ :each |\x0a \x09(self selectorsCache cacheFor: each)\x0a \x09removeSelector: aSelector;\x0a \x09invalidateChildrenSelector: aSelector ]",
  1402. referencedClasses: [],
  1403. //>>excludeEnd("ide");
  1404. pragmas: [],
  1405. messageSends: ["do:", "subclasses", "theClass", "removeSelector:", "cacheFor:", "selectorsCache", "invalidateChildrenSelector:"]
  1406. }, function ($methodClass){ return function (aSelector){
  1407. var self=this,$self=this;
  1408. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1409. return $core.withContext(function($ctx1) {
  1410. //>>excludeEnd("ctx");
  1411. var $1;
  1412. $recv($recv($self._theClass())._subclasses())._do_((function(each){
  1413. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1414. return $core.withContext(function($ctx2) {
  1415. //>>excludeEnd("ctx");
  1416. $1=$recv($self._selectorsCache())._cacheFor_(each);
  1417. $recv($1)._removeSelector_(aSelector);
  1418. return $recv($1)._invalidateChildrenSelector_(aSelector);
  1419. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1420. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,1)});
  1421. //>>excludeEnd("ctx");
  1422. }));
  1423. return self;
  1424. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1425. }, function($ctx1) {$ctx1.fill(self,"invalidateChildrenSelector:",{aSelector:aSelector})});
  1426. //>>excludeEnd("ctx");
  1427. }; }),
  1428. $globals.HLClassCache);
  1429. $core.addMethod(
  1430. $core.method({
  1431. selector: "invalidateParentSelector:",
  1432. protocol: "actions",
  1433. //>>excludeStart("ide", pragmas.excludeIdeData);
  1434. args: ["aSelector"],
  1435. source: "invalidateParentSelector: aSelector\x0a\x09self theClass superclass ifNotNil: [\x0a \x09(self selectorsCache cacheFor: self theClass superclass)\x0a \x09removeSelector: aSelector;\x0a\x09\x09\x09invalidateParentSelector: aSelector ]",
  1436. referencedClasses: [],
  1437. //>>excludeEnd("ide");
  1438. pragmas: [],
  1439. messageSends: ["ifNotNil:", "superclass", "theClass", "removeSelector:", "cacheFor:", "selectorsCache", "invalidateParentSelector:"]
  1440. }, function ($methodClass){ return function (aSelector){
  1441. var self=this,$self=this;
  1442. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1443. return $core.withContext(function($ctx1) {
  1444. //>>excludeEnd("ctx");
  1445. var $1,$2;
  1446. $1=[$recv([$self._theClass()
  1447. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1448. ,$ctx1.sendIdx["theClass"]=1
  1449. //>>excludeEnd("ctx");
  1450. ][0])._superclass()
  1451. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1452. ,$ctx1.sendIdx["superclass"]=1
  1453. //>>excludeEnd("ctx");
  1454. ][0];
  1455. if($1 == null || $1.a$nil){
  1456. $1;
  1457. } else {
  1458. $2=$recv($self._selectorsCache())._cacheFor_($recv($self._theClass())._superclass());
  1459. $recv($2)._removeSelector_(aSelector);
  1460. $recv($2)._invalidateParentSelector_(aSelector);
  1461. }
  1462. return self;
  1463. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1464. }, function($ctx1) {$ctx1.fill(self,"invalidateParentSelector:",{aSelector:aSelector})});
  1465. //>>excludeEnd("ctx");
  1466. }; }),
  1467. $globals.HLClassCache);
  1468. $core.addMethod(
  1469. $core.method({
  1470. selector: "invalidateSelector:",
  1471. protocol: "actions",
  1472. //>>excludeStart("ide", pragmas.excludeIdeData);
  1473. args: ["aSelector"],
  1474. source: "invalidateSelector: aSelector\x0a\x09self \x0a \x09invalidateParentSelector: aSelector;\x0a invalidateChildrenSelector: aSelector;\x0a removeSelector: aSelector",
  1475. referencedClasses: [],
  1476. //>>excludeEnd("ide");
  1477. pragmas: [],
  1478. messageSends: ["invalidateParentSelector:", "invalidateChildrenSelector:", "removeSelector:"]
  1479. }, function ($methodClass){ return function (aSelector){
  1480. var self=this,$self=this;
  1481. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1482. return $core.withContext(function($ctx1) {
  1483. //>>excludeEnd("ctx");
  1484. $self._invalidateParentSelector_(aSelector);
  1485. $self._invalidateChildrenSelector_(aSelector);
  1486. $self._removeSelector_(aSelector);
  1487. return self;
  1488. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1489. }, function($ctx1) {$ctx1.fill(self,"invalidateSelector:",{aSelector:aSelector})});
  1490. //>>excludeEnd("ctx");
  1491. }; }),
  1492. $globals.HLClassCache);
  1493. $core.addMethod(
  1494. $core.method({
  1495. selector: "isOverridden:",
  1496. protocol: "testing",
  1497. //>>excludeStart("ide", pragmas.excludeIdeData);
  1498. args: ["aMethod"],
  1499. source: "isOverridden: aMethod\x0a\x09^ self overriddenCache \x0a \x09at: aMethod selector\x0a \x09ifAbsentPut: [ aMethod isOverridden ]",
  1500. referencedClasses: [],
  1501. //>>excludeEnd("ide");
  1502. pragmas: [],
  1503. messageSends: ["at:ifAbsentPut:", "overriddenCache", "selector", "isOverridden"]
  1504. }, function ($methodClass){ return function (aMethod){
  1505. var self=this,$self=this;
  1506. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1507. return $core.withContext(function($ctx1) {
  1508. //>>excludeEnd("ctx");
  1509. return $recv($self._overriddenCache())._at_ifAbsentPut_($recv(aMethod)._selector(),(function(){
  1510. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1511. return $core.withContext(function($ctx2) {
  1512. //>>excludeEnd("ctx");
  1513. return $recv(aMethod)._isOverridden();
  1514. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1515. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
  1516. //>>excludeEnd("ctx");
  1517. }));
  1518. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1519. }, function($ctx1) {$ctx1.fill(self,"isOverridden:",{aMethod:aMethod})});
  1520. //>>excludeEnd("ctx");
  1521. }; }),
  1522. $globals.HLClassCache);
  1523. $core.addMethod(
  1524. $core.method({
  1525. selector: "isOverride:",
  1526. protocol: "testing",
  1527. //>>excludeStart("ide", pragmas.excludeIdeData);
  1528. args: ["aMethod"],
  1529. source: "isOverride: aMethod\x0a\x09^ self overrideCache\x0a \x09at: aMethod selector\x0a \x09ifAbsentPut: [ aMethod isOverride ]",
  1530. referencedClasses: [],
  1531. //>>excludeEnd("ide");
  1532. pragmas: [],
  1533. messageSends: ["at:ifAbsentPut:", "overrideCache", "selector", "isOverride"]
  1534. }, function ($methodClass){ return function (aMethod){
  1535. var self=this,$self=this;
  1536. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1537. return $core.withContext(function($ctx1) {
  1538. //>>excludeEnd("ctx");
  1539. return $recv($self._overrideCache())._at_ifAbsentPut_($recv(aMethod)._selector(),(function(){
  1540. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1541. return $core.withContext(function($ctx2) {
  1542. //>>excludeEnd("ctx");
  1543. return $recv(aMethod)._isOverride();
  1544. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1545. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
  1546. //>>excludeEnd("ctx");
  1547. }));
  1548. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1549. }, function($ctx1) {$ctx1.fill(self,"isOverride:",{aMethod:aMethod})});
  1550. //>>excludeEnd("ctx");
  1551. }; }),
  1552. $globals.HLClassCache);
  1553. $core.addMethod(
  1554. $core.method({
  1555. selector: "overriddenCache",
  1556. protocol: "accessing",
  1557. //>>excludeStart("ide", pragmas.excludeIdeData);
  1558. args: [],
  1559. source: "overriddenCache\x0a\x09^ overriddenCache ifNil: [ overriddenCache := HashedCollection new ]",
  1560. referencedClasses: ["HashedCollection"],
  1561. //>>excludeEnd("ide");
  1562. pragmas: [],
  1563. messageSends: ["ifNil:", "new"]
  1564. }, function ($methodClass){ return function (){
  1565. var self=this,$self=this;
  1566. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1567. return $core.withContext(function($ctx1) {
  1568. //>>excludeEnd("ctx");
  1569. var $1;
  1570. $1=$self.overriddenCache;
  1571. if($1 == null || $1.a$nil){
  1572. $self.overriddenCache=$recv($globals.HashedCollection)._new();
  1573. return $self.overriddenCache;
  1574. } else {
  1575. return $1;
  1576. }
  1577. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1578. }, function($ctx1) {$ctx1.fill(self,"overriddenCache",{})});
  1579. //>>excludeEnd("ctx");
  1580. }; }),
  1581. $globals.HLClassCache);
  1582. $core.addMethod(
  1583. $core.method({
  1584. selector: "overrideCache",
  1585. protocol: "accessing",
  1586. //>>excludeStart("ide", pragmas.excludeIdeData);
  1587. args: [],
  1588. source: "overrideCache\x0a\x09^ overrideCache ifNil: [ overrideCache := HashedCollection new ]",
  1589. referencedClasses: ["HashedCollection"],
  1590. //>>excludeEnd("ide");
  1591. pragmas: [],
  1592. messageSends: ["ifNil:", "new"]
  1593. }, function ($methodClass){ return function (){
  1594. var self=this,$self=this;
  1595. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1596. return $core.withContext(function($ctx1) {
  1597. //>>excludeEnd("ctx");
  1598. var $1;
  1599. $1=$self.overrideCache;
  1600. if($1 == null || $1.a$nil){
  1601. $self.overrideCache=$recv($globals.HashedCollection)._new();
  1602. return $self.overrideCache;
  1603. } else {
  1604. return $1;
  1605. }
  1606. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1607. }, function($ctx1) {$ctx1.fill(self,"overrideCache",{})});
  1608. //>>excludeEnd("ctx");
  1609. }; }),
  1610. $globals.HLClassCache);
  1611. $core.addMethod(
  1612. $core.method({
  1613. selector: "removeSelector:",
  1614. protocol: "private",
  1615. //>>excludeStart("ide", pragmas.excludeIdeData);
  1616. args: ["aSelector"],
  1617. source: "removeSelector: aSelector\x0a\x09self overriddenCache \x0a \x09removeKey: aSelector\x0a ifAbsent: [ ].\x0a self overrideCache \x0a \x09removeKey: aSelector\x0a ifAbsent: [ ]",
  1618. referencedClasses: [],
  1619. //>>excludeEnd("ide");
  1620. pragmas: [],
  1621. messageSends: ["removeKey:ifAbsent:", "overriddenCache", "overrideCache"]
  1622. }, function ($methodClass){ return function (aSelector){
  1623. var self=this,$self=this;
  1624. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1625. return $core.withContext(function($ctx1) {
  1626. //>>excludeEnd("ctx");
  1627. [$recv($self._overriddenCache())._removeKey_ifAbsent_(aSelector,(function(){
  1628. }))
  1629. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1630. ,$ctx1.sendIdx["removeKey:ifAbsent:"]=1
  1631. //>>excludeEnd("ctx");
  1632. ][0];
  1633. $recv($self._overrideCache())._removeKey_ifAbsent_(aSelector,(function(){
  1634. }));
  1635. return self;
  1636. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1637. }, function($ctx1) {$ctx1.fill(self,"removeSelector:",{aSelector:aSelector})});
  1638. //>>excludeEnd("ctx");
  1639. }; }),
  1640. $globals.HLClassCache);
  1641. $core.addMethod(
  1642. $core.method({
  1643. selector: "selectorsCache",
  1644. protocol: "accessing",
  1645. //>>excludeStart("ide", pragmas.excludeIdeData);
  1646. args: [],
  1647. source: "selectorsCache\x0a\x09^ selectorsCache",
  1648. referencedClasses: [],
  1649. //>>excludeEnd("ide");
  1650. pragmas: [],
  1651. messageSends: []
  1652. }, function ($methodClass){ return function (){
  1653. var self=this,$self=this;
  1654. return $self.selectorsCache;
  1655. }; }),
  1656. $globals.HLClassCache);
  1657. $core.addMethod(
  1658. $core.method({
  1659. selector: "selectorsCache:",
  1660. protocol: "accessing",
  1661. //>>excludeStart("ide", pragmas.excludeIdeData);
  1662. args: ["aCache"],
  1663. source: "selectorsCache: aCache\x0a\x09selectorsCache := aCache",
  1664. referencedClasses: [],
  1665. //>>excludeEnd("ide");
  1666. pragmas: [],
  1667. messageSends: []
  1668. }, function ($methodClass){ return function (aCache){
  1669. var self=this,$self=this;
  1670. $self.selectorsCache=aCache;
  1671. return self;
  1672. }; }),
  1673. $globals.HLClassCache);
  1674. $core.addMethod(
  1675. $core.method({
  1676. selector: "theClass",
  1677. protocol: "accessing",
  1678. //>>excludeStart("ide", pragmas.excludeIdeData);
  1679. args: [],
  1680. source: "theClass\x0a\x09^ class",
  1681. referencedClasses: [],
  1682. //>>excludeEnd("ide");
  1683. pragmas: [],
  1684. messageSends: []
  1685. }, function ($methodClass){ return function (){
  1686. var self=this,$self=this;
  1687. return $self.class;
  1688. }; }),
  1689. $globals.HLClassCache);
  1690. $core.addMethod(
  1691. $core.method({
  1692. selector: "theClass:",
  1693. protocol: "accessing",
  1694. //>>excludeStart("ide", pragmas.excludeIdeData);
  1695. args: ["aClass"],
  1696. source: "theClass: aClass\x0a\x09class := aClass",
  1697. referencedClasses: [],
  1698. //>>excludeEnd("ide");
  1699. pragmas: [],
  1700. messageSends: []
  1701. }, function ($methodClass){ return function (aClass){
  1702. var self=this,$self=this;
  1703. $self.class=aClass;
  1704. return self;
  1705. }; }),
  1706. $globals.HLClassCache);
  1707. $core.addMethod(
  1708. $core.method({
  1709. selector: "on:selectorsCache:",
  1710. protocol: "instance creation",
  1711. //>>excludeStart("ide", pragmas.excludeIdeData);
  1712. args: ["aClass", "aSelectorsCache"],
  1713. source: "on: aClass selectorsCache: aSelectorsCache\x0a\x09^ self new\x0a \x09theClass: aClass;\x0a selectorsCache: aSelectorsCache;\x0a yourself",
  1714. referencedClasses: [],
  1715. //>>excludeEnd("ide");
  1716. pragmas: [],
  1717. messageSends: ["theClass:", "new", "selectorsCache:", "yourself"]
  1718. }, function ($methodClass){ return function (aClass,aSelectorsCache){
  1719. var self=this,$self=this;
  1720. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1721. return $core.withContext(function($ctx1) {
  1722. //>>excludeEnd("ctx");
  1723. var $1;
  1724. $1=$self._new();
  1725. $recv($1)._theClass_(aClass);
  1726. $recv($1)._selectorsCache_(aSelectorsCache);
  1727. return $recv($1)._yourself();
  1728. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1729. }, function($ctx1) {$ctx1.fill(self,"on:selectorsCache:",{aClass:aClass,aSelectorsCache:aSelectorsCache})});
  1730. //>>excludeEnd("ctx");
  1731. }; }),
  1732. $globals.HLClassCache.a$cls);
  1733. $core.addClass("HLClassesListWidget", $globals.HLToolListWidget, "Helios-Browser");
  1734. //>>excludeStart("ide", pragmas.excludeIdeData);
  1735. $globals.HLClassesListWidget.comment="I render a list of classes in the selected package.";
  1736. //>>excludeEnd("ide");
  1737. $core.addMethod(
  1738. $core.method({
  1739. selector: "cssClassForItem:",
  1740. protocol: "accessing",
  1741. //>>excludeStart("ide", pragmas.excludeIdeData);
  1742. args: ["aClass"],
  1743. source: "cssClassForItem: aClass\x0a\x09^ aClass theNonMetaClass classTag",
  1744. referencedClasses: [],
  1745. //>>excludeEnd("ide");
  1746. pragmas: [],
  1747. messageSends: ["classTag", "theNonMetaClass"]
  1748. }, function ($methodClass){ return function (aClass){
  1749. var self=this,$self=this;
  1750. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1751. return $core.withContext(function($ctx1) {
  1752. //>>excludeEnd("ctx");
  1753. return $recv($recv(aClass)._theNonMetaClass())._classTag();
  1754. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1755. }, function($ctx1) {$ctx1.fill(self,"cssClassForItem:",{aClass:aClass})});
  1756. //>>excludeEnd("ctx");
  1757. }; }),
  1758. $globals.HLClassesListWidget);
  1759. $core.addMethod(
  1760. $core.method({
  1761. selector: "focus",
  1762. protocol: "actions",
  1763. //>>excludeStart("ide", pragmas.excludeIdeData);
  1764. args: [],
  1765. source: "focus\x0a\x09super focus.\x0a\x09\x0a\x09self selectedItem \x0a\x09\x09ifNil: [ self model showClassTemplate ]",
  1766. referencedClasses: [],
  1767. //>>excludeEnd("ide");
  1768. pragmas: [],
  1769. messageSends: ["focus", "ifNil:", "selectedItem", "showClassTemplate", "model"]
  1770. }, function ($methodClass){ return function (){
  1771. var self=this,$self=this;
  1772. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1773. return $core.withContext(function($ctx1) {
  1774. //>>excludeEnd("ctx");
  1775. var $1;
  1776. [(
  1777. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1778. $ctx1.supercall = true,
  1779. //>>excludeEnd("ctx");
  1780. ($methodClass.superclass||$boot.nilAsClass).fn.prototype._focus.call($self))
  1781. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1782. ,$ctx1.supercall = false
  1783. //>>excludeEnd("ctx");
  1784. ][0];
  1785. $1=$self._selectedItem();
  1786. if($1 == null || $1.a$nil){
  1787. $recv($self._model())._showClassTemplate();
  1788. } else {
  1789. $1;
  1790. }
  1791. return self;
  1792. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1793. }, function($ctx1) {$ctx1.fill(self,"focus",{})});
  1794. //>>excludeEnd("ctx");
  1795. }; }),
  1796. $globals.HLClassesListWidget);
  1797. $core.addMethod(
  1798. $core.method({
  1799. selector: "focusMethodsListWidget",
  1800. protocol: "actions",
  1801. //>>excludeStart("ide", pragmas.excludeIdeData);
  1802. args: [],
  1803. source: "focusMethodsListWidget\x0a\x09self model announcer announce: HLMethodsListFocus new",
  1804. referencedClasses: ["HLMethodsListFocus"],
  1805. //>>excludeEnd("ide");
  1806. pragmas: [],
  1807. messageSends: ["announce:", "announcer", "model", "new"]
  1808. }, function ($methodClass){ return function (){
  1809. var self=this,$self=this;
  1810. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1811. return $core.withContext(function($ctx1) {
  1812. //>>excludeEnd("ctx");
  1813. $recv($recv($self._model())._announcer())._announce_($recv($globals.HLMethodsListFocus)._new());
  1814. return self;
  1815. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1816. }, function($ctx1) {$ctx1.fill(self,"focusMethodsListWidget",{})});
  1817. //>>excludeEnd("ctx");
  1818. }; }),
  1819. $globals.HLClassesListWidget);
  1820. $core.addMethod(
  1821. $core.method({
  1822. selector: "focusProtocolsListWidget",
  1823. protocol: "actions",
  1824. //>>excludeStart("ide", pragmas.excludeIdeData);
  1825. args: [],
  1826. source: "focusProtocolsListWidget\x0a\x09self model announcer announce: HLProtocolsListFocus new",
  1827. referencedClasses: ["HLProtocolsListFocus"],
  1828. //>>excludeEnd("ide");
  1829. pragmas: [],
  1830. messageSends: ["announce:", "announcer", "model", "new"]
  1831. }, function ($methodClass){ return function (){
  1832. var self=this,$self=this;
  1833. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1834. return $core.withContext(function($ctx1) {
  1835. //>>excludeEnd("ctx");
  1836. $recv($recv($self._model())._announcer())._announce_($recv($globals.HLProtocolsListFocus)._new());
  1837. return self;
  1838. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1839. }, function($ctx1) {$ctx1.fill(self,"focusProtocolsListWidget",{})});
  1840. //>>excludeEnd("ctx");
  1841. }; }),
  1842. $globals.HLClassesListWidget);
  1843. $core.addMethod(
  1844. $core.method({
  1845. selector: "label",
  1846. protocol: "accessing",
  1847. //>>excludeStart("ide", pragmas.excludeIdeData);
  1848. args: [],
  1849. source: "label\x0a\x09^ 'Classes'",
  1850. referencedClasses: [],
  1851. //>>excludeEnd("ide");
  1852. pragmas: [],
  1853. messageSends: []
  1854. }, function ($methodClass){ return function (){
  1855. var self=this,$self=this;
  1856. return "Classes";
  1857. }; }),
  1858. $globals.HLClassesListWidget);
  1859. $core.addMethod(
  1860. $core.method({
  1861. selector: "observeModel",
  1862. protocol: "actions",
  1863. //>>excludeStart("ide", pragmas.excludeIdeData);
  1864. args: [],
  1865. source: "observeModel\x0a\x09self model announcer \x0a \x09on: HLPackageSelected\x0a\x09\x09send: #onPackageSelected:\x0a\x09\x09to: self;\x0a\x09\x09\x0a \x09on: HLShowInstanceToggled \x0a\x09\x09send: #onShowInstanceToggled\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: HLShowCommentToggled\x0a\x09\x09send: #onShowCommentToggled\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: HLClassSelected\x0a\x09\x09send: #onClassSelected:\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: HLClassesFocusRequested\x0a\x09\x09send: #onClassesFocusRequested\x0a\x09\x09to: self",
  1866. referencedClasses: ["HLPackageSelected", "HLShowInstanceToggled", "HLShowCommentToggled", "HLClassSelected", "HLClassesFocusRequested"],
  1867. //>>excludeEnd("ide");
  1868. pragmas: [],
  1869. messageSends: ["on:send:to:", "announcer", "model"]
  1870. }, function ($methodClass){ return function (){
  1871. var self=this,$self=this;
  1872. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1873. return $core.withContext(function($ctx1) {
  1874. //>>excludeEnd("ctx");
  1875. var $1;
  1876. $1=$recv($self._model())._announcer();
  1877. [$recv($1)._on_send_to_($globals.HLPackageSelected,"onPackageSelected:",self)
  1878. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1879. ,$ctx1.sendIdx["on:send:to:"]=1
  1880. //>>excludeEnd("ctx");
  1881. ][0];
  1882. [$recv($1)._on_send_to_($globals.HLShowInstanceToggled,"onShowInstanceToggled",self)
  1883. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1884. ,$ctx1.sendIdx["on:send:to:"]=2
  1885. //>>excludeEnd("ctx");
  1886. ][0];
  1887. [$recv($1)._on_send_to_($globals.HLShowCommentToggled,"onShowCommentToggled",self)
  1888. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1889. ,$ctx1.sendIdx["on:send:to:"]=3
  1890. //>>excludeEnd("ctx");
  1891. ][0];
  1892. [$recv($1)._on_send_to_($globals.HLClassSelected,"onClassSelected:",self)
  1893. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1894. ,$ctx1.sendIdx["on:send:to:"]=4
  1895. //>>excludeEnd("ctx");
  1896. ][0];
  1897. $recv($1)._on_send_to_($globals.HLClassesFocusRequested,"onClassesFocusRequested",self);
  1898. return self;
  1899. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1900. }, function($ctx1) {$ctx1.fill(self,"observeModel",{})});
  1901. //>>excludeEnd("ctx");
  1902. }; }),
  1903. $globals.HLClassesListWidget);
  1904. $core.addMethod(
  1905. $core.method({
  1906. selector: "observeSystem",
  1907. protocol: "actions",
  1908. //>>excludeStart("ide", pragmas.excludeIdeData);
  1909. args: [],
  1910. source: "observeSystem\x0a\x09self model systemAnnouncer\x0a \x09on: ClassAdded\x0a\x09\x09send: #onClassAdded:\x0a\x09\x09to: self;\x0a\x09\x09\x0a on: ClassRemoved\x0a send: #onClassRemoved:\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: ClassMoved\x0a\x09\x09send: #onClassMoved:\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: ClassRenamed\x0a\x09\x09send: #onClassRenamed:\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: ClassMigrated\x0a\x09\x09send: #onClassMigrated:\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: ClassCommentChanged\x0a send: #onClassCommentChanged:\x0a\x09\x09to: self",
  1911. referencedClasses: ["ClassAdded", "ClassRemoved", "ClassMoved", "ClassRenamed", "ClassMigrated", "ClassCommentChanged"],
  1912. //>>excludeEnd("ide");
  1913. pragmas: [],
  1914. messageSends: ["on:send:to:", "systemAnnouncer", "model"]
  1915. }, function ($methodClass){ return function (){
  1916. var self=this,$self=this;
  1917. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1918. return $core.withContext(function($ctx1) {
  1919. //>>excludeEnd("ctx");
  1920. var $1;
  1921. $1=$recv($self._model())._systemAnnouncer();
  1922. [$recv($1)._on_send_to_($globals.ClassAdded,"onClassAdded:",self)
  1923. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1924. ,$ctx1.sendIdx["on:send:to:"]=1
  1925. //>>excludeEnd("ctx");
  1926. ][0];
  1927. [$recv($1)._on_send_to_($globals.ClassRemoved,"onClassRemoved:",self)
  1928. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1929. ,$ctx1.sendIdx["on:send:to:"]=2
  1930. //>>excludeEnd("ctx");
  1931. ][0];
  1932. [$recv($1)._on_send_to_($globals.ClassMoved,"onClassMoved:",self)
  1933. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1934. ,$ctx1.sendIdx["on:send:to:"]=3
  1935. //>>excludeEnd("ctx");
  1936. ][0];
  1937. [$recv($1)._on_send_to_($globals.ClassRenamed,"onClassRenamed:",self)
  1938. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1939. ,$ctx1.sendIdx["on:send:to:"]=4
  1940. //>>excludeEnd("ctx");
  1941. ][0];
  1942. [$recv($1)._on_send_to_($globals.ClassMigrated,"onClassMigrated:",self)
  1943. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1944. ,$ctx1.sendIdx["on:send:to:"]=5
  1945. //>>excludeEnd("ctx");
  1946. ][0];
  1947. $recv($1)._on_send_to_($globals.ClassCommentChanged,"onClassCommentChanged:",self);
  1948. return self;
  1949. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1950. }, function($ctx1) {$ctx1.fill(self,"observeSystem",{})});
  1951. //>>excludeEnd("ctx");
  1952. }; }),
  1953. $globals.HLClassesListWidget);
  1954. $core.addMethod(
  1955. $core.method({
  1956. selector: "onClassAdded:",
  1957. protocol: "reactions",
  1958. //>>excludeStart("ide", pragmas.excludeIdeData);
  1959. args: ["anAnnouncement"],
  1960. source: "onClassAdded: anAnnouncement\x0a\x09| class |\x0a\x09\x0a\x09class := anAnnouncement theClass.\x0a\x09\x0a\x09(class package = self model selectedPackage or: [\x0a\x09\x09self items includes: class ]) ifFalse: [ ^ self ].\x0a \x0a self \x0a\x09\x09setItemsForSelectedPackage;\x0a\x09\x09refresh;\x0a\x09\x09focus",
  1961. referencedClasses: [],
  1962. //>>excludeEnd("ide");
  1963. pragmas: [],
  1964. messageSends: ["theClass", "ifFalse:", "or:", "=", "package", "selectedPackage", "model", "includes:", "items", "setItemsForSelectedPackage", "refresh", "focus"]
  1965. }, function ($methodClass){ return function (anAnnouncement){
  1966. var self=this,$self=this;
  1967. var class_;
  1968. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1969. return $core.withContext(function($ctx1) {
  1970. //>>excludeEnd("ctx");
  1971. var $1;
  1972. class_=$recv(anAnnouncement)._theClass();
  1973. if($core.assert($recv($recv(class_)._package()).__eq($recv($self._model())._selectedPackage()))){
  1974. $1=true;
  1975. } else {
  1976. $1=$recv($self._items())._includes_(class_);
  1977. }
  1978. if(!$core.assert($1)){
  1979. return self;
  1980. }
  1981. $self._setItemsForSelectedPackage();
  1982. $self._refresh();
  1983. $self._focus();
  1984. return self;
  1985. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1986. }, function($ctx1) {$ctx1.fill(self,"onClassAdded:",{anAnnouncement:anAnnouncement,class_:class_})});
  1987. //>>excludeEnd("ctx");
  1988. }; }),
  1989. $globals.HLClassesListWidget);
  1990. $core.addMethod(
  1991. $core.method({
  1992. selector: "onClassCommentChanged:",
  1993. protocol: "reactions",
  1994. //>>excludeStart("ide", pragmas.excludeIdeData);
  1995. args: ["anAnnouncement"],
  1996. source: "onClassCommentChanged: anAnnouncement\x0a\x09| class |\x0a\x09class := anAnnouncement theClass.\x0a\x0a\x09class package = self model selectedPackage ifFalse: [ ^ self ].\x0a \x0a self \x0a\x09\x09refresh;\x0a\x09\x09focus",
  1997. referencedClasses: [],
  1998. //>>excludeEnd("ide");
  1999. pragmas: [],
  2000. messageSends: ["theClass", "ifFalse:", "=", "package", "selectedPackage", "model", "refresh", "focus"]
  2001. }, function ($methodClass){ return function (anAnnouncement){
  2002. var self=this,$self=this;
  2003. var class_;
  2004. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2005. return $core.withContext(function($ctx1) {
  2006. //>>excludeEnd("ctx");
  2007. class_=$recv(anAnnouncement)._theClass();
  2008. if(!$core.assert($recv($recv(class_)._package()).__eq($recv($self._model())._selectedPackage()))){
  2009. return self;
  2010. }
  2011. $self._refresh();
  2012. $self._focus();
  2013. return self;
  2014. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2015. }, function($ctx1) {$ctx1.fill(self,"onClassCommentChanged:",{anAnnouncement:anAnnouncement,class_:class_})});
  2016. //>>excludeEnd("ctx");
  2017. }; }),
  2018. $globals.HLClassesListWidget);
  2019. $core.addMethod(
  2020. $core.method({
  2021. selector: "onClassMigrated:",
  2022. protocol: "reactions",
  2023. //>>excludeStart("ide", pragmas.excludeIdeData);
  2024. args: ["anAnnouncement"],
  2025. source: "onClassMigrated: anAnnouncement\x0a\x09| class oldClass |\x0a\x09\x0a\x09class := anAnnouncement theClass.\x0a\x09oldClass := anAnnouncement oldClass.\x0a\x0a\x09(self items includes: oldClass) ifFalse: [ ^ self ].\x0a\x0a\x09self model selectedClass = oldClass ifTrue: [\x0a\x09\x09self model selectedClass: class ].\x0a \x0a self setItemsForSelectedPackage.\x0a self \x0a\x09\x09refresh;\x0a\x09\x09focus",
  2026. referencedClasses: [],
  2027. //>>excludeEnd("ide");
  2028. pragmas: [],
  2029. messageSends: ["theClass", "oldClass", "ifFalse:", "includes:", "items", "ifTrue:", "=", "selectedClass", "model", "selectedClass:", "setItemsForSelectedPackage", "refresh", "focus"]
  2030. }, function ($methodClass){ return function (anAnnouncement){
  2031. var self=this,$self=this;
  2032. var class_,oldClass;
  2033. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2034. return $core.withContext(function($ctx1) {
  2035. //>>excludeEnd("ctx");
  2036. class_=$recv(anAnnouncement)._theClass();
  2037. oldClass=$recv(anAnnouncement)._oldClass();
  2038. if(!$core.assert($recv($self._items())._includes_(oldClass))){
  2039. return self;
  2040. }
  2041. if($core.assert($recv($recv([$self._model()
  2042. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2043. ,$ctx1.sendIdx["model"]=1
  2044. //>>excludeEnd("ctx");
  2045. ][0])._selectedClass()).__eq(oldClass))){
  2046. $recv($self._model())._selectedClass_(class_);
  2047. }
  2048. $self._setItemsForSelectedPackage();
  2049. $self._refresh();
  2050. $self._focus();
  2051. return self;
  2052. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2053. }, function($ctx1) {$ctx1.fill(self,"onClassMigrated:",{anAnnouncement:anAnnouncement,class_:class_,oldClass:oldClass})});
  2054. //>>excludeEnd("ctx");
  2055. }; }),
  2056. $globals.HLClassesListWidget);
  2057. $core.addMethod(
  2058. $core.method({
  2059. selector: "onClassMoved:",
  2060. protocol: "reactions",
  2061. //>>excludeStart("ide", pragmas.excludeIdeData);
  2062. args: ["anAnnouncement"],
  2063. source: "onClassMoved: anAnnouncement\x0a\x09| class oldPackage |\x0a\x09\x0a\x09class := anAnnouncement theClass.\x0a\x09oldPackage := anAnnouncement oldPackage.\x0a\x09\x0a\x09(oldPackage = self model selectedPackage or: [\x0a\x09\x09class package = self model selectedPackage ])\x0a\x09\x09\x09ifFalse: [ ^ self ].\x0a\x09\x0a\x09oldPackage = self model selectedPackage ifTrue: [ \x0a\x09\x09self \x0a\x09\x09\x09selectedItem: nil;\x0a\x09\x09\x09selectItem: nil ].\x0a \x0a self setItemsForSelectedPackage.\x0a self \x09\x0a\x09\x09refresh;\x0a\x09\x09focus",
  2064. referencedClasses: [],
  2065. //>>excludeEnd("ide");
  2066. pragmas: [],
  2067. messageSends: ["theClass", "oldPackage", "ifFalse:", "or:", "=", "selectedPackage", "model", "package", "ifTrue:", "selectedItem:", "selectItem:", "setItemsForSelectedPackage", "refresh", "focus"]
  2068. }, function ($methodClass){ return function (anAnnouncement){
  2069. var self=this,$self=this;
  2070. var class_,oldPackage;
  2071. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2072. return $core.withContext(function($ctx1) {
  2073. //>>excludeEnd("ctx");
  2074. var $1;
  2075. class_=$recv(anAnnouncement)._theClass();
  2076. oldPackage=$recv(anAnnouncement)._oldPackage();
  2077. if($core.assert([$recv(oldPackage).__eq([$recv([$self._model()
  2078. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2079. ,$ctx1.sendIdx["model"]=1
  2080. //>>excludeEnd("ctx");
  2081. ][0])._selectedPackage()
  2082. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2083. ,$ctx1.sendIdx["selectedPackage"]=1
  2084. //>>excludeEnd("ctx");
  2085. ][0])
  2086. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2087. ,$ctx1.sendIdx["="]=1
  2088. //>>excludeEnd("ctx");
  2089. ][0])){
  2090. $1=true;
  2091. } else {
  2092. $1=[$recv($recv(class_)._package()).__eq([$recv([$self._model()
  2093. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2094. ,$ctx1.sendIdx["model"]=2
  2095. //>>excludeEnd("ctx");
  2096. ][0])._selectedPackage()
  2097. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2098. ,$ctx1.sendIdx["selectedPackage"]=2
  2099. //>>excludeEnd("ctx");
  2100. ][0])
  2101. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2102. ,$ctx1.sendIdx["="]=2
  2103. //>>excludeEnd("ctx");
  2104. ][0];
  2105. }
  2106. if(!$core.assert($1)){
  2107. return self;
  2108. }
  2109. if($core.assert($recv(oldPackage).__eq($recv($self._model())._selectedPackage()))){
  2110. $self._selectedItem_(nil);
  2111. $self._selectItem_(nil);
  2112. }
  2113. $self._setItemsForSelectedPackage();
  2114. $self._refresh();
  2115. $self._focus();
  2116. return self;
  2117. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2118. }, function($ctx1) {$ctx1.fill(self,"onClassMoved:",{anAnnouncement:anAnnouncement,class_:class_,oldPackage:oldPackage})});
  2119. //>>excludeEnd("ctx");
  2120. }; }),
  2121. $globals.HLClassesListWidget);
  2122. $core.addMethod(
  2123. $core.method({
  2124. selector: "onClassRemoved:",
  2125. protocol: "reactions",
  2126. //>>excludeStart("ide", pragmas.excludeIdeData);
  2127. args: ["anAnnouncement"],
  2128. source: "onClassRemoved: anAnnouncement\x0a\x09| class |\x0a\x09class := anAnnouncement theClass.\x0a\x0a\x09class package = self model selectedPackage ifFalse: [ ^ self ].\x0a \x0a\x09self \x0a\x09\x09selectItem: nil;\x0a\x09\x09selectedItem: nil.\x0a self setItemsForSelectedPackage.\x0a self \x0a\x09\x09refresh;\x0a\x09\x09focus",
  2129. referencedClasses: [],
  2130. //>>excludeEnd("ide");
  2131. pragmas: [],
  2132. messageSends: ["theClass", "ifFalse:", "=", "package", "selectedPackage", "model", "selectItem:", "selectedItem:", "setItemsForSelectedPackage", "refresh", "focus"]
  2133. }, function ($methodClass){ return function (anAnnouncement){
  2134. var self=this,$self=this;
  2135. var class_;
  2136. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2137. return $core.withContext(function($ctx1) {
  2138. //>>excludeEnd("ctx");
  2139. class_=$recv(anAnnouncement)._theClass();
  2140. if(!$core.assert($recv($recv(class_)._package()).__eq($recv($self._model())._selectedPackage()))){
  2141. return self;
  2142. }
  2143. $self._selectItem_(nil);
  2144. $self._selectedItem_(nil);
  2145. $self._setItemsForSelectedPackage();
  2146. $self._refresh();
  2147. $self._focus();
  2148. return self;
  2149. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2150. }, function($ctx1) {$ctx1.fill(self,"onClassRemoved:",{anAnnouncement:anAnnouncement,class_:class_})});
  2151. //>>excludeEnd("ctx");
  2152. }; }),
  2153. $globals.HLClassesListWidget);
  2154. $core.addMethod(
  2155. $core.method({
  2156. selector: "onClassRenamed:",
  2157. protocol: "reactions",
  2158. //>>excludeStart("ide", pragmas.excludeIdeData);
  2159. args: ["anAnnouncement"],
  2160. source: "onClassRenamed: anAnnouncement\x0a\x09anAnnouncement theClass package = self model selectedPackage ifFalse: [ ^ self ].\x0a \x0a self setItemsForSelectedPackage.\x0a self \x0a\x09\x09refresh;\x0a\x09\x09focus",
  2161. referencedClasses: [],
  2162. //>>excludeEnd("ide");
  2163. pragmas: [],
  2164. messageSends: ["ifFalse:", "=", "package", "theClass", "selectedPackage", "model", "setItemsForSelectedPackage", "refresh", "focus"]
  2165. }, function ($methodClass){ return function (anAnnouncement){
  2166. var self=this,$self=this;
  2167. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2168. return $core.withContext(function($ctx1) {
  2169. //>>excludeEnd("ctx");
  2170. if(!$core.assert($recv($recv($recv(anAnnouncement)._theClass())._package()).__eq($recv($self._model())._selectedPackage()))){
  2171. return self;
  2172. }
  2173. $self._setItemsForSelectedPackage();
  2174. $self._refresh();
  2175. $self._focus();
  2176. return self;
  2177. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2178. }, function($ctx1) {$ctx1.fill(self,"onClassRenamed:",{anAnnouncement:anAnnouncement})});
  2179. //>>excludeEnd("ctx");
  2180. }; }),
  2181. $globals.HLClassesListWidget);
  2182. $core.addMethod(
  2183. $core.method({
  2184. selector: "onClassSelected:",
  2185. protocol: "reactions",
  2186. //>>excludeStart("ide", pragmas.excludeIdeData);
  2187. args: ["anAnnouncement"],
  2188. source: "onClassSelected: anAnnouncement\x0a\x09| selectedClass |\x0a\x09\x0a\x09anAnnouncement item ifNil: [ ^ self ].\x0a\x09\x0a\x09selectedClass := anAnnouncement item theNonMetaClass.\x0a\x09self selectedItem: selectedClass.\x0a\x0a\x09self hasFocus ifFalse: [\x0a\x09\x09self \x0a\x09\x09\x09activateItem: selectedClass;\x0a\x09\x09\x09focus ]",
  2189. referencedClasses: [],
  2190. //>>excludeEnd("ide");
  2191. pragmas: [],
  2192. messageSends: ["ifNil:", "item", "theNonMetaClass", "selectedItem:", "ifFalse:", "hasFocus", "activateItem:", "focus"]
  2193. }, function ($methodClass){ return function (anAnnouncement){
  2194. var self=this,$self=this;
  2195. var selectedClass;
  2196. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2197. return $core.withContext(function($ctx1) {
  2198. //>>excludeEnd("ctx");
  2199. var $1;
  2200. $1=[$recv(anAnnouncement)._item()
  2201. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2202. ,$ctx1.sendIdx["item"]=1
  2203. //>>excludeEnd("ctx");
  2204. ][0];
  2205. if($1 == null || $1.a$nil){
  2206. return self;
  2207. } else {
  2208. $1;
  2209. }
  2210. selectedClass=$recv($recv(anAnnouncement)._item())._theNonMetaClass();
  2211. $self._selectedItem_(selectedClass);
  2212. if(!$core.assert($self._hasFocus())){
  2213. $self._activateItem_(selectedClass);
  2214. $self._focus();
  2215. }
  2216. return self;
  2217. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2218. }, function($ctx1) {$ctx1.fill(self,"onClassSelected:",{anAnnouncement:anAnnouncement,selectedClass:selectedClass})});
  2219. //>>excludeEnd("ctx");
  2220. }; }),
  2221. $globals.HLClassesListWidget);
  2222. $core.addMethod(
  2223. $core.method({
  2224. selector: "onClassesFocusRequested",
  2225. protocol: "reactions",
  2226. //>>excludeStart("ide", pragmas.excludeIdeData);
  2227. args: [],
  2228. source: "onClassesFocusRequested\x0a\x09self focus",
  2229. referencedClasses: [],
  2230. //>>excludeEnd("ide");
  2231. pragmas: [],
  2232. messageSends: ["focus"]
  2233. }, function ($methodClass){ return function (){
  2234. var self=this,$self=this;
  2235. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2236. return $core.withContext(function($ctx1) {
  2237. //>>excludeEnd("ctx");
  2238. $self._focus();
  2239. return self;
  2240. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2241. }, function($ctx1) {$ctx1.fill(self,"onClassesFocusRequested",{})});
  2242. //>>excludeEnd("ctx");
  2243. }; }),
  2244. $globals.HLClassesListWidget);
  2245. $core.addMethod(
  2246. $core.method({
  2247. selector: "onPackageSelected:",
  2248. protocol: "reactions",
  2249. //>>excludeStart("ide", pragmas.excludeIdeData);
  2250. args: ["anAnnouncement"],
  2251. source: "onPackageSelected: anAnnouncement\x0a\x09anAnnouncement isSoft ifTrue: [ ^ self ].\x0a self selectedItem: nil.\x0a \x0a self setItemsForSelectedPackage.\x0a self refresh",
  2252. referencedClasses: [],
  2253. //>>excludeEnd("ide");
  2254. pragmas: [],
  2255. messageSends: ["ifTrue:", "isSoft", "selectedItem:", "setItemsForSelectedPackage", "refresh"]
  2256. }, function ($methodClass){ return function (anAnnouncement){
  2257. var self=this,$self=this;
  2258. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2259. return $core.withContext(function($ctx1) {
  2260. //>>excludeEnd("ctx");
  2261. if($core.assert($recv(anAnnouncement)._isSoft())){
  2262. return self;
  2263. }
  2264. $self._selectedItem_(nil);
  2265. $self._setItemsForSelectedPackage();
  2266. $self._refresh();
  2267. return self;
  2268. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2269. }, function($ctx1) {$ctx1.fill(self,"onPackageSelected:",{anAnnouncement:anAnnouncement})});
  2270. //>>excludeEnd("ctx");
  2271. }; }),
  2272. $globals.HLClassesListWidget);
  2273. $core.addMethod(
  2274. $core.method({
  2275. selector: "onShowCommentToggled",
  2276. protocol: "reactions",
  2277. //>>excludeStart("ide", pragmas.excludeIdeData);
  2278. args: [],
  2279. source: "onShowCommentToggled\x0a\x09self refresh",
  2280. referencedClasses: [],
  2281. //>>excludeEnd("ide");
  2282. pragmas: [],
  2283. messageSends: ["refresh"]
  2284. }, function ($methodClass){ return function (){
  2285. var self=this,$self=this;
  2286. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2287. return $core.withContext(function($ctx1) {
  2288. //>>excludeEnd("ctx");
  2289. $self._refresh();
  2290. return self;
  2291. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2292. }, function($ctx1) {$ctx1.fill(self,"onShowCommentToggled",{})});
  2293. //>>excludeEnd("ctx");
  2294. }; }),
  2295. $globals.HLClassesListWidget);
  2296. $core.addMethod(
  2297. $core.method({
  2298. selector: "onShowInstanceToggled",
  2299. protocol: "reactions",
  2300. //>>excludeStart("ide", pragmas.excludeIdeData);
  2301. args: [],
  2302. source: "onShowInstanceToggled\x0a\x09self refresh",
  2303. referencedClasses: [],
  2304. //>>excludeEnd("ide");
  2305. pragmas: [],
  2306. messageSends: ["refresh"]
  2307. }, function ($methodClass){ return function (){
  2308. var self=this,$self=this;
  2309. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2310. return $core.withContext(function($ctx1) {
  2311. //>>excludeEnd("ctx");
  2312. $self._refresh();
  2313. return self;
  2314. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2315. }, function($ctx1) {$ctx1.fill(self,"onShowInstanceToggled",{})});
  2316. //>>excludeEnd("ctx");
  2317. }; }),
  2318. $globals.HLClassesListWidget);
  2319. $core.addMethod(
  2320. $core.method({
  2321. selector: "renderButtonsOn:",
  2322. protocol: "rendering",
  2323. //>>excludeStart("ide", pragmas.excludeIdeData);
  2324. args: ["html"],
  2325. source: "renderButtonsOn: html\x0a\x09| checkbox |\x0a\x09\x0a\x09html div \x0a class: 'btn-group';\x0a\x09\x09at: 'role' put: 'group';\x0a\x09\x09with: [\x0a \x09html button \x0a class: (String streamContents: [ :str |\x0a \x09str nextPutAll: 'btn btn-default'.\x0a self showInstance ifTrue: [ \x0a \x09str nextPutAll: ' active' ] ]);\x0a \x09\x09\x09\x09with: 'Instance';\x0a onClick: [ self showInstance: true ].\x0a \x09\x09\x09html button\x0a \x09\x09\x09\x09class: (String streamContents: [ :str |\x0a \x09str nextPutAll: 'btn btn-default'.\x0a self showClass ifTrue: [ \x0a \x09str nextPutAll: ' active' ] ]);\x0a \x09\x09\x09\x09with: 'Class';\x0a\x09\x09\x09\x09onClick: [ self showInstance: false ] ].\x0a\x09\x09html label \x0a\x09\x09\x09class: 'checkbox';\x0a\x09\x09\x09with: [\x0a\x09\x09\x09\x09checkbox := html input\x0a\x09\x09\x09\x09\x09type: 'checkbox';\x0a\x09\x09\x09\x09\x09onClick: [ self toggleShowComment ].\x0a\x09\x09\x09\x09html with: 'Doc' ].\x0a\x09\x09\x09\x09\x0a\x09\x09self showComment ifTrue: [\x0a\x09\x09\x09checkbox at: 'checked' put: 'checked' ]",
  2326. referencedClasses: ["String"],
  2327. //>>excludeEnd("ide");
  2328. pragmas: [],
  2329. messageSends: ["class:", "div", "at:put:", "with:", "button", "streamContents:", "nextPutAll:", "ifTrue:", "showInstance", "onClick:", "showInstance:", "showClass", "label", "type:", "input", "toggleShowComment", "showComment"]
  2330. }, function ($methodClass){ return function (html){
  2331. var self=this,$self=this;
  2332. var checkbox;
  2333. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2334. return $core.withContext(function($ctx1) {
  2335. //>>excludeEnd("ctx");
  2336. var $1,$2,$3,$4,$5;
  2337. $1=$recv(html)._div();
  2338. [$recv($1)._class_("btn-group")
  2339. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2340. ,$ctx1.sendIdx["class:"]=1
  2341. //>>excludeEnd("ctx");
  2342. ][0];
  2343. [$recv($1)._at_put_("role","group")
  2344. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2345. ,$ctx1.sendIdx["at:put:"]=1
  2346. //>>excludeEnd("ctx");
  2347. ][0];
  2348. [$recv($1)._with_((function(){
  2349. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2350. return $core.withContext(function($ctx2) {
  2351. //>>excludeEnd("ctx");
  2352. $2=[$recv(html)._button()
  2353. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2354. ,$ctx2.sendIdx["button"]=1
  2355. //>>excludeEnd("ctx");
  2356. ][0];
  2357. [$recv($2)._class_([$recv($globals.String)._streamContents_((function(str){
  2358. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2359. return $core.withContext(function($ctx3) {
  2360. //>>excludeEnd("ctx");
  2361. [$recv(str)._nextPutAll_("btn btn-default")
  2362. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2363. ,$ctx3.sendIdx["nextPutAll:"]=1
  2364. //>>excludeEnd("ctx");
  2365. ][0];
  2366. if($core.assert($self._showInstance())){
  2367. return [$recv(str)._nextPutAll_(" active")
  2368. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2369. ,$ctx3.sendIdx["nextPutAll:"]=2
  2370. //>>excludeEnd("ctx");
  2371. ][0];
  2372. }
  2373. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2374. }, function($ctx3) {$ctx3.fillBlock({str:str},$ctx2,2)});
  2375. //>>excludeEnd("ctx");
  2376. }))
  2377. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2378. ,$ctx2.sendIdx["streamContents:"]=1
  2379. //>>excludeEnd("ctx");
  2380. ][0])
  2381. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2382. ,$ctx2.sendIdx["class:"]=2
  2383. //>>excludeEnd("ctx");
  2384. ][0];
  2385. [$recv($2)._with_("Instance")
  2386. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2387. ,$ctx2.sendIdx["with:"]=2
  2388. //>>excludeEnd("ctx");
  2389. ][0];
  2390. [$recv($2)._onClick_((function(){
  2391. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2392. return $core.withContext(function($ctx3) {
  2393. //>>excludeEnd("ctx");
  2394. return [$self._showInstance_(true)
  2395. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2396. ,$ctx3.sendIdx["showInstance:"]=1
  2397. //>>excludeEnd("ctx");
  2398. ][0];
  2399. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2400. }, function($ctx3) {$ctx3.fillBlock({},$ctx2,4)});
  2401. //>>excludeEnd("ctx");
  2402. }))
  2403. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2404. ,$ctx2.sendIdx["onClick:"]=1
  2405. //>>excludeEnd("ctx");
  2406. ][0];
  2407. $3=$recv(html)._button();
  2408. [$recv($3)._class_($recv($globals.String)._streamContents_((function(str){
  2409. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2410. return $core.withContext(function($ctx3) {
  2411. //>>excludeEnd("ctx");
  2412. [$recv(str)._nextPutAll_("btn btn-default")
  2413. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2414. ,$ctx3.sendIdx["nextPutAll:"]=3
  2415. //>>excludeEnd("ctx");
  2416. ][0];
  2417. if($core.assert($self._showClass())){
  2418. return $recv(str)._nextPutAll_(" active");
  2419. }
  2420. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2421. }, function($ctx3) {$ctx3.fillBlock({str:str},$ctx2,5)});
  2422. //>>excludeEnd("ctx");
  2423. })))
  2424. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2425. ,$ctx2.sendIdx["class:"]=3
  2426. //>>excludeEnd("ctx");
  2427. ][0];
  2428. [$recv($3)._with_("Class")
  2429. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2430. ,$ctx2.sendIdx["with:"]=3
  2431. //>>excludeEnd("ctx");
  2432. ][0];
  2433. return [$recv($3)._onClick_((function(){
  2434. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2435. return $core.withContext(function($ctx3) {
  2436. //>>excludeEnd("ctx");
  2437. return $self._showInstance_(false);
  2438. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2439. }, function($ctx3) {$ctx3.fillBlock({},$ctx2,7)});
  2440. //>>excludeEnd("ctx");
  2441. }))
  2442. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2443. ,$ctx2.sendIdx["onClick:"]=2
  2444. //>>excludeEnd("ctx");
  2445. ][0];
  2446. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2447. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
  2448. //>>excludeEnd("ctx");
  2449. }))
  2450. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2451. ,$ctx1.sendIdx["with:"]=1
  2452. //>>excludeEnd("ctx");
  2453. ][0];
  2454. $4=$recv(html)._label();
  2455. $recv($4)._class_("checkbox");
  2456. [$recv($4)._with_((function(){
  2457. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2458. return $core.withContext(function($ctx2) {
  2459. //>>excludeEnd("ctx");
  2460. $5=$recv(html)._input();
  2461. $recv($5)._type_("checkbox");
  2462. checkbox=$recv($5)._onClick_((function(){
  2463. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2464. return $core.withContext(function($ctx3) {
  2465. //>>excludeEnd("ctx");
  2466. return $self._toggleShowComment();
  2467. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2468. }, function($ctx3) {$ctx3.fillBlock({},$ctx2,9)});
  2469. //>>excludeEnd("ctx");
  2470. }));
  2471. return $recv(html)._with_("Doc");
  2472. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2473. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,8)});
  2474. //>>excludeEnd("ctx");
  2475. }))
  2476. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2477. ,$ctx1.sendIdx["with:"]=4
  2478. //>>excludeEnd("ctx");
  2479. ][0];
  2480. if($core.assert($self._showComment())){
  2481. $recv(checkbox)._at_put_("checked","checked");
  2482. }
  2483. return self;
  2484. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2485. }, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html,checkbox:checkbox})});
  2486. //>>excludeEnd("ctx");
  2487. }; }),
  2488. $globals.HLClassesListWidget);
  2489. $core.addMethod(
  2490. $core.method({
  2491. selector: "renderItemLabel:on:",
  2492. protocol: "rendering",
  2493. //>>excludeStart("ide", pragmas.excludeIdeData);
  2494. args: ["aClassAndLevel", "html"],
  2495. source: "renderItemLabel: aClassAndLevel on: html\x0a\x09| aClass level indent |\x0a\x09aClass := aClassAndLevel first.\x0a\x09level := aClassAndLevel second.\x0a\x09indent := String fromCharCode: 160.\x0a\x09indent := indent, indent, indent, indent.\x0a\x09html span with: (String streamContents: [ :str |\x0a\x09\x09level timesRepeat: [\x0a\x09\x09\x09str nextPutAll: indent ].\x0a\x09\x09\x09str nextPutAll: aClass name ])",
  2496. referencedClasses: ["String"],
  2497. //>>excludeEnd("ide");
  2498. pragmas: [],
  2499. messageSends: ["first", "second", "fromCharCode:", ",", "with:", "span", "streamContents:", "timesRepeat:", "nextPutAll:", "name"]
  2500. }, function ($methodClass){ return function (aClassAndLevel,html){
  2501. var self=this,$self=this;
  2502. var aClass,level,indent;
  2503. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2504. return $core.withContext(function($ctx1) {
  2505. //>>excludeEnd("ctx");
  2506. aClass=$recv(aClassAndLevel)._first();
  2507. level=$recv(aClassAndLevel)._second();
  2508. indent=$recv($globals.String)._fromCharCode_((160));
  2509. indent=[$recv([$recv($recv(indent).__comma(indent)).__comma(indent)
  2510. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2511. ,$ctx1.sendIdx[","]=2
  2512. //>>excludeEnd("ctx");
  2513. ][0]).__comma(indent)
  2514. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2515. ,$ctx1.sendIdx[","]=1
  2516. //>>excludeEnd("ctx");
  2517. ][0];
  2518. $recv($recv(html)._span())._with_($recv($globals.String)._streamContents_((function(str){
  2519. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2520. return $core.withContext(function($ctx2) {
  2521. //>>excludeEnd("ctx");
  2522. $recv(level)._timesRepeat_((function(){
  2523. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2524. return $core.withContext(function($ctx3) {
  2525. //>>excludeEnd("ctx");
  2526. return [$recv(str)._nextPutAll_(indent)
  2527. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2528. ,$ctx3.sendIdx["nextPutAll:"]=1
  2529. //>>excludeEnd("ctx");
  2530. ][0];
  2531. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2532. }, function($ctx3) {$ctx3.fillBlock({},$ctx2,2)});
  2533. //>>excludeEnd("ctx");
  2534. }));
  2535. return $recv(str)._nextPutAll_($recv(aClass)._name());
  2536. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2537. }, function($ctx2) {$ctx2.fillBlock({str:str},$ctx1,1)});
  2538. //>>excludeEnd("ctx");
  2539. })));
  2540. return self;
  2541. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2542. }, function($ctx1) {$ctx1.fill(self,"renderItemLabel:on:",{aClassAndLevel:aClassAndLevel,html:html,aClass:aClass,level:level,indent:indent})});
  2543. //>>excludeEnd("ctx");
  2544. }; }),
  2545. $globals.HLClassesListWidget);
  2546. $core.addMethod(
  2547. $core.method({
  2548. selector: "renderItems:level:on:",
  2549. protocol: "rendering",
  2550. //>>excludeStart("ide", pragmas.excludeIdeData);
  2551. args: ["aCollection", "anInteger", "html"],
  2552. source: "renderItems: aCollection level: anInteger on: html\x0a aCollection do: [ :each |\x0a\x09\x09| aClass subclasses |\x0a\x09\x09aClass := each first.\x0a\x09\x09subclasses := each second.\x0a\x09\x0a\x09\x09self renderItemModel: aClass viewModel: {aClass. anInteger} on: html.\x0a\x09\x0a \x09self renderItems: subclasses level: anInteger + 1 on: html ]",
  2553. referencedClasses: [],
  2554. //>>excludeEnd("ide");
  2555. pragmas: [],
  2556. messageSends: ["do:", "first", "second", "renderItemModel:viewModel:on:", "renderItems:level:on:", "+"]
  2557. }, function ($methodClass){ return function (aCollection,anInteger,html){
  2558. var self=this,$self=this;
  2559. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2560. return $core.withContext(function($ctx1) {
  2561. //>>excludeEnd("ctx");
  2562. $recv(aCollection)._do_((function(each){
  2563. var aClass,subclasses;
  2564. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2565. return $core.withContext(function($ctx2) {
  2566. //>>excludeEnd("ctx");
  2567. aClass=$recv(each)._first();
  2568. subclasses=$recv(each)._second();
  2569. $self._renderItemModel_viewModel_on_(aClass,[aClass,anInteger],html);
  2570. return $self._renderItems_level_on_(subclasses,$recv(anInteger).__plus((1)),html);
  2571. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2572. }, function($ctx2) {$ctx2.fillBlock({each:each,aClass:aClass,subclasses:subclasses},$ctx1,1)});
  2573. //>>excludeEnd("ctx");
  2574. }));
  2575. return self;
  2576. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2577. }, function($ctx1) {$ctx1.fill(self,"renderItems:level:on:",{aCollection:aCollection,anInteger:anInteger,html:html})});
  2578. //>>excludeEnd("ctx");
  2579. }; }),
  2580. $globals.HLClassesListWidget);
  2581. $core.addMethod(
  2582. $core.method({
  2583. selector: "renderListOn:",
  2584. protocol: "rendering",
  2585. //>>excludeStart("ide", pragmas.excludeIdeData);
  2586. args: ["html"],
  2587. source: "renderListOn: html\x0a\x09self renderItems: (ClassBuilder sortClasses: self items) level: 0 on: html",
  2588. referencedClasses: ["ClassBuilder"],
  2589. //>>excludeEnd("ide");
  2590. pragmas: [],
  2591. messageSends: ["renderItems:level:on:", "sortClasses:", "items"]
  2592. }, function ($methodClass){ return function (html){
  2593. var self=this,$self=this;
  2594. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2595. return $core.withContext(function($ctx1) {
  2596. //>>excludeEnd("ctx");
  2597. $self._renderItems_level_on_($recv($globals.ClassBuilder)._sortClasses_($self._items()),(0),html);
  2598. return self;
  2599. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2600. }, function($ctx1) {$ctx1.fill(self,"renderListOn:",{html:html})});
  2601. //>>excludeEnd("ctx");
  2602. }; }),
  2603. $globals.HLClassesListWidget);
  2604. $core.addMethod(
  2605. $core.method({
  2606. selector: "reselectItem:",
  2607. protocol: "actions",
  2608. //>>excludeStart("ide", pragmas.excludeIdeData);
  2609. args: ["anItem"],
  2610. source: "reselectItem: anItem\x0a\x09self model softSelectedClass: anItem",
  2611. referencedClasses: [],
  2612. //>>excludeEnd("ide");
  2613. pragmas: [],
  2614. messageSends: ["softSelectedClass:", "model"]
  2615. }, function ($methodClass){ return function (anItem){
  2616. var self=this,$self=this;
  2617. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2618. return $core.withContext(function($ctx1) {
  2619. //>>excludeEnd("ctx");
  2620. $recv($self._model())._softSelectedClass_(anItem);
  2621. return self;
  2622. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2623. }, function($ctx1) {$ctx1.fill(self,"reselectItem:",{anItem:anItem})});
  2624. //>>excludeEnd("ctx");
  2625. }; }),
  2626. $globals.HLClassesListWidget);
  2627. $core.addMethod(
  2628. $core.method({
  2629. selector: "selectItem:",
  2630. protocol: "actions",
  2631. //>>excludeStart("ide", pragmas.excludeIdeData);
  2632. args: ["aClass"],
  2633. source: "selectItem: aClass\x0a self model selectedClass: aClass",
  2634. referencedClasses: [],
  2635. //>>excludeEnd("ide");
  2636. pragmas: [],
  2637. messageSends: ["selectedClass:", "model"]
  2638. }, function ($methodClass){ return function (aClass){
  2639. var self=this,$self=this;
  2640. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2641. return $core.withContext(function($ctx1) {
  2642. //>>excludeEnd("ctx");
  2643. $recv($self._model())._selectedClass_(aClass);
  2644. return self;
  2645. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2646. }, function($ctx1) {$ctx1.fill(self,"selectItem:",{aClass:aClass})});
  2647. //>>excludeEnd("ctx");
  2648. }; }),
  2649. $globals.HLClassesListWidget);
  2650. $core.addMethod(
  2651. $core.method({
  2652. selector: "setItemsForPackage:",
  2653. protocol: "private",
  2654. //>>excludeStart("ide", pragmas.excludeIdeData);
  2655. args: ["aPackage"],
  2656. source: "setItemsForPackage: aPackage\x0a\x09self items: (aPackage \x0a \x09ifNil: [ #() ]\x0a \x09\x09ifNotNil: [ (aPackage classes \x0a \x09collect: [ :each | each theNonMetaClass ]) asArray \x0a \x09sort: [ :a :b | a name < b name ] ]).",
  2657. referencedClasses: [],
  2658. //>>excludeEnd("ide");
  2659. pragmas: [],
  2660. messageSends: ["items:", "ifNil:ifNotNil:", "sort:", "asArray", "collect:", "classes", "theNonMetaClass", "<", "name"]
  2661. }, function ($methodClass){ return function (aPackage){
  2662. var self=this,$self=this;
  2663. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2664. return $core.withContext(function($ctx1) {
  2665. //>>excludeEnd("ctx");
  2666. var $1;
  2667. if(aPackage == null || aPackage.a$nil){
  2668. $1=[];
  2669. } else {
  2670. $1=$recv($recv($recv($recv(aPackage)._classes())._collect_((function(each){
  2671. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2672. return $core.withContext(function($ctx2) {
  2673. //>>excludeEnd("ctx");
  2674. return $recv(each)._theNonMetaClass();
  2675. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2676. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,3)});
  2677. //>>excludeEnd("ctx");
  2678. })))._asArray())._sort_((function(a,b){
  2679. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2680. return $core.withContext(function($ctx2) {
  2681. //>>excludeEnd("ctx");
  2682. return $recv([$recv(a)._name()
  2683. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2684. ,$ctx2.sendIdx["name"]=1
  2685. //>>excludeEnd("ctx");
  2686. ][0]).__lt($recv(b)._name());
  2687. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2688. }, function($ctx2) {$ctx2.fillBlock({a:a,b:b},$ctx1,4)});
  2689. //>>excludeEnd("ctx");
  2690. }));
  2691. }
  2692. $self._items_($1);
  2693. return self;
  2694. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2695. }, function($ctx1) {$ctx1.fill(self,"setItemsForPackage:",{aPackage:aPackage})});
  2696. //>>excludeEnd("ctx");
  2697. }; }),
  2698. $globals.HLClassesListWidget);
  2699. $core.addMethod(
  2700. $core.method({
  2701. selector: "setItemsForSelectedPackage",
  2702. protocol: "private",
  2703. //>>excludeStart("ide", pragmas.excludeIdeData);
  2704. args: [],
  2705. source: "setItemsForSelectedPackage\x0a\x09self setItemsForPackage: self model selectedPackage",
  2706. referencedClasses: [],
  2707. //>>excludeEnd("ide");
  2708. pragmas: [],
  2709. messageSends: ["setItemsForPackage:", "selectedPackage", "model"]
  2710. }, function ($methodClass){ return function (){
  2711. var self=this,$self=this;
  2712. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2713. return $core.withContext(function($ctx1) {
  2714. //>>excludeEnd("ctx");
  2715. $self._setItemsForPackage_($recv($self._model())._selectedPackage());
  2716. return self;
  2717. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2718. }, function($ctx1) {$ctx1.fill(self,"setItemsForSelectedPackage",{})});
  2719. //>>excludeEnd("ctx");
  2720. }; }),
  2721. $globals.HLClassesListWidget);
  2722. $core.addMethod(
  2723. $core.method({
  2724. selector: "showClass",
  2725. protocol: "testing",
  2726. //>>excludeStart("ide", pragmas.excludeIdeData);
  2727. args: [],
  2728. source: "showClass\x0a\x09^ self model showInstance not",
  2729. referencedClasses: [],
  2730. //>>excludeEnd("ide");
  2731. pragmas: [],
  2732. messageSends: ["not", "showInstance", "model"]
  2733. }, function ($methodClass){ return function (){
  2734. var self=this,$self=this;
  2735. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2736. return $core.withContext(function($ctx1) {
  2737. //>>excludeEnd("ctx");
  2738. return $recv($recv($self._model())._showInstance())._not();
  2739. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2740. }, function($ctx1) {$ctx1.fill(self,"showClass",{})});
  2741. //>>excludeEnd("ctx");
  2742. }; }),
  2743. $globals.HLClassesListWidget);
  2744. $core.addMethod(
  2745. $core.method({
  2746. selector: "showComment",
  2747. protocol: "testing",
  2748. //>>excludeStart("ide", pragmas.excludeIdeData);
  2749. args: [],
  2750. source: "showComment\x0a\x09^ self model showComment",
  2751. referencedClasses: [],
  2752. //>>excludeEnd("ide");
  2753. pragmas: [],
  2754. messageSends: ["showComment", "model"]
  2755. }, function ($methodClass){ return function (){
  2756. var self=this,$self=this;
  2757. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2758. return $core.withContext(function($ctx1) {
  2759. //>>excludeEnd("ctx");
  2760. return $recv($self._model())._showComment();
  2761. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2762. }, function($ctx1) {$ctx1.fill(self,"showComment",{})});
  2763. //>>excludeEnd("ctx");
  2764. }; }),
  2765. $globals.HLClassesListWidget);
  2766. $core.addMethod(
  2767. $core.method({
  2768. selector: "showComment:",
  2769. protocol: "actions",
  2770. //>>excludeStart("ide", pragmas.excludeIdeData);
  2771. args: ["aBoolean"],
  2772. source: "showComment: aBoolean\x0a\x09self model showComment: aBoolean",
  2773. referencedClasses: [],
  2774. //>>excludeEnd("ide");
  2775. pragmas: [],
  2776. messageSends: ["showComment:", "model"]
  2777. }, function ($methodClass){ return function (aBoolean){
  2778. var self=this,$self=this;
  2779. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2780. return $core.withContext(function($ctx1) {
  2781. //>>excludeEnd("ctx");
  2782. $recv($self._model())._showComment_(aBoolean);
  2783. return self;
  2784. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2785. }, function($ctx1) {$ctx1.fill(self,"showComment:",{aBoolean:aBoolean})});
  2786. //>>excludeEnd("ctx");
  2787. }; }),
  2788. $globals.HLClassesListWidget);
  2789. $core.addMethod(
  2790. $core.method({
  2791. selector: "showInstance",
  2792. protocol: "testing",
  2793. //>>excludeStart("ide", pragmas.excludeIdeData);
  2794. args: [],
  2795. source: "showInstance\x0a\x09^ self model showInstance",
  2796. referencedClasses: [],
  2797. //>>excludeEnd("ide");
  2798. pragmas: [],
  2799. messageSends: ["showInstance", "model"]
  2800. }, function ($methodClass){ return function (){
  2801. var self=this,$self=this;
  2802. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2803. return $core.withContext(function($ctx1) {
  2804. //>>excludeEnd("ctx");
  2805. return $recv($self._model())._showInstance();
  2806. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2807. }, function($ctx1) {$ctx1.fill(self,"showInstance",{})});
  2808. //>>excludeEnd("ctx");
  2809. }; }),
  2810. $globals.HLClassesListWidget);
  2811. $core.addMethod(
  2812. $core.method({
  2813. selector: "showInstance:",
  2814. protocol: "actions",
  2815. //>>excludeStart("ide", pragmas.excludeIdeData);
  2816. args: ["aBoolean"],
  2817. source: "showInstance: aBoolean\x0a\x09self model showInstance: aBoolean",
  2818. referencedClasses: [],
  2819. //>>excludeEnd("ide");
  2820. pragmas: [],
  2821. messageSends: ["showInstance:", "model"]
  2822. }, function ($methodClass){ return function (aBoolean){
  2823. var self=this,$self=this;
  2824. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2825. return $core.withContext(function($ctx1) {
  2826. //>>excludeEnd("ctx");
  2827. $recv($self._model())._showInstance_(aBoolean);
  2828. return self;
  2829. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2830. }, function($ctx1) {$ctx1.fill(self,"showInstance:",{aBoolean:aBoolean})});
  2831. //>>excludeEnd("ctx");
  2832. }; }),
  2833. $globals.HLClassesListWidget);
  2834. $core.addMethod(
  2835. $core.method({
  2836. selector: "toggleShowComment",
  2837. protocol: "actions",
  2838. //>>excludeStart("ide", pragmas.excludeIdeData);
  2839. args: [],
  2840. source: "toggleShowComment\x0a\x09self model showComment: self showComment not",
  2841. referencedClasses: [],
  2842. //>>excludeEnd("ide");
  2843. pragmas: [],
  2844. messageSends: ["showComment:", "model", "not", "showComment"]
  2845. }, function ($methodClass){ return function (){
  2846. var self=this,$self=this;
  2847. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2848. return $core.withContext(function($ctx1) {
  2849. //>>excludeEnd("ctx");
  2850. $recv($self._model())._showComment_($recv($self._showComment())._not());
  2851. return self;
  2852. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2853. }, function($ctx1) {$ctx1.fill(self,"toggleShowComment",{})});
  2854. //>>excludeEnd("ctx");
  2855. }; }),
  2856. $globals.HLClassesListWidget);
  2857. $core.addClass("HLDocumentationWidget", $globals.HLFocusableWidget, "Helios-Browser");
  2858. $core.setSlots($globals.HLDocumentationWidget, ["model"]);
  2859. //>>excludeStart("ide", pragmas.excludeIdeData);
  2860. $globals.HLDocumentationWidget.comment="I render the documentation for the selected class";
  2861. //>>excludeEnd("ide");
  2862. $core.addMethod(
  2863. $core.method({
  2864. selector: "defaultDocumentation",
  2865. protocol: "defaults",
  2866. //>>excludeStart("ide", pragmas.excludeIdeData);
  2867. args: [],
  2868. source: "defaultDocumentation\x0a\x09^ 'No documentation is available for this class.'",
  2869. referencedClasses: [],
  2870. //>>excludeEnd("ide");
  2871. pragmas: [],
  2872. messageSends: []
  2873. }, function ($methodClass){ return function (){
  2874. var self=this,$self=this;
  2875. return "No documentation is available for this class.";
  2876. }; }),
  2877. $globals.HLDocumentationWidget);
  2878. $core.addMethod(
  2879. $core.method({
  2880. selector: "defaultHead",
  2881. protocol: "defaults",
  2882. //>>excludeStart("ide", pragmas.excludeIdeData);
  2883. args: [],
  2884. source: "defaultHead\x0a\x09^ 'No class selected'",
  2885. referencedClasses: [],
  2886. //>>excludeEnd("ide");
  2887. pragmas: [],
  2888. messageSends: []
  2889. }, function ($methodClass){ return function (){
  2890. var self=this,$self=this;
  2891. return "No class selected";
  2892. }; }),
  2893. $globals.HLDocumentationWidget);
  2894. $core.addMethod(
  2895. $core.method({
  2896. selector: "documentation",
  2897. protocol: "accessing",
  2898. //>>excludeStart("ide", pragmas.excludeIdeData);
  2899. args: [],
  2900. source: "documentation\x0a\x09^ self selectedItem \x0a\x09\x09ifNil: [ '' ]\x0a\x09\x09ifNotNil: [ :item | item comment ifEmpty: [ self defaultDocumentation ] ]",
  2901. referencedClasses: [],
  2902. //>>excludeEnd("ide");
  2903. pragmas: [],
  2904. messageSends: ["ifNil:ifNotNil:", "selectedItem", "ifEmpty:", "comment", "defaultDocumentation"]
  2905. }, function ($methodClass){ return function (){
  2906. var self=this,$self=this;
  2907. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2908. return $core.withContext(function($ctx1) {
  2909. //>>excludeEnd("ctx");
  2910. var $1;
  2911. $1=$self._selectedItem();
  2912. if($1 == null || $1.a$nil){
  2913. return "";
  2914. } else {
  2915. var item;
  2916. item=$1;
  2917. return $recv($recv(item)._comment())._ifEmpty_((function(){
  2918. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2919. return $core.withContext(function($ctx2) {
  2920. //>>excludeEnd("ctx");
  2921. return $self._defaultDocumentation();
  2922. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2923. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,3)});
  2924. //>>excludeEnd("ctx");
  2925. }));
  2926. }
  2927. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2928. }, function($ctx1) {$ctx1.fill(self,"documentation",{})});
  2929. //>>excludeEnd("ctx");
  2930. }; }),
  2931. $globals.HLDocumentationWidget);
  2932. $core.addMethod(
  2933. $core.method({
  2934. selector: "editDocumentation",
  2935. protocol: "actions",
  2936. //>>excludeStart("ide", pragmas.excludeIdeData);
  2937. args: [],
  2938. source: "editDocumentation\x0a\x09self model editComment",
  2939. referencedClasses: [],
  2940. //>>excludeEnd("ide");
  2941. pragmas: [],
  2942. messageSends: ["editComment", "model"]
  2943. }, function ($methodClass){ return function (){
  2944. var self=this,$self=this;
  2945. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2946. return $core.withContext(function($ctx1) {
  2947. //>>excludeEnd("ctx");
  2948. $recv($self._model())._editComment();
  2949. return self;
  2950. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2951. }, function($ctx1) {$ctx1.fill(self,"editDocumentation",{})});
  2952. //>>excludeEnd("ctx");
  2953. }; }),
  2954. $globals.HLDocumentationWidget);
  2955. $core.addMethod(
  2956. $core.method({
  2957. selector: "head",
  2958. protocol: "accessing",
  2959. //>>excludeStart("ide", pragmas.excludeIdeData);
  2960. args: [],
  2961. source: "head\x0a\x09^ self selectedItem \x0a\x09\x09ifNil: [ self defaultHead ]\x0a\x09\x09ifNotNil: [ :item | item name ]",
  2962. referencedClasses: [],
  2963. //>>excludeEnd("ide");
  2964. pragmas: [],
  2965. messageSends: ["ifNil:ifNotNil:", "selectedItem", "defaultHead", "name"]
  2966. }, function ($methodClass){ return function (){
  2967. var self=this,$self=this;
  2968. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2969. return $core.withContext(function($ctx1) {
  2970. //>>excludeEnd("ctx");
  2971. var $1;
  2972. $1=$self._selectedItem();
  2973. if($1 == null || $1.a$nil){
  2974. return $self._defaultHead();
  2975. } else {
  2976. var item;
  2977. item=$1;
  2978. return $recv(item)._name();
  2979. }
  2980. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2981. }, function($ctx1) {$ctx1.fill(self,"head",{})});
  2982. //>>excludeEnd("ctx");
  2983. }; }),
  2984. $globals.HLDocumentationWidget);
  2985. $core.addMethod(
  2986. $core.method({
  2987. selector: "model",
  2988. protocol: "accessing",
  2989. //>>excludeStart("ide", pragmas.excludeIdeData);
  2990. args: [],
  2991. source: "model\x0a\x09^ model",
  2992. referencedClasses: [],
  2993. //>>excludeEnd("ide");
  2994. pragmas: [],
  2995. messageSends: []
  2996. }, function ($methodClass){ return function (){
  2997. var self=this,$self=this;
  2998. return $self.model;
  2999. }; }),
  3000. $globals.HLDocumentationWidget);
  3001. $core.addMethod(
  3002. $core.method({
  3003. selector: "model:",
  3004. protocol: "accessing",
  3005. //>>excludeStart("ide", pragmas.excludeIdeData);
  3006. args: ["aModel"],
  3007. source: "model: aModel\x0a\x09model := aModel.\x0a\x09self \x0a\x09\x09observeSystem;\x0a\x09\x09observeModel",
  3008. referencedClasses: [],
  3009. //>>excludeEnd("ide");
  3010. pragmas: [],
  3011. messageSends: ["observeSystem", "observeModel"]
  3012. }, function ($methodClass){ return function (aModel){
  3013. var self=this,$self=this;
  3014. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3015. return $core.withContext(function($ctx1) {
  3016. //>>excludeEnd("ctx");
  3017. $self.model=aModel;
  3018. $self._observeSystem();
  3019. $self._observeModel();
  3020. return self;
  3021. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3022. }, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel})});
  3023. //>>excludeEnd("ctx");
  3024. }; }),
  3025. $globals.HLDocumentationWidget);
  3026. $core.addMethod(
  3027. $core.method({
  3028. selector: "observeModel",
  3029. protocol: "actions",
  3030. //>>excludeStart("ide", pragmas.excludeIdeData);
  3031. args: [],
  3032. source: "observeModel\x0a\x09self model announcer \x0a\x09\x09on: HLClassSelected\x0a\x09\x09send: #onClassSelected:\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: HLEditComment\x0a\x09\x09send: #onEditDocumentation\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: HLDocumentationFocusRequested\x0a\x09\x09send: #onDocumentationFocusRequested\x0a\x09\x09to: self",
  3033. referencedClasses: ["HLClassSelected", "HLEditComment", "HLDocumentationFocusRequested"],
  3034. //>>excludeEnd("ide");
  3035. pragmas: [],
  3036. messageSends: ["on:send:to:", "announcer", "model"]
  3037. }, function ($methodClass){ return function (){
  3038. var self=this,$self=this;
  3039. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3040. return $core.withContext(function($ctx1) {
  3041. //>>excludeEnd("ctx");
  3042. var $1;
  3043. $1=$recv($self._model())._announcer();
  3044. [$recv($1)._on_send_to_($globals.HLClassSelected,"onClassSelected:",self)
  3045. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3046. ,$ctx1.sendIdx["on:send:to:"]=1
  3047. //>>excludeEnd("ctx");
  3048. ][0];
  3049. [$recv($1)._on_send_to_($globals.HLEditComment,"onEditDocumentation",self)
  3050. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3051. ,$ctx1.sendIdx["on:send:to:"]=2
  3052. //>>excludeEnd("ctx");
  3053. ][0];
  3054. $recv($1)._on_send_to_($globals.HLDocumentationFocusRequested,"onDocumentationFocusRequested",self);
  3055. return self;
  3056. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3057. }, function($ctx1) {$ctx1.fill(self,"observeModel",{})});
  3058. //>>excludeEnd("ctx");
  3059. }; }),
  3060. $globals.HLDocumentationWidget);
  3061. $core.addMethod(
  3062. $core.method({
  3063. selector: "observeSystem",
  3064. protocol: "actions",
  3065. //>>excludeStart("ide", pragmas.excludeIdeData);
  3066. args: [],
  3067. source: "observeSystem\x0a\x09self model systemAnnouncer \x0a\x09\x09on: ClassCommentChanged\x0a\x09\x09send: #onClassCommentChanged:\x0a\x09\x09to: self",
  3068. referencedClasses: ["ClassCommentChanged"],
  3069. //>>excludeEnd("ide");
  3070. pragmas: [],
  3071. messageSends: ["on:send:to:", "systemAnnouncer", "model"]
  3072. }, function ($methodClass){ return function (){
  3073. var self=this,$self=this;
  3074. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3075. return $core.withContext(function($ctx1) {
  3076. //>>excludeEnd("ctx");
  3077. $recv($recv($self._model())._systemAnnouncer())._on_send_to_($globals.ClassCommentChanged,"onClassCommentChanged:",self);
  3078. return self;
  3079. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3080. }, function($ctx1) {$ctx1.fill(self,"observeSystem",{})});
  3081. //>>excludeEnd("ctx");
  3082. }; }),
  3083. $globals.HLDocumentationWidget);
  3084. $core.addMethod(
  3085. $core.method({
  3086. selector: "onClassCommentChanged:",
  3087. protocol: "reactions",
  3088. //>>excludeStart("ide", pragmas.excludeIdeData);
  3089. args: ["anAnnouncement"],
  3090. source: "onClassCommentChanged: anAnnouncement\x0a\x09self model selectedClass ifNil: [ ^ self ].\x0a\x09\x0a\x09anAnnouncement theClass = self model selectedClass theNonMetaClass\x0a\x09\x09ifTrue: [ self refresh ]",
  3091. referencedClasses: [],
  3092. //>>excludeEnd("ide");
  3093. pragmas: [],
  3094. messageSends: ["ifNil:", "selectedClass", "model", "ifTrue:", "=", "theClass", "theNonMetaClass", "refresh"]
  3095. }, function ($methodClass){ return function (anAnnouncement){
  3096. var self=this,$self=this;
  3097. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3098. return $core.withContext(function($ctx1) {
  3099. //>>excludeEnd("ctx");
  3100. var $1;
  3101. $1=[$recv([$self._model()
  3102. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3103. ,$ctx1.sendIdx["model"]=1
  3104. //>>excludeEnd("ctx");
  3105. ][0])._selectedClass()
  3106. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3107. ,$ctx1.sendIdx["selectedClass"]=1
  3108. //>>excludeEnd("ctx");
  3109. ][0];
  3110. if($1 == null || $1.a$nil){
  3111. return self;
  3112. } else {
  3113. $1;
  3114. }
  3115. if($core.assert($recv($recv(anAnnouncement)._theClass()).__eq($recv($recv($self._model())._selectedClass())._theNonMetaClass()))){
  3116. $self._refresh();
  3117. }
  3118. return self;
  3119. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3120. }, function($ctx1) {$ctx1.fill(self,"onClassCommentChanged:",{anAnnouncement:anAnnouncement})});
  3121. //>>excludeEnd("ctx");
  3122. }; }),
  3123. $globals.HLDocumentationWidget);
  3124. $core.addMethod(
  3125. $core.method({
  3126. selector: "onClassSelected:",
  3127. protocol: "reactions",
  3128. //>>excludeStart("ide", pragmas.excludeIdeData);
  3129. args: ["anAnnouncement"],
  3130. source: "onClassSelected: anAnnouncement\x0a\x09self refresh",
  3131. referencedClasses: [],
  3132. //>>excludeEnd("ide");
  3133. pragmas: [],
  3134. messageSends: ["refresh"]
  3135. }, function ($methodClass){ return function (anAnnouncement){
  3136. var self=this,$self=this;
  3137. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3138. return $core.withContext(function($ctx1) {
  3139. //>>excludeEnd("ctx");
  3140. $self._refresh();
  3141. return self;
  3142. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3143. }, function($ctx1) {$ctx1.fill(self,"onClassSelected:",{anAnnouncement:anAnnouncement})});
  3144. //>>excludeEnd("ctx");
  3145. }; }),
  3146. $globals.HLDocumentationWidget);
  3147. $core.addMethod(
  3148. $core.method({
  3149. selector: "onDocumentationFocusRequested",
  3150. protocol: "reactions",
  3151. //>>excludeStart("ide", pragmas.excludeIdeData);
  3152. args: [],
  3153. source: "onDocumentationFocusRequested\x0a\x09self focus",
  3154. referencedClasses: [],
  3155. //>>excludeEnd("ide");
  3156. pragmas: [],
  3157. messageSends: ["focus"]
  3158. }, function ($methodClass){ return function (){
  3159. var self=this,$self=this;
  3160. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3161. return $core.withContext(function($ctx1) {
  3162. //>>excludeEnd("ctx");
  3163. $self._focus();
  3164. return self;
  3165. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3166. }, function($ctx1) {$ctx1.fill(self,"onDocumentationFocusRequested",{})});
  3167. //>>excludeEnd("ctx");
  3168. }; }),
  3169. $globals.HLDocumentationWidget);
  3170. $core.addMethod(
  3171. $core.method({
  3172. selector: "onEditDocumentation",
  3173. protocol: "reactions",
  3174. //>>excludeStart("ide", pragmas.excludeIdeData);
  3175. args: [],
  3176. source: "onEditDocumentation\x0a\x09self \x0a\x09\x09request: self model selectedClass theNonMetaClass name, ' comment'\x0a\x09\x09value: self model selectedClass theNonMetaClass comment\x0a\x09\x09do: [ :comment | self setClassComment: comment ]",
  3177. referencedClasses: [],
  3178. //>>excludeEnd("ide");
  3179. pragmas: [],
  3180. messageSends: ["request:value:do:", ",", "name", "theNonMetaClass", "selectedClass", "model", "comment", "setClassComment:"]
  3181. }, function ($methodClass){ return function (){
  3182. var self=this,$self=this;
  3183. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3184. return $core.withContext(function($ctx1) {
  3185. //>>excludeEnd("ctx");
  3186. $self._request_value_do_($recv($recv([$recv([$recv([$self._model()
  3187. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3188. ,$ctx1.sendIdx["model"]=1
  3189. //>>excludeEnd("ctx");
  3190. ][0])._selectedClass()
  3191. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3192. ,$ctx1.sendIdx["selectedClass"]=1
  3193. //>>excludeEnd("ctx");
  3194. ][0])._theNonMetaClass()
  3195. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3196. ,$ctx1.sendIdx["theNonMetaClass"]=1
  3197. //>>excludeEnd("ctx");
  3198. ][0])._name()).__comma(" comment"),$recv($recv($recv($self._model())._selectedClass())._theNonMetaClass())._comment(),(function(comment){
  3199. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3200. return $core.withContext(function($ctx2) {
  3201. //>>excludeEnd("ctx");
  3202. return $self._setClassComment_(comment);
  3203. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3204. }, function($ctx2) {$ctx2.fillBlock({comment:comment},$ctx1,1)});
  3205. //>>excludeEnd("ctx");
  3206. }));
  3207. return self;
  3208. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3209. }, function($ctx1) {$ctx1.fill(self,"onEditDocumentation",{})});
  3210. //>>excludeEnd("ctx");
  3211. }; }),
  3212. $globals.HLDocumentationWidget);
  3213. $core.addMethod(
  3214. $core.method({
  3215. selector: "renderClassLinkTo:on:",
  3216. protocol: "rendering",
  3217. //>>excludeStart("ide", pragmas.excludeIdeData);
  3218. args: ["aClassOrTrait", "html"],
  3219. source: "renderClassLinkTo: aClassOrTrait on: html\x0a\x09html a \x0a\x09\x09with: aClassOrTrait name;\x0a\x09\x09onClick: [ self selectClass: aClassOrTrait ]",
  3220. referencedClasses: [],
  3221. //>>excludeEnd("ide");
  3222. pragmas: [],
  3223. messageSends: ["with:", "a", "name", "onClick:", "selectClass:"]
  3224. }, function ($methodClass){ return function (aClassOrTrait,html){
  3225. var self=this,$self=this;
  3226. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3227. return $core.withContext(function($ctx1) {
  3228. //>>excludeEnd("ctx");
  3229. var $1;
  3230. $1=$recv(html)._a();
  3231. $recv($1)._with_($recv(aClassOrTrait)._name());
  3232. $recv($1)._onClick_((function(){
  3233. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3234. return $core.withContext(function($ctx2) {
  3235. //>>excludeEnd("ctx");
  3236. return $self._selectClass_(aClassOrTrait);
  3237. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3238. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
  3239. //>>excludeEnd("ctx");
  3240. }));
  3241. return self;
  3242. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3243. }, function($ctx1) {$ctx1.fill(self,"renderClassLinkTo:on:",{aClassOrTrait:aClassOrTrait,html:html})});
  3244. //>>excludeEnd("ctx");
  3245. }; }),
  3246. $globals.HLDocumentationWidget);
  3247. $core.addMethod(
  3248. $core.method({
  3249. selector: "renderContentOn:",
  3250. protocol: "rendering",
  3251. //>>excludeStart("ide", pragmas.excludeIdeData);
  3252. args: ["html"],
  3253. source: "renderContentOn: html\x0a\x09html div \x0a\x09\x09class: 'doc';\x0a\x09\x09with: [\x0a\x09\x09\x09self \x0a\x09\x09\x09\x09renderHeadOn: html;\x0a\x09\x09\x09\x09renderDocOn: html ]",
  3254. referencedClasses: [],
  3255. //>>excludeEnd("ide");
  3256. pragmas: [],
  3257. messageSends: ["class:", "div", "with:", "renderHeadOn:", "renderDocOn:"]
  3258. }, function ($methodClass){ return function (html){
  3259. var self=this,$self=this;
  3260. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3261. return $core.withContext(function($ctx1) {
  3262. //>>excludeEnd("ctx");
  3263. var $1;
  3264. $1=$recv(html)._div();
  3265. $recv($1)._class_("doc");
  3266. $recv($1)._with_((function(){
  3267. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3268. return $core.withContext(function($ctx2) {
  3269. //>>excludeEnd("ctx");
  3270. $self._renderHeadOn_(html);
  3271. return $self._renderDocOn_(html);
  3272. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3273. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
  3274. //>>excludeEnd("ctx");
  3275. }));
  3276. return self;
  3277. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3278. }, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html})});
  3279. //>>excludeEnd("ctx");
  3280. }; }),
  3281. $globals.HLDocumentationWidget);
  3282. $core.addMethod(
  3283. $core.method({
  3284. selector: "renderDocOn:",
  3285. protocol: "rendering",
  3286. //>>excludeStart("ide", pragmas.excludeIdeData);
  3287. args: ["html"],
  3288. source: "renderDocOn: html\x0a\x09self selectedItem ifNotNil: [\x0a\x09\x09self renderInheritanceOn: html.\x0a\x09\x09html h1 \x0a\x09\x09\x09with: 'Overview';\x0a\x09\x09\x09with: [ \x0a\x09\x09\x09\x09html button\x0a\x09\x09\x09\x09\x09class: 'button default';\x0a\x09\x09\x09\x09\x09with: 'Edit';\x0a\x09\x09\x09\x09\x09onClick: [ self editDocumentation ] ].\x0a\x09\x09(html div \x0a\x09\x09\x09class: 'markdown';\x0a\x09\x09\x09asJQuery) html: ((Showdown at: 'converter') new makeHtml: self documentation) ]",
  3289. referencedClasses: ["Showdown"],
  3290. //>>excludeEnd("ide");
  3291. pragmas: [],
  3292. messageSends: ["ifNotNil:", "selectedItem", "renderInheritanceOn:", "with:", "h1", "class:", "button", "onClick:", "editDocumentation", "html:", "div", "asJQuery", "makeHtml:", "new", "at:", "documentation"]
  3293. }, function ($methodClass){ return function (html){
  3294. var self=this,$self=this;
  3295. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3296. return $core.withContext(function($ctx1) {
  3297. //>>excludeEnd("ctx");
  3298. var $1,$2,$3,$4;
  3299. $1=$self._selectedItem();
  3300. if($1 == null || $1.a$nil){
  3301. $1;
  3302. } else {
  3303. $self._renderInheritanceOn_(html);
  3304. $2=$recv(html)._h1();
  3305. [$recv($2)._with_("Overview")
  3306. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3307. ,$ctx1.sendIdx["with:"]=1
  3308. //>>excludeEnd("ctx");
  3309. ][0];
  3310. [$recv($2)._with_((function(){
  3311. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3312. return $core.withContext(function($ctx2) {
  3313. //>>excludeEnd("ctx");
  3314. $3=$recv(html)._button();
  3315. [$recv($3)._class_("button default")
  3316. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3317. ,$ctx2.sendIdx["class:"]=1
  3318. //>>excludeEnd("ctx");
  3319. ][0];
  3320. $recv($3)._with_("Edit");
  3321. return $recv($3)._onClick_((function(){
  3322. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3323. return $core.withContext(function($ctx3) {
  3324. //>>excludeEnd("ctx");
  3325. return $self._editDocumentation();
  3326. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3327. }, function($ctx3) {$ctx3.fillBlock({},$ctx2,3)});
  3328. //>>excludeEnd("ctx");
  3329. }));
  3330. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3331. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,2)});
  3332. //>>excludeEnd("ctx");
  3333. }))
  3334. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3335. ,$ctx1.sendIdx["with:"]=2
  3336. //>>excludeEnd("ctx");
  3337. ][0];
  3338. $4=$recv(html)._div();
  3339. $recv($4)._class_("markdown");
  3340. $recv($recv($4)._asJQuery())._html_($recv($recv($recv($globals.Showdown)._at_("converter"))._new())._makeHtml_($self._documentation()));
  3341. }
  3342. return self;
  3343. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3344. }, function($ctx1) {$ctx1.fill(self,"renderDocOn:",{html:html})});
  3345. //>>excludeEnd("ctx");
  3346. }; }),
  3347. $globals.HLDocumentationWidget);
  3348. $core.addMethod(
  3349. $core.method({
  3350. selector: "renderHeadOn:",
  3351. protocol: "rendering",
  3352. //>>excludeStart("ide", pragmas.excludeIdeData);
  3353. args: ["html"],
  3354. source: "renderHeadOn: html\x0a\x09html div \x0a\x09\x09class: 'head';\x0a\x09\x09with: self head",
  3355. referencedClasses: [],
  3356. //>>excludeEnd("ide");
  3357. pragmas: [],
  3358. messageSends: ["class:", "div", "with:", "head"]
  3359. }, function ($methodClass){ return function (html){
  3360. var self=this,$self=this;
  3361. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3362. return $core.withContext(function($ctx1) {
  3363. //>>excludeEnd("ctx");
  3364. var $1;
  3365. $1=$recv(html)._div();
  3366. $recv($1)._class_("head");
  3367. $recv($1)._with_($self._head());
  3368. return self;
  3369. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3370. }, function($ctx1) {$ctx1.fill(self,"renderHeadOn:",{html:html})});
  3371. //>>excludeEnd("ctx");
  3372. }; }),
  3373. $globals.HLDocumentationWidget);
  3374. $core.addMethod(
  3375. $core.method({
  3376. selector: "renderInheritanceOn:",
  3377. protocol: "rendering",
  3378. //>>excludeStart("ide", pragmas.excludeIdeData);
  3379. args: ["html"],
  3380. source: "renderInheritanceOn: html\x0a\x09html div \x09\x0a\x09\x09class: 'inheritance';\x0a\x09\x09with: [\x0a\x09\x09\x09self selectedItem isBehavior\x0a\x09\x09\x09\x09ifFalse: [ html with: 'Trait' ]\x0a\x09\x09\x09\x09ifTrue: [\x0a\x09\x09\x09\x09\x09html with: 'Subclass of '.\x0a\x09\x09\x09\x09\x09self selectedItem superclass \x0a\x09\x09\x09\x09\x09\x09ifNil: [ html em with: 'nil' ]\x0a\x09\x09\x09\x09\x09\x09ifNotNil: [ :sclass | self renderClassLinkTo: sclass on: html ] ] ];\x0a\x09\x09with: '. ';\x0a\x09\x09with: [ self selectedItem traitComposition ifNotEmpty: [ :composition |\x0a\x09\x09\x09html with: 'Uses '.\x0a\x09\x09\x09composition\x0a\x09\x09\x09\x09do: [ :each | self renderClassLinkTo: each trait on: html ]\x0a\x09\x09\x09\x09separatedBy: [ html with: ', ' ].\x0a\x09\x09\x09html with: '. ' ] ];\x0a\x09\x09with: [ self selectedItem isBehavior ifTrue: [\x0a\x09\x09\x09self selectedItem theMetaClass traitComposition ifNotEmpty: [ :composition |\x0a\x09\x09\x09\x09html with: 'Class-side uses '.\x0a\x09\x09\x09\x09composition\x0a\x09\x09\x09\x09\x09do: [ :each | self renderClassLinkTo: each trait on: html ]\x0a\x09\x09\x09\x09\x09separatedBy: [ html with: ', ' ].\x0a\x09\x09\x09\x09html with: '. ' ] ] ]\x0a\x09\x09",
  3381. referencedClasses: [],
  3382. //>>excludeEnd("ide");
  3383. pragmas: [],
  3384. messageSends: ["class:", "div", "with:", "ifFalse:ifTrue:", "isBehavior", "selectedItem", "ifNil:ifNotNil:", "superclass", "em", "renderClassLinkTo:on:", "ifNotEmpty:", "traitComposition", "do:separatedBy:", "trait", "ifTrue:", "theMetaClass"]
  3385. }, function ($methodClass){ return function (html){
  3386. var self=this,$self=this;
  3387. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3388. return $core.withContext(function($ctx1) {
  3389. //>>excludeEnd("ctx");
  3390. var $1,$2;
  3391. $1=$recv(html)._div();
  3392. $recv($1)._class_("inheritance");
  3393. [$recv($1)._with_((function(){
  3394. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3395. return $core.withContext(function($ctx2) {
  3396. //>>excludeEnd("ctx");
  3397. if($core.assert([$recv([$self._selectedItem()
  3398. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3399. ,$ctx2.sendIdx["selectedItem"]=1
  3400. //>>excludeEnd("ctx");
  3401. ][0])._isBehavior()
  3402. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3403. ,$ctx2.sendIdx["isBehavior"]=1
  3404. //>>excludeEnd("ctx");
  3405. ][0])){
  3406. [$recv(html)._with_("Subclass of ")
  3407. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3408. ,$ctx2.sendIdx["with:"]=3
  3409. //>>excludeEnd("ctx");
  3410. ][0];
  3411. $2=$recv([$self._selectedItem()
  3412. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3413. ,$ctx2.sendIdx["selectedItem"]=2
  3414. //>>excludeEnd("ctx");
  3415. ][0])._superclass();
  3416. if($2 == null || $2.a$nil){
  3417. return [$recv($recv(html)._em())._with_("nil")
  3418. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3419. ,$ctx2.sendIdx["with:"]=4
  3420. //>>excludeEnd("ctx");
  3421. ][0];
  3422. } else {
  3423. var sclass;
  3424. sclass=$2;
  3425. return [$self._renderClassLinkTo_on_(sclass,html)
  3426. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3427. ,$ctx2.sendIdx["renderClassLinkTo:on:"]=1
  3428. //>>excludeEnd("ctx");
  3429. ][0];
  3430. }
  3431. } else {
  3432. return [$recv(html)._with_("Trait")
  3433. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3434. ,$ctx2.sendIdx["with:"]=2
  3435. //>>excludeEnd("ctx");
  3436. ][0];
  3437. }
  3438. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3439. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
  3440. //>>excludeEnd("ctx");
  3441. }))
  3442. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3443. ,$ctx1.sendIdx["with:"]=1
  3444. //>>excludeEnd("ctx");
  3445. ][0];
  3446. [$recv($1)._with_(". ")
  3447. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3448. ,$ctx1.sendIdx["with:"]=5
  3449. //>>excludeEnd("ctx");
  3450. ][0];
  3451. [$recv($1)._with_((function(){
  3452. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3453. return $core.withContext(function($ctx2) {
  3454. //>>excludeEnd("ctx");
  3455. return [$recv([$recv([$self._selectedItem()
  3456. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3457. ,$ctx2.sendIdx["selectedItem"]=3
  3458. //>>excludeEnd("ctx");
  3459. ][0])._traitComposition()
  3460. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3461. ,$ctx2.sendIdx["traitComposition"]=1
  3462. //>>excludeEnd("ctx");
  3463. ][0])._ifNotEmpty_((function(composition){
  3464. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3465. return $core.withContext(function($ctx3) {
  3466. //>>excludeEnd("ctx");
  3467. [$recv(html)._with_("Uses ")
  3468. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3469. ,$ctx3.sendIdx["with:"]=7
  3470. //>>excludeEnd("ctx");
  3471. ][0];
  3472. [$recv(composition)._do_separatedBy_((function(each){
  3473. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3474. return $core.withContext(function($ctx4) {
  3475. //>>excludeEnd("ctx");
  3476. return [$self._renderClassLinkTo_on_([$recv(each)._trait()
  3477. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3478. ,$ctx4.sendIdx["trait"]=1
  3479. //>>excludeEnd("ctx");
  3480. ][0],html)
  3481. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3482. ,$ctx4.sendIdx["renderClassLinkTo:on:"]=2
  3483. //>>excludeEnd("ctx");
  3484. ][0];
  3485. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3486. }, function($ctx4) {$ctx4.fillBlock({each:each},$ctx3,8)});
  3487. //>>excludeEnd("ctx");
  3488. }),(function(){
  3489. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3490. return $core.withContext(function($ctx4) {
  3491. //>>excludeEnd("ctx");
  3492. return [$recv(html)._with_(", ")
  3493. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3494. ,$ctx4.sendIdx["with:"]=8
  3495. //>>excludeEnd("ctx");
  3496. ][0];
  3497. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3498. }, function($ctx4) {$ctx4.fillBlock({},$ctx3,9)});
  3499. //>>excludeEnd("ctx");
  3500. }))
  3501. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3502. ,$ctx3.sendIdx["do:separatedBy:"]=1
  3503. //>>excludeEnd("ctx");
  3504. ][0];
  3505. return [$recv(html)._with_(". ")
  3506. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3507. ,$ctx3.sendIdx["with:"]=9
  3508. //>>excludeEnd("ctx");
  3509. ][0];
  3510. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3511. }, function($ctx3) {$ctx3.fillBlock({composition:composition},$ctx2,7)});
  3512. //>>excludeEnd("ctx");
  3513. }))
  3514. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3515. ,$ctx2.sendIdx["ifNotEmpty:"]=1
  3516. //>>excludeEnd("ctx");
  3517. ][0];
  3518. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3519. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,6)});
  3520. //>>excludeEnd("ctx");
  3521. }))
  3522. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3523. ,$ctx1.sendIdx["with:"]=6
  3524. //>>excludeEnd("ctx");
  3525. ][0];
  3526. [$recv($1)._with_((function(){
  3527. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3528. return $core.withContext(function($ctx2) {
  3529. //>>excludeEnd("ctx");
  3530. if($core.assert($recv([$self._selectedItem()
  3531. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3532. ,$ctx2.sendIdx["selectedItem"]=4
  3533. //>>excludeEnd("ctx");
  3534. ][0])._isBehavior())){
  3535. return $recv($recv($recv($self._selectedItem())._theMetaClass())._traitComposition())._ifNotEmpty_((function(composition){
  3536. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3537. return $core.withContext(function($ctx3) {
  3538. //>>excludeEnd("ctx");
  3539. [$recv(html)._with_("Class-side uses ")
  3540. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3541. ,$ctx3.sendIdx["with:"]=11
  3542. //>>excludeEnd("ctx");
  3543. ][0];
  3544. $recv(composition)._do_separatedBy_((function(each){
  3545. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3546. return $core.withContext(function($ctx4) {
  3547. //>>excludeEnd("ctx");
  3548. return $self._renderClassLinkTo_on_($recv(each)._trait(),html);
  3549. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3550. }, function($ctx4) {$ctx4.fillBlock({each:each},$ctx3,13)});
  3551. //>>excludeEnd("ctx");
  3552. }),(function(){
  3553. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3554. return $core.withContext(function($ctx4) {
  3555. //>>excludeEnd("ctx");
  3556. return [$recv(html)._with_(", ")
  3557. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3558. ,$ctx4.sendIdx["with:"]=12
  3559. //>>excludeEnd("ctx");
  3560. ][0];
  3561. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3562. }, function($ctx4) {$ctx4.fillBlock({},$ctx3,14)});
  3563. //>>excludeEnd("ctx");
  3564. }));
  3565. return $recv(html)._with_(". ");
  3566. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3567. }, function($ctx3) {$ctx3.fillBlock({composition:composition},$ctx2,12)});
  3568. //>>excludeEnd("ctx");
  3569. }));
  3570. }
  3571. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3572. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,10)});
  3573. //>>excludeEnd("ctx");
  3574. }))
  3575. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3576. ,$ctx1.sendIdx["with:"]=10
  3577. //>>excludeEnd("ctx");
  3578. ][0];
  3579. return self;
  3580. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3581. }, function($ctx1) {$ctx1.fill(self,"renderInheritanceOn:",{html:html})});
  3582. //>>excludeEnd("ctx");
  3583. }; }),
  3584. $globals.HLDocumentationWidget);
  3585. $core.addMethod(
  3586. $core.method({
  3587. selector: "selectClass:",
  3588. protocol: "actions",
  3589. //>>excludeStart("ide", pragmas.excludeIdeData);
  3590. args: ["aClass"],
  3591. source: "selectClass: aClass\x0a\x09self model selectedClass: aClass",
  3592. referencedClasses: [],
  3593. //>>excludeEnd("ide");
  3594. pragmas: [],
  3595. messageSends: ["selectedClass:", "model"]
  3596. }, function ($methodClass){ return function (aClass){
  3597. var self=this,$self=this;
  3598. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3599. return $core.withContext(function($ctx1) {
  3600. //>>excludeEnd("ctx");
  3601. $recv($self._model())._selectedClass_(aClass);
  3602. return self;
  3603. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3604. }, function($ctx1) {$ctx1.fill(self,"selectClass:",{aClass:aClass})});
  3605. //>>excludeEnd("ctx");
  3606. }; }),
  3607. $globals.HLDocumentationWidget);
  3608. $core.addMethod(
  3609. $core.method({
  3610. selector: "selectedItem",
  3611. protocol: "accessing",
  3612. //>>excludeStart("ide", pragmas.excludeIdeData);
  3613. args: [],
  3614. source: "selectedItem\x0a\x09^ self model selectedClass ifNotNil: [ :class | class theNonMetaClass ]",
  3615. referencedClasses: [],
  3616. //>>excludeEnd("ide");
  3617. pragmas: [],
  3618. messageSends: ["ifNotNil:", "selectedClass", "model", "theNonMetaClass"]
  3619. }, function ($methodClass){ return function (){
  3620. var self=this,$self=this;
  3621. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3622. return $core.withContext(function($ctx1) {
  3623. //>>excludeEnd("ctx");
  3624. var $1;
  3625. $1=$recv($self._model())._selectedClass();
  3626. if($1 == null || $1.a$nil){
  3627. return $1;
  3628. } else {
  3629. var class_;
  3630. class_=$1;
  3631. return $recv(class_)._theNonMetaClass();
  3632. }
  3633. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3634. }, function($ctx1) {$ctx1.fill(self,"selectedItem",{})});
  3635. //>>excludeEnd("ctx");
  3636. }; }),
  3637. $globals.HLDocumentationWidget);
  3638. $core.addMethod(
  3639. $core.method({
  3640. selector: "setClassComment:",
  3641. protocol: "reactions",
  3642. //>>excludeStart("ide", pragmas.excludeIdeData);
  3643. args: ["aString"],
  3644. source: "setClassComment: aString\x0a\x09self model setClassComment: aString",
  3645. referencedClasses: [],
  3646. //>>excludeEnd("ide");
  3647. pragmas: [],
  3648. messageSends: ["setClassComment:", "model"]
  3649. }, function ($methodClass){ return function (aString){
  3650. var self=this,$self=this;
  3651. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3652. return $core.withContext(function($ctx1) {
  3653. //>>excludeEnd("ctx");
  3654. $recv($self._model())._setClassComment_(aString);
  3655. return self;
  3656. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3657. }, function($ctx1) {$ctx1.fill(self,"setClassComment:",{aString:aString})});
  3658. //>>excludeEnd("ctx");
  3659. }; }),
  3660. $globals.HLDocumentationWidget);
  3661. $core.addMethod(
  3662. $core.method({
  3663. selector: "unregister",
  3664. protocol: "actions",
  3665. //>>excludeStart("ide", pragmas.excludeIdeData);
  3666. args: [],
  3667. source: "unregister\x0a\x09super unregister.\x0a\x09self model announcer unregister: self",
  3668. referencedClasses: [],
  3669. //>>excludeEnd("ide");
  3670. pragmas: [],
  3671. messageSends: ["unregister", "unregister:", "announcer", "model"]
  3672. }, function ($methodClass){ return function (){
  3673. var self=this,$self=this;
  3674. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3675. return $core.withContext(function($ctx1) {
  3676. //>>excludeEnd("ctx");
  3677. [(
  3678. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3679. $ctx1.supercall = true,
  3680. //>>excludeEnd("ctx");
  3681. ($methodClass.superclass||$boot.nilAsClass).fn.prototype._unregister.call($self))
  3682. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3683. ,$ctx1.supercall = false
  3684. //>>excludeEnd("ctx");
  3685. ][0];
  3686. $recv($recv($self._model())._announcer())._unregister_(self);
  3687. return self;
  3688. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3689. }, function($ctx1) {$ctx1.fill(self,"unregister",{})});
  3690. //>>excludeEnd("ctx");
  3691. }; }),
  3692. $globals.HLDocumentationWidget);
  3693. $core.addClass("HLMethodsListWidget", $globals.HLToolListWidget, "Helios-Browser");
  3694. $core.setSlots($globals.HLMethodsListWidget, ["selectorsCache"]);
  3695. //>>excludeStart("ide", pragmas.excludeIdeData);
  3696. $globals.HLMethodsListWidget.comment="I render a list of methods for the selected protocol.";
  3697. //>>excludeEnd("ide");
  3698. $core.addMethod(
  3699. $core.method({
  3700. selector: "allProtocol",
  3701. protocol: "accessing",
  3702. //>>excludeStart("ide", pragmas.excludeIdeData);
  3703. args: [],
  3704. source: "allProtocol\x0a\x09^ self model allProtocol",
  3705. referencedClasses: [],
  3706. //>>excludeEnd("ide");
  3707. pragmas: [],
  3708. messageSends: ["allProtocol", "model"]
  3709. }, function ($methodClass){ return function (){
  3710. var self=this,$self=this;
  3711. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3712. return $core.withContext(function($ctx1) {
  3713. //>>excludeEnd("ctx");
  3714. return $recv($self._model())._allProtocol();
  3715. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3716. }, function($ctx1) {$ctx1.fill(self,"allProtocol",{})});
  3717. //>>excludeEnd("ctx");
  3718. }; }),
  3719. $globals.HLMethodsListWidget);
  3720. $core.addMethod(
  3721. $core.method({
  3722. selector: "cssClassForItem:",
  3723. protocol: "accessing",
  3724. //>>excludeStart("ide", pragmas.excludeIdeData);
  3725. args: ["aSelector"],
  3726. source: "cssClassForItem: aSelector\x0a\x09| override overriden method |\x0a \x0a method := self methodForSelector: aSelector.\x0a override := self isOverride: method.\x0a overriden := self isOverridden: method.\x0a \x0a\x09^ override\x0a \x09ifTrue: [ overriden\x0a\x09\x09\x09ifTrue: [ 'override-overridden' ]\x0a\x09\x09\x09ifFalse: [ 'override' ] ]\x0a\x09\x09ifFalse: [\x0a\x09\x09\x09overriden\x0a\x09\x09\x09ifTrue: [ 'overridden' ]\x0a\x09\x09\x09ifFalse: [ '' ] ]",
  3727. referencedClasses: [],
  3728. //>>excludeEnd("ide");
  3729. pragmas: [],
  3730. messageSends: ["methodForSelector:", "isOverride:", "isOverridden:", "ifTrue:ifFalse:"]
  3731. }, function ($methodClass){ return function (aSelector){
  3732. var self=this,$self=this;
  3733. var override,overriden,method;
  3734. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3735. return $core.withContext(function($ctx1) {
  3736. //>>excludeEnd("ctx");
  3737. method=$self._methodForSelector_(aSelector);
  3738. override=$self._isOverride_(method);
  3739. overriden=$self._isOverridden_(method);
  3740. if($core.assert(override)){
  3741. if($core.assert(overriden)){
  3742. return "override-overridden";
  3743. } else {
  3744. return "override";
  3745. }
  3746. } else {
  3747. if($core.assert(overriden)){
  3748. return "overridden";
  3749. } else {
  3750. return "";
  3751. }
  3752. }
  3753. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3754. }, function($ctx1) {$ctx1.fill(self,"cssClassForItem:",{aSelector:aSelector,override:override,overriden:overriden,method:method})});
  3755. //>>excludeEnd("ctx");
  3756. }; }),
  3757. $globals.HLMethodsListWidget);
  3758. $core.addMethod(
  3759. $core.method({
  3760. selector: "focus",
  3761. protocol: "actions",
  3762. //>>excludeStart("ide", pragmas.excludeIdeData);
  3763. args: [],
  3764. source: "focus\x0a\x09super focus.\x0a\x09\x0a\x09self selectedItem ifNil: [\x0a\x09\x09self model showMethodTemplate ]",
  3765. referencedClasses: [],
  3766. //>>excludeEnd("ide");
  3767. pragmas: [],
  3768. messageSends: ["focus", "ifNil:", "selectedItem", "showMethodTemplate", "model"]
  3769. }, function ($methodClass){ return function (){
  3770. var self=this,$self=this;
  3771. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3772. return $core.withContext(function($ctx1) {
  3773. //>>excludeEnd("ctx");
  3774. var $1;
  3775. [(
  3776. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3777. $ctx1.supercall = true,
  3778. //>>excludeEnd("ctx");
  3779. ($methodClass.superclass||$boot.nilAsClass).fn.prototype._focus.call($self))
  3780. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3781. ,$ctx1.supercall = false
  3782. //>>excludeEnd("ctx");
  3783. ][0];
  3784. $1=$self._selectedItem();
  3785. if($1 == null || $1.a$nil){
  3786. $recv($self._model())._showMethodTemplate();
  3787. } else {
  3788. $1;
  3789. }
  3790. return self;
  3791. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3792. }, function($ctx1) {$ctx1.fill(self,"focus",{})});
  3793. //>>excludeEnd("ctx");
  3794. }; }),
  3795. $globals.HLMethodsListWidget);
  3796. $core.addMethod(
  3797. $core.method({
  3798. selector: "isOverridden:",
  3799. protocol: "testing",
  3800. //>>excludeStart("ide", pragmas.excludeIdeData);
  3801. args: ["aMethod"],
  3802. source: "isOverridden: aMethod\x0a ^ self selectorsCache isOverridden: aMethod",
  3803. referencedClasses: [],
  3804. //>>excludeEnd("ide");
  3805. pragmas: [],
  3806. messageSends: ["isOverridden:", "selectorsCache"]
  3807. }, function ($methodClass){ return function (aMethod){
  3808. var self=this,$self=this;
  3809. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3810. return $core.withContext(function($ctx1) {
  3811. //>>excludeEnd("ctx");
  3812. return $recv($self._selectorsCache())._isOverridden_(aMethod);
  3813. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3814. }, function($ctx1) {$ctx1.fill(self,"isOverridden:",{aMethod:aMethod})});
  3815. //>>excludeEnd("ctx");
  3816. }; }),
  3817. $globals.HLMethodsListWidget);
  3818. $core.addMethod(
  3819. $core.method({
  3820. selector: "isOverride:",
  3821. protocol: "testing",
  3822. //>>excludeStart("ide", pragmas.excludeIdeData);
  3823. args: ["aMethod"],
  3824. source: "isOverride: aMethod\x0a ^ self selectorsCache isOverride: aMethod",
  3825. referencedClasses: [],
  3826. //>>excludeEnd("ide");
  3827. pragmas: [],
  3828. messageSends: ["isOverride:", "selectorsCache"]
  3829. }, function ($methodClass){ return function (aMethod){
  3830. var self=this,$self=this;
  3831. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3832. return $core.withContext(function($ctx1) {
  3833. //>>excludeEnd("ctx");
  3834. return $recv($self._selectorsCache())._isOverride_(aMethod);
  3835. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3836. }, function($ctx1) {$ctx1.fill(self,"isOverride:",{aMethod:aMethod})});
  3837. //>>excludeEnd("ctx");
  3838. }; }),
  3839. $globals.HLMethodsListWidget);
  3840. $core.addMethod(
  3841. $core.method({
  3842. selector: "label",
  3843. protocol: "accessing",
  3844. //>>excludeStart("ide", pragmas.excludeIdeData);
  3845. args: [],
  3846. source: "label\x0a\x09^ 'Methods'",
  3847. referencedClasses: [],
  3848. //>>excludeEnd("ide");
  3849. pragmas: [],
  3850. messageSends: []
  3851. }, function ($methodClass){ return function (){
  3852. var self=this,$self=this;
  3853. return "Methods";
  3854. }; }),
  3855. $globals.HLMethodsListWidget);
  3856. $core.addMethod(
  3857. $core.method({
  3858. selector: "methodForSelector:",
  3859. protocol: "accessing",
  3860. //>>excludeStart("ide", pragmas.excludeIdeData);
  3861. args: ["aSelector"],
  3862. source: "methodForSelector: aSelector\x0a\x09^ self model selectedClass\x0a \x09methodDictionary at: aSelector",
  3863. referencedClasses: [],
  3864. //>>excludeEnd("ide");
  3865. pragmas: [],
  3866. messageSends: ["at:", "methodDictionary", "selectedClass", "model"]
  3867. }, function ($methodClass){ return function (aSelector){
  3868. var self=this,$self=this;
  3869. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3870. return $core.withContext(function($ctx1) {
  3871. //>>excludeEnd("ctx");
  3872. return $recv($recv($recv($self._model())._selectedClass())._methodDictionary())._at_(aSelector);
  3873. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3874. }, function($ctx1) {$ctx1.fill(self,"methodForSelector:",{aSelector:aSelector})});
  3875. //>>excludeEnd("ctx");
  3876. }; }),
  3877. $globals.HLMethodsListWidget);
  3878. $core.addMethod(
  3879. $core.method({
  3880. selector: "methodsInProtocol:",
  3881. protocol: "accessing",
  3882. //>>excludeStart("ide", pragmas.excludeIdeData);
  3883. args: ["aString"],
  3884. source: "methodsInProtocol: aString\x0a\x09self model selectedClass ifNil: [ ^ #() ].\x0a \x0a\x09^ aString = self allProtocol\x0a \x09ifTrue: [ self model selectedClass methods ]\x0a \x09ifFalse: [ self model selectedClass methodsInProtocol: aString ]",
  3885. referencedClasses: [],
  3886. //>>excludeEnd("ide");
  3887. pragmas: [],
  3888. messageSends: ["ifNil:", "selectedClass", "model", "ifTrue:ifFalse:", "=", "allProtocol", "methods", "methodsInProtocol:"]
  3889. }, function ($methodClass){ return function (aString){
  3890. var self=this,$self=this;
  3891. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3892. return $core.withContext(function($ctx1) {
  3893. //>>excludeEnd("ctx");
  3894. var $1;
  3895. $1=[$recv([$self._model()
  3896. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3897. ,$ctx1.sendIdx["model"]=1
  3898. //>>excludeEnd("ctx");
  3899. ][0])._selectedClass()
  3900. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3901. ,$ctx1.sendIdx["selectedClass"]=1
  3902. //>>excludeEnd("ctx");
  3903. ][0];
  3904. if($1 == null || $1.a$nil){
  3905. return [];
  3906. } else {
  3907. $1;
  3908. }
  3909. if($core.assert($recv(aString).__eq($self._allProtocol()))){
  3910. return $recv([$recv([$self._model()
  3911. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3912. ,$ctx1.sendIdx["model"]=2
  3913. //>>excludeEnd("ctx");
  3914. ][0])._selectedClass()
  3915. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3916. ,$ctx1.sendIdx["selectedClass"]=2
  3917. //>>excludeEnd("ctx");
  3918. ][0])._methods();
  3919. } else {
  3920. return $recv($recv($self._model())._selectedClass())._methodsInProtocol_(aString);
  3921. }
  3922. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3923. }, function($ctx1) {$ctx1.fill(self,"methodsInProtocol:",{aString:aString})});
  3924. //>>excludeEnd("ctx");
  3925. }; }),
  3926. $globals.HLMethodsListWidget);
  3927. $core.addMethod(
  3928. $core.method({
  3929. selector: "observeModel",
  3930. protocol: "actions",
  3931. //>>excludeStart("ide", pragmas.excludeIdeData);
  3932. args: [],
  3933. source: "observeModel\x0a\x09self model announcer \x0a\x09\x09on: HLProtocolSelected \x0a\x09\x09send: #onProtocolSelected: \x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: HLShowInstanceToggled \x0a\x09\x09send: #onShowInstanceToggled\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: HLMethodSelected \x0a\x09\x09send: #onMethodSelected:\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: HLMethodsFocusRequested \x0a\x09\x09send: #onMethodsFocusRequested\x0a\x09\x09to: self",
  3934. referencedClasses: ["HLProtocolSelected", "HLShowInstanceToggled", "HLMethodSelected", "HLMethodsFocusRequested"],
  3935. //>>excludeEnd("ide");
  3936. pragmas: [],
  3937. messageSends: ["on:send:to:", "announcer", "model"]
  3938. }, function ($methodClass){ return function (){
  3939. var self=this,$self=this;
  3940. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3941. return $core.withContext(function($ctx1) {
  3942. //>>excludeEnd("ctx");
  3943. var $1;
  3944. $1=$recv($self._model())._announcer();
  3945. [$recv($1)._on_send_to_($globals.HLProtocolSelected,"onProtocolSelected:",self)
  3946. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3947. ,$ctx1.sendIdx["on:send:to:"]=1
  3948. //>>excludeEnd("ctx");
  3949. ][0];
  3950. [$recv($1)._on_send_to_($globals.HLShowInstanceToggled,"onShowInstanceToggled",self)
  3951. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3952. ,$ctx1.sendIdx["on:send:to:"]=2
  3953. //>>excludeEnd("ctx");
  3954. ][0];
  3955. [$recv($1)._on_send_to_($globals.HLMethodSelected,"onMethodSelected:",self)
  3956. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3957. ,$ctx1.sendIdx["on:send:to:"]=3
  3958. //>>excludeEnd("ctx");
  3959. ][0];
  3960. $recv($1)._on_send_to_($globals.HLMethodsFocusRequested,"onMethodsFocusRequested",self);
  3961. return self;
  3962. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3963. }, function($ctx1) {$ctx1.fill(self,"observeModel",{})});
  3964. //>>excludeEnd("ctx");
  3965. }; }),
  3966. $globals.HLMethodsListWidget);
  3967. $core.addMethod(
  3968. $core.method({
  3969. selector: "observeSystem",
  3970. protocol: "actions",
  3971. //>>excludeStart("ide", pragmas.excludeIdeData);
  3972. args: [],
  3973. source: "observeSystem\x0a\x09self model systemAnnouncer \x0a \x09on: ProtocolAdded\x0a send: #onProtocolAdded:\x0a\x09\x09to: self;\x0a \x09\x0a\x09\x09on: ProtocolRemoved\x0a send: #onProtocolRemoved:\x0a\x09\x09to: self;\x0a\x09\x09\x0a \x09on: MethodAdded \x0a send: #onMethodAdded:\x0a\x09\x09to: self;\x0a\x09\x09\x0a on: MethodRemoved \x0a send: #onMethodRemoved:\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: MethodMoved \x0a send: #onMethodMoved:\x0a\x09\x09to: self",
  3974. referencedClasses: ["ProtocolAdded", "ProtocolRemoved", "MethodAdded", "MethodRemoved", "MethodMoved"],
  3975. //>>excludeEnd("ide");
  3976. pragmas: [],
  3977. messageSends: ["on:send:to:", "systemAnnouncer", "model"]
  3978. }, function ($methodClass){ return function (){
  3979. var self=this,$self=this;
  3980. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3981. return $core.withContext(function($ctx1) {
  3982. //>>excludeEnd("ctx");
  3983. var $1;
  3984. $1=$recv($self._model())._systemAnnouncer();
  3985. [$recv($1)._on_send_to_($globals.ProtocolAdded,"onProtocolAdded:",self)
  3986. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3987. ,$ctx1.sendIdx["on:send:to:"]=1
  3988. //>>excludeEnd("ctx");
  3989. ][0];
  3990. [$recv($1)._on_send_to_($globals.ProtocolRemoved,"onProtocolRemoved:",self)
  3991. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3992. ,$ctx1.sendIdx["on:send:to:"]=2
  3993. //>>excludeEnd("ctx");
  3994. ][0];
  3995. [$recv($1)._on_send_to_($globals.MethodAdded,"onMethodAdded:",self)
  3996. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3997. ,$ctx1.sendIdx["on:send:to:"]=3
  3998. //>>excludeEnd("ctx");
  3999. ][0];
  4000. [$recv($1)._on_send_to_($globals.MethodRemoved,"onMethodRemoved:",self)
  4001. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4002. ,$ctx1.sendIdx["on:send:to:"]=4
  4003. //>>excludeEnd("ctx");
  4004. ][0];
  4005. $recv($1)._on_send_to_($globals.MethodMoved,"onMethodMoved:",self);
  4006. return self;
  4007. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4008. }, function($ctx1) {$ctx1.fill(self,"observeSystem",{})});
  4009. //>>excludeEnd("ctx");
  4010. }; }),
  4011. $globals.HLMethodsListWidget);
  4012. $core.addMethod(
  4013. $core.method({
  4014. selector: "onMethodAdded:",
  4015. protocol: "reactions",
  4016. //>>excludeStart("ide", pragmas.excludeIdeData);
  4017. args: ["anAnnouncement"],
  4018. source: "onMethodAdded: anAnnouncement\x0a\x09self model selectedClass = anAnnouncement method methodClass ifFalse: [ ^ self ].\x0a \x0a self setItemsForSelectedProtocol.\x0a self refresh",
  4019. referencedClasses: [],
  4020. //>>excludeEnd("ide");
  4021. pragmas: [],
  4022. messageSends: ["ifFalse:", "=", "selectedClass", "model", "methodClass", "method", "setItemsForSelectedProtocol", "refresh"]
  4023. }, function ($methodClass){ return function (anAnnouncement){
  4024. var self=this,$self=this;
  4025. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4026. return $core.withContext(function($ctx1) {
  4027. //>>excludeEnd("ctx");
  4028. if(!$core.assert($recv($recv($self._model())._selectedClass()).__eq($recv($recv(anAnnouncement)._method())._methodClass()))){
  4029. return self;
  4030. }
  4031. $self._setItemsForSelectedProtocol();
  4032. $self._refresh();
  4033. return self;
  4034. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4035. }, function($ctx1) {$ctx1.fill(self,"onMethodAdded:",{anAnnouncement:anAnnouncement})});
  4036. //>>excludeEnd("ctx");
  4037. }; }),
  4038. $globals.HLMethodsListWidget);
  4039. $core.addMethod(
  4040. $core.method({
  4041. selector: "onMethodMoved:",
  4042. protocol: "reactions",
  4043. //>>excludeStart("ide", pragmas.excludeIdeData);
  4044. args: ["anAnnouncement"],
  4045. source: "onMethodMoved: anAnnouncement\x0a\x09self model selectedMethod = anAnnouncement method ifFalse: [ ^ self ].\x0a \x0a\x09self model selectedProtocol = self model allProtocol ifFalse: [\x0a\x09\x09self \x0a\x09\x09\x09selectedItem: nil; \x0a\x09\x09\x09selectItem: nil;\x0a\x09\x09\x09setItemsForSelectedProtocol;\x0a \x09\x09refresh ]",
  4046. referencedClasses: [],
  4047. //>>excludeEnd("ide");
  4048. pragmas: [],
  4049. messageSends: ["ifFalse:", "=", "selectedMethod", "model", "method", "selectedProtocol", "allProtocol", "selectedItem:", "selectItem:", "setItemsForSelectedProtocol", "refresh"]
  4050. }, function ($methodClass){ return function (anAnnouncement){
  4051. var self=this,$self=this;
  4052. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4053. return $core.withContext(function($ctx1) {
  4054. //>>excludeEnd("ctx");
  4055. if(!$core.assert([$recv($recv([$self._model()
  4056. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4057. ,$ctx1.sendIdx["model"]=1
  4058. //>>excludeEnd("ctx");
  4059. ][0])._selectedMethod()).__eq($recv(anAnnouncement)._method())
  4060. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4061. ,$ctx1.sendIdx["="]=1
  4062. //>>excludeEnd("ctx");
  4063. ][0])){
  4064. return self;
  4065. }
  4066. if(!$core.assert($recv($recv([$self._model()
  4067. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4068. ,$ctx1.sendIdx["model"]=2
  4069. //>>excludeEnd("ctx");
  4070. ][0])._selectedProtocol()).__eq($recv($self._model())._allProtocol()))){
  4071. $self._selectedItem_(nil);
  4072. $self._selectItem_(nil);
  4073. $self._setItemsForSelectedProtocol();
  4074. $self._refresh();
  4075. }
  4076. return self;
  4077. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4078. }, function($ctx1) {$ctx1.fill(self,"onMethodMoved:",{anAnnouncement:anAnnouncement})});
  4079. //>>excludeEnd("ctx");
  4080. }; }),
  4081. $globals.HLMethodsListWidget);
  4082. $core.addMethod(
  4083. $core.method({
  4084. selector: "onMethodRemoved:",
  4085. protocol: "reactions",
  4086. //>>excludeStart("ide", pragmas.excludeIdeData);
  4087. args: ["anAnnouncement"],
  4088. source: "onMethodRemoved: anAnnouncement\x0a\x09| method |\x0a\x09\x0a\x09method := anAnnouncement method.\x0a\x09\x0a\x09self items detect: [ :each | each = method selector ] ifNone: [ ^ self ].\x0a\x0a self selectedItem ifNotNil: [\x0a \x09(method methodClass = self model selectedClass and: [ method selector = self selectedItem ])\x0a \x09\x09\x09ifTrue: [ \x0a\x09\x09\x09\x09self selectedItem: nil; \x0a\x09\x09\x09\x09selectItem: nil ] ].\x0a\x0a self setItemsForSelectedProtocol.\x0a\x09self \x0a\x09\x09refresh;\x0a\x09\x09focus",
  4089. referencedClasses: [],
  4090. //>>excludeEnd("ide");
  4091. pragmas: [],
  4092. messageSends: ["method", "detect:ifNone:", "items", "=", "selector", "ifNotNil:", "selectedItem", "ifTrue:", "and:", "methodClass", "selectedClass", "model", "selectedItem:", "selectItem:", "setItemsForSelectedProtocol", "refresh", "focus"]
  4093. }, function ($methodClass){ return function (anAnnouncement){
  4094. var self=this,$self=this;
  4095. var method;
  4096. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4097. return $core.withContext(function($ctx1) {
  4098. //>>excludeEnd("ctx");
  4099. var $1,$2;
  4100. var $early={};
  4101. try {
  4102. method=$recv(anAnnouncement)._method();
  4103. $recv($self._items())._detect_ifNone_((function(each){
  4104. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4105. return $core.withContext(function($ctx2) {
  4106. //>>excludeEnd("ctx");
  4107. return [$recv(each).__eq([$recv(method)._selector()
  4108. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4109. ,$ctx2.sendIdx["selector"]=1
  4110. //>>excludeEnd("ctx");
  4111. ][0])
  4112. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4113. ,$ctx2.sendIdx["="]=1
  4114. //>>excludeEnd("ctx");
  4115. ][0];
  4116. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4117. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,1)});
  4118. //>>excludeEnd("ctx");
  4119. }),(function(){
  4120. throw $early=[self];
  4121. }));
  4122. $1=[$self._selectedItem()
  4123. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4124. ,$ctx1.sendIdx["selectedItem"]=1
  4125. //>>excludeEnd("ctx");
  4126. ][0];
  4127. if($1 == null || $1.a$nil){
  4128. $1;
  4129. } else {
  4130. if($core.assert([$recv($recv(method)._methodClass()).__eq($recv($self._model())._selectedClass())
  4131. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4132. ,$ctx1.sendIdx["="]=2
  4133. //>>excludeEnd("ctx");
  4134. ][0])){
  4135. $2=$recv($recv(method)._selector()).__eq($self._selectedItem());
  4136. } else {
  4137. $2=false;
  4138. }
  4139. if($core.assert($2)){
  4140. $self._selectedItem_(nil);
  4141. $self._selectItem_(nil);
  4142. }
  4143. }
  4144. $self._setItemsForSelectedProtocol();
  4145. $self._refresh();
  4146. $self._focus();
  4147. return self;
  4148. }
  4149. catch(e) {if(e===$early)return e[0]; throw e}
  4150. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4151. }, function($ctx1) {$ctx1.fill(self,"onMethodRemoved:",{anAnnouncement:anAnnouncement,method:method})});
  4152. //>>excludeEnd("ctx");
  4153. }; }),
  4154. $globals.HLMethodsListWidget);
  4155. $core.addMethod(
  4156. $core.method({
  4157. selector: "onMethodSelected:",
  4158. protocol: "reactions",
  4159. //>>excludeStart("ide", pragmas.excludeIdeData);
  4160. args: ["anAnnouncement"],
  4161. source: "onMethodSelected: anAnnouncement\x0a\x09| selector method |\x0a\x09\x0a\x09method := anAnnouncement item.\x0a\x09\x0a\x09selector := method isCompiledMethod \x0a\x09\x09ifTrue: [ method selector ]\x0a\x09\x09ifFalse: [ nil ].\x0a\x09\x09\x0a\x09self \x0a\x09\x09selectedItem: selector;\x0a\x09\x09activateItem: selector",
  4162. referencedClasses: [],
  4163. //>>excludeEnd("ide");
  4164. pragmas: [],
  4165. messageSends: ["item", "ifTrue:ifFalse:", "isCompiledMethod", "selector", "selectedItem:", "activateItem:"]
  4166. }, function ($methodClass){ return function (anAnnouncement){
  4167. var self=this,$self=this;
  4168. var selector,method;
  4169. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4170. return $core.withContext(function($ctx1) {
  4171. //>>excludeEnd("ctx");
  4172. method=$recv(anAnnouncement)._item();
  4173. if($core.assert($recv(method)._isCompiledMethod())){
  4174. selector=$recv(method)._selector();
  4175. } else {
  4176. selector=nil;
  4177. }
  4178. $self._selectedItem_(selector);
  4179. $self._activateItem_(selector);
  4180. return self;
  4181. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4182. }, function($ctx1) {$ctx1.fill(self,"onMethodSelected:",{anAnnouncement:anAnnouncement,selector:selector,method:method})});
  4183. //>>excludeEnd("ctx");
  4184. }; }),
  4185. $globals.HLMethodsListWidget);
  4186. $core.addMethod(
  4187. $core.method({
  4188. selector: "onMethodsFocusRequested",
  4189. protocol: "reactions",
  4190. //>>excludeStart("ide", pragmas.excludeIdeData);
  4191. args: [],
  4192. source: "onMethodsFocusRequested\x0a\x09self focus",
  4193. referencedClasses: [],
  4194. //>>excludeEnd("ide");
  4195. pragmas: [],
  4196. messageSends: ["focus"]
  4197. }, function ($methodClass){ return function (){
  4198. var self=this,$self=this;
  4199. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4200. return $core.withContext(function($ctx1) {
  4201. //>>excludeEnd("ctx");
  4202. $self._focus();
  4203. return self;
  4204. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4205. }, function($ctx1) {$ctx1.fill(self,"onMethodsFocusRequested",{})});
  4206. //>>excludeEnd("ctx");
  4207. }; }),
  4208. $globals.HLMethodsListWidget);
  4209. $core.addMethod(
  4210. $core.method({
  4211. selector: "onProtocolAdded:",
  4212. protocol: "reactions",
  4213. //>>excludeStart("ide", pragmas.excludeIdeData);
  4214. args: ["anAnnouncement"],
  4215. source: "onProtocolAdded: anAnnouncement\x0a\x09self model selectedClass = anAnnouncement theClass ifFalse: [ ^ self ].\x0a\x09\x0a\x09self setItemsForSelectedProtocol.\x0a self refresh.\x0a\x09self focus",
  4216. referencedClasses: [],
  4217. //>>excludeEnd("ide");
  4218. pragmas: [],
  4219. messageSends: ["ifFalse:", "=", "selectedClass", "model", "theClass", "setItemsForSelectedProtocol", "refresh", "focus"]
  4220. }, function ($methodClass){ return function (anAnnouncement){
  4221. var self=this,$self=this;
  4222. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4223. return $core.withContext(function($ctx1) {
  4224. //>>excludeEnd("ctx");
  4225. if(!$core.assert($recv($recv($self._model())._selectedClass()).__eq($recv(anAnnouncement)._theClass()))){
  4226. return self;
  4227. }
  4228. $self._setItemsForSelectedProtocol();
  4229. $self._refresh();
  4230. $self._focus();
  4231. return self;
  4232. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4233. }, function($ctx1) {$ctx1.fill(self,"onProtocolAdded:",{anAnnouncement:anAnnouncement})});
  4234. //>>excludeEnd("ctx");
  4235. }; }),
  4236. $globals.HLMethodsListWidget);
  4237. $core.addMethod(
  4238. $core.method({
  4239. selector: "onProtocolRemoved:",
  4240. protocol: "reactions",
  4241. //>>excludeStart("ide", pragmas.excludeIdeData);
  4242. args: ["anAnnouncement"],
  4243. source: "onProtocolRemoved: anAnnouncement\x0a\x09self model selectedClass = anAnnouncement theClass ifFalse: [ ^ self ].\x0a\x09\x0a\x09self setItemsForSelectedProtocol.\x0a self refresh.\x0a\x09self focus",
  4244. referencedClasses: [],
  4245. //>>excludeEnd("ide");
  4246. pragmas: [],
  4247. messageSends: ["ifFalse:", "=", "selectedClass", "model", "theClass", "setItemsForSelectedProtocol", "refresh", "focus"]
  4248. }, function ($methodClass){ return function (anAnnouncement){
  4249. var self=this,$self=this;
  4250. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4251. return $core.withContext(function($ctx1) {
  4252. //>>excludeEnd("ctx");
  4253. if(!$core.assert($recv($recv($self._model())._selectedClass()).__eq($recv(anAnnouncement)._theClass()))){
  4254. return self;
  4255. }
  4256. $self._setItemsForSelectedProtocol();
  4257. $self._refresh();
  4258. $self._focus();
  4259. return self;
  4260. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4261. }, function($ctx1) {$ctx1.fill(self,"onProtocolRemoved:",{anAnnouncement:anAnnouncement})});
  4262. //>>excludeEnd("ctx");
  4263. }; }),
  4264. $globals.HLMethodsListWidget);
  4265. $core.addMethod(
  4266. $core.method({
  4267. selector: "onProtocolSelected:",
  4268. protocol: "reactions",
  4269. //>>excludeStart("ide", pragmas.excludeIdeData);
  4270. args: ["anAnnouncement"],
  4271. source: "onProtocolSelected: anAnnouncement\x0a\x09anAnnouncement isSoft ifTrue: [ ^ self ].\x0a self selectedItem: nil.\x0a \x0a\x09self setItemsForSelectedProtocol.\x0a self refresh",
  4272. referencedClasses: [],
  4273. //>>excludeEnd("ide");
  4274. pragmas: [],
  4275. messageSends: ["ifTrue:", "isSoft", "selectedItem:", "setItemsForSelectedProtocol", "refresh"]
  4276. }, function ($methodClass){ return function (anAnnouncement){
  4277. var self=this,$self=this;
  4278. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4279. return $core.withContext(function($ctx1) {
  4280. //>>excludeEnd("ctx");
  4281. if($core.assert($recv(anAnnouncement)._isSoft())){
  4282. return self;
  4283. }
  4284. $self._selectedItem_(nil);
  4285. $self._setItemsForSelectedProtocol();
  4286. $self._refresh();
  4287. return self;
  4288. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4289. }, function($ctx1) {$ctx1.fill(self,"onProtocolSelected:",{anAnnouncement:anAnnouncement})});
  4290. //>>excludeEnd("ctx");
  4291. }; }),
  4292. $globals.HLMethodsListWidget);
  4293. $core.addMethod(
  4294. $core.method({
  4295. selector: "onShowInstanceToggled",
  4296. protocol: "reactions",
  4297. //>>excludeStart("ide", pragmas.excludeIdeData);
  4298. args: [],
  4299. source: "onShowInstanceToggled\x0a\x09self onProtocolSelected: (HLProtocolSelected on: nil)",
  4300. referencedClasses: ["HLProtocolSelected"],
  4301. //>>excludeEnd("ide");
  4302. pragmas: [],
  4303. messageSends: ["onProtocolSelected:", "on:"]
  4304. }, function ($methodClass){ return function (){
  4305. var self=this,$self=this;
  4306. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4307. return $core.withContext(function($ctx1) {
  4308. //>>excludeEnd("ctx");
  4309. $self._onProtocolSelected_($recv($globals.HLProtocolSelected)._on_(nil));
  4310. return self;
  4311. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4312. }, function($ctx1) {$ctx1.fill(self,"onShowInstanceToggled",{})});
  4313. //>>excludeEnd("ctx");
  4314. }; }),
  4315. $globals.HLMethodsListWidget);
  4316. $core.addMethod(
  4317. $core.method({
  4318. selector: "overrideSelectors",
  4319. protocol: "accessing",
  4320. //>>excludeStart("ide", pragmas.excludeIdeData);
  4321. args: [],
  4322. source: "overrideSelectors\x0a\x09^ self selectorsCache \x0a \x09at: 'override'\x0a ifAbsentPut: [ \x0a \x09self model selectedClass allSuperclasses\x0a\x09\x09\x09\x09inject: Set new into: [ :acc :each | acc addAll: each selectors; yourself ] ]",
  4323. referencedClasses: ["Set"],
  4324. //>>excludeEnd("ide");
  4325. pragmas: [],
  4326. messageSends: ["at:ifAbsentPut:", "selectorsCache", "inject:into:", "allSuperclasses", "selectedClass", "model", "new", "addAll:", "selectors", "yourself"]
  4327. }, function ($methodClass){ return function (){
  4328. var self=this,$self=this;
  4329. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4330. return $core.withContext(function($ctx1) {
  4331. //>>excludeEnd("ctx");
  4332. return $recv($self._selectorsCache())._at_ifAbsentPut_("override",(function(){
  4333. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4334. return $core.withContext(function($ctx2) {
  4335. //>>excludeEnd("ctx");
  4336. return $recv($recv($recv($self._model())._selectedClass())._allSuperclasses())._inject_into_($recv($globals.Set)._new(),(function(acc,each){
  4337. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4338. return $core.withContext(function($ctx3) {
  4339. //>>excludeEnd("ctx");
  4340. $recv(acc)._addAll_($recv(each)._selectors());
  4341. return $recv(acc)._yourself();
  4342. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4343. }, function($ctx3) {$ctx3.fillBlock({acc:acc,each:each},$ctx2,2)});
  4344. //>>excludeEnd("ctx");
  4345. }));
  4346. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4347. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
  4348. //>>excludeEnd("ctx");
  4349. }));
  4350. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4351. }, function($ctx1) {$ctx1.fill(self,"overrideSelectors",{})});
  4352. //>>excludeEnd("ctx");
  4353. }; }),
  4354. $globals.HLMethodsListWidget);
  4355. $core.addMethod(
  4356. $core.method({
  4357. selector: "overridenSelectors",
  4358. protocol: "accessing",
  4359. //>>excludeStart("ide", pragmas.excludeIdeData);
  4360. args: [],
  4361. source: "overridenSelectors\x0a\x09^ self selectorsCache \x0a \x09at: 'overriden'\x0a ifAbsentPut: [ \x0a \x09self model selectedClass allSubclasses\x0a\x09\x09\x09\x09inject: Set new into: [ :acc :each | acc addAll: each selectors; yourself ] ]",
  4362. referencedClasses: ["Set"],
  4363. //>>excludeEnd("ide");
  4364. pragmas: [],
  4365. messageSends: ["at:ifAbsentPut:", "selectorsCache", "inject:into:", "allSubclasses", "selectedClass", "model", "new", "addAll:", "selectors", "yourself"]
  4366. }, function ($methodClass){ return function (){
  4367. var self=this,$self=this;
  4368. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4369. return $core.withContext(function($ctx1) {
  4370. //>>excludeEnd("ctx");
  4371. return $recv($self._selectorsCache())._at_ifAbsentPut_("overriden",(function(){
  4372. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4373. return $core.withContext(function($ctx2) {
  4374. //>>excludeEnd("ctx");
  4375. return $recv($recv($recv($self._model())._selectedClass())._allSubclasses())._inject_into_($recv($globals.Set)._new(),(function(acc,each){
  4376. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4377. return $core.withContext(function($ctx3) {
  4378. //>>excludeEnd("ctx");
  4379. $recv(acc)._addAll_($recv(each)._selectors());
  4380. return $recv(acc)._yourself();
  4381. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4382. }, function($ctx3) {$ctx3.fillBlock({acc:acc,each:each},$ctx2,2)});
  4383. //>>excludeEnd("ctx");
  4384. }));
  4385. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4386. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
  4387. //>>excludeEnd("ctx");
  4388. }));
  4389. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4390. }, function($ctx1) {$ctx1.fill(self,"overridenSelectors",{})});
  4391. //>>excludeEnd("ctx");
  4392. }; }),
  4393. $globals.HLMethodsListWidget);
  4394. $core.addMethod(
  4395. $core.method({
  4396. selector: "renderContentOn:",
  4397. protocol: "rendering",
  4398. //>>excludeStart("ide", pragmas.excludeIdeData);
  4399. args: ["html"],
  4400. source: "renderContentOn: html\x0a\x09self model showInstance\x0a \x09ifFalse: [ html div \x0a \x09class: 'class_side'; \x0a with: [ super renderContentOn: html ] ]\x0a \x09ifTrue: [ super renderContentOn: html ]",
  4401. referencedClasses: [],
  4402. //>>excludeEnd("ide");
  4403. pragmas: [],
  4404. messageSends: ["ifFalse:ifTrue:", "showInstance", "model", "class:", "div", "with:", "renderContentOn:"]
  4405. }, function ($methodClass){ return function (html){
  4406. var self=this,$self=this;
  4407. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4408. return $core.withContext(function($ctx1) {
  4409. //>>excludeEnd("ctx");
  4410. var $1;
  4411. if($core.assert($recv($self._model())._showInstance())){
  4412. [(
  4413. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4414. $ctx1.supercall = true,
  4415. //>>excludeEnd("ctx");
  4416. ($methodClass.superclass||$boot.nilAsClass).fn.prototype._renderContentOn_.call($self,html))
  4417. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4418. ,$ctx1.supercall = false
  4419. //>>excludeEnd("ctx");
  4420. ][0];
  4421. } else {
  4422. $1=$recv(html)._div();
  4423. $recv($1)._class_("class_side");
  4424. $recv($1)._with_((function(){
  4425. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4426. return $core.withContext(function($ctx2) {
  4427. //>>excludeEnd("ctx");
  4428. return [(
  4429. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4430. $ctx2.supercall = true,
  4431. //>>excludeEnd("ctx");
  4432. ($methodClass.superclass||$boot.nilAsClass).fn.prototype._renderContentOn_.call($self,html))
  4433. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4434. ,$ctx2.sendIdx["renderContentOn:"]=1,$ctx2.supercall = false
  4435. //>>excludeEnd("ctx");
  4436. ][0];
  4437. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4438. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,2)});
  4439. //>>excludeEnd("ctx");
  4440. }));
  4441. }
  4442. return self;
  4443. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4444. }, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html})});
  4445. //>>excludeEnd("ctx");
  4446. }; }),
  4447. $globals.HLMethodsListWidget);
  4448. $core.addMethod(
  4449. $core.method({
  4450. selector: "renderItemLabel:on:",
  4451. protocol: "rendering",
  4452. //>>excludeStart("ide", pragmas.excludeIdeData);
  4453. args: ["aSelector", "html"],
  4454. source: "renderItemLabel: aSelector on: html\x0a\x09| origin |\x0a \x0a origin := (self methodForSelector: aSelector) origin.\x0a\x09self model selectedClass = origin\x0a\x09\x09ifTrue: [ html with: aSelector ]\x0a\x09\x09ifFalse: [ html with: aSelector; with: ' '; with: '(', origin name, ')' ]",
  4455. referencedClasses: [],
  4456. //>>excludeEnd("ide");
  4457. pragmas: [],
  4458. messageSends: ["origin", "methodForSelector:", "ifTrue:ifFalse:", "=", "selectedClass", "model", "with:", ",", "name"]
  4459. }, function ($methodClass){ return function (aSelector,html){
  4460. var self=this,$self=this;
  4461. var origin;
  4462. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4463. return $core.withContext(function($ctx1) {
  4464. //>>excludeEnd("ctx");
  4465. origin=$recv($self._methodForSelector_(aSelector))._origin();
  4466. if($core.assert($recv($recv($self._model())._selectedClass()).__eq(origin))){
  4467. [$recv(html)._with_(aSelector)
  4468. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4469. ,$ctx1.sendIdx["with:"]=1
  4470. //>>excludeEnd("ctx");
  4471. ][0];
  4472. } else {
  4473. [$recv(html)._with_(aSelector)
  4474. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4475. ,$ctx1.sendIdx["with:"]=2
  4476. //>>excludeEnd("ctx");
  4477. ][0];
  4478. [$recv(html)._with_(" ")
  4479. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4480. ,$ctx1.sendIdx["with:"]=3
  4481. //>>excludeEnd("ctx");
  4482. ][0];
  4483. $recv(html)._with_([$recv("(".__comma($recv(origin)._name())).__comma(")")
  4484. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4485. ,$ctx1.sendIdx[","]=1
  4486. //>>excludeEnd("ctx");
  4487. ][0]);
  4488. }
  4489. return self;
  4490. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4491. }, function($ctx1) {$ctx1.fill(self,"renderItemLabel:on:",{aSelector:aSelector,html:html,origin:origin})});
  4492. //>>excludeEnd("ctx");
  4493. }; }),
  4494. $globals.HLMethodsListWidget);
  4495. $core.addMethod(
  4496. $core.method({
  4497. selector: "reselectItem:",
  4498. protocol: "actions",
  4499. //>>excludeStart("ide", pragmas.excludeIdeData);
  4500. args: ["aSelector"],
  4501. source: "reselectItem: aSelector\x0a\x09self model softSelectedMethod: (self methodForSelector: aSelector)",
  4502. referencedClasses: [],
  4503. //>>excludeEnd("ide");
  4504. pragmas: [],
  4505. messageSends: ["softSelectedMethod:", "model", "methodForSelector:"]
  4506. }, function ($methodClass){ return function (aSelector){
  4507. var self=this,$self=this;
  4508. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4509. return $core.withContext(function($ctx1) {
  4510. //>>excludeEnd("ctx");
  4511. $recv($self._model())._softSelectedMethod_($self._methodForSelector_(aSelector));
  4512. return self;
  4513. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4514. }, function($ctx1) {$ctx1.fill(self,"reselectItem:",{aSelector:aSelector})});
  4515. //>>excludeEnd("ctx");
  4516. }; }),
  4517. $globals.HLMethodsListWidget);
  4518. $core.addMethod(
  4519. $core.method({
  4520. selector: "selectItem:",
  4521. protocol: "actions",
  4522. //>>excludeStart("ide", pragmas.excludeIdeData);
  4523. args: ["aSelector"],
  4524. source: "selectItem: aSelector\x0a\x09aSelector ifNil: [ ^ self model selectedMethod: nil ].\x0a\x0a \x09self model selectedMethod: (self methodForSelector: aSelector)",
  4525. referencedClasses: [],
  4526. //>>excludeEnd("ide");
  4527. pragmas: [],
  4528. messageSends: ["ifNil:", "selectedMethod:", "model", "methodForSelector:"]
  4529. }, function ($methodClass){ return function (aSelector){
  4530. var self=this,$self=this;
  4531. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4532. return $core.withContext(function($ctx1) {
  4533. //>>excludeEnd("ctx");
  4534. if(aSelector == null || aSelector.a$nil){
  4535. return [$recv([$self._model()
  4536. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4537. ,$ctx1.sendIdx["model"]=1
  4538. //>>excludeEnd("ctx");
  4539. ][0])._selectedMethod_(nil)
  4540. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4541. ,$ctx1.sendIdx["selectedMethod:"]=1
  4542. //>>excludeEnd("ctx");
  4543. ][0];
  4544. } else {
  4545. aSelector;
  4546. }
  4547. $recv($self._model())._selectedMethod_($self._methodForSelector_(aSelector));
  4548. return self;
  4549. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4550. }, function($ctx1) {$ctx1.fill(self,"selectItem:",{aSelector:aSelector})});
  4551. //>>excludeEnd("ctx");
  4552. }; }),
  4553. $globals.HLMethodsListWidget);
  4554. $core.addMethod(
  4555. $core.method({
  4556. selector: "selectorsCache",
  4557. protocol: "accessing",
  4558. //>>excludeStart("ide", pragmas.excludeIdeData);
  4559. args: [],
  4560. source: "selectorsCache\x0a\x09^ self class selectorsCache",
  4561. referencedClasses: [],
  4562. //>>excludeEnd("ide");
  4563. pragmas: [],
  4564. messageSends: ["selectorsCache", "class"]
  4565. }, function ($methodClass){ return function (){
  4566. var self=this,$self=this;
  4567. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4568. return $core.withContext(function($ctx1) {
  4569. //>>excludeEnd("ctx");
  4570. return $recv($self._class())._selectorsCache();
  4571. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4572. }, function($ctx1) {$ctx1.fill(self,"selectorsCache",{})});
  4573. //>>excludeEnd("ctx");
  4574. }; }),
  4575. $globals.HLMethodsListWidget);
  4576. $core.addMethod(
  4577. $core.method({
  4578. selector: "selectorsInProtocol:",
  4579. protocol: "accessing",
  4580. //>>excludeStart("ide", pragmas.excludeIdeData);
  4581. args: ["aString"],
  4582. source: "selectorsInProtocol: aString\x0a\x09^ ((self methodsInProtocol: aString)\x0a \x09collect: [ :each | each selector ]) sorted",
  4583. referencedClasses: [],
  4584. //>>excludeEnd("ide");
  4585. pragmas: [],
  4586. messageSends: ["sorted", "collect:", "methodsInProtocol:", "selector"]
  4587. }, function ($methodClass){ return function (aString){
  4588. var self=this,$self=this;
  4589. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4590. return $core.withContext(function($ctx1) {
  4591. //>>excludeEnd("ctx");
  4592. return $recv($recv($self._methodsInProtocol_(aString))._collect_((function(each){
  4593. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4594. return $core.withContext(function($ctx2) {
  4595. //>>excludeEnd("ctx");
  4596. return $recv(each)._selector();
  4597. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4598. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,1)});
  4599. //>>excludeEnd("ctx");
  4600. })))._sorted();
  4601. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4602. }, function($ctx1) {$ctx1.fill(self,"selectorsInProtocol:",{aString:aString})});
  4603. //>>excludeEnd("ctx");
  4604. }; }),
  4605. $globals.HLMethodsListWidget);
  4606. $core.addMethod(
  4607. $core.method({
  4608. selector: "setItemsForProtocol:",
  4609. protocol: "private",
  4610. //>>excludeStart("ide", pragmas.excludeIdeData);
  4611. args: ["aString"],
  4612. source: "setItemsForProtocol: aString\x0a\x09^ self items: (aString\x0a \x09ifNil: [ #() ]\x0a \x09ifNotNil: [ self selectorsInProtocol: aString ])",
  4613. referencedClasses: [],
  4614. //>>excludeEnd("ide");
  4615. pragmas: [],
  4616. messageSends: ["items:", "ifNil:ifNotNil:", "selectorsInProtocol:"]
  4617. }, function ($methodClass){ return function (aString){
  4618. var self=this,$self=this;
  4619. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4620. return $core.withContext(function($ctx1) {
  4621. //>>excludeEnd("ctx");
  4622. var $1;
  4623. if(aString == null || aString.a$nil){
  4624. $1=[];
  4625. } else {
  4626. $1=$self._selectorsInProtocol_(aString);
  4627. }
  4628. return $self._items_($1);
  4629. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4630. }, function($ctx1) {$ctx1.fill(self,"setItemsForProtocol:",{aString:aString})});
  4631. //>>excludeEnd("ctx");
  4632. }; }),
  4633. $globals.HLMethodsListWidget);
  4634. $core.addMethod(
  4635. $core.method({
  4636. selector: "setItemsForSelectedProtocol",
  4637. protocol: "private",
  4638. //>>excludeStart("ide", pragmas.excludeIdeData);
  4639. args: [],
  4640. source: "setItemsForSelectedProtocol\x0a\x09self setItemsForProtocol: self model selectedProtocol",
  4641. referencedClasses: [],
  4642. //>>excludeEnd("ide");
  4643. pragmas: [],
  4644. messageSends: ["setItemsForProtocol:", "selectedProtocol", "model"]
  4645. }, function ($methodClass){ return function (){
  4646. var self=this,$self=this;
  4647. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4648. return $core.withContext(function($ctx1) {
  4649. //>>excludeEnd("ctx");
  4650. $self._setItemsForProtocol_($recv($self._model())._selectedProtocol());
  4651. return self;
  4652. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4653. }, function($ctx1) {$ctx1.fill(self,"setItemsForSelectedProtocol",{})});
  4654. //>>excludeEnd("ctx");
  4655. }; }),
  4656. $globals.HLMethodsListWidget);
  4657. $core.setSlots($globals.HLMethodsListWidget.a$cls, ["selectorsCache"]);
  4658. $core.addMethod(
  4659. $core.method({
  4660. selector: "selectorsCache",
  4661. protocol: "accessing",
  4662. //>>excludeStart("ide", pragmas.excludeIdeData);
  4663. args: [],
  4664. source: "selectorsCache\x0a\x09^ HLSelectorsCache current",
  4665. referencedClasses: ["HLSelectorsCache"],
  4666. //>>excludeEnd("ide");
  4667. pragmas: [],
  4668. messageSends: ["current"]
  4669. }, function ($methodClass){ return function (){
  4670. var self=this,$self=this;
  4671. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4672. return $core.withContext(function($ctx1) {
  4673. //>>excludeEnd("ctx");
  4674. return $recv($globals.HLSelectorsCache)._current();
  4675. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4676. }, function($ctx1) {$ctx1.fill(self,"selectorsCache",{})});
  4677. //>>excludeEnd("ctx");
  4678. }; }),
  4679. $globals.HLMethodsListWidget.a$cls);
  4680. $core.addClass("HLPackagesListWidget", $globals.HLToolListWidget, "Helios-Browser");
  4681. //>>excludeStart("ide", pragmas.excludeIdeData);
  4682. $globals.HLPackagesListWidget.comment="I render a list of the system packages.";
  4683. //>>excludeEnd("ide");
  4684. $core.addMethod(
  4685. $core.method({
  4686. selector: "cssClassForItem:",
  4687. protocol: "accessing",
  4688. //>>excludeStart("ide", pragmas.excludeIdeData);
  4689. args: ["anItem"],
  4690. source: "cssClassForItem: anItem\x09\x0a\x09^ anItem isDirty \x0a\x09\x09ifTrue: [ 'package_dirty' ]\x0a\x09\x09ifFalse: [ 'package' ]",
  4691. referencedClasses: [],
  4692. //>>excludeEnd("ide");
  4693. pragmas: [],
  4694. messageSends: ["ifTrue:ifFalse:", "isDirty"]
  4695. }, function ($methodClass){ return function (anItem){
  4696. var self=this,$self=this;
  4697. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4698. return $core.withContext(function($ctx1) {
  4699. //>>excludeEnd("ctx");
  4700. if($core.assert($recv(anItem)._isDirty())){
  4701. return "package_dirty";
  4702. } else {
  4703. return "package";
  4704. }
  4705. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4706. }, function($ctx1) {$ctx1.fill(self,"cssClassForItem:",{anItem:anItem})});
  4707. //>>excludeEnd("ctx");
  4708. }; }),
  4709. $globals.HLPackagesListWidget);
  4710. $core.addMethod(
  4711. $core.method({
  4712. selector: "focusClassesListWidget",
  4713. protocol: "actions",
  4714. //>>excludeStart("ide", pragmas.excludeIdeData);
  4715. args: [],
  4716. source: "focusClassesListWidget\x0a\x09self model announcer announce: HLClassesListFocus new",
  4717. referencedClasses: ["HLClassesListFocus"],
  4718. //>>excludeEnd("ide");
  4719. pragmas: [],
  4720. messageSends: ["announce:", "announcer", "model", "new"]
  4721. }, function ($methodClass){ return function (){
  4722. var self=this,$self=this;
  4723. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4724. return $core.withContext(function($ctx1) {
  4725. //>>excludeEnd("ctx");
  4726. $recv($recv($self._model())._announcer())._announce_($recv($globals.HLClassesListFocus)._new());
  4727. return self;
  4728. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4729. }, function($ctx1) {$ctx1.fill(self,"focusClassesListWidget",{})});
  4730. //>>excludeEnd("ctx");
  4731. }; }),
  4732. $globals.HLPackagesListWidget);
  4733. $core.addMethod(
  4734. $core.method({
  4735. selector: "initializeItems",
  4736. protocol: "initialization",
  4737. //>>excludeStart("ide", pragmas.excludeIdeData);
  4738. args: [],
  4739. source: "initializeItems\x0a\x09^ items := self model packages \x0a\x09\x09sort: [ :a :b | a name < b name ]",
  4740. referencedClasses: [],
  4741. //>>excludeEnd("ide");
  4742. pragmas: [],
  4743. messageSends: ["sort:", "packages", "model", "<", "name"]
  4744. }, function ($methodClass){ return function (){
  4745. var self=this,$self=this;
  4746. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4747. return $core.withContext(function($ctx1) {
  4748. //>>excludeEnd("ctx");
  4749. $self.items=$recv($recv($self._model())._packages())._sort_((function(a,b){
  4750. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4751. return $core.withContext(function($ctx2) {
  4752. //>>excludeEnd("ctx");
  4753. return $recv([$recv(a)._name()
  4754. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4755. ,$ctx2.sendIdx["name"]=1
  4756. //>>excludeEnd("ctx");
  4757. ][0]).__lt($recv(b)._name());
  4758. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4759. }, function($ctx2) {$ctx2.fillBlock({a:a,b:b},$ctx1,1)});
  4760. //>>excludeEnd("ctx");
  4761. }));
  4762. return $self.items;
  4763. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4764. }, function($ctx1) {$ctx1.fill(self,"initializeItems",{})});
  4765. //>>excludeEnd("ctx");
  4766. }; }),
  4767. $globals.HLPackagesListWidget);
  4768. $core.addMethod(
  4769. $core.method({
  4770. selector: "items",
  4771. protocol: "accessing",
  4772. //>>excludeStart("ide", pragmas.excludeIdeData);
  4773. args: [],
  4774. source: "items\x0a\x09^ items ifNil: [ self initializeItems ]",
  4775. referencedClasses: [],
  4776. //>>excludeEnd("ide");
  4777. pragmas: [],
  4778. messageSends: ["ifNil:", "initializeItems"]
  4779. }, function ($methodClass){ return function (){
  4780. var self=this,$self=this;
  4781. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4782. return $core.withContext(function($ctx1) {
  4783. //>>excludeEnd("ctx");
  4784. var $1;
  4785. $1=$self.items;
  4786. if($1 == null || $1.a$nil){
  4787. return $self._initializeItems();
  4788. } else {
  4789. return $1;
  4790. }
  4791. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4792. }, function($ctx1) {$ctx1.fill(self,"items",{})});
  4793. //>>excludeEnd("ctx");
  4794. }; }),
  4795. $globals.HLPackagesListWidget);
  4796. $core.addMethod(
  4797. $core.method({
  4798. selector: "label",
  4799. protocol: "accessing",
  4800. //>>excludeStart("ide", pragmas.excludeIdeData);
  4801. args: [],
  4802. source: "label\x0a\x09^ 'Packages'",
  4803. referencedClasses: [],
  4804. //>>excludeEnd("ide");
  4805. pragmas: [],
  4806. messageSends: []
  4807. }, function ($methodClass){ return function (){
  4808. var self=this,$self=this;
  4809. return "Packages";
  4810. }; }),
  4811. $globals.HLPackagesListWidget);
  4812. $core.addMethod(
  4813. $core.method({
  4814. selector: "observeModel",
  4815. protocol: "actions",
  4816. //>>excludeStart("ide", pragmas.excludeIdeData);
  4817. args: [],
  4818. source: "observeModel\x0a self model announcer \x0a\x09\x09on: HLPackageSelected\x0a\x09\x09send: #onPackageSelected:\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: HLPackagesFocusRequested \x0a\x09\x09send: #onPackagesFocusRequested\x0a\x09\x09to: self",
  4819. referencedClasses: ["HLPackageSelected", "HLPackagesFocusRequested"],
  4820. //>>excludeEnd("ide");
  4821. pragmas: [],
  4822. messageSends: ["on:send:to:", "announcer", "model"]
  4823. }, function ($methodClass){ return function (){
  4824. var self=this,$self=this;
  4825. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4826. return $core.withContext(function($ctx1) {
  4827. //>>excludeEnd("ctx");
  4828. var $1;
  4829. $1=$recv($self._model())._announcer();
  4830. [$recv($1)._on_send_to_($globals.HLPackageSelected,"onPackageSelected:",self)
  4831. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4832. ,$ctx1.sendIdx["on:send:to:"]=1
  4833. //>>excludeEnd("ctx");
  4834. ][0];
  4835. $recv($1)._on_send_to_($globals.HLPackagesFocusRequested,"onPackagesFocusRequested",self);
  4836. return self;
  4837. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4838. }, function($ctx1) {$ctx1.fill(self,"observeModel",{})});
  4839. //>>excludeEnd("ctx");
  4840. }; }),
  4841. $globals.HLPackagesListWidget);
  4842. $core.addMethod(
  4843. $core.method({
  4844. selector: "observeSystem",
  4845. protocol: "actions",
  4846. //>>excludeStart("ide", pragmas.excludeIdeData);
  4847. args: [],
  4848. source: "observeSystem\x0a self model systemAnnouncer \x0a\x09\x09on: ClassAdded \x0a\x09\x09send: #onClassAdded:\x0a\x09\x09to: self.\x0a\x09\x09\x0a\x09self model systemAnnouncer\x0a\x09\x09on: PackageAdded\x0a\x09\x09send: #onPackageAdded:\x0a\x09\x09to: self.\x0a\x09\x09\x0a\x09self model systemAnnouncer\x0a\x09\x09on: PackageRemoved\x0a\x09\x09send: #onPackageRemoved:\x0a\x09\x09to: self.\x0a\x09\x09\x0a\x09self model systemAnnouncer\x0a\x09\x09on: PackageClean\x0a\x09\x09send: #onPackageStateChanged\x0a\x09\x09to: self.\x0a\x09\x09\x0a\x09self model systemAnnouncer\x0a\x09\x09on: PackageDirty\x0a\x09\x09send: #onPackageStateChanged\x0a\x09\x09to: self.",
  4849. referencedClasses: ["ClassAdded", "PackageAdded", "PackageRemoved", "PackageClean", "PackageDirty"],
  4850. //>>excludeEnd("ide");
  4851. pragmas: [],
  4852. messageSends: ["on:send:to:", "systemAnnouncer", "model"]
  4853. }, function ($methodClass){ return function (){
  4854. var self=this,$self=this;
  4855. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4856. return $core.withContext(function($ctx1) {
  4857. //>>excludeEnd("ctx");
  4858. [$recv([$recv([$self._model()
  4859. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4860. ,$ctx1.sendIdx["model"]=1
  4861. //>>excludeEnd("ctx");
  4862. ][0])._systemAnnouncer()
  4863. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4864. ,$ctx1.sendIdx["systemAnnouncer"]=1
  4865. //>>excludeEnd("ctx");
  4866. ][0])._on_send_to_($globals.ClassAdded,"onClassAdded:",self)
  4867. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4868. ,$ctx1.sendIdx["on:send:to:"]=1
  4869. //>>excludeEnd("ctx");
  4870. ][0];
  4871. [$recv([$recv([$self._model()
  4872. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4873. ,$ctx1.sendIdx["model"]=2
  4874. //>>excludeEnd("ctx");
  4875. ][0])._systemAnnouncer()
  4876. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4877. ,$ctx1.sendIdx["systemAnnouncer"]=2
  4878. //>>excludeEnd("ctx");
  4879. ][0])._on_send_to_($globals.PackageAdded,"onPackageAdded:",self)
  4880. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4881. ,$ctx1.sendIdx["on:send:to:"]=2
  4882. //>>excludeEnd("ctx");
  4883. ][0];
  4884. [$recv([$recv([$self._model()
  4885. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4886. ,$ctx1.sendIdx["model"]=3
  4887. //>>excludeEnd("ctx");
  4888. ][0])._systemAnnouncer()
  4889. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4890. ,$ctx1.sendIdx["systemAnnouncer"]=3
  4891. //>>excludeEnd("ctx");
  4892. ][0])._on_send_to_($globals.PackageRemoved,"onPackageRemoved:",self)
  4893. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4894. ,$ctx1.sendIdx["on:send:to:"]=3
  4895. //>>excludeEnd("ctx");
  4896. ][0];
  4897. [$recv([$recv([$self._model()
  4898. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4899. ,$ctx1.sendIdx["model"]=4
  4900. //>>excludeEnd("ctx");
  4901. ][0])._systemAnnouncer()
  4902. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4903. ,$ctx1.sendIdx["systemAnnouncer"]=4
  4904. //>>excludeEnd("ctx");
  4905. ][0])._on_send_to_($globals.PackageClean,"onPackageStateChanged",self)
  4906. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4907. ,$ctx1.sendIdx["on:send:to:"]=4
  4908. //>>excludeEnd("ctx");
  4909. ][0];
  4910. $recv($recv($self._model())._systemAnnouncer())._on_send_to_($globals.PackageDirty,"onPackageStateChanged",self);
  4911. return self;
  4912. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4913. }, function($ctx1) {$ctx1.fill(self,"observeSystem",{})});
  4914. //>>excludeEnd("ctx");
  4915. }; }),
  4916. $globals.HLPackagesListWidget);
  4917. $core.addMethod(
  4918. $core.method({
  4919. selector: "onClassAdded:",
  4920. protocol: "reactions",
  4921. //>>excludeStart("ide", pragmas.excludeIdeData);
  4922. args: ["anAnnouncement"],
  4923. source: "onClassAdded: anAnnouncement\x0a\x09\x22Amber doesn't have yet a global organizer for packages\x22\x0a\x09\x0a\x09(self items includes: anAnnouncement theClass package) ifFalse: [ \x0a\x09\x09self \x0a\x09\x09\x09initializeItems;\x0a\x09\x09\x09refresh ]",
  4924. referencedClasses: [],
  4925. //>>excludeEnd("ide");
  4926. pragmas: [],
  4927. messageSends: ["ifFalse:", "includes:", "items", "package", "theClass", "initializeItems", "refresh"]
  4928. }, function ($methodClass){ return function (anAnnouncement){
  4929. var self=this,$self=this;
  4930. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4931. return $core.withContext(function($ctx1) {
  4932. //>>excludeEnd("ctx");
  4933. if(!$core.assert($recv($self._items())._includes_($recv($recv(anAnnouncement)._theClass())._package()))){
  4934. $self._initializeItems();
  4935. $self._refresh();
  4936. }
  4937. return self;
  4938. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4939. }, function($ctx1) {$ctx1.fill(self,"onClassAdded:",{anAnnouncement:anAnnouncement})});
  4940. //>>excludeEnd("ctx");
  4941. }; }),
  4942. $globals.HLPackagesListWidget);
  4943. $core.addMethod(
  4944. $core.method({
  4945. selector: "onPackageAdded:",
  4946. protocol: "reactions",
  4947. //>>excludeStart("ide", pragmas.excludeIdeData);
  4948. args: ["anAnnouncement"],
  4949. source: "onPackageAdded: anAnnouncement\x0a\x09self \x0a\x09\x09initializeItems;\x0a\x09\x09refresh",
  4950. referencedClasses: [],
  4951. //>>excludeEnd("ide");
  4952. pragmas: [],
  4953. messageSends: ["initializeItems", "refresh"]
  4954. }, function ($methodClass){ return function (anAnnouncement){
  4955. var self=this,$self=this;
  4956. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4957. return $core.withContext(function($ctx1) {
  4958. //>>excludeEnd("ctx");
  4959. $self._initializeItems();
  4960. $self._refresh();
  4961. return self;
  4962. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4963. }, function($ctx1) {$ctx1.fill(self,"onPackageAdded:",{anAnnouncement:anAnnouncement})});
  4964. //>>excludeEnd("ctx");
  4965. }; }),
  4966. $globals.HLPackagesListWidget);
  4967. $core.addMethod(
  4968. $core.method({
  4969. selector: "onPackageRemoved:",
  4970. protocol: "reactions",
  4971. //>>excludeStart("ide", pragmas.excludeIdeData);
  4972. args: ["anAnnouncement"],
  4973. source: "onPackageRemoved: anAnnouncement\x0a\x09self \x0a\x09\x09initializeItems;\x0a\x09\x09refresh",
  4974. referencedClasses: [],
  4975. //>>excludeEnd("ide");
  4976. pragmas: [],
  4977. messageSends: ["initializeItems", "refresh"]
  4978. }, function ($methodClass){ return function (anAnnouncement){
  4979. var self=this,$self=this;
  4980. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4981. return $core.withContext(function($ctx1) {
  4982. //>>excludeEnd("ctx");
  4983. $self._initializeItems();
  4984. $self._refresh();
  4985. return self;
  4986. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4987. }, function($ctx1) {$ctx1.fill(self,"onPackageRemoved:",{anAnnouncement:anAnnouncement})});
  4988. //>>excludeEnd("ctx");
  4989. }; }),
  4990. $globals.HLPackagesListWidget);
  4991. $core.addMethod(
  4992. $core.method({
  4993. selector: "onPackageSelected:",
  4994. protocol: "reactions",
  4995. //>>excludeStart("ide", pragmas.excludeIdeData);
  4996. args: ["anAnnouncement"],
  4997. source: "onPackageSelected: anAnnouncement\x0a\x09| package |\x0a\x09\x0a\x09package := anAnnouncement item.\x0a\x09\x0a\x09self selectedItem: package.\x0a\x09self hasFocus ifFalse: [\x0a\x09\x09self\x0a\x09\x09\x09activateItem: package;\x0a\x09\x09\x09focus ]",
  4998. referencedClasses: [],
  4999. //>>excludeEnd("ide");
  5000. pragmas: [],
  5001. messageSends: ["item", "selectedItem:", "ifFalse:", "hasFocus", "activateItem:", "focus"]
  5002. }, function ($methodClass){ return function (anAnnouncement){
  5003. var self=this,$self=this;
  5004. var package_;
  5005. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5006. return $core.withContext(function($ctx1) {
  5007. //>>excludeEnd("ctx");
  5008. package_=$recv(anAnnouncement)._item();
  5009. $self._selectedItem_(package_);
  5010. if(!$core.assert($self._hasFocus())){
  5011. $self._activateItem_(package_);
  5012. $self._focus();
  5013. }
  5014. return self;
  5015. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5016. }, function($ctx1) {$ctx1.fill(self,"onPackageSelected:",{anAnnouncement:anAnnouncement,package_:package_})});
  5017. //>>excludeEnd("ctx");
  5018. }; }),
  5019. $globals.HLPackagesListWidget);
  5020. $core.addMethod(
  5021. $core.method({
  5022. selector: "onPackageStateChanged",
  5023. protocol: "reactions",
  5024. //>>excludeStart("ide", pragmas.excludeIdeData);
  5025. args: [],
  5026. source: "onPackageStateChanged\x0a\x09self refresh",
  5027. referencedClasses: [],
  5028. //>>excludeEnd("ide");
  5029. pragmas: [],
  5030. messageSends: ["refresh"]
  5031. }, function ($methodClass){ return function (){
  5032. var self=this,$self=this;
  5033. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5034. return $core.withContext(function($ctx1) {
  5035. //>>excludeEnd("ctx");
  5036. $self._refresh();
  5037. return self;
  5038. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5039. }, function($ctx1) {$ctx1.fill(self,"onPackageStateChanged",{})});
  5040. //>>excludeEnd("ctx");
  5041. }; }),
  5042. $globals.HLPackagesListWidget);
  5043. $core.addMethod(
  5044. $core.method({
  5045. selector: "onPackagesFocusRequested",
  5046. protocol: "reactions",
  5047. //>>excludeStart("ide", pragmas.excludeIdeData);
  5048. args: [],
  5049. source: "onPackagesFocusRequested\x0a\x09self focus",
  5050. referencedClasses: [],
  5051. //>>excludeEnd("ide");
  5052. pragmas: [],
  5053. messageSends: ["focus"]
  5054. }, function ($methodClass){ return function (){
  5055. var self=this,$self=this;
  5056. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5057. return $core.withContext(function($ctx1) {
  5058. //>>excludeEnd("ctx");
  5059. $self._focus();
  5060. return self;
  5061. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5062. }, function($ctx1) {$ctx1.fill(self,"onPackagesFocusRequested",{})});
  5063. //>>excludeEnd("ctx");
  5064. }; }),
  5065. $globals.HLPackagesListWidget);
  5066. $core.addMethod(
  5067. $core.method({
  5068. selector: "renderItemLabel:on:",
  5069. protocol: "rendering",
  5070. //>>excludeStart("ide", pragmas.excludeIdeData);
  5071. args: ["aPackage", "html"],
  5072. source: "renderItemLabel: aPackage on: html\x0a\x09html with: aPackage name",
  5073. referencedClasses: [],
  5074. //>>excludeEnd("ide");
  5075. pragmas: [],
  5076. messageSends: ["with:", "name"]
  5077. }, function ($methodClass){ return function (aPackage,html){
  5078. var self=this,$self=this;
  5079. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5080. return $core.withContext(function($ctx1) {
  5081. //>>excludeEnd("ctx");
  5082. $recv(html)._with_($recv(aPackage)._name());
  5083. return self;
  5084. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5085. }, function($ctx1) {$ctx1.fill(self,"renderItemLabel:on:",{aPackage:aPackage,html:html})});
  5086. //>>excludeEnd("ctx");
  5087. }; }),
  5088. $globals.HLPackagesListWidget);
  5089. $core.addMethod(
  5090. $core.method({
  5091. selector: "reselectItem:",
  5092. protocol: "actions",
  5093. //>>excludeStart("ide", pragmas.excludeIdeData);
  5094. args: ["anItem"],
  5095. source: "reselectItem: anItem\x0a\x09self model softSelectedPackage: anItem",
  5096. referencedClasses: [],
  5097. //>>excludeEnd("ide");
  5098. pragmas: [],
  5099. messageSends: ["softSelectedPackage:", "model"]
  5100. }, function ($methodClass){ return function (anItem){
  5101. var self=this,$self=this;
  5102. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5103. return $core.withContext(function($ctx1) {
  5104. //>>excludeEnd("ctx");
  5105. $recv($self._model())._softSelectedPackage_(anItem);
  5106. return self;
  5107. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5108. }, function($ctx1) {$ctx1.fill(self,"reselectItem:",{anItem:anItem})});
  5109. //>>excludeEnd("ctx");
  5110. }; }),
  5111. $globals.HLPackagesListWidget);
  5112. $core.addMethod(
  5113. $core.method({
  5114. selector: "selectItem:",
  5115. protocol: "actions",
  5116. //>>excludeStart("ide", pragmas.excludeIdeData);
  5117. args: ["aPackage"],
  5118. source: "selectItem: aPackage\x0a\x09super selectItem: aPackage.\x0a\x09self model selectedPackage: aPackage",
  5119. referencedClasses: [],
  5120. //>>excludeEnd("ide");
  5121. pragmas: [],
  5122. messageSends: ["selectItem:", "selectedPackage:", "model"]
  5123. }, function ($methodClass){ return function (aPackage){
  5124. var self=this,$self=this;
  5125. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5126. return $core.withContext(function($ctx1) {
  5127. //>>excludeEnd("ctx");
  5128. [(
  5129. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5130. $ctx1.supercall = true,
  5131. //>>excludeEnd("ctx");
  5132. ($methodClass.superclass||$boot.nilAsClass).fn.prototype._selectItem_.call($self,aPackage))
  5133. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5134. ,$ctx1.supercall = false
  5135. //>>excludeEnd("ctx");
  5136. ][0];
  5137. $recv($self._model())._selectedPackage_(aPackage);
  5138. return self;
  5139. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5140. }, function($ctx1) {$ctx1.fill(self,"selectItem:",{aPackage:aPackage})});
  5141. //>>excludeEnd("ctx");
  5142. }; }),
  5143. $globals.HLPackagesListWidget);
  5144. $core.addClass("HLProtocolsListWidget", $globals.HLToolListWidget, "Helios-Browser");
  5145. //>>excludeStart("ide", pragmas.excludeIdeData);
  5146. $globals.HLProtocolsListWidget.comment="I render a list of protocols for the selected class.";
  5147. //>>excludeEnd("ide");
  5148. $core.addMethod(
  5149. $core.method({
  5150. selector: "allProtocol",
  5151. protocol: "accessing",
  5152. //>>excludeStart("ide", pragmas.excludeIdeData);
  5153. args: [],
  5154. source: "allProtocol\x0a\x09^ self model allProtocol",
  5155. referencedClasses: [],
  5156. //>>excludeEnd("ide");
  5157. pragmas: [],
  5158. messageSends: ["allProtocol", "model"]
  5159. }, function ($methodClass){ return function (){
  5160. var self=this,$self=this;
  5161. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5162. return $core.withContext(function($ctx1) {
  5163. //>>excludeEnd("ctx");
  5164. return $recv($self._model())._allProtocol();
  5165. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5166. }, function($ctx1) {$ctx1.fill(self,"allProtocol",{})});
  5167. //>>excludeEnd("ctx");
  5168. }; }),
  5169. $globals.HLProtocolsListWidget);
  5170. $core.addMethod(
  5171. $core.method({
  5172. selector: "cssClassForItem:",
  5173. protocol: "accessing",
  5174. //>>excludeStart("ide", pragmas.excludeIdeData);
  5175. args: ["anItem"],
  5176. source: "cssClassForItem: anItem\x0a\x09anItem = self allProtocol ifTrue: [ ^ '' ].\x0a\x09anItem = 'private' ifTrue: [ ^ 'private' ].\x0a\x09anItem = 'initialization' ifTrue: [ ^ 'initialization' ].\x0a\x09(anItem match: '^\x5c*') ifTrue: [ ^ 'extension' ].\x0a\x09^ ''",
  5177. referencedClasses: [],
  5178. //>>excludeEnd("ide");
  5179. pragmas: [],
  5180. messageSends: ["ifTrue:", "=", "allProtocol", "match:"]
  5181. }, function ($methodClass){ return function (anItem){
  5182. var self=this,$self=this;
  5183. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5184. return $core.withContext(function($ctx1) {
  5185. //>>excludeEnd("ctx");
  5186. if($core.assert([$recv(anItem).__eq($self._allProtocol())
  5187. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5188. ,$ctx1.sendIdx["="]=1
  5189. //>>excludeEnd("ctx");
  5190. ][0])){
  5191. return "";
  5192. }
  5193. if($core.assert([$recv(anItem).__eq("private")
  5194. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5195. ,$ctx1.sendIdx["="]=2
  5196. //>>excludeEnd("ctx");
  5197. ][0])){
  5198. return "private";
  5199. }
  5200. if($core.assert($recv(anItem).__eq("initialization"))){
  5201. return "initialization";
  5202. }
  5203. if($core.assert($recv(anItem)._match_("^\x5c*"))){
  5204. return "extension";
  5205. }
  5206. return "";
  5207. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5208. }, function($ctx1) {$ctx1.fill(self,"cssClassForItem:",{anItem:anItem})});
  5209. //>>excludeEnd("ctx");
  5210. }; }),
  5211. $globals.HLProtocolsListWidget);
  5212. $core.addMethod(
  5213. $core.method({
  5214. selector: "label",
  5215. protocol: "accessing",
  5216. //>>excludeStart("ide", pragmas.excludeIdeData);
  5217. args: [],
  5218. source: "label\x0a\x09^ 'Protocols'",
  5219. referencedClasses: [],
  5220. //>>excludeEnd("ide");
  5221. pragmas: [],
  5222. messageSends: []
  5223. }, function ($methodClass){ return function (){
  5224. var self=this,$self=this;
  5225. return "Protocols";
  5226. }; }),
  5227. $globals.HLProtocolsListWidget);
  5228. $core.addMethod(
  5229. $core.method({
  5230. selector: "observeModel",
  5231. protocol: "actions",
  5232. //>>excludeStart("ide", pragmas.excludeIdeData);
  5233. args: [],
  5234. source: "observeModel\x0a self model announcer \x0a\x09\x09on: HLClassSelected\x0a\x09\x09send: #onClassSelected:\x0a\x09\x09to: self;\x0a\x09\x09\x0a \x09on: HLShowInstanceToggled \x0a\x09\x09send: #onShowInstanceToggled:\x0a\x09\x09to: self;\x0a\x09\x09\x0a \x09on: HLProtocolSelected\x0a\x09\x09send: #onProtocolSelected:\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: HLProtocolsFocusRequested \x0a\x09\x09send: #onProtocolsFocusRequested\x0a\x09\x09to: self",
  5235. referencedClasses: ["HLClassSelected", "HLShowInstanceToggled", "HLProtocolSelected", "HLProtocolsFocusRequested"],
  5236. //>>excludeEnd("ide");
  5237. pragmas: [],
  5238. messageSends: ["on:send:to:", "announcer", "model"]
  5239. }, function ($methodClass){ return function (){
  5240. var self=this,$self=this;
  5241. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5242. return $core.withContext(function($ctx1) {
  5243. //>>excludeEnd("ctx");
  5244. var $1;
  5245. $1=$recv($self._model())._announcer();
  5246. [$recv($1)._on_send_to_($globals.HLClassSelected,"onClassSelected:",self)
  5247. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5248. ,$ctx1.sendIdx["on:send:to:"]=1
  5249. //>>excludeEnd("ctx");
  5250. ][0];
  5251. [$recv($1)._on_send_to_($globals.HLShowInstanceToggled,"onShowInstanceToggled:",self)
  5252. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5253. ,$ctx1.sendIdx["on:send:to:"]=2
  5254. //>>excludeEnd("ctx");
  5255. ][0];
  5256. [$recv($1)._on_send_to_($globals.HLProtocolSelected,"onProtocolSelected:",self)
  5257. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5258. ,$ctx1.sendIdx["on:send:to:"]=3
  5259. //>>excludeEnd("ctx");
  5260. ][0];
  5261. $recv($1)._on_send_to_($globals.HLProtocolsFocusRequested,"onProtocolsFocusRequested",self);
  5262. return self;
  5263. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5264. }, function($ctx1) {$ctx1.fill(self,"observeModel",{})});
  5265. //>>excludeEnd("ctx");
  5266. }; }),
  5267. $globals.HLProtocolsListWidget);
  5268. $core.addMethod(
  5269. $core.method({
  5270. selector: "observeSystem",
  5271. protocol: "actions",
  5272. //>>excludeStart("ide", pragmas.excludeIdeData);
  5273. args: [],
  5274. source: "observeSystem\x0a\x09self model systemAnnouncer\x0a\x09\x09on: ProtocolAdded \x0a\x09\x09send: #onProtocolAdded:\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: ProtocolRemoved\x0a\x09\x09send: #onProtocolRemoved:\x0a\x09\x09to: self",
  5275. referencedClasses: ["ProtocolAdded", "ProtocolRemoved"],
  5276. //>>excludeEnd("ide");
  5277. pragmas: [],
  5278. messageSends: ["on:send:to:", "systemAnnouncer", "model"]
  5279. }, function ($methodClass){ return function (){
  5280. var self=this,$self=this;
  5281. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5282. return $core.withContext(function($ctx1) {
  5283. //>>excludeEnd("ctx");
  5284. var $1;
  5285. $1=$recv($self._model())._systemAnnouncer();
  5286. [$recv($1)._on_send_to_($globals.ProtocolAdded,"onProtocolAdded:",self)
  5287. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5288. ,$ctx1.sendIdx["on:send:to:"]=1
  5289. //>>excludeEnd("ctx");
  5290. ][0];
  5291. $recv($1)._on_send_to_($globals.ProtocolRemoved,"onProtocolRemoved:",self);
  5292. return self;
  5293. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5294. }, function($ctx1) {$ctx1.fill(self,"observeSystem",{})});
  5295. //>>excludeEnd("ctx");
  5296. }; }),
  5297. $globals.HLProtocolsListWidget);
  5298. $core.addMethod(
  5299. $core.method({
  5300. selector: "onClassSelected:",
  5301. protocol: "reactions",
  5302. //>>excludeStart("ide", pragmas.excludeIdeData);
  5303. args: ["anAnnouncement"],
  5304. source: "onClassSelected: anAnnouncement\x0a\x09anAnnouncement isSoft ifTrue: [ ^ self ].\x0a self selectedItem: nil.\x0a \x0a self setItemsForSelectedClass.\x0a self refresh",
  5305. referencedClasses: [],
  5306. //>>excludeEnd("ide");
  5307. pragmas: [],
  5308. messageSends: ["ifTrue:", "isSoft", "selectedItem:", "setItemsForSelectedClass", "refresh"]
  5309. }, function ($methodClass){ return function (anAnnouncement){
  5310. var self=this,$self=this;
  5311. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5312. return $core.withContext(function($ctx1) {
  5313. //>>excludeEnd("ctx");
  5314. if($core.assert($recv(anAnnouncement)._isSoft())){
  5315. return self;
  5316. }
  5317. $self._selectedItem_(nil);
  5318. $self._setItemsForSelectedClass();
  5319. $self._refresh();
  5320. return self;
  5321. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5322. }, function($ctx1) {$ctx1.fill(self,"onClassSelected:",{anAnnouncement:anAnnouncement})});
  5323. //>>excludeEnd("ctx");
  5324. }; }),
  5325. $globals.HLProtocolsListWidget);
  5326. $core.addMethod(
  5327. $core.method({
  5328. selector: "onProtocolAdded:",
  5329. protocol: "reactions",
  5330. //>>excludeStart("ide", pragmas.excludeIdeData);
  5331. args: ["anAnnouncement"],
  5332. source: "onProtocolAdded: anAnnouncement\x0a\x09| class |\x0a\x09\x0a\x09class := anAnnouncement theClass.\x0a\x09\x0a\x09class = self model selectedClass ifFalse: [ ^ self ].\x0a \x0a self setItemsForSelectedClass.\x0a self refresh",
  5333. referencedClasses: [],
  5334. //>>excludeEnd("ide");
  5335. pragmas: [],
  5336. messageSends: ["theClass", "ifFalse:", "=", "selectedClass", "model", "setItemsForSelectedClass", "refresh"]
  5337. }, function ($methodClass){ return function (anAnnouncement){
  5338. var self=this,$self=this;
  5339. var class_;
  5340. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5341. return $core.withContext(function($ctx1) {
  5342. //>>excludeEnd("ctx");
  5343. class_=$recv(anAnnouncement)._theClass();
  5344. if(!$core.assert($recv(class_).__eq($recv($self._model())._selectedClass()))){
  5345. return self;
  5346. }
  5347. $self._setItemsForSelectedClass();
  5348. $self._refresh();
  5349. return self;
  5350. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5351. }, function($ctx1) {$ctx1.fill(self,"onProtocolAdded:",{anAnnouncement:anAnnouncement,class_:class_})});
  5352. //>>excludeEnd("ctx");
  5353. }; }),
  5354. $globals.HLProtocolsListWidget);
  5355. $core.addMethod(
  5356. $core.method({
  5357. selector: "onProtocolRemoved:",
  5358. protocol: "reactions",
  5359. //>>excludeStart("ide", pragmas.excludeIdeData);
  5360. args: ["anAnnouncement"],
  5361. source: "onProtocolRemoved: anAnnouncement\x0a\x09| class protocol |\x0a\x09\x0a\x09class := anAnnouncement theClass.\x0a\x09protocol := anAnnouncement protocol.\x0a\x09\x0a\x09class = self model selectedClass ifFalse: [ ^ self ].\x0a \x0a self model selectedProtocol = protocol \x0a \x09ifTrue: [ \x0a\x09\x09\x09self \x0a\x09\x09\x09\x09selectedItem: nil;\x0a\x09\x09\x09\x09selectItem: nil ].\x0a \x0a self setItemsForSelectedClass.\x0a self refresh",
  5362. referencedClasses: [],
  5363. //>>excludeEnd("ide");
  5364. pragmas: [],
  5365. messageSends: ["theClass", "protocol", "ifFalse:", "=", "selectedClass", "model", "ifTrue:", "selectedProtocol", "selectedItem:", "selectItem:", "setItemsForSelectedClass", "refresh"]
  5366. }, function ($methodClass){ return function (anAnnouncement){
  5367. var self=this,$self=this;
  5368. var class_,protocol;
  5369. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5370. return $core.withContext(function($ctx1) {
  5371. //>>excludeEnd("ctx");
  5372. class_=$recv(anAnnouncement)._theClass();
  5373. protocol=$recv(anAnnouncement)._protocol();
  5374. if(!$core.assert([$recv(class_).__eq($recv([$self._model()
  5375. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5376. ,$ctx1.sendIdx["model"]=1
  5377. //>>excludeEnd("ctx");
  5378. ][0])._selectedClass())
  5379. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5380. ,$ctx1.sendIdx["="]=1
  5381. //>>excludeEnd("ctx");
  5382. ][0])){
  5383. return self;
  5384. }
  5385. if($core.assert($recv($recv($self._model())._selectedProtocol()).__eq(protocol))){
  5386. $self._selectedItem_(nil);
  5387. $self._selectItem_(nil);
  5388. }
  5389. $self._setItemsForSelectedClass();
  5390. $self._refresh();
  5391. return self;
  5392. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5393. }, function($ctx1) {$ctx1.fill(self,"onProtocolRemoved:",{anAnnouncement:anAnnouncement,class_:class_,protocol:protocol})});
  5394. //>>excludeEnd("ctx");
  5395. }; }),
  5396. $globals.HLProtocolsListWidget);
  5397. $core.addMethod(
  5398. $core.method({
  5399. selector: "onProtocolSelected:",
  5400. protocol: "reactions",
  5401. //>>excludeStart("ide", pragmas.excludeIdeData);
  5402. args: ["anAnnouncement"],
  5403. source: "onProtocolSelected: anAnnouncement\x0a\x09| protocol |\x0a\x09\x0a\x09protocol := anAnnouncement item.\x0a\x09\x0a\x09self selectedItem: protocol.\x0a\x09protocol ifNil: [ ^ self ].\x0a \x0a\x09self hasFocus ifFalse: [\x0a\x09\x09self \x0a\x09\x09\x09activateItem: protocol;\x0a\x09\x09\x09focus ]",
  5404. referencedClasses: [],
  5405. //>>excludeEnd("ide");
  5406. pragmas: [],
  5407. messageSends: ["item", "selectedItem:", "ifNil:", "ifFalse:", "hasFocus", "activateItem:", "focus"]
  5408. }, function ($methodClass){ return function (anAnnouncement){
  5409. var self=this,$self=this;
  5410. var protocol;
  5411. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5412. return $core.withContext(function($ctx1) {
  5413. //>>excludeEnd("ctx");
  5414. var $1;
  5415. protocol=$recv(anAnnouncement)._item();
  5416. $self._selectedItem_(protocol);
  5417. $1=protocol;
  5418. if($1 == null || $1.a$nil){
  5419. return self;
  5420. } else {
  5421. $1;
  5422. }
  5423. if(!$core.assert($self._hasFocus())){
  5424. $self._activateItem_(protocol);
  5425. $self._focus();
  5426. }
  5427. return self;
  5428. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5429. }, function($ctx1) {$ctx1.fill(self,"onProtocolSelected:",{anAnnouncement:anAnnouncement,protocol:protocol})});
  5430. //>>excludeEnd("ctx");
  5431. }; }),
  5432. $globals.HLProtocolsListWidget);
  5433. $core.addMethod(
  5434. $core.method({
  5435. selector: "onProtocolsFocusRequested",
  5436. protocol: "reactions",
  5437. //>>excludeStart("ide", pragmas.excludeIdeData);
  5438. args: [],
  5439. source: "onProtocolsFocusRequested\x0a\x09self focus",
  5440. referencedClasses: [],
  5441. //>>excludeEnd("ide");
  5442. pragmas: [],
  5443. messageSends: ["focus"]
  5444. }, function ($methodClass){ return function (){
  5445. var self=this,$self=this;
  5446. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5447. return $core.withContext(function($ctx1) {
  5448. //>>excludeEnd("ctx");
  5449. $self._focus();
  5450. return self;
  5451. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5452. }, function($ctx1) {$ctx1.fill(self,"onProtocolsFocusRequested",{})});
  5453. //>>excludeEnd("ctx");
  5454. }; }),
  5455. $globals.HLProtocolsListWidget);
  5456. $core.addMethod(
  5457. $core.method({
  5458. selector: "onShowInstanceToggled:",
  5459. protocol: "reactions",
  5460. //>>excludeStart("ide", pragmas.excludeIdeData);
  5461. args: ["anAnnouncement"],
  5462. source: "onShowInstanceToggled: anAnnouncement\x0a\x09self onClassSelected: (HLClassSelected on: nil)",
  5463. referencedClasses: ["HLClassSelected"],
  5464. //>>excludeEnd("ide");
  5465. pragmas: [],
  5466. messageSends: ["onClassSelected:", "on:"]
  5467. }, function ($methodClass){ return function (anAnnouncement){
  5468. var self=this,$self=this;
  5469. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5470. return $core.withContext(function($ctx1) {
  5471. //>>excludeEnd("ctx");
  5472. $self._onClassSelected_($recv($globals.HLClassSelected)._on_(nil));
  5473. return self;
  5474. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5475. }, function($ctx1) {$ctx1.fill(self,"onShowInstanceToggled:",{anAnnouncement:anAnnouncement})});
  5476. //>>excludeEnd("ctx");
  5477. }; }),
  5478. $globals.HLProtocolsListWidget);
  5479. $core.addMethod(
  5480. $core.method({
  5481. selector: "renderContentOn:",
  5482. protocol: "rendering",
  5483. //>>excludeStart("ide", pragmas.excludeIdeData);
  5484. args: ["html"],
  5485. source: "renderContentOn: html\x0a\x09self model showInstance\x0a \x09ifFalse: [ html div \x0a \x09class: 'class_side'; \x0a with: [ super renderContentOn: html ] ]\x0a \x09ifTrue: [ super renderContentOn: html ]",
  5486. referencedClasses: [],
  5487. //>>excludeEnd("ide");
  5488. pragmas: [],
  5489. messageSends: ["ifFalse:ifTrue:", "showInstance", "model", "class:", "div", "with:", "renderContentOn:"]
  5490. }, function ($methodClass){ return function (html){
  5491. var self=this,$self=this;
  5492. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5493. return $core.withContext(function($ctx1) {
  5494. //>>excludeEnd("ctx");
  5495. var $1;
  5496. if($core.assert($recv($self._model())._showInstance())){
  5497. [(
  5498. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5499. $ctx1.supercall = true,
  5500. //>>excludeEnd("ctx");
  5501. ($methodClass.superclass||$boot.nilAsClass).fn.prototype._renderContentOn_.call($self,html))
  5502. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5503. ,$ctx1.supercall = false
  5504. //>>excludeEnd("ctx");
  5505. ][0];
  5506. } else {
  5507. $1=$recv(html)._div();
  5508. $recv($1)._class_("class_side");
  5509. $recv($1)._with_((function(){
  5510. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5511. return $core.withContext(function($ctx2) {
  5512. //>>excludeEnd("ctx");
  5513. return [(
  5514. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5515. $ctx2.supercall = true,
  5516. //>>excludeEnd("ctx");
  5517. ($methodClass.superclass||$boot.nilAsClass).fn.prototype._renderContentOn_.call($self,html))
  5518. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5519. ,$ctx2.sendIdx["renderContentOn:"]=1,$ctx2.supercall = false
  5520. //>>excludeEnd("ctx");
  5521. ][0];
  5522. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5523. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,2)});
  5524. //>>excludeEnd("ctx");
  5525. }));
  5526. }
  5527. return self;
  5528. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5529. }, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html})});
  5530. //>>excludeEnd("ctx");
  5531. }; }),
  5532. $globals.HLProtocolsListWidget);
  5533. $core.addMethod(
  5534. $core.method({
  5535. selector: "reselectItem:",
  5536. protocol: "actions",
  5537. //>>excludeStart("ide", pragmas.excludeIdeData);
  5538. args: ["anItem"],
  5539. source: "reselectItem: anItem\x0a\x09self model softSelectedProtocol: anItem",
  5540. referencedClasses: [],
  5541. //>>excludeEnd("ide");
  5542. pragmas: [],
  5543. messageSends: ["softSelectedProtocol:", "model"]
  5544. }, function ($methodClass){ return function (anItem){
  5545. var self=this,$self=this;
  5546. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5547. return $core.withContext(function($ctx1) {
  5548. //>>excludeEnd("ctx");
  5549. $recv($self._model())._softSelectedProtocol_(anItem);
  5550. return self;
  5551. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5552. }, function($ctx1) {$ctx1.fill(self,"reselectItem:",{anItem:anItem})});
  5553. //>>excludeEnd("ctx");
  5554. }; }),
  5555. $globals.HLProtocolsListWidget);
  5556. $core.addMethod(
  5557. $core.method({
  5558. selector: "selectItem:",
  5559. protocol: "actions",
  5560. //>>excludeStart("ide", pragmas.excludeIdeData);
  5561. args: ["aString"],
  5562. source: "selectItem: aString\x0a self model selectedProtocol: aString",
  5563. referencedClasses: [],
  5564. //>>excludeEnd("ide");
  5565. pragmas: [],
  5566. messageSends: ["selectedProtocol:", "model"]
  5567. }, function ($methodClass){ return function (aString){
  5568. var self=this,$self=this;
  5569. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5570. return $core.withContext(function($ctx1) {
  5571. //>>excludeEnd("ctx");
  5572. $recv($self._model())._selectedProtocol_(aString);
  5573. return self;
  5574. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5575. }, function($ctx1) {$ctx1.fill(self,"selectItem:",{aString:aString})});
  5576. //>>excludeEnd("ctx");
  5577. }; }),
  5578. $globals.HLProtocolsListWidget);
  5579. $core.addMethod(
  5580. $core.method({
  5581. selector: "selectedItem",
  5582. protocol: "accessing",
  5583. //>>excludeStart("ide", pragmas.excludeIdeData);
  5584. args: [],
  5585. source: "selectedItem\x0a\x09^ super selectedItem\x22 ifNil: [ self allProtocol ]\x22",
  5586. referencedClasses: [],
  5587. //>>excludeEnd("ide");
  5588. pragmas: [],
  5589. messageSends: ["selectedItem"]
  5590. }, function ($methodClass){ return function (){
  5591. var self=this,$self=this;
  5592. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5593. return $core.withContext(function($ctx1) {
  5594. //>>excludeEnd("ctx");
  5595. return [(
  5596. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5597. $ctx1.supercall = true,
  5598. //>>excludeEnd("ctx");
  5599. ($methodClass.superclass||$boot.nilAsClass).fn.prototype._selectedItem.call($self))
  5600. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5601. ,$ctx1.supercall = false
  5602. //>>excludeEnd("ctx");
  5603. ][0];
  5604. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5605. }, function($ctx1) {$ctx1.fill(self,"selectedItem",{})});
  5606. //>>excludeEnd("ctx");
  5607. }; }),
  5608. $globals.HLProtocolsListWidget);
  5609. $core.addMethod(
  5610. $core.method({
  5611. selector: "setItemsForClass:",
  5612. protocol: "private",
  5613. //>>excludeStart("ide", pragmas.excludeIdeData);
  5614. args: ["aClass"],
  5615. source: "setItemsForClass: aClass\x0a\x09self items: (aClass\x0a \x09ifNil: [ Array with: self allProtocol ]\x0a \x09ifNotNil: [ \x0a \x09(Array with: self allProtocol) \x0a \x09addAll: aClass protocols; \x0a yourself ])",
  5616. referencedClasses: ["Array"],
  5617. //>>excludeEnd("ide");
  5618. pragmas: [],
  5619. messageSends: ["items:", "ifNil:ifNotNil:", "with:", "allProtocol", "addAll:", "protocols", "yourself"]
  5620. }, function ($methodClass){ return function (aClass){
  5621. var self=this,$self=this;
  5622. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5623. return $core.withContext(function($ctx1) {
  5624. //>>excludeEnd("ctx");
  5625. var $1,$2;
  5626. if(aClass == null || aClass.a$nil){
  5627. $2=[$recv($globals.Array)._with_([$self._allProtocol()
  5628. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5629. ,$ctx1.sendIdx["allProtocol"]=1
  5630. //>>excludeEnd("ctx");
  5631. ][0])
  5632. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5633. ,$ctx1.sendIdx["with:"]=1
  5634. //>>excludeEnd("ctx");
  5635. ][0];
  5636. } else {
  5637. $1=$recv($globals.Array)._with_($self._allProtocol());
  5638. $recv($1)._addAll_($recv(aClass)._protocols());
  5639. $2=$recv($1)._yourself();
  5640. }
  5641. $self._items_($2);
  5642. return self;
  5643. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5644. }, function($ctx1) {$ctx1.fill(self,"setItemsForClass:",{aClass:aClass})});
  5645. //>>excludeEnd("ctx");
  5646. }; }),
  5647. $globals.HLProtocolsListWidget);
  5648. $core.addMethod(
  5649. $core.method({
  5650. selector: "setItemsForSelectedClass",
  5651. protocol: "private",
  5652. //>>excludeStart("ide", pragmas.excludeIdeData);
  5653. args: [],
  5654. source: "setItemsForSelectedClass\x0a\x09self setItemsForClass: self model selectedClass",
  5655. referencedClasses: [],
  5656. //>>excludeEnd("ide");
  5657. pragmas: [],
  5658. messageSends: ["setItemsForClass:", "selectedClass", "model"]
  5659. }, function ($methodClass){ return function (){
  5660. var self=this,$self=this;
  5661. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5662. return $core.withContext(function($ctx1) {
  5663. //>>excludeEnd("ctx");
  5664. $self._setItemsForClass_($recv($self._model())._selectedClass());
  5665. return self;
  5666. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5667. }, function($ctx1) {$ctx1.fill(self,"setItemsForSelectedClass",{})});
  5668. //>>excludeEnd("ctx");
  5669. }; }),
  5670. $globals.HLProtocolsListWidget);
  5671. $core.addClass("HLSelectorsCache", $globals.Object, "Helios-Browser");
  5672. $core.setSlots($globals.HLSelectorsCache, ["classesCache"]);
  5673. $core.addMethod(
  5674. $core.method({
  5675. selector: "cacheFor:",
  5676. protocol: "accessing",
  5677. //>>excludeStart("ide", pragmas.excludeIdeData);
  5678. args: ["aClass"],
  5679. source: "cacheFor: aClass\x0a\x09aClass ifNil: [ ^ nil ].\x0a \x0a\x09^ self classesCache\x0a \x09at: aClass name\x0a ifAbsentPut: [ self newCacheFor: aClass ]",
  5680. referencedClasses: [],
  5681. //>>excludeEnd("ide");
  5682. pragmas: [],
  5683. messageSends: ["ifNil:", "at:ifAbsentPut:", "classesCache", "name", "newCacheFor:"]
  5684. }, function ($methodClass){ return function (aClass){
  5685. var self=this,$self=this;
  5686. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5687. return $core.withContext(function($ctx1) {
  5688. //>>excludeEnd("ctx");
  5689. if(aClass == null || aClass.a$nil){
  5690. return nil;
  5691. } else {
  5692. aClass;
  5693. }
  5694. return $recv($self._classesCache())._at_ifAbsentPut_($recv(aClass)._name(),(function(){
  5695. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5696. return $core.withContext(function($ctx2) {
  5697. //>>excludeEnd("ctx");
  5698. return $self._newCacheFor_(aClass);
  5699. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5700. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,2)});
  5701. //>>excludeEnd("ctx");
  5702. }));
  5703. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5704. }, function($ctx1) {$ctx1.fill(self,"cacheFor:",{aClass:aClass})});
  5705. //>>excludeEnd("ctx");
  5706. }; }),
  5707. $globals.HLSelectorsCache);
  5708. $core.addMethod(
  5709. $core.method({
  5710. selector: "classesCache",
  5711. protocol: "accessing",
  5712. //>>excludeStart("ide", pragmas.excludeIdeData);
  5713. args: [],
  5714. source: "classesCache\x0a\x09^ classesCache ifNil: [ classesCache := HashedCollection new ]",
  5715. referencedClasses: ["HashedCollection"],
  5716. //>>excludeEnd("ide");
  5717. pragmas: [],
  5718. messageSends: ["ifNil:", "new"]
  5719. }, function ($methodClass){ return function (){
  5720. var self=this,$self=this;
  5721. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5722. return $core.withContext(function($ctx1) {
  5723. //>>excludeEnd("ctx");
  5724. var $1;
  5725. $1=$self.classesCache;
  5726. if($1 == null || $1.a$nil){
  5727. $self.classesCache=$recv($globals.HashedCollection)._new();
  5728. return $self.classesCache;
  5729. } else {
  5730. return $1;
  5731. }
  5732. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5733. }, function($ctx1) {$ctx1.fill(self,"classesCache",{})});
  5734. //>>excludeEnd("ctx");
  5735. }; }),
  5736. $globals.HLSelectorsCache);
  5737. $core.addMethod(
  5738. $core.method({
  5739. selector: "initialize",
  5740. protocol: "initialization",
  5741. //>>excludeStart("ide", pragmas.excludeIdeData);
  5742. args: [],
  5743. source: "initialize\x0a\x09super initialize.\x0a self observeSystem",
  5744. referencedClasses: [],
  5745. //>>excludeEnd("ide");
  5746. pragmas: [],
  5747. messageSends: ["initialize", "observeSystem"]
  5748. }, function ($methodClass){ return function (){
  5749. var self=this,$self=this;
  5750. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5751. return $core.withContext(function($ctx1) {
  5752. //>>excludeEnd("ctx");
  5753. [(
  5754. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5755. $ctx1.supercall = true,
  5756. //>>excludeEnd("ctx");
  5757. ($methodClass.superclass||$boot.nilAsClass).fn.prototype._initialize.call($self))
  5758. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5759. ,$ctx1.supercall = false
  5760. //>>excludeEnd("ctx");
  5761. ][0];
  5762. $self._observeSystem();
  5763. return self;
  5764. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5765. }, function($ctx1) {$ctx1.fill(self,"initialize",{})});
  5766. //>>excludeEnd("ctx");
  5767. }; }),
  5768. $globals.HLSelectorsCache);
  5769. $core.addMethod(
  5770. $core.method({
  5771. selector: "invalidateCacheFor:",
  5772. protocol: "private",
  5773. //>>excludeStart("ide", pragmas.excludeIdeData);
  5774. args: ["aMethod"],
  5775. source: "invalidateCacheFor: aMethod\x0a\x09(self cacheFor: aMethod methodClass)\x0a \x09invalidateSelector: aMethod selector",
  5776. referencedClasses: [],
  5777. //>>excludeEnd("ide");
  5778. pragmas: [],
  5779. messageSends: ["invalidateSelector:", "cacheFor:", "methodClass", "selector"]
  5780. }, function ($methodClass){ return function (aMethod){
  5781. var self=this,$self=this;
  5782. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5783. return $core.withContext(function($ctx1) {
  5784. //>>excludeEnd("ctx");
  5785. $recv($self._cacheFor_($recv(aMethod)._methodClass()))._invalidateSelector_($recv(aMethod)._selector());
  5786. return self;
  5787. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5788. }, function($ctx1) {$ctx1.fill(self,"invalidateCacheFor:",{aMethod:aMethod})});
  5789. //>>excludeEnd("ctx");
  5790. }; }),
  5791. $globals.HLSelectorsCache);
  5792. $core.addMethod(
  5793. $core.method({
  5794. selector: "isOverridden:",
  5795. protocol: "testing",
  5796. //>>excludeStart("ide", pragmas.excludeIdeData);
  5797. args: ["aMethod"],
  5798. source: "isOverridden: aMethod\x0a\x09^ (self cacheFor: aMethod methodClass)\x0a \x09isOverridden: aMethod",
  5799. referencedClasses: [],
  5800. //>>excludeEnd("ide");
  5801. pragmas: [],
  5802. messageSends: ["isOverridden:", "cacheFor:", "methodClass"]
  5803. }, function ($methodClass){ return function (aMethod){
  5804. var self=this,$self=this;
  5805. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5806. return $core.withContext(function($ctx1) {
  5807. //>>excludeEnd("ctx");
  5808. return $recv($self._cacheFor_($recv(aMethod)._methodClass()))._isOverridden_(aMethod);
  5809. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5810. }, function($ctx1) {$ctx1.fill(self,"isOverridden:",{aMethod:aMethod})});
  5811. //>>excludeEnd("ctx");
  5812. }; }),
  5813. $globals.HLSelectorsCache);
  5814. $core.addMethod(
  5815. $core.method({
  5816. selector: "isOverride:",
  5817. protocol: "testing",
  5818. //>>excludeStart("ide", pragmas.excludeIdeData);
  5819. args: ["aMethod"],
  5820. source: "isOverride: aMethod\x0a\x09^ (self cacheFor: aMethod methodClass)\x0a \x09isOverride: aMethod",
  5821. referencedClasses: [],
  5822. //>>excludeEnd("ide");
  5823. pragmas: [],
  5824. messageSends: ["isOverride:", "cacheFor:", "methodClass"]
  5825. }, function ($methodClass){ return function (aMethod){
  5826. var self=this,$self=this;
  5827. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5828. return $core.withContext(function($ctx1) {
  5829. //>>excludeEnd("ctx");
  5830. return $recv($self._cacheFor_($recv(aMethod)._methodClass()))._isOverride_(aMethod);
  5831. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5832. }, function($ctx1) {$ctx1.fill(self,"isOverride:",{aMethod:aMethod})});
  5833. //>>excludeEnd("ctx");
  5834. }; }),
  5835. $globals.HLSelectorsCache);
  5836. $core.addMethod(
  5837. $core.method({
  5838. selector: "newCacheFor:",
  5839. protocol: "factory",
  5840. //>>excludeStart("ide", pragmas.excludeIdeData);
  5841. args: ["aClass"],
  5842. source: "newCacheFor: aClass\x0a\x09^ HLClassCache \x0a \x09on: aClass\x0a selectorsCache: self",
  5843. referencedClasses: ["HLClassCache"],
  5844. //>>excludeEnd("ide");
  5845. pragmas: [],
  5846. messageSends: ["on:selectorsCache:"]
  5847. }, function ($methodClass){ return function (aClass){
  5848. var self=this,$self=this;
  5849. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5850. return $core.withContext(function($ctx1) {
  5851. //>>excludeEnd("ctx");
  5852. return $recv($globals.HLClassCache)._on_selectorsCache_(aClass,self);
  5853. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5854. }, function($ctx1) {$ctx1.fill(self,"newCacheFor:",{aClass:aClass})});
  5855. //>>excludeEnd("ctx");
  5856. }; }),
  5857. $globals.HLSelectorsCache);
  5858. $core.addMethod(
  5859. $core.method({
  5860. selector: "observeSystem",
  5861. protocol: "actions",
  5862. //>>excludeStart("ide", pragmas.excludeIdeData);
  5863. args: [],
  5864. source: "observeSystem\x0a\x09SystemAnnouncer current\x0a\x09\x09on: MethodAdded\x0a\x09\x09send: #onMethodAdded:\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: MethodRemoved\x0a send: #onMethodRemoved:\x0a\x09\x09to: self",
  5865. referencedClasses: ["SystemAnnouncer", "MethodAdded", "MethodRemoved"],
  5866. //>>excludeEnd("ide");
  5867. pragmas: [],
  5868. messageSends: ["on:send:to:", "current"]
  5869. }, function ($methodClass){ return function (){
  5870. var self=this,$self=this;
  5871. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5872. return $core.withContext(function($ctx1) {
  5873. //>>excludeEnd("ctx");
  5874. var $1;
  5875. $1=$recv($globals.SystemAnnouncer)._current();
  5876. [$recv($1)._on_send_to_($globals.MethodAdded,"onMethodAdded:",self)
  5877. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5878. ,$ctx1.sendIdx["on:send:to:"]=1
  5879. //>>excludeEnd("ctx");
  5880. ][0];
  5881. $recv($1)._on_send_to_($globals.MethodRemoved,"onMethodRemoved:",self);
  5882. return self;
  5883. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5884. }, function($ctx1) {$ctx1.fill(self,"observeSystem",{})});
  5885. //>>excludeEnd("ctx");
  5886. }; }),
  5887. $globals.HLSelectorsCache);
  5888. $core.addMethod(
  5889. $core.method({
  5890. selector: "onMethodAdded:",
  5891. protocol: "reactions",
  5892. //>>excludeStart("ide", pragmas.excludeIdeData);
  5893. args: ["anAnnouncement"],
  5894. source: "onMethodAdded: anAnnouncement\x0a\x09self invalidateCacheFor: anAnnouncement method",
  5895. referencedClasses: [],
  5896. //>>excludeEnd("ide");
  5897. pragmas: [],
  5898. messageSends: ["invalidateCacheFor:", "method"]
  5899. }, function ($methodClass){ return function (anAnnouncement){
  5900. var self=this,$self=this;
  5901. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5902. return $core.withContext(function($ctx1) {
  5903. //>>excludeEnd("ctx");
  5904. $self._invalidateCacheFor_($recv(anAnnouncement)._method());
  5905. return self;
  5906. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5907. }, function($ctx1) {$ctx1.fill(self,"onMethodAdded:",{anAnnouncement:anAnnouncement})});
  5908. //>>excludeEnd("ctx");
  5909. }; }),
  5910. $globals.HLSelectorsCache);
  5911. $core.addMethod(
  5912. $core.method({
  5913. selector: "onMethodRemoved:",
  5914. protocol: "reactions",
  5915. //>>excludeStart("ide", pragmas.excludeIdeData);
  5916. args: ["anAnnouncement"],
  5917. source: "onMethodRemoved: anAnnouncement\x0a\x09self invalidateCacheFor: anAnnouncement method",
  5918. referencedClasses: [],
  5919. //>>excludeEnd("ide");
  5920. pragmas: [],
  5921. messageSends: ["invalidateCacheFor:", "method"]
  5922. }, function ($methodClass){ return function (anAnnouncement){
  5923. var self=this,$self=this;
  5924. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5925. return $core.withContext(function($ctx1) {
  5926. //>>excludeEnd("ctx");
  5927. $self._invalidateCacheFor_($recv(anAnnouncement)._method());
  5928. return self;
  5929. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5930. }, function($ctx1) {$ctx1.fill(self,"onMethodRemoved:",{anAnnouncement:anAnnouncement})});
  5931. //>>excludeEnd("ctx");
  5932. }; }),
  5933. $globals.HLSelectorsCache);
  5934. $core.setSlots($globals.HLSelectorsCache.a$cls, ["current"]);
  5935. $core.addMethod(
  5936. $core.method({
  5937. selector: "current",
  5938. protocol: "accessing",
  5939. //>>excludeStart("ide", pragmas.excludeIdeData);
  5940. args: [],
  5941. source: "current\x0a\x09^ current ifNil: [ current := super new ]",
  5942. referencedClasses: [],
  5943. //>>excludeEnd("ide");
  5944. pragmas: [],
  5945. messageSends: ["ifNil:", "new"]
  5946. }, function ($methodClass){ return function (){
  5947. var self=this,$self=this;
  5948. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5949. return $core.withContext(function($ctx1) {
  5950. //>>excludeEnd("ctx");
  5951. var $1;
  5952. $1=$self.current;
  5953. if($1 == null || $1.a$nil){
  5954. $self.current=[(
  5955. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5956. $ctx1.supercall = true,
  5957. //>>excludeEnd("ctx");
  5958. ($methodClass.superclass||$boot.nilAsClass).fn.prototype._new.call($self))
  5959. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5960. ,$ctx1.supercall = false
  5961. //>>excludeEnd("ctx");
  5962. ][0];
  5963. return $self.current;
  5964. } else {
  5965. return $1;
  5966. }
  5967. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5968. }, function($ctx1) {$ctx1.fill(self,"current",{})});
  5969. //>>excludeEnd("ctx");
  5970. }; }),
  5971. $globals.HLSelectorsCache.a$cls);
  5972. $core.addMethod(
  5973. $core.method({
  5974. selector: "flush",
  5975. protocol: "accessing",
  5976. //>>excludeStart("ide", pragmas.excludeIdeData);
  5977. args: [],
  5978. source: "flush\x0a\x09current := nil",
  5979. referencedClasses: [],
  5980. //>>excludeEnd("ide");
  5981. pragmas: [],
  5982. messageSends: []
  5983. }, function ($methodClass){ return function (){
  5984. var self=this,$self=this;
  5985. $self.current=nil;
  5986. return self;
  5987. }; }),
  5988. $globals.HLSelectorsCache.a$cls);
  5989. $core.addMethod(
  5990. $core.method({
  5991. selector: "new",
  5992. protocol: "instance creation",
  5993. //>>excludeStart("ide", pragmas.excludeIdeData);
  5994. args: [],
  5995. source: "new\x0a\x09self shouldNotImplement",
  5996. referencedClasses: [],
  5997. //>>excludeEnd("ide");
  5998. pragmas: [],
  5999. messageSends: ["shouldNotImplement"]
  6000. }, function ($methodClass){ return function (){
  6001. var self=this,$self=this;
  6002. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  6003. return $core.withContext(function($ctx1) {
  6004. //>>excludeEnd("ctx");
  6005. $self._shouldNotImplement();
  6006. return self;
  6007. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  6008. }, function($ctx1) {$ctx1.fill(self,"new",{})});
  6009. //>>excludeEnd("ctx");
  6010. }; }),
  6011. $globals.HLSelectorsCache.a$cls);
  6012. });