Helios-Browser.js 215 KB

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