Helios-Browser.js 214 KB

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