Helios-Browser.js 148 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811
  1. smalltalk.addPackage('Helios-Browser');
  2. smalltalk.addClass('HLBrowser', smalltalk.HLWidget, ['model', 'packagesListWidget', 'classesListWidget', 'protocolsListWidget', 'methodsListWidget', 'sourceWidget'], 'Helios-Browser');
  3. smalltalk.addMethod(
  4. "_announcer",
  5. smalltalk.method({
  6. selector: "announcer",
  7. category: 'accessing',
  8. fn: function (){
  9. var self=this;
  10. return smalltalk.withContext(function($ctx1) { var $1;
  11. $1=_st(_st(self)._model())._announcer();
  12. return $1;
  13. }, function($ctx1) {$ctx1.fill(self,"announcer",{}, smalltalk.HLBrowser)})},
  14. args: [],
  15. source: "announcer\x0a\x09^ self model announcer",
  16. messageSends: ["announcer", "model"],
  17. referencedClasses: []
  18. }),
  19. smalltalk.HLBrowser);
  20. smalltalk.addMethod(
  21. "_classesListWidget",
  22. smalltalk.method({
  23. selector: "classesListWidget",
  24. category: 'widgets',
  25. fn: function (){
  26. var self=this;
  27. return smalltalk.withContext(function($ctx1) { var $2,$1;
  28. $2=self["@classesListWidget"];
  29. if(($receiver = $2) == nil || $receiver == undefined){
  30. self["@classesListWidget"]=_st((smalltalk.HLClassesListWidget || HLClassesListWidget))._on_(_st(self)._model());
  31. self["@classesListWidget"];
  32. $1=_st(self["@classesListWidget"])._next_(_st(self)._protocolsListWidget());
  33. } else {
  34. $1=$2;
  35. };
  36. return $1;
  37. }, function($ctx1) {$ctx1.fill(self,"classesListWidget",{}, smalltalk.HLBrowser)})},
  38. args: [],
  39. source: "classesListWidget\x0a\x09^ classesListWidget ifNil: [\x0a \x09classesListWidget := HLClassesListWidget on: self model.\x0a\x09\x09classesListWidget next: self protocolsListWidget ]",
  40. messageSends: ["ifNil:", "on:", "model", "next:", "protocolsListWidget"],
  41. referencedClasses: ["HLClassesListWidget"]
  42. }),
  43. smalltalk.HLBrowser);
  44. smalltalk.addMethod(
  45. "_environment",
  46. smalltalk.method({
  47. selector: "environment",
  48. category: 'accessing',
  49. fn: function (){
  50. var self=this;
  51. return smalltalk.withContext(function($ctx1) { var $1;
  52. $1=_st(_st(self)._model())._environment();
  53. return $1;
  54. }, function($ctx1) {$ctx1.fill(self,"environment",{}, smalltalk.HLBrowser)})},
  55. args: [],
  56. source: "environment\x0a\x09^ self model environment",
  57. messageSends: ["environment", "model"],
  58. referencedClasses: []
  59. }),
  60. smalltalk.HLBrowser);
  61. smalltalk.addMethod(
  62. "_methodsListWidget",
  63. smalltalk.method({
  64. selector: "methodsListWidget",
  65. category: 'widgets',
  66. fn: function (){
  67. var self=this;
  68. return smalltalk.withContext(function($ctx1) { var $2,$1;
  69. $2=self["@methodsListWidget"];
  70. if(($receiver = $2) == nil || $receiver == undefined){
  71. self["@methodsListWidget"]=_st((smalltalk.HLMethodsListWidget || HLMethodsListWidget))._on_(_st(self)._model());
  72. $1=self["@methodsListWidget"];
  73. } else {
  74. $1=$2;
  75. };
  76. return $1;
  77. }, function($ctx1) {$ctx1.fill(self,"methodsListWidget",{}, smalltalk.HLBrowser)})},
  78. args: [],
  79. source: "methodsListWidget\x0a\x09^ methodsListWidget ifNil: [\x0a \x09methodsListWidget := HLMethodsListWidget on: self model ]",
  80. messageSends: ["ifNil:", "on:", "model"],
  81. referencedClasses: ["HLMethodsListWidget"]
  82. }),
  83. smalltalk.HLBrowser);
  84. smalltalk.addMethod(
  85. "_model",
  86. smalltalk.method({
  87. selector: "model",
  88. category: 'accessing',
  89. fn: function (){
  90. var self=this;
  91. return smalltalk.withContext(function($ctx1) { var $2,$1;
  92. $2=self["@model"];
  93. if(($receiver = $2) == nil || $receiver == undefined){
  94. self["@model"]=_st((smalltalk.HLBrowserModel || HLBrowserModel))._new();
  95. $1=self["@model"];
  96. } else {
  97. $1=$2;
  98. };
  99. return $1;
  100. }, function($ctx1) {$ctx1.fill(self,"model",{}, smalltalk.HLBrowser)})},
  101. args: [],
  102. source: "model\x0a\x09^ model ifNil: [ model := HLBrowserModel new ]",
  103. messageSends: ["ifNil:", "new"],
  104. referencedClasses: ["HLBrowserModel"]
  105. }),
  106. smalltalk.HLBrowser);
  107. smalltalk.addMethod(
  108. "_model_",
  109. smalltalk.method({
  110. selector: "model:",
  111. category: 'accessing',
  112. fn: function (aModel){
  113. var self=this;
  114. return smalltalk.withContext(function($ctx1) { self["@model"]=aModel;
  115. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel}, smalltalk.HLBrowser)})},
  116. args: ["aModel"],
  117. source: "model: aModel\x0a\x09model := aModel",
  118. messageSends: [],
  119. referencedClasses: []
  120. }),
  121. smalltalk.HLBrowser);
  122. smalltalk.addMethod(
  123. "_packagesListWidget",
  124. smalltalk.method({
  125. selector: "packagesListWidget",
  126. category: 'widgets',
  127. fn: function (){
  128. var self=this;
  129. return smalltalk.withContext(function($ctx1) { var $2,$1;
  130. $2=self["@packagesListWidget"];
  131. if(($receiver = $2) == nil || $receiver == undefined){
  132. self["@packagesListWidget"]=_st((smalltalk.HLPackagesListWidget || HLPackagesListWidget))._on_(_st(self)._model());
  133. self["@packagesListWidget"];
  134. $1=_st(self["@packagesListWidget"])._next_(_st(self)._classesListWidget());
  135. } else {
  136. $1=$2;
  137. };
  138. return $1;
  139. }, function($ctx1) {$ctx1.fill(self,"packagesListWidget",{}, smalltalk.HLBrowser)})},
  140. args: [],
  141. source: "packagesListWidget\x0a\x09^ packagesListWidget ifNil: [\x0a \x09packagesListWidget := HLPackagesListWidget on: self model.\x0a\x09\x09packagesListWidget next: self classesListWidget ]",
  142. messageSends: ["ifNil:", "on:", "model", "next:", "classesListWidget"],
  143. referencedClasses: ["HLPackagesListWidget"]
  144. }),
  145. smalltalk.HLBrowser);
  146. smalltalk.addMethod(
  147. "_protocolsListWidget",
  148. smalltalk.method({
  149. selector: "protocolsListWidget",
  150. category: 'widgets',
  151. fn: function (){
  152. var self=this;
  153. return smalltalk.withContext(function($ctx1) { var $2,$1;
  154. $2=self["@protocolsListWidget"];
  155. if(($receiver = $2) == nil || $receiver == undefined){
  156. self["@protocolsListWidget"]=_st((smalltalk.HLProtocolsListWidget || HLProtocolsListWidget))._on_(_st(self)._model());
  157. self["@protocolsListWidget"];
  158. $1=_st(self["@protocolsListWidget"])._next_(_st(self)._methodsListWidget());
  159. } else {
  160. $1=$2;
  161. };
  162. return $1;
  163. }, function($ctx1) {$ctx1.fill(self,"protocolsListWidget",{}, smalltalk.HLBrowser)})},
  164. args: [],
  165. source: "protocolsListWidget\x0a\x09^ protocolsListWidget ifNil: [\x0a \x09protocolsListWidget := HLProtocolsListWidget on: self model.\x0a\x09\x09protocolsListWidget next: self methodsListWidget ]",
  166. messageSends: ["ifNil:", "on:", "model", "next:", "methodsListWidget"],
  167. referencedClasses: ["HLProtocolsListWidget"]
  168. }),
  169. smalltalk.HLBrowser);
  170. smalltalk.addMethod(
  171. "_registerBindingsOn_",
  172. smalltalk.method({
  173. selector: "registerBindingsOn:",
  174. category: 'keybindings',
  175. fn: function (aBindingGroup){
  176. var self=this;
  177. return smalltalk.withContext(function($ctx1) { _st((smalltalk.HLBrowserCommand || HLBrowserCommand))._registerConcreteClassesOn_for_(aBindingGroup,_st(self)._model());
  178. return self}, function($ctx1) {$ctx1.fill(self,"registerBindingsOn:",{aBindingGroup:aBindingGroup},smalltalk.HLBrowser)})},
  179. args: ["aBindingGroup"],
  180. source: "registerBindingsOn: aBindingGroup\x0a\x09HLBrowserCommand registerConcreteClassesOn: aBindingGroup for: self model\x0a\x09\x0a\x09\x22aBindingGroup \x0a \x09addGroupKey: 66 labelled: 'Browse';\x0a addGroupKey: 71 labelled: 'Go to';\x0a addGroupKey: 84 labelled: 'Toggle';\x0a\x09\x09addGroupKey: 77 labelled: 'Move'.\x0a\x09\x09\x09\x0a\x09(aBindingGroup at: 'Move')\x0a\x09\x09addGroupKey: 77 labelled: 'Method';\x0a\x09\x09addGroupKey: 67 labelled: 'Class';\x0a\x09\x09addGroupKey: 80 labelled: 'Protocol'.\x0a \x0a\x09HLMoveMethodToCommand concreteClasses do: [ :each |\x0a \x09\x09\x09(aBindingGroup at: 'Move') \x0a\x09\x09\x09\x09at: each bindingGroup \x0a \x09\x09\x09\x09add: (each on: self model) asBinding ].\x0a\x09\x09\x09\x0a \x09HLBrowserCommand concreteClasses do: [ :each |\x0a \x09\x09\x09aBindingGroup \x0a\x09\x09\x09\x09at: each bindingGroup\x0a \x09\x09\x09\x09add: (each on: self model) asBinding ]\x22",
  181. messageSends: ["registerConcreteClassesOn:for:", "model"],
  182. referencedClasses: ["HLBrowserCommand"]
  183. }),
  184. smalltalk.HLBrowser);
  185. smalltalk.addMethod(
  186. "_renderContentOn_",
  187. smalltalk.method({
  188. selector: "renderContentOn:",
  189. category: 'rendering',
  190. fn: function (html){
  191. var self=this;
  192. return smalltalk.withContext(function($ctx1) { _st(html)._with_(_st((smalltalk.HLContainer || HLContainer))._with_(_st((smalltalk.HLHorizontalSplitter || HLHorizontalSplitter))._with_with_(_st((smalltalk.HLVerticalSplitter || HLVerticalSplitter))._with_with_(_st((smalltalk.HLVerticalSplitter || HLVerticalSplitter))._with_with_(_st(self)._packagesListWidget(),_st(self)._classesListWidget()),_st((smalltalk.HLVerticalSplitter || HLVerticalSplitter))._with_with_(_st(self)._protocolsListWidget(),_st(self)._methodsListWidget())),_st(self)._sourceWidget())));
  193. _st(_st(self)._packagesListWidget())._focus();
  194. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLBrowser)})},
  195. args: ["html"],
  196. 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",
  197. messageSends: ["with:", "with:with:", "packagesListWidget", "classesListWidget", "protocolsListWidget", "methodsListWidget", "sourceWidget", "focus"],
  198. referencedClasses: ["HLVerticalSplitter", "HLHorizontalSplitter", "HLContainer"]
  199. }),
  200. smalltalk.HLBrowser);
  201. smalltalk.addMethod(
  202. "_sourceWidget",
  203. smalltalk.method({
  204. selector: "sourceWidget",
  205. category: 'widgets',
  206. fn: function (){
  207. var self=this;
  208. return smalltalk.withContext(function($ctx1) { var $2,$1;
  209. $2=self["@sourceWidget"];
  210. if(($receiver = $2) == nil || $receiver == undefined){
  211. self["@sourceWidget"]=_st((smalltalk.HLBrowserSourceWidget || HLBrowserSourceWidget))._on_(_st(self)._model());
  212. $1=self["@sourceWidget"];
  213. } else {
  214. $1=$2;
  215. };
  216. return $1;
  217. }, function($ctx1) {$ctx1.fill(self,"sourceWidget",{}, smalltalk.HLBrowser)})},
  218. args: [],
  219. source: "sourceWidget\x0a\x09^ sourceWidget ifNil: [\x0a \x09sourceWidget := HLBrowserSourceWidget on: self model ]",
  220. messageSends: ["ifNil:", "on:", "model"],
  221. referencedClasses: ["HLBrowserSourceWidget"]
  222. }),
  223. smalltalk.HLBrowser);
  224. smalltalk.HLBrowser.klass.iVarNames = ['nextId'];
  225. smalltalk.addMethod(
  226. "_canBeOpenAsTab",
  227. smalltalk.method({
  228. selector: "canBeOpenAsTab",
  229. category: 'testing',
  230. fn: function (){
  231. var self=this;
  232. return smalltalk.withContext(function($ctx1) { return true;
  233. }, function($ctx1) {$ctx1.fill(self,"canBeOpenAsTab",{}, smalltalk.HLBrowser.klass)})},
  234. args: [],
  235. source: "canBeOpenAsTab\x0a\x09^ true",
  236. messageSends: [],
  237. referencedClasses: []
  238. }),
  239. smalltalk.HLBrowser.klass);
  240. smalltalk.addMethod(
  241. "_nextId",
  242. smalltalk.method({
  243. selector: "nextId",
  244. category: 'accessing',
  245. fn: function (){
  246. var self=this;
  247. return smalltalk.withContext(function($ctx1) { var $1,$2;
  248. $1=self["@nextId"];
  249. if(($receiver = $1) == nil || $receiver == undefined){
  250. self["@nextId"]=(0);
  251. self["@nextId"];
  252. } else {
  253. $1;
  254. };
  255. $2=_st("browser_").__comma(_st(_st(self["@nextId"]).__plus((1)))._asString());
  256. return $2;
  257. }, function($ctx1) {$ctx1.fill(self,"nextId",{}, smalltalk.HLBrowser.klass)})},
  258. args: [],
  259. source: "nextId\x0a\x09nextId ifNil: [ nextId := 0 ].\x0a ^ 'browser_', (nextId + 1) asString",
  260. messageSends: ["ifNil:", ",", "asString", "+"],
  261. referencedClasses: []
  262. }),
  263. smalltalk.HLBrowser.klass);
  264. smalltalk.addMethod(
  265. "_tabLabel",
  266. smalltalk.method({
  267. selector: "tabLabel",
  268. category: 'accessing',
  269. fn: function (){
  270. var self=this;
  271. return smalltalk.withContext(function($ctx1) { return "Browser";
  272. }, function($ctx1) {$ctx1.fill(self,"tabLabel",{}, smalltalk.HLBrowser.klass)})},
  273. args: [],
  274. source: "tabLabel\x0a\x09^ 'Browser'",
  275. messageSends: [],
  276. referencedClasses: []
  277. }),
  278. smalltalk.HLBrowser.klass);
  279. smalltalk.addMethod(
  280. "_tabPriority",
  281. smalltalk.method({
  282. selector: "tabPriority",
  283. category: 'accessing',
  284. fn: function (){
  285. var self=this;
  286. return smalltalk.withContext(function($ctx1) { return (0);
  287. }, function($ctx1) {$ctx1.fill(self,"tabPriority",{}, smalltalk.HLBrowser.klass)})},
  288. args: [],
  289. source: "tabPriority\x0a\x09^ 0",
  290. messageSends: [],
  291. referencedClasses: []
  292. }),
  293. smalltalk.HLBrowser.klass);
  294. smalltalk.addClass('HLBrowserListWidget', smalltalk.HLNavigationListWidget, ['model'], 'Helios-Browser');
  295. smalltalk.addMethod(
  296. "_initialize",
  297. smalltalk.method({
  298. selector: "initialize",
  299. category: 'initialization',
  300. fn: function (){
  301. var self=this;
  302. return smalltalk.withContext(function($ctx1) { smalltalk.HLNavigationListWidget.fn.prototype._initialize.apply(_st(self), []);
  303. _st(self)._observeSystem();
  304. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{}, smalltalk.HLBrowserListWidget)})},
  305. args: [],
  306. source: "initialize\x0a\x09super initialize.\x0a \x0a self observeSystem",
  307. messageSends: ["initialize", "observeSystem"],
  308. referencedClasses: []
  309. }),
  310. smalltalk.HLBrowserListWidget);
  311. smalltalk.addMethod(
  312. "_model",
  313. smalltalk.method({
  314. selector: "model",
  315. category: 'accessing',
  316. fn: function (){
  317. var self=this;
  318. return smalltalk.withContext(function($ctx1) { var $1;
  319. $1=self["@model"];
  320. return $1;
  321. }, function($ctx1) {$ctx1.fill(self,"model",{}, smalltalk.HLBrowserListWidget)})},
  322. args: [],
  323. source: "model\x0a\x09^ model",
  324. messageSends: [],
  325. referencedClasses: []
  326. }),
  327. smalltalk.HLBrowserListWidget);
  328. smalltalk.addMethod(
  329. "_model_",
  330. smalltalk.method({
  331. selector: "model:",
  332. category: 'accessing',
  333. fn: function (aBrowserModel){
  334. var self=this;
  335. return smalltalk.withContext(function($ctx1) { self["@model"]=aBrowserModel;
  336. _st(self)._observeModel();
  337. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aBrowserModel:aBrowserModel}, smalltalk.HLBrowserListWidget)})},
  338. args: ["aBrowserModel"],
  339. source: "model: aBrowserModel\x0a\x09model := aBrowserModel.\x0a \x0a self observeModel",
  340. messageSends: ["observeModel"],
  341. referencedClasses: []
  342. }),
  343. smalltalk.HLBrowserListWidget);
  344. smalltalk.addMethod(
  345. "_observeModel",
  346. smalltalk.method({
  347. selector: "observeModel",
  348. category: 'actions',
  349. fn: function (){
  350. var self=this;
  351. return smalltalk.withContext(function($ctx1) { return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{}, smalltalk.HLBrowserListWidget)})},
  352. args: [],
  353. source: "observeModel",
  354. messageSends: [],
  355. referencedClasses: []
  356. }),
  357. smalltalk.HLBrowserListWidget);
  358. smalltalk.addMethod(
  359. "_observeSystem",
  360. smalltalk.method({
  361. selector: "observeSystem",
  362. category: 'actions',
  363. fn: function (){
  364. var self=this;
  365. return smalltalk.withContext(function($ctx1) { return self}, function($ctx1) {$ctx1.fill(self,"observeSystem",{}, smalltalk.HLBrowserListWidget)})},
  366. args: [],
  367. source: "observeSystem",
  368. messageSends: [],
  369. referencedClasses: []
  370. }),
  371. smalltalk.HLBrowserListWidget);
  372. smalltalk.addMethod(
  373. "_on_",
  374. smalltalk.method({
  375. selector: "on:",
  376. category: 'instance creation',
  377. fn: function (aModel){
  378. var self=this;
  379. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  380. $2=_st(self)._new();
  381. _st($2)._model_(aModel);
  382. $3=_st($2)._yourself();
  383. $1=$3;
  384. return $1;
  385. }, function($ctx1) {$ctx1.fill(self,"on:",{aModel:aModel}, smalltalk.HLBrowserListWidget.klass)})},
  386. args: ["aModel"],
  387. source: "on: aModel\x0a\x09^ self new \x0a \x09model: aModel;\x0a yourself",
  388. messageSends: ["model:", "new", "yourself"],
  389. referencedClasses: []
  390. }),
  391. smalltalk.HLBrowserListWidget.klass);
  392. smalltalk.addClass('HLClassesListWidget', smalltalk.HLBrowserListWidget, [], 'Helios-Browser');
  393. smalltalk.addMethod(
  394. "_focusMethodsListWidget",
  395. smalltalk.method({
  396. selector: "focusMethodsListWidget",
  397. category: 'actions',
  398. fn: function (){
  399. var self=this;
  400. return smalltalk.withContext(function($ctx1) { _st(_st(_st(self)._model())._announcer())._announce_(_st((smalltalk.HLMethodsListFocus || HLMethodsListFocus))._new());
  401. return self}, function($ctx1) {$ctx1.fill(self,"focusMethodsListWidget",{}, smalltalk.HLClassesListWidget)})},
  402. args: [],
  403. source: "focusMethodsListWidget\x0a\x09self model announcer announce: HLMethodsListFocus new",
  404. messageSends: ["announce:", "new", "announcer", "model"],
  405. referencedClasses: ["HLMethodsListFocus"]
  406. }),
  407. smalltalk.HLClassesListWidget);
  408. smalltalk.addMethod(
  409. "_focusProtocolsListWidget",
  410. smalltalk.method({
  411. selector: "focusProtocolsListWidget",
  412. category: 'actions',
  413. fn: function (){
  414. var self=this;
  415. return smalltalk.withContext(function($ctx1) { _st(_st(_st(self)._model())._announcer())._announce_(_st((smalltalk.HLProtocolsListFocus || HLProtocolsListFocus))._new());
  416. return self}, function($ctx1) {$ctx1.fill(self,"focusProtocolsListWidget",{}, smalltalk.HLClassesListWidget)})},
  417. args: [],
  418. source: "focusProtocolsListWidget\x0a\x09self model announcer announce: HLProtocolsListFocus new",
  419. messageSends: ["announce:", "new", "announcer", "model"],
  420. referencedClasses: ["HLProtocolsListFocus"]
  421. }),
  422. smalltalk.HLClassesListWidget);
  423. smalltalk.addMethod(
  424. "_getChildrenOf_",
  425. smalltalk.method({
  426. selector: "getChildrenOf:",
  427. category: 'accessing',
  428. fn: function (aClass){
  429. var self=this;
  430. return smalltalk.withContext(function($ctx1) { var $1;
  431. $1=_st(_st(self)._items())._select_((function(each){
  432. return smalltalk.withContext(function($ctx2) { return _st(_st(each)._superclass()).__eq(aClass);
  433. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  434. return $1;
  435. }, function($ctx1) {$ctx1.fill(self,"getChildrenOf:",{aClass:aClass}, smalltalk.HLClassesListWidget)})},
  436. args: ["aClass"],
  437. source: "getChildrenOf: aClass\x0a\x09^ self items select: [ :each | each superclass = aClass ]",
  438. messageSends: ["select:", "=", "superclass", "items"],
  439. referencedClasses: []
  440. }),
  441. smalltalk.HLClassesListWidget);
  442. smalltalk.addMethod(
  443. "_getRootClassesOf_",
  444. smalltalk.method({
  445. selector: "getRootClassesOf:",
  446. category: 'accessing',
  447. fn: function (aCollection){
  448. var self=this;
  449. return smalltalk.withContext(function($ctx1) { var $1;
  450. $1=_st(aCollection)._select_((function(each){
  451. return smalltalk.withContext(function($ctx2) { return _st(_st(aCollection)._includes_(_st(each)._superclass()))._not();
  452. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  453. return $1;
  454. }, function($ctx1) {$ctx1.fill(self,"getRootClassesOf:",{aCollection:aCollection}, smalltalk.HLClassesListWidget)})},
  455. args: ["aCollection"],
  456. source: "getRootClassesOf: aCollection\x0a\x09^ aCollection select: [ :each |\x0a \x09\x09(aCollection includes: each superclass) not ]",
  457. messageSends: ["select:", "not", "includes:", "superclass"],
  458. referencedClasses: []
  459. }),
  460. smalltalk.HLClassesListWidget);
  461. smalltalk.addMethod(
  462. "_iconForItem_",
  463. smalltalk.method({
  464. selector: "iconForItem:",
  465. category: 'accessing',
  466. fn: function (aClass){
  467. var self=this;
  468. return smalltalk.withContext(function($ctx1) { var $2,$1;
  469. $2=_st(_st(_st(aClass)._theNonMetaClass())._comment())._isEmpty();
  470. if(smalltalk.assert($2)){
  471. $1="icon-question-sign";
  472. } else {
  473. $1="icon-none";
  474. };
  475. return $1;
  476. }, function($ctx1) {$ctx1.fill(self,"iconForItem:",{aClass:aClass}, smalltalk.HLClassesListWidget)})},
  477. args: ["aClass"],
  478. source: "iconForItem: aClass\x0a\x09^ aClass theNonMetaClass comment isEmpty\x0a \x09ifFalse: [ 'icon-none' ]\x0a \x09ifTrue: [ 'icon-question-sign' ]",
  479. messageSends: ["ifFalse:ifTrue:", "isEmpty", "comment", "theNonMetaClass"],
  480. referencedClasses: []
  481. }),
  482. smalltalk.HLClassesListWidget);
  483. smalltalk.addMethod(
  484. "_observeModel",
  485. smalltalk.method({
  486. selector: "observeModel",
  487. category: 'actions',
  488. fn: function (){
  489. var self=this;
  490. return smalltalk.withContext(function($ctx1) { var $1,$2;
  491. $1=_st(_st(self)._model())._announcer();
  492. _st($1)._on_do_((smalltalk.HLPackageSelected || HLPackageSelected),(function(ann){
  493. return smalltalk.withContext(function($ctx2) { return _st(self)._onPackageSelected_(_st(ann)._item());
  494. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  495. _st($1)._on_do_((smalltalk.HLShowInstanceToggled || HLShowInstanceToggled),(function(ann){
  496. return smalltalk.withContext(function($ctx2) { return _st(self)._onShowInstanceToggled();
  497. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  498. _st($1)._on_do_((smalltalk.HLClassSelected || HLClassSelected),(function(ann){
  499. return smalltalk.withContext(function($ctx2) { return _st(self)._onClassSelected_(_st(ann)._item());
  500. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  501. $2=_st($1)._on_do_((smalltalk.HLClassesFocusRequested || HLClassesFocusRequested),(function(ann){
  502. return smalltalk.withContext(function($ctx2) { return _st(self)._onClassesFocusRequested();
  503. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  504. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{}, smalltalk.HLClassesListWidget)})},
  505. args: [],
  506. source: "observeModel\x0a\x09self model announcer \x0a \x09on: HLPackageSelected do: [ :ann | self onPackageSelected: ann item ];\x0a \x09on: HLShowInstanceToggled do: [ :ann | self onShowInstanceToggled ];\x0a\x09\x09on: HLClassSelected do: [ :ann | self onClassSelected: ann item ];\x0a\x09\x09on: HLClassesFocusRequested do: [ :ann | self onClassesFocusRequested ]",
  507. messageSends: ["on:do:", "onPackageSelected:", "item", "announcer", "model", "onShowInstanceToggled", "onClassSelected:", "onClassesFocusRequested"],
  508. referencedClasses: ["HLPackageSelected", "HLShowInstanceToggled", "HLClassSelected", "HLClassesFocusRequested"]
  509. }),
  510. smalltalk.HLClassesListWidget);
  511. smalltalk.addMethod(
  512. "_observeSystem",
  513. smalltalk.method({
  514. selector: "observeSystem",
  515. category: 'actions',
  516. fn: function (){
  517. var self=this;
  518. return smalltalk.withContext(function($ctx1) { var $1,$2;
  519. $1=_st((smalltalk.SystemAnnouncer || SystemAnnouncer))._current();
  520. _st($1)._on_do_((smalltalk.ClassAdded || ClassAdded),(function(ann){
  521. return smalltalk.withContext(function($ctx2) { return _st(self)._onClassAdded_(_st(ann)._theClass());
  522. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  523. $2=_st($1)._on_do_((smalltalk.ClassRemoved || ClassRemoved),(function(ann){
  524. return smalltalk.withContext(function($ctx2) { return _st(self)._onClassRemoved_(_st(ann)._theClass());
  525. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  526. return self}, function($ctx1) {$ctx1.fill(self,"observeSystem",{}, smalltalk.HLClassesListWidget)})},
  527. args: [],
  528. source: "observeSystem\x0a\x09SystemAnnouncer current\x0a \x09on: ClassAdded\x0a do: [ :ann | self onClassAdded: ann theClass ];\x0a on: ClassRemoved\x0a do: [ :ann | self onClassRemoved: ann theClass ]",
  529. messageSends: ["on:do:", "onClassAdded:", "theClass", "current", "onClassRemoved:"],
  530. referencedClasses: ["ClassAdded", "SystemAnnouncer", "ClassRemoved"]
  531. }),
  532. smalltalk.HLClassesListWidget);
  533. smalltalk.addMethod(
  534. "_onClassAdded_",
  535. smalltalk.method({
  536. selector: "onClassAdded:",
  537. category: 'reactions',
  538. fn: function (aClass){
  539. var self=this;
  540. return smalltalk.withContext(function($ctx1) { var $1,$2;
  541. $1=_st(_st(aClass)._package()).__eq(_st(_st(self)._model())._selectedPackage());
  542. if(! smalltalk.assert($1)){
  543. $2=self;
  544. return $2;
  545. };
  546. _st(self)._setItemsForSelectedPackage();
  547. _st(self)._refresh();
  548. return self}, function($ctx1) {$ctx1.fill(self,"onClassAdded:",{aClass:aClass}, smalltalk.HLClassesListWidget)})},
  549. args: ["aClass"],
  550. source: "onClassAdded: aClass\x0a\x09aClass package = self model selectedPackage ifFalse: [ ^ self ].\x0a \x0a self setItemsForSelectedPackage.\x0a self refresh",
  551. messageSends: ["ifFalse:", "=", "selectedPackage", "model", "package", "setItemsForSelectedPackage", "refresh"],
  552. referencedClasses: []
  553. }),
  554. smalltalk.HLClassesListWidget);
  555. smalltalk.addMethod(
  556. "_onClassRemoved_",
  557. smalltalk.method({
  558. selector: "onClassRemoved:",
  559. category: 'reactions',
  560. fn: function (aClass){
  561. var self=this;
  562. return smalltalk.withContext(function($ctx1) { var $1,$2,$3;
  563. $1=_st(_st(aClass)._package()).__eq(_st(_st(self)._model())._selectedPackage());
  564. if(! smalltalk.assert($1)){
  565. $2=self;
  566. return $2;
  567. };
  568. $3=_st(aClass).__eq(_st(_st(self)._model())._selectedClass());
  569. if(smalltalk.assert($3)){
  570. _st(self)._selectItem_(nil);
  571. };
  572. _st(self)._setItemsForSelectedPackage();
  573. _st(self)._refresh();
  574. return self}, function($ctx1) {$ctx1.fill(self,"onClassRemoved:",{aClass:aClass}, smalltalk.HLClassesListWidget)})},
  575. args: ["aClass"],
  576. source: "onClassRemoved: aClass\x0a\x09aClass package = self model selectedPackage ifFalse: [ ^ self ].\x0a aClass = self model selectedClass ifTrue: [ self selectItem: nil ].\x0a \x0a self setItemsForSelectedPackage.\x0a self refresh",
  577. messageSends: ["ifFalse:", "=", "selectedPackage", "model", "package", "ifTrue:", "selectItem:", "selectedClass", "setItemsForSelectedPackage", "refresh"],
  578. referencedClasses: []
  579. }),
  580. smalltalk.HLClassesListWidget);
  581. smalltalk.addMethod(
  582. "_onClassSelected_",
  583. smalltalk.method({
  584. selector: "onClassSelected:",
  585. category: 'reactions',
  586. fn: function (aClass){
  587. var self=this;
  588. return smalltalk.withContext(function($ctx1) { var $1,$2;
  589. _st(self)._selectedItem_(aClass);
  590. $1=aClass;
  591. if(($receiver = $1) == nil || $receiver == undefined){
  592. $2=self;
  593. return $2;
  594. } else {
  595. $1;
  596. };
  597. _st(self)._focus();
  598. return self}, function($ctx1) {$ctx1.fill(self,"onClassSelected:",{aClass:aClass}, smalltalk.HLClassesListWidget)})},
  599. args: ["aClass"],
  600. source: "onClassSelected: aClass\x0a\x09self selectedItem: aClass.\x0a\x09aClass ifNil: [ ^ self ].\x0a \x0a self focus",
  601. messageSends: ["selectedItem:", "ifNil:", "focus"],
  602. referencedClasses: []
  603. }),
  604. smalltalk.HLClassesListWidget);
  605. smalltalk.addMethod(
  606. "_onClassesFocusRequested",
  607. smalltalk.method({
  608. selector: "onClassesFocusRequested",
  609. category: 'reactions',
  610. fn: function (){
  611. var self=this;
  612. return smalltalk.withContext(function($ctx1) { _st(self)._focus();
  613. return self}, function($ctx1) {$ctx1.fill(self,"onClassesFocusRequested",{}, smalltalk.HLClassesListWidget)})},
  614. args: [],
  615. source: "onClassesFocusRequested\x0a\x09self focus",
  616. messageSends: ["focus"],
  617. referencedClasses: []
  618. }),
  619. smalltalk.HLClassesListWidget);
  620. smalltalk.addMethod(
  621. "_onPackageSelected_",
  622. smalltalk.method({
  623. selector: "onPackageSelected:",
  624. category: 'reactions',
  625. fn: function (aPackage){
  626. var self=this;
  627. return smalltalk.withContext(function($ctx1) { _st(self)._selectedItem_(nil);
  628. _st(self)._setItemsForSelectedPackage();
  629. _st(self)._refresh();
  630. return self}, function($ctx1) {$ctx1.fill(self,"onPackageSelected:",{aPackage:aPackage}, smalltalk.HLClassesListWidget)})},
  631. args: ["aPackage"],
  632. source: "onPackageSelected: aPackage\x0a self selectedItem: nil.\x0a \x0a self setItemsForSelectedPackage.\x0a self refresh",
  633. messageSends: ["selectedItem:", "setItemsForSelectedPackage", "refresh"],
  634. referencedClasses: []
  635. }),
  636. smalltalk.HLClassesListWidget);
  637. smalltalk.addMethod(
  638. "_onShowInstanceToggled",
  639. smalltalk.method({
  640. selector: "onShowInstanceToggled",
  641. category: 'reactions',
  642. fn: function (){
  643. var self=this;
  644. return smalltalk.withContext(function($ctx1) { _st(self)._refresh();
  645. return self}, function($ctx1) {$ctx1.fill(self,"onShowInstanceToggled",{}, smalltalk.HLClassesListWidget)})},
  646. args: [],
  647. source: "onShowInstanceToggled\x0a\x09self refresh",
  648. messageSends: ["refresh"],
  649. referencedClasses: []
  650. }),
  651. smalltalk.HLClassesListWidget);
  652. smalltalk.addMethod(
  653. "_renderButtonsOn_",
  654. smalltalk.method({
  655. selector: "renderButtonsOn:",
  656. category: 'rendering',
  657. fn: function (html){
  658. var self=this;
  659. return smalltalk.withContext(function($ctx1) { var $1,$3,$4,$5,$6,$7,$8,$2,$9,$10;
  660. $1=_st(html)._div();
  661. _st($1)._class_("btn-group");
  662. _st($1)._at_put_("data-toggle","buttons-radio");
  663. $2=_st($1)._with_((function(){
  664. return smalltalk.withContext(function($ctx2) { $3=_st(html)._button();
  665. _st($3)._class_(_st((smalltalk.String || String))._streamContents_((function(str){
  666. return smalltalk.withContext(function($ctx3) { _st(str)._nextPutAll_("btn");
  667. $4=_st(self)._showInstance();
  668. if(smalltalk.assert($4)){
  669. return _st(str)._nextPutAll_(" active");
  670. };
  671. }, function($ctx3) {$ctx3.fillBlock({str:str},$ctx1)})})));
  672. _st($3)._with_("Instance");
  673. $5=_st($3)._onClick_((function(){
  674. return smalltalk.withContext(function($ctx3) { return _st(self)._showInstance_(true);
  675. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  676. $5;
  677. $6=_st(html)._button();
  678. _st($6)._class_(_st((smalltalk.String || String))._streamContents_((function(str){
  679. return smalltalk.withContext(function($ctx3) { _st(str)._nextPutAll_("btn");
  680. $7=_st(_st(self)._model())._showInstance();
  681. if(! smalltalk.assert($7)){
  682. return _st(str)._nextPutAll_(" active");
  683. };
  684. }, function($ctx3) {$ctx3.fillBlock({str:str},$ctx1)})})));
  685. _st($6)._with_("Class");
  686. $8=_st($6)._onClick_((function(){
  687. return smalltalk.withContext(function($ctx3) { return _st(_st(self)._model())._showInstance_(false);
  688. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  689. return $8;
  690. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  691. $9=_st(html)._button();
  692. _st($9)._class_("btn");
  693. _st($9)._at_put_("data-toggle","button");
  694. $10=_st($9)._with_("Comment");
  695. return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html}, smalltalk.HLClassesListWidget)})},
  696. args: ["html"],
  697. source: "renderButtonsOn: html\x0a\x09html div \x0a class: 'btn-group';\x0a\x09\x09at: 'data-toggle' put: 'buttons-radio';\x0a\x09\x09with: [ \x0a \x09html button \x0a class: (String streamContents: [ :str |\x0a \x09str nextPutAll: 'btn'.\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'.\x0a self model showInstance ifFalse: [ \x0a \x09str nextPutAll: ' active'] ]);\x0a \x09\x09\x09\x09with: 'Class';\x0a\x09\x09\x09\x09onClick: [ self model showInstance: false ] ].\x0a \x0a \x09html button \x0a \x09class: 'btn';\x0a at: 'data-toggle' put: 'button';\x0a \x09\x09\x09with: 'Comment'",
  698. messageSends: ["class:", "div", "at:put:", "with:", "streamContents:", "nextPutAll:", "ifTrue:", "showInstance", "button", "onClick:", "showInstance:", "ifFalse:", "model"],
  699. referencedClasses: ["String"]
  700. }),
  701. smalltalk.HLClassesListWidget);
  702. smalltalk.addMethod(
  703. "_renderItem_level_on_",
  704. smalltalk.method({
  705. selector: "renderItem:level:on:",
  706. category: 'rendering',
  707. fn: function (aClass,anInteger,html){
  708. var self=this;
  709. var li;
  710. return smalltalk.withContext(function($ctx1) { var $1,$3,$4,$2;
  711. li=_st(html)._li();
  712. $1=li;
  713. _st($1)._at_put_("list-data",_st(_st(self)._items())._indexOf_(aClass));
  714. _st($1)._class_(_st(self)._cssClassForItem_(aClass));
  715. $2=_st($1)._with_((function(){
  716. return smalltalk.withContext(function($ctx2) { $3=_st(html)._a();
  717. _st($3)._with_((function(){
  718. return smalltalk.withContext(function($ctx3) { _st(_st(html)._tag_("i"))._class_(_st(self)._iconForItem_(aClass));
  719. return _st(self)._renderItemLabel_level_on_(aClass,anInteger,html);
  720. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  721. $4=_st($3)._onClick_((function(){
  722. return smalltalk.withContext(function($ctx3) { return _st(self)._activateListItem_(_st(li)._asJQuery());
  723. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  724. return $4;
  725. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  726. _st(_st(self)._getChildrenOf_(aClass))._do_((function(each){
  727. return smalltalk.withContext(function($ctx2) { return _st(self)._renderItem_level_on_(each,_st(anInteger).__plus((1)),html);
  728. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  729. return self}, function($ctx1) {$ctx1.fill(self,"renderItem:level:on:",{aClass:aClass,anInteger:anInteger,html:html,li:li}, smalltalk.HLClassesListWidget)})},
  730. args: ["aClass", "anInteger", "html"],
  731. source: "renderItem: aClass level: anInteger on: html\x0a\x09| li |\x0a \x0a\x09li := html li.\x0a li\x0a \x09at: 'list-data' put: (self items indexOf: aClass);\x0a \x09class: (self cssClassForItem: aClass);\x0a with: [ \x0a \x09html a\x0a \x09with: [ \x0a \x09\x09(html tag: 'i') class: (self iconForItem: aClass).\x0a \x09\x09\x09\x09\x09self renderItemLabel: aClass level: anInteger on: html ];\x0a\x09\x09\x09\x09onClick: [\x0a \x09self activateListItem: li asJQuery ] ].\x0a \x0a (self getChildrenOf: aClass) do: [ :each |\x0a \x09self renderItem: each level: anInteger + 1 on: html ]",
  732. messageSends: ["li", "at:put:", "indexOf:", "items", "class:", "cssClassForItem:", "with:", "iconForItem:", "tag:", "renderItemLabel:level:on:", "a", "onClick:", "activateListItem:", "asJQuery", "do:", "renderItem:level:on:", "+", "getChildrenOf:"],
  733. referencedClasses: []
  734. }),
  735. smalltalk.HLClassesListWidget);
  736. smalltalk.addMethod(
  737. "_renderItem_on_",
  738. smalltalk.method({
  739. selector: "renderItem:on:",
  740. category: 'rendering',
  741. fn: function (aClass,html){
  742. var self=this;
  743. return smalltalk.withContext(function($ctx1) { smalltalk.HLBrowserListWidget.fn.prototype._renderItem_on_.apply(_st(self), [aClass,html]);
  744. _st(_st(self)._getChildrenOf_(aClass))._do_((function(each){
  745. return smalltalk.withContext(function($ctx2) { return _st(self)._renderItem_level_on_(each,(1),html);
  746. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  747. return self}, function($ctx1) {$ctx1.fill(self,"renderItem:on:",{aClass:aClass,html:html}, smalltalk.HLClassesListWidget)})},
  748. args: ["aClass", "html"],
  749. 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 ]",
  750. messageSends: ["renderItem:on:", "do:", "renderItem:level:on:", "getChildrenOf:"],
  751. referencedClasses: []
  752. }),
  753. smalltalk.HLClassesListWidget);
  754. smalltalk.addMethod(
  755. "_renderItemLabel_level_on_",
  756. smalltalk.method({
  757. selector: "renderItemLabel:level:on:",
  758. category: 'rendering',
  759. fn: function (aClass,anInteger,html){
  760. var self=this;
  761. return smalltalk.withContext(function($ctx1) { _st(_st(_st(html)._span())._asJQuery())._html_(_st((smalltalk.String || String))._streamContents_((function(str){
  762. return smalltalk.withContext(function($ctx2) { _st(anInteger)._timesRepeat_((function(){
  763. return smalltalk.withContext(function($ctx3) { return _st(str)._nextPutAll_("    ");
  764. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  765. return _st(str)._nextPutAll_(_st(aClass)._name());
  766. }, function($ctx2) {$ctx2.fillBlock({str:str},$ctx1)})})));
  767. return self}, function($ctx1) {$ctx1.fill(self,"renderItemLabel:level:on:",{aClass:aClass,anInteger:anInteger,html:html}, smalltalk.HLClassesListWidget)})},
  768. args: ["aClass", "anInteger", "html"],
  769. source: "renderItemLabel: aClass level: anInteger on: html\x0a\x09html span asJQuery html: (String streamContents: [ :str |\x0a\x09\x09anInteger timesRepeat: [\x0a\x09\x09\x09str nextPutAll: '    '].\x0a\x09\x09\x09str nextPutAll: aClass name ])",
  770. messageSends: ["html:", "streamContents:", "timesRepeat:", "nextPutAll:", "name", "asJQuery", "span"],
  771. referencedClasses: ["String"]
  772. }),
  773. smalltalk.HLClassesListWidget);
  774. smalltalk.addMethod(
  775. "_renderItemLabel_on_",
  776. smalltalk.method({
  777. selector: "renderItemLabel:on:",
  778. category: 'rendering',
  779. fn: function (aClass,html){
  780. var self=this;
  781. return smalltalk.withContext(function($ctx1) { _st(self)._renderItemLabel_level_on_(aClass,(0),html);
  782. return self}, function($ctx1) {$ctx1.fill(self,"renderItemLabel:on:",{aClass:aClass,html:html}, smalltalk.HLClassesListWidget)})},
  783. args: ["aClass", "html"],
  784. source: "renderItemLabel: aClass on: html\x0a\x09self renderItemLabel: aClass level: 0 on: html",
  785. messageSends: ["renderItemLabel:level:on:"],
  786. referencedClasses: []
  787. }),
  788. smalltalk.HLClassesListWidget);
  789. smalltalk.addMethod(
  790. "_renderListOn_",
  791. smalltalk.method({
  792. selector: "renderListOn:",
  793. category: 'rendering',
  794. fn: function (html){
  795. var self=this;
  796. return smalltalk.withContext(function($ctx1) { _st(_st(self)._getRootClassesOf_(_st(self)._items()))._do_((function(each){
  797. return smalltalk.withContext(function($ctx2) { return _st(self)._renderItem_on_(each,html);
  798. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  799. return self}, function($ctx1) {$ctx1.fill(self,"renderListOn:",{html:html}, smalltalk.HLClassesListWidget)})},
  800. args: ["html"],
  801. source: "renderListOn: html\x0a\x09(self getRootClassesOf: self items)\x0a \x09do: [ :each | self renderItem: each on: html ]",
  802. messageSends: ["do:", "renderItem:on:", "getRootClassesOf:", "items"],
  803. referencedClasses: []
  804. }),
  805. smalltalk.HLClassesListWidget);
  806. smalltalk.addMethod(
  807. "_selectItem_",
  808. smalltalk.method({
  809. selector: "selectItem:",
  810. category: 'actions',
  811. fn: function (aClass){
  812. var self=this;
  813. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._selectedClass_(aClass);
  814. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{aClass:aClass}, smalltalk.HLClassesListWidget)})},
  815. args: ["aClass"],
  816. source: "selectItem: aClass\x0a self model selectedClass: aClass",
  817. messageSends: ["selectedClass:", "model"],
  818. referencedClasses: []
  819. }),
  820. smalltalk.HLClassesListWidget);
  821. smalltalk.addMethod(
  822. "_setItemsForPackage_",
  823. smalltalk.method({
  824. selector: "setItemsForPackage:",
  825. category: 'private',
  826. fn: function (aPackage){
  827. var self=this;
  828. return smalltalk.withContext(function($ctx1) { var $1,$3,$2;
  829. $1=self;
  830. $3=aPackage;
  831. if(($receiver = $3) == nil || $receiver == undefined){
  832. $2=[];
  833. } else {
  834. $2=_st(_st(_st(_st(_st(aPackage)._classes())._collect_((function(each){
  835. return smalltalk.withContext(function($ctx2) { return _st(each)._theNonMetaClass();
  836. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})))._asSet())._asArray())._sort_((function(a,b){
  837. return smalltalk.withContext(function($ctx2) { return _st(_st(a)._name()).__lt(_st(b)._name());
  838. }, function($ctx2) {$ctx2.fillBlock({a:a,b:b},$ctx1)})}));
  839. };
  840. _st($1)._items_($2);
  841. return self}, function($ctx1) {$ctx1.fill(self,"setItemsForPackage:",{aPackage:aPackage}, smalltalk.HLClassesListWidget)})},
  842. args: ["aPackage"],
  843. source: "setItemsForPackage: aPackage\x0a\x09self items: (aPackage \x0a \x09ifNil: [ #() ]\x0a \x09\x09ifNotNil: [ ((aPackage classes \x0a \x09collect: [ :each | each theNonMetaClass ]) asSet asArray) \x0a \x09sort: [:a :b | a name < b name ] ]).",
  844. messageSends: ["items:", "ifNil:ifNotNil:", "sort:", "<", "name", "asArray", "asSet", "collect:", "theNonMetaClass", "classes"],
  845. referencedClasses: []
  846. }),
  847. smalltalk.HLClassesListWidget);
  848. smalltalk.addMethod(
  849. "_setItemsForSelectedPackage",
  850. smalltalk.method({
  851. selector: "setItemsForSelectedPackage",
  852. category: 'private',
  853. fn: function (){
  854. var self=this;
  855. return smalltalk.withContext(function($ctx1) { _st(self)._setItemsForPackage_(_st(_st(self)._model())._selectedPackage());
  856. return self}, function($ctx1) {$ctx1.fill(self,"setItemsForSelectedPackage",{}, smalltalk.HLClassesListWidget)})},
  857. args: [],
  858. source: "setItemsForSelectedPackage\x0a\x09self setItemsForPackage: self model selectedPackage",
  859. messageSends: ["setItemsForPackage:", "selectedPackage", "model"],
  860. referencedClasses: []
  861. }),
  862. smalltalk.HLClassesListWidget);
  863. smalltalk.addMethod(
  864. "_showInstance",
  865. smalltalk.method({
  866. selector: "showInstance",
  867. category: 'accessing',
  868. fn: function (){
  869. var self=this;
  870. return smalltalk.withContext(function($ctx1) { var $1;
  871. $1=_st(_st(self)._model())._showInstance();
  872. return $1;
  873. }, function($ctx1) {$ctx1.fill(self,"showInstance",{}, smalltalk.HLClassesListWidget)})},
  874. args: [],
  875. source: "showInstance\x0a\x09^ self model showInstance",
  876. messageSends: ["showInstance", "model"],
  877. referencedClasses: []
  878. }),
  879. smalltalk.HLClassesListWidget);
  880. smalltalk.addMethod(
  881. "_showInstance_",
  882. smalltalk.method({
  883. selector: "showInstance:",
  884. category: 'actions',
  885. fn: function (aBoolean){
  886. var self=this;
  887. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._showInstance_(aBoolean);
  888. return self}, function($ctx1) {$ctx1.fill(self,"showInstance:",{aBoolean:aBoolean}, smalltalk.HLClassesListWidget)})},
  889. args: ["aBoolean"],
  890. source: "showInstance: aBoolean\x0a\x09self model showInstance: aBoolean",
  891. messageSends: ["showInstance:", "model"],
  892. referencedClasses: []
  893. }),
  894. smalltalk.HLClassesListWidget);
  895. smalltalk.addClass('HLMethodsListWidget', smalltalk.HLBrowserListWidget, [], 'Helios-Browser');
  896. smalltalk.addMethod(
  897. "_allProtocol",
  898. smalltalk.method({
  899. selector: "allProtocol",
  900. category: 'accessing',
  901. fn: function (){
  902. var self=this;
  903. return smalltalk.withContext(function($ctx1) { var $1;
  904. $1=_st(_st(self)._model())._allProtocol();
  905. return $1;
  906. }, function($ctx1) {$ctx1.fill(self,"allProtocol",{}, smalltalk.HLMethodsListWidget)})},
  907. args: [],
  908. source: "allProtocol\x0a\x09^ self model allProtocol",
  909. messageSends: ["allProtocol", "model"],
  910. referencedClasses: []
  911. }),
  912. smalltalk.HLMethodsListWidget);
  913. smalltalk.addMethod(
  914. "_flushSelectorsCache",
  915. smalltalk.method({
  916. selector: "flushSelectorsCache",
  917. category: 'cache',
  918. fn: function (){
  919. var self=this;
  920. return smalltalk.withContext(function($ctx1) { self["@selectorsCache"]=_st((smalltalk.Dictionary || Dictionary))._new();
  921. return self}, function($ctx1) {$ctx1.fill(self,"flushSelectorsCache",{}, smalltalk.HLMethodsListWidget)})},
  922. args: [],
  923. source: "flushSelectorsCache\x0a\x09selectorsCache := Dictionary new",
  924. messageSends: ["new"],
  925. referencedClasses: ["Dictionary"]
  926. }),
  927. smalltalk.HLMethodsListWidget);
  928. smalltalk.addMethod(
  929. "_iconForItem_",
  930. smalltalk.method({
  931. selector: "iconForItem:",
  932. category: 'accessing',
  933. fn: function (aSelector){
  934. var self=this;
  935. var override,overriden,method;
  936. return smalltalk.withContext(function($ctx1) { var $2,$3,$4,$1;
  937. method=_st(self)._methodForSelector_(aSelector);
  938. override=_st(self)._isOverride_(method);
  939. overriden=_st(self)._isOverridden_(method);
  940. $2=override;
  941. if(smalltalk.assert($2)){
  942. $3=overriden;
  943. if(smalltalk.assert($3)){
  944. $1="icon-resize-vertical";
  945. } else {
  946. $1="icon-arrow-up";
  947. };
  948. } else {
  949. $4=overriden;
  950. if(smalltalk.assert($4)){
  951. $1="icon-arrow-down";
  952. } else {
  953. $1="icon-none";
  954. };
  955. };
  956. return $1;
  957. }, function($ctx1) {$ctx1.fill(self,"iconForItem:",{aSelector:aSelector,override:override,overriden:overriden,method:method}, smalltalk.HLMethodsListWidget)})},
  958. args: ["aSelector"],
  959. source: "iconForItem: 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: [ 'icon-resize-vertical' ]\x0a\x09\x09\x09ifFalse: [ 'icon-arrow-up' ] ]\x0a\x09\x09ifFalse: [\x0a\x09\x09\x09overriden\x0a\x09\x09\x09ifTrue: [ 'icon-arrow-down' ]\x0a\x09\x09\x09ifFalse: [ 'icon-none' ] ]",
  960. messageSends: ["methodForSelector:", "isOverride:", "isOverridden:", "ifTrue:ifFalse:"],
  961. referencedClasses: []
  962. }),
  963. smalltalk.HLMethodsListWidget);
  964. smalltalk.addMethod(
  965. "_initialize",
  966. smalltalk.method({
  967. selector: "initialize",
  968. category: 'initialization',
  969. fn: function (){
  970. var self=this;
  971. return smalltalk.withContext(function($ctx1) { smalltalk.HLBrowserListWidget.fn.prototype._initialize.apply(_st(self), []);
  972. _st(self)._flushSelectorsCache();
  973. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{}, smalltalk.HLMethodsListWidget)})},
  974. args: [],
  975. source: "initialize\x0a\x09super initialize.\x0a self flushSelectorsCache",
  976. messageSends: ["initialize", "flushSelectorsCache"],
  977. referencedClasses: []
  978. }),
  979. smalltalk.HLMethodsListWidget);
  980. smalltalk.addMethod(
  981. "_isOverridden_",
  982. smalltalk.method({
  983. selector: "isOverridden:",
  984. category: 'testing',
  985. fn: function (aMethod){
  986. var self=this;
  987. return smalltalk.withContext(function($ctx1) { var $1;
  988. $1=_st(_st(self)._selectorsCache())._isOverridden_(aMethod);
  989. return $1;
  990. }, function($ctx1) {$ctx1.fill(self,"isOverridden:",{aMethod:aMethod}, smalltalk.HLMethodsListWidget)})},
  991. args: ["aMethod"],
  992. source: "isOverridden: aMethod\x0a ^ self selectorsCache isOverridden: aMethod",
  993. messageSends: ["isOverridden:", "selectorsCache"],
  994. referencedClasses: []
  995. }),
  996. smalltalk.HLMethodsListWidget);
  997. smalltalk.addMethod(
  998. "_isOverride_",
  999. smalltalk.method({
  1000. selector: "isOverride:",
  1001. category: 'testing',
  1002. fn: function (aMethod){
  1003. var self=this;
  1004. return smalltalk.withContext(function($ctx1) { var $1;
  1005. $1=_st(_st(self)._selectorsCache())._isOverride_(aMethod);
  1006. return $1;
  1007. }, function($ctx1) {$ctx1.fill(self,"isOverride:",{aMethod:aMethod}, smalltalk.HLMethodsListWidget)})},
  1008. args: ["aMethod"],
  1009. source: "isOverride: aMethod\x0a ^ self selectorsCache isOverride: aMethod",
  1010. messageSends: ["isOverride:", "selectorsCache"],
  1011. referencedClasses: []
  1012. }),
  1013. smalltalk.HLMethodsListWidget);
  1014. smalltalk.addMethod(
  1015. "_methodForSelector_",
  1016. smalltalk.method({
  1017. selector: "methodForSelector:",
  1018. category: 'accessing',
  1019. fn: function (aSelector){
  1020. var self=this;
  1021. return smalltalk.withContext(function($ctx1) { var $1;
  1022. $1=_st(_st(_st(_st(self)._model())._selectedClass())._methodDictionary())._at_(aSelector);
  1023. return $1;
  1024. }, function($ctx1) {$ctx1.fill(self,"methodForSelector:",{aSelector:aSelector}, smalltalk.HLMethodsListWidget)})},
  1025. args: ["aSelector"],
  1026. source: "methodForSelector: aSelector\x0a\x09^ self model selectedClass\x0a \x09methodDictionary at: aSelector",
  1027. messageSends: ["at:", "methodDictionary", "selectedClass", "model"],
  1028. referencedClasses: []
  1029. }),
  1030. smalltalk.HLMethodsListWidget);
  1031. smalltalk.addMethod(
  1032. "_methodsInProtocol_",
  1033. smalltalk.method({
  1034. selector: "methodsInProtocol:",
  1035. category: 'accessing',
  1036. fn: function (aString){
  1037. var self=this;
  1038. return smalltalk.withContext(function($ctx1) { var $1,$3,$2;
  1039. $1=_st(_st(self)._model())._selectedClass();
  1040. if(($receiver = $1) == nil || $receiver == undefined){
  1041. return [];
  1042. } else {
  1043. $1;
  1044. };
  1045. $3=_st(aString).__eq(_st(self)._allProtocol());
  1046. if(smalltalk.assert($3)){
  1047. $2=_st(_st(_st(self)._model())._selectedClass())._methods();
  1048. } else {
  1049. $2=_st(_st(_st(self)._model())._selectedClass())._methodsInProtocol_(aString);
  1050. };
  1051. return $2;
  1052. }, function($ctx1) {$ctx1.fill(self,"methodsInProtocol:",{aString:aString}, smalltalk.HLMethodsListWidget)})},
  1053. args: ["aString"],
  1054. 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 ]",
  1055. messageSends: ["ifNil:", "selectedClass", "model", "ifTrue:ifFalse:", "methods", "methodsInProtocol:", "=", "allProtocol"],
  1056. referencedClasses: []
  1057. }),
  1058. smalltalk.HLMethodsListWidget);
  1059. smalltalk.addMethod(
  1060. "_observeModel",
  1061. smalltalk.method({
  1062. selector: "observeModel",
  1063. category: 'actions',
  1064. fn: function (){
  1065. var self=this;
  1066. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1067. $1=_st(_st(self)._model())._announcer();
  1068. _st($1)._on_do_((smalltalk.HLProtocolSelected || HLProtocolSelected),(function(ann){
  1069. return smalltalk.withContext(function($ctx2) { return _st(self)._onProtocolSelected_(_st(ann)._item());
  1070. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  1071. _st($1)._on_do_((smalltalk.HLShowInstanceToggled || HLShowInstanceToggled),(function(ann){
  1072. return smalltalk.withContext(function($ctx2) { return _st(self)._onProtocolSelected_(nil);
  1073. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  1074. _st($1)._on_do_((smalltalk.HLMethodSelected || HLMethodSelected),(function(ann){
  1075. return smalltalk.withContext(function($ctx2) { return _st(self)._onMethodSelected_(_st(ann)._item());
  1076. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  1077. $2=_st($1)._on_do_((smalltalk.HLMethodsFocusRequested || HLMethodsFocusRequested),(function(ann){
  1078. return smalltalk.withContext(function($ctx2) { return _st(self)._onMethodsFocusRequested();
  1079. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  1080. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{}, smalltalk.HLMethodsListWidget)})},
  1081. args: [],
  1082. source: "observeModel\x0a\x09self model announcer \x0a\x09\x09on: HLProtocolSelected \x0a\x09\x09do: [ :ann | self onProtocolSelected: ann item ];\x0a\x09\x09on: HLShowInstanceToggled \x0a\x09\x09do: [ :ann | self onProtocolSelected: nil ];\x0a\x09\x09on: HLMethodSelected \x0a\x09\x09do: [ :ann | self onMethodSelected: ann item ];\x0a\x09\x09on: HLMethodsFocusRequested \x0a\x09\x09do: [ :ann | self onMethodsFocusRequested ]",
  1083. messageSends: ["on:do:", "onProtocolSelected:", "item", "announcer", "model", "onMethodSelected:", "onMethodsFocusRequested"],
  1084. referencedClasses: ["HLProtocolSelected", "HLShowInstanceToggled", "HLMethodSelected", "HLMethodsFocusRequested"]
  1085. }),
  1086. smalltalk.HLMethodsListWidget);
  1087. smalltalk.addMethod(
  1088. "_observeSystem",
  1089. smalltalk.method({
  1090. selector: "observeSystem",
  1091. category: 'actions',
  1092. fn: function (){
  1093. var self=this;
  1094. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1095. $1=_st((smalltalk.SystemAnnouncer || SystemAnnouncer))._current();
  1096. _st($1)._on_do_((smalltalk.MethodAdded || MethodAdded),(function(ann){
  1097. return smalltalk.withContext(function($ctx2) { return _st(self)._onMethodAdded_(_st(ann)._method());
  1098. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  1099. $2=_st($1)._on_do_((smalltalk.MethodRemoved || MethodRemoved),(function(ann){
  1100. return smalltalk.withContext(function($ctx2) { return _st(self)._onMethodRemoved_(_st(ann)._method());
  1101. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  1102. return self}, function($ctx1) {$ctx1.fill(self,"observeSystem",{}, smalltalk.HLMethodsListWidget)})},
  1103. args: [],
  1104. source: "observeSystem\x0a\x09SystemAnnouncer current \x0a \x09on: MethodAdded \x0a do: [ :ann | self onMethodAdded: ann method ];\x0a on: MethodRemoved \x0a do: [ :ann | self onMethodRemoved: ann method ]",
  1105. messageSends: ["on:do:", "onMethodAdded:", "method", "current", "onMethodRemoved:"],
  1106. referencedClasses: ["MethodAdded", "SystemAnnouncer", "MethodRemoved"]
  1107. }),
  1108. smalltalk.HLMethodsListWidget);
  1109. smalltalk.addMethod(
  1110. "_onMethodAdded_",
  1111. smalltalk.method({
  1112. selector: "onMethodAdded:",
  1113. category: 'reactions',
  1114. fn: function (aMethod){
  1115. var self=this;
  1116. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1117. $1=_st(_st(_st(self)._model())._selectedClass()).__eq(_st(aMethod)._methodClass());
  1118. if(! smalltalk.assert($1)){
  1119. $2=self;
  1120. return $2;
  1121. };
  1122. _st(self)._setItemsForSelectedProtocol();
  1123. _st(self)._refresh();
  1124. return self}, function($ctx1) {$ctx1.fill(self,"onMethodAdded:",{aMethod:aMethod}, smalltalk.HLMethodsListWidget)})},
  1125. args: ["aMethod"],
  1126. source: "onMethodAdded: aMethod\x0a\x09self model selectedClass = aMethod methodClass ifFalse: [ ^ self ].\x0a \x0a self setItemsForSelectedProtocol.\x0a self refresh",
  1127. messageSends: ["ifFalse:", "=", "methodClass", "selectedClass", "model", "setItemsForSelectedProtocol", "refresh"],
  1128. referencedClasses: []
  1129. }),
  1130. smalltalk.HLMethodsListWidget);
  1131. smalltalk.addMethod(
  1132. "_onMethodRemoved_",
  1133. smalltalk.method({
  1134. selector: "onMethodRemoved:",
  1135. category: 'reactions',
  1136. fn: function (aMethod){
  1137. var self=this;
  1138. return smalltalk.withContext(function($ctx1) { var $1,$2,$3;
  1139. var $early={};
  1140. try {
  1141. _st(_st(self)._items())._detect_ifNone_((function(each){
  1142. return smalltalk.withContext(function($ctx2) { return _st(each).__eq(_st(aMethod)._selector());
  1143. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}),(function(){
  1144. return smalltalk.withContext(function($ctx2) { $1=self;
  1145. throw $early=[$1];
  1146. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1147. $2=_st(self)._selectedItem();
  1148. if(($receiver = $2) == nil || $receiver == undefined){
  1149. $2;
  1150. } else {
  1151. $3=_st(_st(_st(aMethod)._methodClass()).__eq(_st(_st(self)._model())._selectedClass()))._and_((function(){
  1152. return smalltalk.withContext(function($ctx2) { return _st(_st(aMethod)._selector()).__eq(_st(_st(self)._selectedItem())._selector());
  1153. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1154. if(smalltalk.assert($3)){
  1155. _st(self)._selectItem_(nil);
  1156. };
  1157. };
  1158. _st(self)._setItemsForSelectedProtocol();
  1159. _st(self)._refresh();
  1160. return self}
  1161. catch(e) {if(e===$early)return e[0]; throw e}
  1162. }, function($ctx1) {$ctx1.fill(self,"onMethodRemoved:",{aMethod:aMethod}, smalltalk.HLMethodsListWidget)})},
  1163. args: ["aMethod"],
  1164. source: "onMethodRemoved: aMethod\x0a\x09self items detect: [ :each | each = aMethod selector ] ifNone: [ ^ self ].\x0a\x0a self selectedItem ifNotNil: [\x0a \x09(aMethod methodClass = self model selectedClass and: [ aMethod selector = self selectedItem selector ])\x0a \x09\x09\x09ifTrue: [ self selectItem: nil ] ].\x0a self setItemsForSelectedProtocol.\x0a\x0aself refresh",
  1165. messageSends: ["detect:ifNone:", "=", "selector", "items", "ifNotNil:", "ifTrue:", "selectItem:", "and:", "selectedItem", "selectedClass", "model", "methodClass", "setItemsForSelectedProtocol", "refresh"],
  1166. referencedClasses: []
  1167. }),
  1168. smalltalk.HLMethodsListWidget);
  1169. smalltalk.addMethod(
  1170. "_onMethodSelected_",
  1171. smalltalk.method({
  1172. selector: "onMethodSelected:",
  1173. category: 'reactions',
  1174. fn: function (aMethod){
  1175. var self=this;
  1176. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1177. _st(self)._selectedItem_(aMethod);
  1178. $1=aMethod;
  1179. if(($receiver = $1) == nil || $receiver == undefined){
  1180. $2=self;
  1181. return $2;
  1182. } else {
  1183. $1;
  1184. };
  1185. _st(self)._focus();
  1186. return self}, function($ctx1) {$ctx1.fill(self,"onMethodSelected:",{aMethod:aMethod}, smalltalk.HLMethodsListWidget)})},
  1187. args: ["aMethod"],
  1188. source: "onMethodSelected: aMethod\x0a\x09self selectedItem: aMethod.\x0a\x09aMethod ifNil: [ ^ self ].\x0a \x0a self focus",
  1189. messageSends: ["selectedItem:", "ifNil:", "focus"],
  1190. referencedClasses: []
  1191. }),
  1192. smalltalk.HLMethodsListWidget);
  1193. smalltalk.addMethod(
  1194. "_onMethodsFocusRequested",
  1195. smalltalk.method({
  1196. selector: "onMethodsFocusRequested",
  1197. category: 'reactions',
  1198. fn: function (){
  1199. var self=this;
  1200. return smalltalk.withContext(function($ctx1) { _st(self)._focus();
  1201. return self}, function($ctx1) {$ctx1.fill(self,"onMethodsFocusRequested",{}, smalltalk.HLMethodsListWidget)})},
  1202. args: [],
  1203. source: "onMethodsFocusRequested\x0a\x09self focus",
  1204. messageSends: ["focus"],
  1205. referencedClasses: []
  1206. }),
  1207. smalltalk.HLMethodsListWidget);
  1208. smalltalk.addMethod(
  1209. "_onProtocolSelected_",
  1210. smalltalk.method({
  1211. selector: "onProtocolSelected:",
  1212. category: 'reactions',
  1213. fn: function (aString){
  1214. var self=this;
  1215. return smalltalk.withContext(function($ctx1) { _st(self)._selectedItem_(nil);
  1216. _st(self)._setItemsForSelectedProtocol();
  1217. _st(self)._refresh();
  1218. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolSelected:",{aString:aString}, smalltalk.HLMethodsListWidget)})},
  1219. args: ["aString"],
  1220. source: "onProtocolSelected: aString\x0a self selectedItem: nil.\x0a \x0a\x09self setItemsForSelectedProtocol.\x0a self refresh",
  1221. messageSends: ["selectedItem:", "setItemsForSelectedProtocol", "refresh"],
  1222. referencedClasses: []
  1223. }),
  1224. smalltalk.HLMethodsListWidget);
  1225. smalltalk.addMethod(
  1226. "_overrideSelectors",
  1227. smalltalk.method({
  1228. selector: "overrideSelectors",
  1229. category: 'accessing',
  1230. fn: function (){
  1231. var self=this;
  1232. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  1233. $1=_st(_st(self)._selectorsCache())._at_ifAbsentPut_("override",(function(){
  1234. return smalltalk.withContext(function($ctx2) { return _st(_st(_st(_st(self)._model())._selectedClass())._allSuperclasses())._inject_into_(_st((smalltalk.Set || Set))._new(),(function(acc,each){
  1235. return smalltalk.withContext(function($ctx3) { $2=acc;
  1236. _st($2)._addAll_(_st(each)._selectors());
  1237. $3=_st($2)._yourself();
  1238. return $3;
  1239. }, function($ctx3) {$ctx3.fillBlock({acc:acc,each:each},$ctx1)})}));
  1240. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1241. return $1;
  1242. }, function($ctx1) {$ctx1.fill(self,"overrideSelectors",{}, smalltalk.HLMethodsListWidget)})},
  1243. args: [],
  1244. 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 ] ]",
  1245. messageSends: ["at:ifAbsentPut:", "inject:into:", "new", "addAll:", "selectors", "yourself", "allSuperclasses", "selectedClass", "model", "selectorsCache"],
  1246. referencedClasses: ["Set"]
  1247. }),
  1248. smalltalk.HLMethodsListWidget);
  1249. smalltalk.addMethod(
  1250. "_overridenSelectors",
  1251. smalltalk.method({
  1252. selector: "overridenSelectors",
  1253. category: 'accessing',
  1254. fn: function (){
  1255. var self=this;
  1256. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  1257. $1=_st(_st(self)._selectorsCache())._at_ifAbsentPut_("overriden",(function(){
  1258. return smalltalk.withContext(function($ctx2) { return _st(_st(_st(_st(self)._model())._selectedClass())._allSubclasses())._inject_into_(_st((smalltalk.Set || Set))._new(),(function(acc,each){
  1259. return smalltalk.withContext(function($ctx3) { $2=acc;
  1260. _st($2)._addAll_(_st(each)._selectors());
  1261. $3=_st($2)._yourself();
  1262. return $3;
  1263. }, function($ctx3) {$ctx3.fillBlock({acc:acc,each:each},$ctx1)})}));
  1264. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1265. return $1;
  1266. }, function($ctx1) {$ctx1.fill(self,"overridenSelectors",{}, smalltalk.HLMethodsListWidget)})},
  1267. args: [],
  1268. 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 ] ]",
  1269. messageSends: ["at:ifAbsentPut:", "inject:into:", "new", "addAll:", "selectors", "yourself", "allSubclasses", "selectedClass", "model", "selectorsCache"],
  1270. referencedClasses: ["Set"]
  1271. }),
  1272. smalltalk.HLMethodsListWidget);
  1273. smalltalk.addMethod(
  1274. "_renderContentOn_",
  1275. smalltalk.method({
  1276. selector: "renderContentOn:",
  1277. category: 'rendering',
  1278. fn: function (html){
  1279. var self=this;
  1280. return smalltalk.withContext(function($ctx1) { var $1,$2,$3;
  1281. $1=_st(_st(self)._model())._showInstance();
  1282. if(smalltalk.assert($1)){
  1283. smalltalk.HLBrowserListWidget.fn.prototype._renderContentOn_.apply(_st(self), [html]);
  1284. } else {
  1285. $2=_st(html)._div();
  1286. _st($2)._class_("class_side");
  1287. $3=_st($2)._with_((function(){
  1288. return smalltalk.withContext(function($ctx2) { return smalltalk.HLBrowserListWidget.fn.prototype._renderContentOn_.apply(_st(self), [html]);
  1289. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1290. $3;
  1291. };
  1292. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html}, smalltalk.HLMethodsListWidget)})},
  1293. args: ["html"],
  1294. 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 ]",
  1295. messageSends: ["ifFalse:ifTrue:", "class:", "div", "with:", "renderContentOn:", "showInstance", "model"],
  1296. referencedClasses: []
  1297. }),
  1298. smalltalk.HLMethodsListWidget);
  1299. smalltalk.addMethod(
  1300. "_renderItemLabel_on_",
  1301. smalltalk.method({
  1302. selector: "renderItemLabel:on:",
  1303. category: 'rendering',
  1304. fn: function (aSelector,html){
  1305. var self=this;
  1306. return smalltalk.withContext(function($ctx1) { _st(html)._with_(aSelector);
  1307. return self}, function($ctx1) {$ctx1.fill(self,"renderItemLabel:on:",{aSelector:aSelector,html:html}, smalltalk.HLMethodsListWidget)})},
  1308. args: ["aSelector", "html"],
  1309. source: "renderItemLabel: aSelector on: html\x0a\x09html with: aSelector",
  1310. messageSends: ["with:"],
  1311. referencedClasses: []
  1312. }),
  1313. smalltalk.HLMethodsListWidget);
  1314. smalltalk.addMethod(
  1315. "_selectItem_",
  1316. smalltalk.method({
  1317. selector: "selectItem:",
  1318. category: 'actions',
  1319. fn: function (aSelector){
  1320. var self=this;
  1321. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1322. $1=aSelector;
  1323. if(($receiver = $1) == nil || $receiver == undefined){
  1324. $2=_st(_st(self)._model())._selectedMethod_(nil);
  1325. return $2;
  1326. } else {
  1327. $1;
  1328. };
  1329. _st(_st(self)._model())._selectedMethod_(_st(self)._methodForSelector_(aSelector));
  1330. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{aSelector:aSelector}, smalltalk.HLMethodsListWidget)})},
  1331. args: ["aSelector"],
  1332. source: "selectItem: aSelector\x0a\x09aSelector ifNil: [ ^ self model selectedMethod: nil ].\x0a\x0a \x09self model selectedMethod: (self methodForSelector: aSelector)\x0a ",
  1333. messageSends: ["ifNil:", "selectedMethod:", "model", "methodForSelector:"],
  1334. referencedClasses: []
  1335. }),
  1336. smalltalk.HLMethodsListWidget);
  1337. smalltalk.addMethod(
  1338. "_selectorsCache",
  1339. smalltalk.method({
  1340. selector: "selectorsCache",
  1341. category: 'accessing',
  1342. fn: function (){
  1343. var self=this;
  1344. return smalltalk.withContext(function($ctx1) { var $1;
  1345. $1=_st(_st(self)._class())._selectorsCache();
  1346. return $1;
  1347. }, function($ctx1) {$ctx1.fill(self,"selectorsCache",{}, smalltalk.HLMethodsListWidget)})},
  1348. args: [],
  1349. source: "selectorsCache\x0a\x09^ self class selectorsCache",
  1350. messageSends: ["selectorsCache", "class"],
  1351. referencedClasses: []
  1352. }),
  1353. smalltalk.HLMethodsListWidget);
  1354. smalltalk.addMethod(
  1355. "_selectorsInProtocol_",
  1356. smalltalk.method({
  1357. selector: "selectorsInProtocol:",
  1358. category: 'accessing',
  1359. fn: function (aString){
  1360. var self=this;
  1361. return smalltalk.withContext(function($ctx1) { var $1;
  1362. $1=_st(_st(self)._methodsInProtocol_(aString))._collect_((function(each){
  1363. return smalltalk.withContext(function($ctx2) { return _st(each)._selector();
  1364. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  1365. return $1;
  1366. }, function($ctx1) {$ctx1.fill(self,"selectorsInProtocol:",{aString:aString}, smalltalk.HLMethodsListWidget)})},
  1367. args: ["aString"],
  1368. source: "selectorsInProtocol: aString\x0a\x09^ (self methodsInProtocol: aString)\x0a \x09collect: [ :each | each selector ]",
  1369. messageSends: ["collect:", "selector", "methodsInProtocol:"],
  1370. referencedClasses: []
  1371. }),
  1372. smalltalk.HLMethodsListWidget);
  1373. smalltalk.addMethod(
  1374. "_setItemsForProtocol_",
  1375. smalltalk.method({
  1376. selector: "setItemsForProtocol:",
  1377. category: 'private',
  1378. fn: function (aString){
  1379. var self=this;
  1380. return smalltalk.withContext(function($ctx1) { var $2,$4,$3,$1;
  1381. $2=self;
  1382. $4=aString;
  1383. if(($receiver = $4) == nil || $receiver == undefined){
  1384. $3=[];
  1385. } else {
  1386. $3=_st(self)._selectorsInProtocol_(aString);
  1387. };
  1388. $1=_st($2)._items_($3);
  1389. return $1;
  1390. }, function($ctx1) {$ctx1.fill(self,"setItemsForProtocol:",{aString:aString}, smalltalk.HLMethodsListWidget)})},
  1391. args: ["aString"],
  1392. source: "setItemsForProtocol: aString\x0a\x09^ self items: (aString\x0a \x09ifNil: [ #() ]\x0a \x09ifNotNil: [ self selectorsInProtocol: aString ])",
  1393. messageSends: ["items:", "ifNil:ifNotNil:", "selectorsInProtocol:"],
  1394. referencedClasses: []
  1395. }),
  1396. smalltalk.HLMethodsListWidget);
  1397. smalltalk.addMethod(
  1398. "_setItemsForSelectedProtocol",
  1399. smalltalk.method({
  1400. selector: "setItemsForSelectedProtocol",
  1401. category: 'private',
  1402. fn: function (){
  1403. var self=this;
  1404. return smalltalk.withContext(function($ctx1) { _st(self)._setItemsForProtocol_(_st(_st(self)._model())._selectedProtocol());
  1405. return self}, function($ctx1) {$ctx1.fill(self,"setItemsForSelectedProtocol",{}, smalltalk.HLMethodsListWidget)})},
  1406. args: [],
  1407. source: "setItemsForSelectedProtocol\x0a\x09self setItemsForProtocol: self model selectedProtocol",
  1408. messageSends: ["setItemsForProtocol:", "selectedProtocol", "model"],
  1409. referencedClasses: []
  1410. }),
  1411. smalltalk.HLMethodsListWidget);
  1412. smalltalk.HLMethodsListWidget.klass.iVarNames = ['selectorsCache'];
  1413. smalltalk.addMethod(
  1414. "_selectorsCache",
  1415. smalltalk.method({
  1416. selector: "selectorsCache",
  1417. category: 'accessing',
  1418. fn: function (){
  1419. var self=this;
  1420. return smalltalk.withContext(function($ctx1) { var $1;
  1421. $1=_st((smalltalk.HLSelectorsCache || HLSelectorsCache))._current();
  1422. return $1;
  1423. }, function($ctx1) {$ctx1.fill(self,"selectorsCache",{}, smalltalk.HLMethodsListWidget.klass)})},
  1424. args: [],
  1425. source: "selectorsCache\x0a\x09^ HLSelectorsCache current",
  1426. messageSends: ["current"],
  1427. referencedClasses: ["HLSelectorsCache"]
  1428. }),
  1429. smalltalk.HLMethodsListWidget.klass);
  1430. smalltalk.addClass('HLPackagesListWidget', smalltalk.HLBrowserListWidget, [], 'Helios-Browser');
  1431. smalltalk.addMethod(
  1432. "_focusClassesListWidget",
  1433. smalltalk.method({
  1434. selector: "focusClassesListWidget",
  1435. category: 'actions',
  1436. fn: function (){
  1437. var self=this;
  1438. return smalltalk.withContext(function($ctx1) { _st(_st(_st(self)._model())._announcer())._announce_(_st((smalltalk.HLClassesListFocus || HLClassesListFocus))._new());
  1439. return self}, function($ctx1) {$ctx1.fill(self,"focusClassesListWidget",{}, smalltalk.HLPackagesListWidget)})},
  1440. args: [],
  1441. source: "focusClassesListWidget\x0a\x09self model announcer announce: HLClassesListFocus new",
  1442. messageSends: ["announce:", "new", "announcer", "model"],
  1443. referencedClasses: ["HLClassesListFocus"]
  1444. }),
  1445. smalltalk.HLPackagesListWidget);
  1446. smalltalk.addMethod(
  1447. "_initializeItems",
  1448. smalltalk.method({
  1449. selector: "initializeItems",
  1450. category: 'accessing',
  1451. fn: function (){
  1452. var self=this;
  1453. return smalltalk.withContext(function($ctx1) { var $1;
  1454. self["@items"]=_st(_st(_st(self)._model())._packages())._sort_((function(a,b){
  1455. return smalltalk.withContext(function($ctx2) { return _st(_st(a)._name()).__lt(_st(b)._name());
  1456. }, function($ctx2) {$ctx2.fillBlock({a:a,b:b},$ctx1)})}));
  1457. $1=self["@items"];
  1458. return $1;
  1459. }, function($ctx1) {$ctx1.fill(self,"initializeItems",{}, smalltalk.HLPackagesListWidget)})},
  1460. args: [],
  1461. source: "initializeItems\x0a\x09^ items := self model packages sort:[:a :b|\x0a\x09\x09\x09\x09\x09\x09a name < b name]",
  1462. messageSends: ["sort:", "<", "name", "packages", "model"],
  1463. referencedClasses: []
  1464. }),
  1465. smalltalk.HLPackagesListWidget);
  1466. smalltalk.addMethod(
  1467. "_items",
  1468. smalltalk.method({
  1469. selector: "items",
  1470. category: 'accessing',
  1471. fn: function (){
  1472. var self=this;
  1473. return smalltalk.withContext(function($ctx1) { var $2,$1;
  1474. $2=self["@items"];
  1475. if(($receiver = $2) == nil || $receiver == undefined){
  1476. $1=_st(self)._initializeItems();
  1477. } else {
  1478. $1=$2;
  1479. };
  1480. return $1;
  1481. }, function($ctx1) {$ctx1.fill(self,"items",{}, smalltalk.HLPackagesListWidget)})},
  1482. args: [],
  1483. source: "items\x0a\x09^ items ifNil: [self initializeItems]",
  1484. messageSends: ["ifNil:", "initializeItems"],
  1485. referencedClasses: []
  1486. }),
  1487. smalltalk.HLPackagesListWidget);
  1488. smalltalk.addMethod(
  1489. "_observeModel",
  1490. smalltalk.method({
  1491. selector: "observeModel",
  1492. category: 'actions',
  1493. fn: function (){
  1494. var self=this;
  1495. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1496. $1=_st(_st(self)._model())._announcer();
  1497. _st($1)._on_do_((smalltalk.HLPackageSelected || HLPackageSelected),(function(ann){
  1498. return smalltalk.withContext(function($ctx2) { return _st(self)._onPackageSelected_(_st(ann)._item());
  1499. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  1500. $2=_st($1)._on_do_((smalltalk.HLPackagesFocusRequested || HLPackagesFocusRequested),(function(ann){
  1501. return smalltalk.withContext(function($ctx2) { return _st(self)._onPackagesFocusRequested();
  1502. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  1503. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{}, smalltalk.HLPackagesListWidget)})},
  1504. args: [],
  1505. source: "observeModel\x0a self model announcer \x0a\x09\x09on: HLPackageSelected \x0a\x09\x09do: [ :ann | self onPackageSelected: ann item ];\x0a\x09\x09on: HLPackagesFocusRequested \x0a\x09\x09do: [ :ann | self onPackagesFocusRequested ]",
  1506. messageSends: ["on:do:", "onPackageSelected:", "item", "announcer", "model", "onPackagesFocusRequested"],
  1507. referencedClasses: ["HLPackageSelected", "HLPackagesFocusRequested"]
  1508. }),
  1509. smalltalk.HLPackagesListWidget);
  1510. smalltalk.addMethod(
  1511. "_onPackageSelected_",
  1512. smalltalk.method({
  1513. selector: "onPackageSelected:",
  1514. category: 'reactions',
  1515. fn: function (aPackage){
  1516. var self=this;
  1517. return smalltalk.withContext(function($ctx1) { _st(self)._selectedItem_(aPackage);
  1518. _st(self)._focus();
  1519. return self}, function($ctx1) {$ctx1.fill(self,"onPackageSelected:",{aPackage:aPackage}, smalltalk.HLPackagesListWidget)})},
  1520. args: ["aPackage"],
  1521. source: "onPackageSelected: aPackage\x0a\x09self selectedItem: aPackage.\x0a\x09self focus",
  1522. messageSends: ["selectedItem:", "focus"],
  1523. referencedClasses: []
  1524. }),
  1525. smalltalk.HLPackagesListWidget);
  1526. smalltalk.addMethod(
  1527. "_onPackagesFocusRequested",
  1528. smalltalk.method({
  1529. selector: "onPackagesFocusRequested",
  1530. category: 'reactions',
  1531. fn: function (){
  1532. var self=this;
  1533. return smalltalk.withContext(function($ctx1) { _st(self)._focus();
  1534. return self}, function($ctx1) {$ctx1.fill(self,"onPackagesFocusRequested",{}, smalltalk.HLPackagesListWidget)})},
  1535. args: [],
  1536. source: "onPackagesFocusRequested\x0a\x09self focus",
  1537. messageSends: ["focus"],
  1538. referencedClasses: []
  1539. }),
  1540. smalltalk.HLPackagesListWidget);
  1541. smalltalk.addMethod(
  1542. "_renderButtonsOn_",
  1543. smalltalk.method({
  1544. selector: "renderButtonsOn:",
  1545. category: 'rendering',
  1546. fn: function (html){
  1547. var self=this;
  1548. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$5,$6,$7,$8,$4,$9,$10;
  1549. $1=_st(html)._span();
  1550. _st($1)._class_("info");
  1551. $2=_st($1)._with_("Auto commit");
  1552. $3=_st(html)._div();
  1553. _st($3)._class_("btn-group switch");
  1554. _st($3)._at_put_("data-toggle","buttons-radio");
  1555. $4=_st($3)._with_((function(){
  1556. return smalltalk.withContext(function($ctx2) { $5=_st(html)._button();
  1557. _st($5)._class_(_st((smalltalk.String || String))._streamContents_((function(str){
  1558. return smalltalk.withContext(function($ctx3) { return _st(str)._nextPutAll_("btn");
  1559. }, function($ctx3) {$ctx3.fillBlock({str:str},$ctx1)})})));
  1560. $6=_st($5)._with_("On");
  1561. $6;
  1562. $7=_st(html)._button();
  1563. _st($7)._class_(_st((smalltalk.String || String))._streamContents_((function(str){
  1564. return smalltalk.withContext(function($ctx3) { return _st(str)._nextPutAll_("btn active");
  1565. }, function($ctx3) {$ctx3.fillBlock({str:str},$ctx1)})})));
  1566. $8=_st($7)._with_("Off");
  1567. return $8;
  1568. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1569. $9=_st(html)._a();
  1570. _st($9)._class_("btn");
  1571. $10=_st($9)._with_("Commit");
  1572. return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html}, smalltalk.HLPackagesListWidget)})},
  1573. args: ["html"],
  1574. source: "renderButtonsOn: html\x0a\x0a\x09html span class: 'info'; with: 'Auto commit'.\x0a\x09html div \x0a class: 'btn-group switch';\x0a\x09\x09at: 'data-toggle' put: 'buttons-radio';\x0a\x09\x09with: [ \x0a \x09html button \x0a class: (String streamContents: [ :str |\x0a \x09str nextPutAll: 'btn' ]);\x0a \x09\x09\x09\x09with: 'On'.\x0a \x09\x09\x09html button\x0a \x09\x09\x09\x09class: (String streamContents: [ :str |\x0a \x09str nextPutAll: 'btn active' ]);\x0a \x09\x09\x09\x09with: 'Off' ].\x0a \x0a html a \x0a \x09class: 'btn';\x0a\x09\x09\x09with: 'Commit'.",
  1575. messageSends: ["class:", "span", "with:", "div", "at:put:", "streamContents:", "nextPutAll:", "button", "a"],
  1576. referencedClasses: ["String"]
  1577. }),
  1578. smalltalk.HLPackagesListWidget);
  1579. smalltalk.addMethod(
  1580. "_selectItem_",
  1581. smalltalk.method({
  1582. selector: "selectItem:",
  1583. category: 'actions',
  1584. fn: function (aPackage){
  1585. var self=this;
  1586. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._selectedPackage_(aPackage);
  1587. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{aPackage:aPackage}, smalltalk.HLPackagesListWidget)})},
  1588. args: ["aPackage"],
  1589. source: "selectItem: aPackage\x0a\x09self model selectedPackage: aPackage",
  1590. messageSends: ["selectedPackage:", "model"],
  1591. referencedClasses: []
  1592. }),
  1593. smalltalk.HLPackagesListWidget);
  1594. smalltalk.addClass('HLProtocolsListWidget', smalltalk.HLBrowserListWidget, [], 'Helios-Browser');
  1595. smalltalk.addMethod(
  1596. "_allProtocol",
  1597. smalltalk.method({
  1598. selector: "allProtocol",
  1599. category: 'accessing',
  1600. fn: function (){
  1601. var self=this;
  1602. return smalltalk.withContext(function($ctx1) { var $1;
  1603. $1=_st(_st(self)._model())._allProtocol();
  1604. return $1;
  1605. }, function($ctx1) {$ctx1.fill(self,"allProtocol",{}, smalltalk.HLProtocolsListWidget)})},
  1606. args: [],
  1607. source: "allProtocol\x0a\x09^ self model allProtocol",
  1608. messageSends: ["allProtocol", "model"],
  1609. referencedClasses: []
  1610. }),
  1611. smalltalk.HLProtocolsListWidget);
  1612. smalltalk.addMethod(
  1613. "_observeModel",
  1614. smalltalk.method({
  1615. selector: "observeModel",
  1616. category: 'actions',
  1617. fn: function (){
  1618. var self=this;
  1619. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1620. $1=_st(_st(self)._model())._announcer();
  1621. _st($1)._on_do_((smalltalk.HLClassSelected || HLClassSelected),(function(ann){
  1622. return smalltalk.withContext(function($ctx2) { return _st(self)._onClassSelected_(_st(ann)._item());
  1623. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  1624. _st($1)._on_do_((smalltalk.HLShowInstanceToggled || HLShowInstanceToggled),(function(ann){
  1625. return smalltalk.withContext(function($ctx2) { return _st(self)._onClassSelected_(_st(_st(self)._model())._selectedClass());
  1626. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  1627. _st($1)._on_do_((smalltalk.HLProtocolSelected || HLProtocolSelected),(function(ann){
  1628. return smalltalk.withContext(function($ctx2) { return _st(self)._onProtocolSelected_(_st(ann)._item());
  1629. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  1630. $2=_st($1)._on_do_((smalltalk.HLProtocolsFocusRequested || HLProtocolsFocusRequested),(function(ann){
  1631. return smalltalk.withContext(function($ctx2) { return _st(self)._onProtocolsFocusRequested();
  1632. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  1633. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{}, smalltalk.HLProtocolsListWidget)})},
  1634. args: [],
  1635. source: "observeModel\x0a self model announcer \x0a\x09\x09on: HLClassSelected \x0a\x09\x09do: [ :ann | self onClassSelected: ann item ];\x0a \x09on: HLShowInstanceToggled \x0a\x09\x09do: [ :ann | self onClassSelected: self model selectedClass ];\x0a \x09on: HLProtocolSelected\x0a\x09\x09do: [ :ann | self onProtocolSelected: ann item ];\x0a\x09\x09on: HLProtocolsFocusRequested \x0a\x09\x09do: [ :ann | self onProtocolsFocusRequested ]",
  1636. messageSends: ["on:do:", "onClassSelected:", "item", "announcer", "model", "selectedClass", "onProtocolSelected:", "onProtocolsFocusRequested"],
  1637. referencedClasses: ["HLClassSelected", "HLShowInstanceToggled", "HLProtocolSelected", "HLProtocolsFocusRequested"]
  1638. }),
  1639. smalltalk.HLProtocolsListWidget);
  1640. smalltalk.addMethod(
  1641. "_observeSystem",
  1642. smalltalk.method({
  1643. selector: "observeSystem",
  1644. category: 'actions',
  1645. fn: function (){
  1646. var self=this;
  1647. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1648. $1=_st((smalltalk.SystemAnnouncer || SystemAnnouncer))._current();
  1649. _st($1)._on_do_((smalltalk.ProtocolAdded || ProtocolAdded),(function(ann){
  1650. return smalltalk.withContext(function($ctx2) { return _st(self)._onProtocolAdded_to_(_st(ann)._protocol(),_st(ann)._theClass());
  1651. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  1652. $2=_st($1)._on_do_((smalltalk.ProtocolRemoved || ProtocolRemoved),(function(ann){
  1653. return smalltalk.withContext(function($ctx2) { return _st(self)._onProtocolRemoved_from_(_st(ann)._protocol(),_st(ann)._theClass());
  1654. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  1655. return self}, function($ctx1) {$ctx1.fill(self,"observeSystem",{}, smalltalk.HLProtocolsListWidget)})},
  1656. args: [],
  1657. source: "observeSystem\x0a SystemAnnouncer current\x0a \x09on: ProtocolAdded \x0a do: [ :ann | self onProtocolAdded: ann protocol to: ann theClass ];\x0a on: ProtocolRemoved\x0a do: [ :ann | self onProtocolRemoved: ann protocol from: ann theClass ]",
  1658. messageSends: ["on:do:", "onProtocolAdded:to:", "protocol", "theClass", "current", "onProtocolRemoved:from:"],
  1659. referencedClasses: ["ProtocolAdded", "SystemAnnouncer", "ProtocolRemoved"]
  1660. }),
  1661. smalltalk.HLProtocolsListWidget);
  1662. smalltalk.addMethod(
  1663. "_onClassSelected_",
  1664. smalltalk.method({
  1665. selector: "onClassSelected:",
  1666. category: 'reactions',
  1667. fn: function (aClass){
  1668. var self=this;
  1669. return smalltalk.withContext(function($ctx1) { _st(self)._selectedItem_(nil);
  1670. _st(self)._setItemsForSelectedClass();
  1671. _st(self)._refresh();
  1672. return self}, function($ctx1) {$ctx1.fill(self,"onClassSelected:",{aClass:aClass}, smalltalk.HLProtocolsListWidget)})},
  1673. args: ["aClass"],
  1674. source: "onClassSelected: aClass\x0a self selectedItem: nil.\x0a \x0a self setItemsForSelectedClass.\x0a self refresh",
  1675. messageSends: ["selectedItem:", "setItemsForSelectedClass", "refresh"],
  1676. referencedClasses: []
  1677. }),
  1678. smalltalk.HLProtocolsListWidget);
  1679. smalltalk.addMethod(
  1680. "_onProtocolAdded_to_",
  1681. smalltalk.method({
  1682. selector: "onProtocolAdded:to:",
  1683. category: 'reactions',
  1684. fn: function (aString,aClass){
  1685. var self=this;
  1686. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1687. $1=_st(aClass).__eq(_st(_st(self)._model())._selectedClass());
  1688. if(! smalltalk.assert($1)){
  1689. $2=self;
  1690. return $2;
  1691. };
  1692. _st(self)._setItemsForSelectedClass();
  1693. _st(self)._refresh();
  1694. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolAdded:to:",{aString:aString,aClass:aClass}, smalltalk.HLProtocolsListWidget)})},
  1695. args: ["aString", "aClass"],
  1696. source: "onProtocolAdded: aString to: aClass\x0a\x09aClass = self model selectedClass ifFalse: [ ^ self ].\x0a \x0a self setItemsForSelectedClass.\x0a self refresh",
  1697. messageSends: ["ifFalse:", "=", "selectedClass", "model", "setItemsForSelectedClass", "refresh"],
  1698. referencedClasses: []
  1699. }),
  1700. smalltalk.HLProtocolsListWidget);
  1701. smalltalk.addMethod(
  1702. "_onProtocolRemoved_from_",
  1703. smalltalk.method({
  1704. selector: "onProtocolRemoved:from:",
  1705. category: 'reactions',
  1706. fn: function (aString,aClass){
  1707. var self=this;
  1708. return smalltalk.withContext(function($ctx1) { var $1,$2,$3;
  1709. $1=_st(aClass).__eq(_st(_st(self)._model())._selectedClass());
  1710. if(! smalltalk.assert($1)){
  1711. $2=self;
  1712. return $2;
  1713. };
  1714. $3=_st(_st(_st(self)._model())._selectedProtocol()).__eq(aString);
  1715. if(smalltalk.assert($3)){
  1716. _st(self)._selectItem_(nil);
  1717. };
  1718. _st(self)._setItemsForSelectedClass();
  1719. _st(self)._refresh();
  1720. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolRemoved:from:",{aString:aString,aClass:aClass}, smalltalk.HLProtocolsListWidget)})},
  1721. args: ["aString", "aClass"],
  1722. source: "onProtocolRemoved: aString from: aClass\x0a\x09aClass = self model selectedClass ifFalse: [ ^ self ].\x0a \x0a self model selectedProtocol = aString \x0a \x09ifTrue: [ self selectItem: nil ].\x0a \x0a self setItemsForSelectedClass.\x0a self refresh",
  1723. messageSends: ["ifFalse:", "=", "selectedClass", "model", "ifTrue:", "selectItem:", "selectedProtocol", "setItemsForSelectedClass", "refresh"],
  1724. referencedClasses: []
  1725. }),
  1726. smalltalk.HLProtocolsListWidget);
  1727. smalltalk.addMethod(
  1728. "_onProtocolSelected_",
  1729. smalltalk.method({
  1730. selector: "onProtocolSelected:",
  1731. category: 'reactions',
  1732. fn: function (aString){
  1733. var self=this;
  1734. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1735. _st(self)._selectedItem_(aString);
  1736. $1=aString;
  1737. if(($receiver = $1) == nil || $receiver == undefined){
  1738. $2=self;
  1739. return $2;
  1740. } else {
  1741. $1;
  1742. };
  1743. _st(self)._focus();
  1744. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolSelected:",{aString:aString}, smalltalk.HLProtocolsListWidget)})},
  1745. args: ["aString"],
  1746. source: "onProtocolSelected: aString\x0a\x09self selectedItem: aString.\x0a\x09aString ifNil: [ ^ self ].\x0a \x0a self focus",
  1747. messageSends: ["selectedItem:", "ifNil:", "focus"],
  1748. referencedClasses: []
  1749. }),
  1750. smalltalk.HLProtocolsListWidget);
  1751. smalltalk.addMethod(
  1752. "_onProtocolsFocusRequested",
  1753. smalltalk.method({
  1754. selector: "onProtocolsFocusRequested",
  1755. category: 'reactions',
  1756. fn: function (){
  1757. var self=this;
  1758. return smalltalk.withContext(function($ctx1) { _st(self)._focus();
  1759. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolsFocusRequested",{}, smalltalk.HLProtocolsListWidget)})},
  1760. args: [],
  1761. source: "onProtocolsFocusRequested\x0a\x09self focus",
  1762. messageSends: ["focus"],
  1763. referencedClasses: []
  1764. }),
  1765. smalltalk.HLProtocolsListWidget);
  1766. smalltalk.addMethod(
  1767. "_renderContentOn_",
  1768. smalltalk.method({
  1769. selector: "renderContentOn:",
  1770. category: 'rendering',
  1771. fn: function (html){
  1772. var self=this;
  1773. return smalltalk.withContext(function($ctx1) { var $1,$2,$3;
  1774. $1=_st(_st(self)._model())._showInstance();
  1775. if(smalltalk.assert($1)){
  1776. smalltalk.HLBrowserListWidget.fn.prototype._renderContentOn_.apply(_st(self), [html]);
  1777. } else {
  1778. $2=_st(html)._div();
  1779. _st($2)._class_("class_side");
  1780. $3=_st($2)._with_((function(){
  1781. return smalltalk.withContext(function($ctx2) { return smalltalk.HLBrowserListWidget.fn.prototype._renderContentOn_.apply(_st(self), [html]);
  1782. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1783. $3;
  1784. };
  1785. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html}, smalltalk.HLProtocolsListWidget)})},
  1786. args: ["html"],
  1787. 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 ]",
  1788. messageSends: ["ifFalse:ifTrue:", "class:", "div", "with:", "renderContentOn:", "showInstance", "model"],
  1789. referencedClasses: []
  1790. }),
  1791. smalltalk.HLProtocolsListWidget);
  1792. smalltalk.addMethod(
  1793. "_selectItem_",
  1794. smalltalk.method({
  1795. selector: "selectItem:",
  1796. category: 'actions',
  1797. fn: function (aString){
  1798. var self=this;
  1799. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._selectedProtocol_(aString);
  1800. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{aString:aString}, smalltalk.HLProtocolsListWidget)})},
  1801. args: ["aString"],
  1802. source: "selectItem: aString\x0a self model selectedProtocol: aString",
  1803. messageSends: ["selectedProtocol:", "model"],
  1804. referencedClasses: []
  1805. }),
  1806. smalltalk.HLProtocolsListWidget);
  1807. smalltalk.addMethod(
  1808. "_selectedItem",
  1809. smalltalk.method({
  1810. selector: "selectedItem",
  1811. category: 'accessing',
  1812. fn: function (){
  1813. var self=this;
  1814. return smalltalk.withContext(function($ctx1) { var $1;
  1815. $1=smalltalk.HLBrowserListWidget.fn.prototype._selectedItem.apply(_st(self), []);
  1816. return $1;
  1817. }, function($ctx1) {$ctx1.fill(self,"selectedItem",{}, smalltalk.HLProtocolsListWidget)})},
  1818. args: [],
  1819. source: "selectedItem\x0a\x09^ super selectedItem\x22 ifNil: [ self allProtocol ]\x22",
  1820. messageSends: ["selectedItem"],
  1821. referencedClasses: []
  1822. }),
  1823. smalltalk.HLProtocolsListWidget);
  1824. smalltalk.addMethod(
  1825. "_setItemsForClass_",
  1826. smalltalk.method({
  1827. selector: "setItemsForClass:",
  1828. category: 'private',
  1829. fn: function (aClass){
  1830. var self=this;
  1831. return smalltalk.withContext(function($ctx1) { var $1,$3,$4,$5,$2;
  1832. $1=self;
  1833. $3=aClass;
  1834. if(($receiver = $3) == nil || $receiver == undefined){
  1835. $2=_st((smalltalk.Array || Array))._with_(_st(self)._allProtocol());
  1836. } else {
  1837. $4=_st((smalltalk.Array || Array))._with_(_st(self)._allProtocol());
  1838. _st($4)._addAll_(_st(aClass)._protocols());
  1839. $5=_st($4)._yourself();
  1840. $2=$5;
  1841. };
  1842. _st($1)._items_($2);
  1843. return self}, function($ctx1) {$ctx1.fill(self,"setItemsForClass:",{aClass:aClass}, smalltalk.HLProtocolsListWidget)})},
  1844. args: ["aClass"],
  1845. 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 ])",
  1846. messageSends: ["items:", "ifNil:ifNotNil:", "with:", "allProtocol", "addAll:", "protocols", "yourself"],
  1847. referencedClasses: ["Array"]
  1848. }),
  1849. smalltalk.HLProtocolsListWidget);
  1850. smalltalk.addMethod(
  1851. "_setItemsForSelectedClass",
  1852. smalltalk.method({
  1853. selector: "setItemsForSelectedClass",
  1854. category: 'private',
  1855. fn: function (){
  1856. var self=this;
  1857. return smalltalk.withContext(function($ctx1) { _st(self)._setItemsForClass_(_st(_st(self)._model())._selectedClass());
  1858. return self}, function($ctx1) {$ctx1.fill(self,"setItemsForSelectedClass",{}, smalltalk.HLProtocolsListWidget)})},
  1859. args: [],
  1860. source: "setItemsForSelectedClass\x0a\x09self setItemsForClass: self model selectedClass",
  1861. messageSends: ["setItemsForClass:", "selectedClass", "model"],
  1862. referencedClasses: []
  1863. }),
  1864. smalltalk.HLProtocolsListWidget);
  1865. smalltalk.addClass('HLBrowserModel', smalltalk.Object, ['announcer', 'environment', 'selectedPackage', 'selectedClass', 'selectedProtocol', 'selectedSelector', 'showInstance', 'showComment'], 'Helios-Browser');
  1866. smalltalk.addMethod(
  1867. "_addInstVarNamed_",
  1868. smalltalk.method({
  1869. selector: "addInstVarNamed:",
  1870. category: 'actions',
  1871. fn: function (aString){
  1872. var self=this;
  1873. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1874. _st(_st(self)._environment())._addInstVarNamed_to_(aString,_st(self)._selectedClass());
  1875. $1=_st((smalltalk.HLInstVarAdded || HLInstVarAdded))._new();
  1876. _st($1)._theClass_(_st(self)._selectedClass());
  1877. _st($1)._variableName_(aString);
  1878. $2=_st($1)._yourself();
  1879. _st(_st(self)._announcer())._announce_($2);
  1880. return self}, function($ctx1) {$ctx1.fill(self,"addInstVarNamed:",{aString:aString}, smalltalk.HLBrowserModel)})},
  1881. args: ["aString"],
  1882. source: "addInstVarNamed: aString\x0a\x09self environment addInstVarNamed: aString to: self selectedClass.\x0a\x09self announcer announce: (HLInstVarAdded new\x0a\x09\x09theClass: self selectedClass;\x0a\x09\x09variableName: aString;\x0a\x09\x09yourself)",
  1883. messageSends: ["addInstVarNamed:to:", "selectedClass", "environment", "announce:", "theClass:", "new", "variableName:", "yourself", "announcer"],
  1884. referencedClasses: ["HLInstVarAdded"]
  1885. }),
  1886. smalltalk.HLBrowserModel);
  1887. smalltalk.addMethod(
  1888. "_allProtocol",
  1889. smalltalk.method({
  1890. selector: "allProtocol",
  1891. category: 'defaults',
  1892. fn: function (){
  1893. var self=this;
  1894. return smalltalk.withContext(function($ctx1) { return "-- all --";
  1895. }, function($ctx1) {$ctx1.fill(self,"allProtocol",{}, smalltalk.HLBrowserModel)})},
  1896. args: [],
  1897. source: "allProtocol\x0a\x09^ '-- all --'",
  1898. messageSends: [],
  1899. referencedClasses: []
  1900. }),
  1901. smalltalk.HLBrowserModel);
  1902. smalltalk.addMethod(
  1903. "_announcer",
  1904. smalltalk.method({
  1905. selector: "announcer",
  1906. category: 'accessing',
  1907. fn: function (){
  1908. var self=this;
  1909. return smalltalk.withContext(function($ctx1) { var $2,$1;
  1910. $2=self["@announcer"];
  1911. if(($receiver = $2) == nil || $receiver == undefined){
  1912. self["@announcer"]=_st((smalltalk.Announcer || Announcer))._new();
  1913. $1=self["@announcer"];
  1914. } else {
  1915. $1=$2;
  1916. };
  1917. return $1;
  1918. }, function($ctx1) {$ctx1.fill(self,"announcer",{}, smalltalk.HLBrowserModel)})},
  1919. args: [],
  1920. source: "announcer\x0a\x09^ announcer ifNil: [ announcer := Announcer new ]",
  1921. messageSends: ["ifNil:", "new"],
  1922. referencedClasses: ["Announcer"]
  1923. }),
  1924. smalltalk.HLBrowserModel);
  1925. smalltalk.addMethod(
  1926. "_availableClassNames",
  1927. smalltalk.method({
  1928. selector: "availableClassNames",
  1929. category: 'accessing',
  1930. fn: function (){
  1931. var self=this;
  1932. return smalltalk.withContext(function($ctx1) { var $1;
  1933. $1=_st(_st(self)._environment())._availableClassNames();
  1934. return $1;
  1935. }, function($ctx1) {$ctx1.fill(self,"availableClassNames",{},smalltalk.HLBrowserModel)})},
  1936. args: [],
  1937. source: "availableClassNames\x0a\x09^ self environment availableClassNames",
  1938. messageSends: ["availableClassNames", "environment"],
  1939. referencedClasses: []
  1940. }),
  1941. smalltalk.HLBrowserModel);
  1942. smalltalk.addMethod(
  1943. "_compilationProtocol",
  1944. smalltalk.method({
  1945. selector: "compilationProtocol",
  1946. category: 'private',
  1947. fn: function (){
  1948. var self=this;
  1949. var currentProtocol;
  1950. return smalltalk.withContext(function($ctx1) { var $1,$2,$4,$3;
  1951. currentProtocol=_st(self)._selectedProtocol();
  1952. $1=currentProtocol;
  1953. if(($receiver = $1) == nil || $receiver == undefined){
  1954. currentProtocol=_st(self)._unclassifiedProtocol();
  1955. currentProtocol;
  1956. } else {
  1957. $1;
  1958. };
  1959. $2=_st(self)._selectedMethod();
  1960. if(($receiver = $2) == nil || $receiver == undefined){
  1961. $2;
  1962. } else {
  1963. currentProtocol=_st(_st(self)._selectedMethod())._protocol();
  1964. currentProtocol;
  1965. };
  1966. $4=_st(currentProtocol).__eq(_st(self)._allProtocol());
  1967. if(smalltalk.assert($4)){
  1968. $3=_st(self)._unclassifiedProtocol();
  1969. } else {
  1970. $3=currentProtocol;
  1971. };
  1972. return $3;
  1973. }, function($ctx1) {$ctx1.fill(self,"compilationProtocol",{currentProtocol:currentProtocol},smalltalk.HLBrowserModel)})},
  1974. args: [],
  1975. source: "compilationProtocol\x0a\x09| currentProtocol |\x0a\x09\x0a\x09currentProtocol := self selectedProtocol.\x0a\x09currentProtocol ifNil: [ currentProtocol := self unclassifiedProtocol ].\x0a\x09self selectedMethod ifNotNil: [ currentProtocol := self selectedMethod protocol ].\x0a\x0a\x09^ currentProtocol = self allProtocol\x0a\x09\x09ifTrue: [ self unclassifiedProtocol ]\x0a\x09\x09ifFalse: [ currentProtocol ]",
  1976. messageSends: ["selectedProtocol", "ifNil:", "unclassifiedProtocol", "ifNotNil:", "protocol", "selectedMethod", "ifTrue:ifFalse:", "=", "allProtocol"],
  1977. referencedClasses: []
  1978. }),
  1979. smalltalk.HLBrowserModel);
  1980. smalltalk.addMethod(
  1981. "_compileClassComment_",
  1982. smalltalk.method({
  1983. selector: "compileClassComment:",
  1984. category: 'compiling',
  1985. fn: function (aString){
  1986. var self=this;
  1987. return smalltalk.withContext(function($ctx1) { _st(_st(self)._environment())._compileClassComment_for_(aString,_st(self)._selectedClass());
  1988. return self}, function($ctx1) {$ctx1.fill(self,"compileClassComment:",{aString:aString}, smalltalk.HLBrowserModel)})},
  1989. args: ["aString"],
  1990. source: "compileClassComment: aString\x0a\x09self environment \x0a\x09\x09compileClassComment: aString \x0a\x09\x09for: self selectedClass",
  1991. messageSends: ["compileClassComment:for:", "selectedClass", "environment"],
  1992. referencedClasses: []
  1993. }),
  1994. smalltalk.HLBrowserModel);
  1995. smalltalk.addMethod(
  1996. "_compileClassDefinition_",
  1997. smalltalk.method({
  1998. selector: "compileClassDefinition:",
  1999. category: 'compiling',
  2000. fn: function (aString){
  2001. var self=this;
  2002. return smalltalk.withContext(function($ctx1) { _st(_st(self)._environment())._compileClassDefinition_(aString);
  2003. return self}, function($ctx1) {$ctx1.fill(self,"compileClassDefinition:",{aString:aString}, smalltalk.HLBrowserModel)})},
  2004. args: ["aString"],
  2005. source: "compileClassDefinition: aString\x0a\x09self environment compileClassDefinition: aString",
  2006. messageSends: ["compileClassDefinition:", "environment"],
  2007. referencedClasses: []
  2008. }),
  2009. smalltalk.HLBrowserModel);
  2010. smalltalk.addMethod(
  2011. "_compileMethod_",
  2012. smalltalk.method({
  2013. selector: "compileMethod:",
  2014. category: 'compiling',
  2015. fn: function (aString){
  2016. var self=this;
  2017. return smalltalk.withContext(function($ctx1) { _st(self)._withCompileErrorHandling_((function(){
  2018. return smalltalk.withContext(function($ctx2) { return _st(_st(self)._environment())._compileMethod_for_protocol_(aString,_st(self)._selectedClass(),_st(self)._compilationProtocol());
  2019. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2020. return self}, function($ctx1) {$ctx1.fill(self,"compileMethod:",{aString:aString}, smalltalk.HLBrowserModel)})},
  2021. args: ["aString"],
  2022. source: "compileMethod: aString\x0a\x0a\x09self withCompileErrorHandling: [ self environment \x0a\x09\x09compileMethod: aString \x0a\x09\x09for: self selectedClass\x0a\x09\x09protocol: self compilationProtocol ]",
  2023. messageSends: ["withCompileErrorHandling:", "compileMethod:for:protocol:", "selectedClass", "compilationProtocol", "environment"],
  2024. referencedClasses: []
  2025. }),
  2026. smalltalk.HLBrowserModel);
  2027. smalltalk.addMethod(
  2028. "_environment",
  2029. smalltalk.method({
  2030. selector: "environment",
  2031. category: 'accessing',
  2032. fn: function (){
  2033. var self=this;
  2034. return smalltalk.withContext(function($ctx1) { var $2,$1;
  2035. $2=self["@environment"];
  2036. if(($receiver = $2) == nil || $receiver == undefined){
  2037. $1=_st(_st((smalltalk.HLManager || HLManager))._current())._environment();
  2038. } else {
  2039. $1=$2;
  2040. };
  2041. return $1;
  2042. }, function($ctx1) {$ctx1.fill(self,"environment",{}, smalltalk.HLBrowserModel)})},
  2043. args: [],
  2044. source: "environment\x0a\x09^ environment ifNil: [ HLManager current environment ]",
  2045. messageSends: ["ifNil:", "environment", "current"],
  2046. referencedClasses: ["HLManager"]
  2047. }),
  2048. smalltalk.HLBrowserModel);
  2049. smalltalk.addMethod(
  2050. "_environment_",
  2051. smalltalk.method({
  2052. selector: "environment:",
  2053. category: 'accessing',
  2054. fn: function (anEnvironment){
  2055. var self=this;
  2056. return smalltalk.withContext(function($ctx1) { self["@environment"]=anEnvironment;
  2057. return self}, function($ctx1) {$ctx1.fill(self,"environment:",{anEnvironment:anEnvironment}, smalltalk.HLBrowserModel)})},
  2058. args: ["anEnvironment"],
  2059. source: "environment: anEnvironment\x0a\x09environment := anEnvironment",
  2060. messageSends: [],
  2061. referencedClasses: []
  2062. }),
  2063. smalltalk.HLBrowserModel);
  2064. smalltalk.addMethod(
  2065. "_focusOnClasses",
  2066. smalltalk.method({
  2067. selector: "focusOnClasses",
  2068. category: 'actions',
  2069. fn: function (){
  2070. var self=this;
  2071. return smalltalk.withContext(function($ctx1) { _st(_st(self)._announcer())._announce_(_st((smalltalk.HLClassesFocusRequested || HLClassesFocusRequested))._new());
  2072. return self}, function($ctx1) {$ctx1.fill(self,"focusOnClasses",{}, smalltalk.HLBrowserModel)})},
  2073. args: [],
  2074. source: "focusOnClasses\x0a\x09self announcer announce: HLClassesFocusRequested new",
  2075. messageSends: ["announce:", "new", "announcer"],
  2076. referencedClasses: ["HLClassesFocusRequested"]
  2077. }),
  2078. smalltalk.HLBrowserModel);
  2079. smalltalk.addMethod(
  2080. "_focusOnMethods",
  2081. smalltalk.method({
  2082. selector: "focusOnMethods",
  2083. category: 'actions',
  2084. fn: function (){
  2085. var self=this;
  2086. return smalltalk.withContext(function($ctx1) { _st(_st(self)._announcer())._announce_(_st((smalltalk.HLMethodsFocusRequested || HLMethodsFocusRequested))._new());
  2087. return self}, function($ctx1) {$ctx1.fill(self,"focusOnMethods",{}, smalltalk.HLBrowserModel)})},
  2088. args: [],
  2089. source: "focusOnMethods\x0a\x09self announcer announce: HLMethodsFocusRequested new",
  2090. messageSends: ["announce:", "new", "announcer"],
  2091. referencedClasses: ["HLMethodsFocusRequested"]
  2092. }),
  2093. smalltalk.HLBrowserModel);
  2094. smalltalk.addMethod(
  2095. "_focusOnPackages",
  2096. smalltalk.method({
  2097. selector: "focusOnPackages",
  2098. category: 'actions',
  2099. fn: function (){
  2100. var self=this;
  2101. return smalltalk.withContext(function($ctx1) { _st(_st(self)._announcer())._announce_(_st((smalltalk.HLPackagesFocusRequested || HLPackagesFocusRequested))._new());
  2102. return self}, function($ctx1) {$ctx1.fill(self,"focusOnPackages",{}, smalltalk.HLBrowserModel)})},
  2103. args: [],
  2104. source: "focusOnPackages\x0a\x09self announcer announce: HLPackagesFocusRequested new",
  2105. messageSends: ["announce:", "new", "announcer"],
  2106. referencedClasses: ["HLPackagesFocusRequested"]
  2107. }),
  2108. smalltalk.HLBrowserModel);
  2109. smalltalk.addMethod(
  2110. "_focusOnProtocols",
  2111. smalltalk.method({
  2112. selector: "focusOnProtocols",
  2113. category: 'actions',
  2114. fn: function (){
  2115. var self=this;
  2116. return smalltalk.withContext(function($ctx1) { _st(_st(self)._announcer())._announce_(_st((smalltalk.HLProtocolsFocusRequested || HLProtocolsFocusRequested))._new());
  2117. return self}, function($ctx1) {$ctx1.fill(self,"focusOnProtocols",{}, smalltalk.HLBrowserModel)})},
  2118. args: [],
  2119. source: "focusOnProtocols\x0a\x09self announcer announce: HLProtocolsFocusRequested new",
  2120. messageSends: ["announce:", "new", "announcer"],
  2121. referencedClasses: ["HLProtocolsFocusRequested"]
  2122. }),
  2123. smalltalk.HLBrowserModel);
  2124. smalltalk.addMethod(
  2125. "_focusOnSourceCode",
  2126. smalltalk.method({
  2127. selector: "focusOnSourceCode",
  2128. category: 'actions',
  2129. fn: function (){
  2130. var self=this;
  2131. return smalltalk.withContext(function($ctx1) { _st(_st(self)._announcer())._announce_(_st((smalltalk.HLSourceCodeFocusRequested || HLSourceCodeFocusRequested))._new());
  2132. return self}, function($ctx1) {$ctx1.fill(self,"focusOnSourceCode",{}, smalltalk.HLBrowserModel)})},
  2133. args: [],
  2134. source: "focusOnSourceCode\x0a\x09self announcer announce: HLSourceCodeFocusRequested new",
  2135. messageSends: ["announce:", "new", "announcer"],
  2136. referencedClasses: ["HLSourceCodeFocusRequested"]
  2137. }),
  2138. smalltalk.HLBrowserModel);
  2139. smalltalk.addMethod(
  2140. "_handleCompileError_",
  2141. smalltalk.method({
  2142. selector: "handleCompileError:",
  2143. category: 'error handling',
  2144. fn: function (anError){
  2145. var self=this;
  2146. return smalltalk.withContext(function($ctx1) { var $1,$2;
  2147. $1=_st((smalltalk.HLCompileErrorRaised || HLCompileErrorRaised))._new();
  2148. _st($1)._error_(anError);
  2149. $2=_st($1)._yourself();
  2150. _st(_st(self)._announcer())._announce_($2);
  2151. return self}, function($ctx1) {$ctx1.fill(self,"handleCompileError:",{anError:anError}, smalltalk.HLBrowserModel)})},
  2152. args: ["anError"],
  2153. source: "handleCompileError: anError\x0a\x09self announcer announce: (HLCompileErrorRaised new\x0a\x09\x09error: anError;\x0a\x09\x09yourself)",
  2154. messageSends: ["announce:", "error:", "new", "yourself", "announcer"],
  2155. referencedClasses: ["HLCompileErrorRaised"]
  2156. }),
  2157. smalltalk.HLBrowserModel);
  2158. smalltalk.addMethod(
  2159. "_handleParseError_",
  2160. smalltalk.method({
  2161. selector: "handleParseError:",
  2162. category: 'error handling',
  2163. fn: function (anError){
  2164. var self=this;
  2165. var split,line,column,messageToInsert;
  2166. return smalltalk.withContext(function($ctx1) { var $1,$2;
  2167. split=_st(_st(anError)._messageText())._tokenize_(" : ");
  2168. messageToInsert=_st(split)._second();
  2169. split=_st(_st(split)._first())._copyFrom_to_((21),_st(_st(split)._first())._size());
  2170. split=_st(split)._tokenize_(" column ");
  2171. line=_st(split)._first();
  2172. column=_st(split)._second();
  2173. $1=_st((smalltalk.HLParseErrorRaised || HLParseErrorRaised))._new();
  2174. _st($1)._line_(_st(line)._asNumber());
  2175. _st($1)._column_(_st(column)._asNumber());
  2176. _st($1)._message_(messageToInsert);
  2177. _st($1)._error_(anError);
  2178. $2=_st($1)._yourself();
  2179. _st(_st(self)._announcer())._announce_($2);
  2180. return self}, function($ctx1) {$ctx1.fill(self,"handleParseError:",{anError:anError,split:split,line:line,column:column,messageToInsert:messageToInsert}, smalltalk.HLBrowserModel)})},
  2181. args: ["anError"],
  2182. source: "handleParseError: anError\x0a\x09| split line column messageToInsert |\x0a\x09\x0a\x09split := anError messageText tokenize: ' : '.\x0a\x09messageToInsert := split second.\x0a\x0a\x09\x2221 = 'Parse error on line ' size + 1\x22\x0a\x09split := split first copyFrom: 21 to: split first size.\x0a\x09\x0a\x09split := split tokenize: ' column '.\x0a\x09line := split first.\x0a\x09column := split second.\x0a\x09\x0a\x09self announcer announce: (HLParseErrorRaised new\x0a\x09\x09line: line asNumber;\x0a\x09\x09column: column asNumber;\x0a\x09\x09message: messageToInsert;\x0a\x09\x09error: anError;\x0a\x09\x09yourself)",
  2183. messageSends: ["tokenize:", "messageText", "second", "copyFrom:to:", "size", "first", "announce:", "line:", "asNumber", "new", "column:", "message:", "error:", "yourself", "announcer"],
  2184. referencedClasses: ["HLParseErrorRaised"]
  2185. }),
  2186. smalltalk.HLBrowserModel);
  2187. smalltalk.addMethod(
  2188. "_handleUnkownVariableError_",
  2189. smalltalk.method({
  2190. selector: "handleUnkownVariableError:",
  2191. category: 'error handling',
  2192. fn: function (anError){
  2193. var self=this;
  2194. return smalltalk.withContext(function($ctx1) { var $1,$2;
  2195. $1=_st((smalltalk.HLUnknownVariableErrorRaised || HLUnknownVariableErrorRaised))._new();
  2196. _st($1)._error_(anError);
  2197. $2=_st($1)._yourself();
  2198. _st(_st(self)._announcer())._announce_($2);
  2199. return self}, function($ctx1) {$ctx1.fill(self,"handleUnkownVariableError:",{anError:anError}, smalltalk.HLBrowserModel)})},
  2200. args: ["anError"],
  2201. source: "handleUnkownVariableError: anError\x0a\x09self announcer announce: (HLUnknownVariableErrorRaised new\x0a\x09\x09error: anError;\x0a\x09\x09yourself)",
  2202. messageSends: ["announce:", "error:", "new", "yourself", "announcer"],
  2203. referencedClasses: ["HLUnknownVariableErrorRaised"]
  2204. }),
  2205. smalltalk.HLBrowserModel);
  2206. smalltalk.addMethod(
  2207. "_moveMethodToClass_",
  2208. smalltalk.method({
  2209. selector: "moveMethodToClass:",
  2210. category: 'commands actions',
  2211. fn: function (aClassName){
  2212. var self=this;
  2213. return smalltalk.withContext(function($ctx1) { _st(_st(self)._environment())._moveMethod_toClass_(_st(self)._selectedMethod(),aClassName);
  2214. return self}, function($ctx1) {$ctx1.fill(self,"moveMethodToClass:",{aClassName:aClassName},smalltalk.HLBrowserModel)})},
  2215. args: ["aClassName"],
  2216. source: "moveMethodToClass: aClassName\x0a\x09self environment \x0a\x09\x09moveMethod: self selectedMethod \x0a\x09\x09toClass: aClassName",
  2217. messageSends: ["moveMethod:toClass:", "selectedMethod", "environment"],
  2218. referencedClasses: []
  2219. }),
  2220. smalltalk.HLBrowserModel);
  2221. smalltalk.addMethod(
  2222. "_moveMethodToClass_ifAbsent_",
  2223. smalltalk.method({
  2224. selector: "moveMethodToClass:ifAbsent:",
  2225. category: 'commands actions',
  2226. fn: function (aClassName,aBlock){
  2227. var self=this;
  2228. return smalltalk.withContext(function($ctx1) { _st(_st(self)._environment())._moveMethod_toClass_ifAbsent_(_st(self)._selectedMethod(),aClassName,aBlock);
  2229. return self}, function($ctx1) {$ctx1.fill(self,"moveMethodToClass:ifAbsent:",{aClassName:aClassName,aBlock:aBlock},smalltalk.HLBrowserModel)})},
  2230. args: ["aClassName", "aBlock"],
  2231. source: "moveMethodToClass: aClassName ifAbsent: aBlock\x0a\x09self environment \x0a\x09\x09moveMethod: self selectedMethod \x0a\x09\x09toClass: aClassName \x0a\x09\x09ifAbsent: aBlock",
  2232. messageSends: ["moveMethod:toClass:ifAbsent:", "selectedMethod", "environment"],
  2233. referencedClasses: []
  2234. }),
  2235. smalltalk.HLBrowserModel);
  2236. smalltalk.addMethod(
  2237. "_packages",
  2238. smalltalk.method({
  2239. selector: "packages",
  2240. category: 'accessing',
  2241. fn: function (){
  2242. var self=this;
  2243. return smalltalk.withContext(function($ctx1) { var $1;
  2244. $1=_st(_st(self)._environment())._packages();
  2245. return $1;
  2246. }, function($ctx1) {$ctx1.fill(self,"packages",{}, smalltalk.HLBrowserModel)})},
  2247. args: [],
  2248. source: "packages\x0a\x09^ self environment packages",
  2249. messageSends: ["packages", "environment"],
  2250. referencedClasses: []
  2251. }),
  2252. smalltalk.HLBrowserModel);
  2253. smalltalk.addMethod(
  2254. "_save_",
  2255. smalltalk.method({
  2256. selector: "save:",
  2257. category: 'actions',
  2258. fn: function (aString){
  2259. var self=this;
  2260. return smalltalk.withContext(function($ctx1) { var $1;
  2261. $1=_st(self)._shouldCompileClassDefinition_(aString);
  2262. if(smalltalk.assert($1)){
  2263. _st(self)._compileClassDefinition_(aString);
  2264. } else {
  2265. _st(self)._compileMethod_(aString);
  2266. };
  2267. return self}, function($ctx1) {$ctx1.fill(self,"save:",{aString:aString},smalltalk.HLBrowserModel)})},
  2268. args: ["aString"],
  2269. source: "save: aString\x0a\x09(self shouldCompileClassDefinition: aString)\x0a\x09\x09ifTrue: [ self compileClassDefinition: aString ]\x0a\x09\x09ifFalse: [ self compileMethod: aString ]",
  2270. messageSends: ["ifTrue:ifFalse:", "compileClassDefinition:", "compileMethod:", "shouldCompileClassDefinition:"],
  2271. referencedClasses: []
  2272. }),
  2273. smalltalk.HLBrowserModel);
  2274. smalltalk.addMethod(
  2275. "_saveSourceCode",
  2276. smalltalk.method({
  2277. selector: "saveSourceCode",
  2278. category: 'actions',
  2279. fn: function (){
  2280. var self=this;
  2281. return smalltalk.withContext(function($ctx1) { _st(_st(self)._announcer())._announce_(_st((smalltalk.HLSaveSourceCode || HLSaveSourceCode))._new());
  2282. return self}, function($ctx1) {$ctx1.fill(self,"saveSourceCode",{}, smalltalk.HLBrowserModel)})},
  2283. args: [],
  2284. source: "saveSourceCode\x0a\x09self announcer announce: HLSaveSourceCode new",
  2285. messageSends: ["announce:", "new", "announcer"],
  2286. referencedClasses: ["HLSaveSourceCode"]
  2287. }),
  2288. smalltalk.HLBrowserModel);
  2289. smalltalk.addMethod(
  2290. "_selectedClass",
  2291. smalltalk.method({
  2292. selector: "selectedClass",
  2293. category: 'accessing',
  2294. fn: function (){
  2295. var self=this;
  2296. return smalltalk.withContext(function($ctx1) { var $1;
  2297. $1=self["@selectedClass"];
  2298. return $1;
  2299. }, function($ctx1) {$ctx1.fill(self,"selectedClass",{}, smalltalk.HLBrowserModel)})},
  2300. args: [],
  2301. source: "selectedClass\x0a\x09^ selectedClass",
  2302. messageSends: [],
  2303. referencedClasses: []
  2304. }),
  2305. smalltalk.HLBrowserModel);
  2306. smalltalk.addMethod(
  2307. "_selectedClass_",
  2308. smalltalk.method({
  2309. selector: "selectedClass:",
  2310. category: 'accessing',
  2311. fn: function (aClass){
  2312. var self=this;
  2313. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4,$5;
  2314. $1=_st(self["@selectedClass"]).__eq(aClass);
  2315. if(smalltalk.assert($1)){
  2316. $2=aClass;
  2317. if(($receiver = $2) == nil || $receiver == undefined){
  2318. $3=self;
  2319. return $3;
  2320. } else {
  2321. $2;
  2322. };
  2323. _st(self)._selectedProtocol_(nil);
  2324. };
  2325. $4=aClass;
  2326. if(($receiver = $4) == nil || $receiver == undefined){
  2327. self["@selectedClass"]=nil;
  2328. self["@selectedClass"];
  2329. } else {
  2330. $5=_st(self)._showInstance();
  2331. if(smalltalk.assert($5)){
  2332. self["@selectedClass"]=_st(aClass)._theNonMetaClass();
  2333. self["@selectedClass"];
  2334. } else {
  2335. self["@selectedClass"]=_st(aClass)._theMetaClass();
  2336. self["@selectedClass"];
  2337. };
  2338. };
  2339. _st(self)._selectedProtocol_(nil);
  2340. _st(_st(self)._announcer())._announce_(_st((smalltalk.HLClassSelected || HLClassSelected))._on_(_st(self)._selectedClass()));
  2341. return self}, function($ctx1) {$ctx1.fill(self,"selectedClass:",{aClass:aClass}, smalltalk.HLBrowserModel)})},
  2342. args: ["aClass"],
  2343. source: "selectedClass: aClass\x0a\x09selectedClass = aClass ifTrue: [ \x0a\x09\x09aClass ifNil: [ ^ self ].\x0a\x09\x09self selectedProtocol: nil ].\x0a \x0a\x09aClass \x0a \x09\x09ifNil: [ selectedClass := nil ]\x0a \x09ifNotNil: [\x0a\x09\x09\x09self showInstance \x0a \x09\x09\x09\x09ifTrue: [ selectedClass := aClass theNonMetaClass ]\x0a \x09\x09\x09ifFalse: [ selectedClass := aClass theMetaClass ] ].\x0a\x09self selectedProtocol: nil.\x0a\x09self announcer announce: (HLClassSelected on: self selectedClass)",
  2344. messageSends: ["ifTrue:", "ifNil:", "selectedProtocol:", "=", "ifNil:ifNotNil:", "ifTrue:ifFalse:", "theNonMetaClass", "theMetaClass", "showInstance", "announce:", "on:", "selectedClass", "announcer"],
  2345. referencedClasses: ["HLClassSelected"]
  2346. }),
  2347. smalltalk.HLBrowserModel);
  2348. smalltalk.addMethod(
  2349. "_selectedMethod",
  2350. smalltalk.method({
  2351. selector: "selectedMethod",
  2352. category: 'accessing',
  2353. fn: function (){
  2354. var self=this;
  2355. return smalltalk.withContext(function($ctx1) { var $2,$1;
  2356. $2=_st(self)._selectedClass();
  2357. if(($receiver = $2) == nil || $receiver == undefined){
  2358. $1=$2;
  2359. } else {
  2360. $1=_st(_st(_st(self)._selectedClass())._methodDictionary())._at_ifAbsent_(self["@selectedSelector"],(function(){
  2361. return smalltalk.withContext(function($ctx2) { return nil;
  2362. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2363. };
  2364. return $1;
  2365. }, function($ctx1) {$ctx1.fill(self,"selectedMethod",{},smalltalk.HLBrowserModel)})},
  2366. args: [],
  2367. source: "selectedMethod\x0a\x09^ self selectedClass ifNotNil: [ \x0a\x09\x09\x09self selectedClass methodDictionary \x0a\x09\x09\x09\x09at: selectedSelector \x0a\x09\x09\x09\x09ifAbsent: [ nil ] ]",
  2368. messageSends: ["ifNotNil:", "at:ifAbsent:", "methodDictionary", "selectedClass"],
  2369. referencedClasses: []
  2370. }),
  2371. smalltalk.HLBrowserModel);
  2372. smalltalk.addMethod(
  2373. "_selectedMethod_",
  2374. smalltalk.method({
  2375. selector: "selectedMethod:",
  2376. category: 'accessing',
  2377. fn: function (aCompiledMethod){
  2378. var self=this;
  2379. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4,$5;
  2380. $1=_st(self["@selectedSelector"]).__eq(aCompiledMethod);
  2381. if(smalltalk.assert($1)){
  2382. $2=self;
  2383. return $2;
  2384. };
  2385. $3=aCompiledMethod;
  2386. if(($receiver = $3) == nil || $receiver == undefined){
  2387. self["@selectedSelector"]=nil;
  2388. self["@selectedSelector"];
  2389. } else {
  2390. $4=_st(self["@selectedSelector"]).__eq(_st(aCompiledMethod)._selector());
  2391. if(smalltalk.assert($4)){
  2392. $5=self;
  2393. return $5;
  2394. };
  2395. self["@selectedSelector"]=_st(aCompiledMethod)._selector();
  2396. self["@selectedSelector"];
  2397. };
  2398. _st(_st(self)._announcer())._announce_(_st((smalltalk.HLMethodSelected || HLMethodSelected))._on_(aCompiledMethod));
  2399. return self}, function($ctx1) {$ctx1.fill(self,"selectedMethod:",{aCompiledMethod:aCompiledMethod}, smalltalk.HLBrowserModel)})},
  2400. args: ["aCompiledMethod"],
  2401. source: "selectedMethod: aCompiledMethod\x0a\x09selectedSelector = aCompiledMethod ifTrue: [ ^ self ].\x0a \x0a aCompiledMethod\x0a \x09ifNil: [ selectedSelector := nil ]\x0a \x09ifNotNil: [\x0a\x09\x09\x09selectedSelector = aCompiledMethod selector ifTrue: [ ^ self ].\x0a\x09\x09\x09selectedSelector := aCompiledMethod selector ].\x0a\x0a self announcer announce: (HLMethodSelected on: aCompiledMethod)",
  2402. messageSends: ["ifTrue:", "=", "ifNil:ifNotNil:", "selector", "announce:", "on:", "announcer"],
  2403. referencedClasses: ["HLMethodSelected"]
  2404. }),
  2405. smalltalk.HLBrowserModel);
  2406. smalltalk.addMethod(
  2407. "_selectedPackage",
  2408. smalltalk.method({
  2409. selector: "selectedPackage",
  2410. category: 'accessing',
  2411. fn: function (){
  2412. var self=this;
  2413. return smalltalk.withContext(function($ctx1) { var $1;
  2414. $1=self["@selectedPackage"];
  2415. return $1;
  2416. }, function($ctx1) {$ctx1.fill(self,"selectedPackage",{}, smalltalk.HLBrowserModel)})},
  2417. args: [],
  2418. source: "selectedPackage\x0a\x09^ selectedPackage",
  2419. messageSends: [],
  2420. referencedClasses: []
  2421. }),
  2422. smalltalk.HLBrowserModel);
  2423. smalltalk.addMethod(
  2424. "_selectedPackage_",
  2425. smalltalk.method({
  2426. selector: "selectedPackage:",
  2427. category: 'accessing',
  2428. fn: function (aPackage){
  2429. var self=this;
  2430. return smalltalk.withContext(function($ctx1) { var $1,$2;
  2431. $1=_st(self["@selectedPackage"]).__eq(aPackage);
  2432. if(smalltalk.assert($1)){
  2433. $2=self;
  2434. return $2;
  2435. };
  2436. self["@selectedPackage"]=aPackage;
  2437. _st(self)._selectedClass_(nil);
  2438. _st(_st(self)._announcer())._announce_(_st((smalltalk.HLPackageSelected || HLPackageSelected))._on_(aPackage));
  2439. return self}, function($ctx1) {$ctx1.fill(self,"selectedPackage:",{aPackage:aPackage}, smalltalk.HLBrowserModel)})},
  2440. args: ["aPackage"],
  2441. source: "selectedPackage: aPackage\x0a\x09selectedPackage = aPackage ifTrue: [ ^ self ].\x0a \x0a\x09selectedPackage := aPackage.\x0a\x09self selectedClass: nil.\x0a self announcer announce: (HLPackageSelected on: aPackage)",
  2442. messageSends: ["ifTrue:", "=", "selectedClass:", "announce:", "on:", "announcer"],
  2443. referencedClasses: ["HLPackageSelected"]
  2444. }),
  2445. smalltalk.HLBrowserModel);
  2446. smalltalk.addMethod(
  2447. "_selectedProtocol",
  2448. smalltalk.method({
  2449. selector: "selectedProtocol",
  2450. category: 'accessing',
  2451. fn: function (){
  2452. var self=this;
  2453. return smalltalk.withContext(function($ctx1) { var $1;
  2454. $1=self["@selectedProtocol"];
  2455. return $1;
  2456. }, function($ctx1) {$ctx1.fill(self,"selectedProtocol",{}, smalltalk.HLBrowserModel)})},
  2457. args: [],
  2458. source: "selectedProtocol\x0a\x09^ selectedProtocol",
  2459. messageSends: [],
  2460. referencedClasses: []
  2461. }),
  2462. smalltalk.HLBrowserModel);
  2463. smalltalk.addMethod(
  2464. "_selectedProtocol_",
  2465. smalltalk.method({
  2466. selector: "selectedProtocol:",
  2467. category: 'accessing',
  2468. fn: function (aString){
  2469. var self=this;
  2470. return smalltalk.withContext(function($ctx1) { var $1,$2;
  2471. $1=_st(self["@selectedProtocol"]).__eq(aString);
  2472. if(smalltalk.assert($1)){
  2473. $2=self;
  2474. return $2;
  2475. };
  2476. self["@selectedProtocol"]=aString;
  2477. _st(self)._selectedMethod_(nil);
  2478. _st(_st(self)._announcer())._announce_(_st((smalltalk.HLProtocolSelected || HLProtocolSelected))._on_(aString));
  2479. return self}, function($ctx1) {$ctx1.fill(self,"selectedProtocol:",{aString:aString}, smalltalk.HLBrowserModel)})},
  2480. args: ["aString"],
  2481. source: "selectedProtocol: aString\x0a\x09selectedProtocol = aString ifTrue: [ ^ self ].\x0a \x0a\x09selectedProtocol := aString.\x0a self selectedMethod: nil.\x0a self announcer announce: (HLProtocolSelected on: aString)",
  2482. messageSends: ["ifTrue:", "=", "selectedMethod:", "announce:", "on:", "announcer"],
  2483. referencedClasses: ["HLProtocolSelected"]
  2484. }),
  2485. smalltalk.HLBrowserModel);
  2486. smalltalk.addMethod(
  2487. "_shouldCompileClassDefinition_",
  2488. smalltalk.method({
  2489. selector: "shouldCompileClassDefinition:",
  2490. category: 'testing',
  2491. fn: function (aString){
  2492. var self=this;
  2493. return smalltalk.withContext(function($ctx1) { var $1;
  2494. $1=_st(_st(_st(self)._selectedClass())._isNil())._or_((function(){
  2495. return smalltalk.withContext(function($ctx2) { return _st(_st(_st(aString)._first())._asUppercase()).__eq(_st(aString)._first());
  2496. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2497. return $1;
  2498. }, function($ctx1) {$ctx1.fill(self,"shouldCompileClassDefinition:",{aString:aString},smalltalk.HLBrowserModel)})},
  2499. args: ["aString"],
  2500. source: "shouldCompileClassDefinition: aString\x0a\x09^ self selectedClass isNil or: [\x0a\x09\x09aString first asUppercase = aString first ]",
  2501. messageSends: ["or:", "=", "first", "asUppercase", "isNil", "selectedClass"],
  2502. referencedClasses: []
  2503. }),
  2504. smalltalk.HLBrowserModel);
  2505. smalltalk.addMethod(
  2506. "_showComment",
  2507. smalltalk.method({
  2508. selector: "showComment",
  2509. category: 'accessing',
  2510. fn: function (){
  2511. var self=this;
  2512. return smalltalk.withContext(function($ctx1) { var $2,$1;
  2513. $2=self["@showComment"];
  2514. if(($receiver = $2) == nil || $receiver == undefined){
  2515. $1=false;
  2516. } else {
  2517. $1=$2;
  2518. };
  2519. return $1;
  2520. }, function($ctx1) {$ctx1.fill(self,"showComment",{}, smalltalk.HLBrowserModel)})},
  2521. args: [],
  2522. source: "showComment\x0a\x09^ showComment ifNil: [ false ]",
  2523. messageSends: ["ifNil:"],
  2524. referencedClasses: []
  2525. }),
  2526. smalltalk.HLBrowserModel);
  2527. smalltalk.addMethod(
  2528. "_showComment_",
  2529. smalltalk.method({
  2530. selector: "showComment:",
  2531. category: 'accessing',
  2532. fn: function (aBoolean){
  2533. var self=this;
  2534. return smalltalk.withContext(function($ctx1) { self["@showComment"]=aBoolean;
  2535. _st(_st(self)._announcer())._announce_(_st((smalltalk.HLShowCommentToggled || HLShowCommentToggled))._new());
  2536. return self}, function($ctx1) {$ctx1.fill(self,"showComment:",{aBoolean:aBoolean}, smalltalk.HLBrowserModel)})},
  2537. args: ["aBoolean"],
  2538. source: "showComment: aBoolean\x0a\x09showComment := aBoolean.\x0a \x0a self announcer announce: HLShowCommentToggled new",
  2539. messageSends: ["announce:", "new", "announcer"],
  2540. referencedClasses: ["HLShowCommentToggled"]
  2541. }),
  2542. smalltalk.HLBrowserModel);
  2543. smalltalk.addMethod(
  2544. "_showInstance",
  2545. smalltalk.method({
  2546. selector: "showInstance",
  2547. category: 'accessing',
  2548. fn: function (){
  2549. var self=this;
  2550. return smalltalk.withContext(function($ctx1) { var $2,$1;
  2551. $2=self["@showInstance"];
  2552. if(($receiver = $2) == nil || $receiver == undefined){
  2553. $1=true;
  2554. } else {
  2555. $1=$2;
  2556. };
  2557. return $1;
  2558. }, function($ctx1) {$ctx1.fill(self,"showInstance",{}, smalltalk.HLBrowserModel)})},
  2559. args: [],
  2560. source: "showInstance\x0a\x09^ showInstance ifNil: [ true ]",
  2561. messageSends: ["ifNil:"],
  2562. referencedClasses: []
  2563. }),
  2564. smalltalk.HLBrowserModel);
  2565. smalltalk.addMethod(
  2566. "_showInstance_",
  2567. smalltalk.method({
  2568. selector: "showInstance:",
  2569. category: 'accessing',
  2570. fn: function (aBoolean){
  2571. var self=this;
  2572. return smalltalk.withContext(function($ctx1) { var $1,$2,$4,$3;
  2573. self["@showInstance"]=aBoolean;
  2574. $1=_st(self)._selectedClass();
  2575. if(($receiver = $1) == nil || $receiver == undefined){
  2576. $1;
  2577. } else {
  2578. $2=self;
  2579. $4=aBoolean;
  2580. if(smalltalk.assert($4)){
  2581. $3=_st(_st(self)._selectedClass())._theNonMetaClass();
  2582. } else {
  2583. $3=_st(_st(self)._selectedClass())._theMetaClass();
  2584. };
  2585. _st($2)._selectedClass_($3);
  2586. };
  2587. _st(_st(self)._announcer())._announce_(_st((smalltalk.HLShowInstanceToggled || HLShowInstanceToggled))._new());
  2588. return self}, function($ctx1) {$ctx1.fill(self,"showInstance:",{aBoolean:aBoolean}, smalltalk.HLBrowserModel)})},
  2589. args: ["aBoolean"],
  2590. source: "showInstance: aBoolean\x0a\x09showInstance := aBoolean.\x0a \x0a self selectedClass ifNotNil: [\x0a \x09self selectedClass: (aBoolean\x0a \x09\x09ifTrue: [self selectedClass theNonMetaClass ]\x0a \x09 \x09ifFalse: [ self selectedClass theMetaClass ]) ].\x0a \x0a self announcer announce: HLShowInstanceToggled new",
  2591. messageSends: ["ifNotNil:", "selectedClass:", "ifTrue:ifFalse:", "theNonMetaClass", "selectedClass", "theMetaClass", "announce:", "new", "announcer"],
  2592. referencedClasses: ["HLShowInstanceToggled"]
  2593. }),
  2594. smalltalk.HLBrowserModel);
  2595. smalltalk.addMethod(
  2596. "_unclassifiedProtocol",
  2597. smalltalk.method({
  2598. selector: "unclassifiedProtocol",
  2599. category: 'defaults',
  2600. fn: function (){
  2601. var self=this;
  2602. return smalltalk.withContext(function($ctx1) { return "as yet unclassified";
  2603. }, function($ctx1) {$ctx1.fill(self,"unclassifiedProtocol",{}, smalltalk.HLBrowserModel)})},
  2604. args: [],
  2605. source: "unclassifiedProtocol\x0a\x09^ 'as yet unclassified'",
  2606. messageSends: [],
  2607. referencedClasses: []
  2608. }),
  2609. smalltalk.HLBrowserModel);
  2610. smalltalk.addMethod(
  2611. "_withCompileErrorHandling_",
  2612. smalltalk.method({
  2613. selector: "withCompileErrorHandling:",
  2614. category: 'error handling',
  2615. fn: function (aBlock){
  2616. var self=this;
  2617. return smalltalk.withContext(function($ctx1) { _st((function(){
  2618. return smalltalk.withContext(function($ctx2) { return _st((function(){
  2619. return smalltalk.withContext(function($ctx3) { return _st(aBlock)._on_do_((smalltalk.ParseError || ParseError),(function(ex){
  2620. return smalltalk.withContext(function($ctx4) { return _st(self)._handleParseError_(ex);
  2621. }, function($ctx4) {$ctx4.fillBlock({ex:ex},$ctx1)})}));
  2622. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}))._on_do_((smalltalk.UnknownVariableError || UnknownVariableError),(function(ex){
  2623. return smalltalk.withContext(function($ctx3) { return _st(self)._handleUnkownVariableError_(ex);
  2624. }, function($ctx3) {$ctx3.fillBlock({ex:ex},$ctx1)})}));
  2625. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._on_do_((smalltalk.CompilerError || CompilerError),(function(ex){
  2626. return smalltalk.withContext(function($ctx2) { return _st(self)._handleCompileError_(ex);
  2627. }, function($ctx2) {$ctx2.fillBlock({ex:ex},$ctx1)})}));
  2628. return self}, function($ctx1) {$ctx1.fill(self,"withCompileErrorHandling:",{aBlock:aBlock}, smalltalk.HLBrowserModel)})},
  2629. args: ["aBlock"],
  2630. source: "withCompileErrorHandling: aBlock\x0a\x09[\x0a\x09\x09[\x0a\x09\x09\x09aBlock \x0a\x09\x09\x09\x09on: ParseError\x0a\x09\x09\x09\x09do: [:ex | self handleParseError: ex ]\x0a\x09\x09]\x0a\x09\x09\x09on: UnknownVariableError\x0a\x09\x09\x09do: [ :ex | self handleUnkownVariableError: ex ]\x0a\x09]\x0a\x09\x09on: CompilerError\x0a\x09\x09do: [ :ex | self handleCompileError: ex ]",
  2631. messageSends: ["on:do:", "handleCompileError:", "handleUnkownVariableError:", "handleParseError:"],
  2632. referencedClasses: ["CompilerError", "UnknownVariableError", "ParseError"]
  2633. }),
  2634. smalltalk.HLBrowserModel);
  2635. smalltalk.addMethod(
  2636. "_on_",
  2637. smalltalk.method({
  2638. selector: "on:",
  2639. category: 'actions',
  2640. fn: function (anEnvironment){
  2641. var self=this;
  2642. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  2643. $2=_st(self)._new();
  2644. _st($2)._environment_(anEnvironment);
  2645. $3=_st($2)._yourself();
  2646. $1=$3;
  2647. return $1;
  2648. }, function($ctx1) {$ctx1.fill(self,"on:",{anEnvironment:anEnvironment}, smalltalk.HLBrowserModel.klass)})},
  2649. args: ["anEnvironment"],
  2650. source: "on: anEnvironment\x0a\x0a\x09^ self new\x0a \x09environment: anEnvironment;\x0a yourself",
  2651. messageSends: ["environment:", "new", "yourself"],
  2652. referencedClasses: []
  2653. }),
  2654. smalltalk.HLBrowserModel.klass);
  2655. smalltalk.addClass('HLBrowserSourceWidget', smalltalk.HLWidget, ['model', 'methodContents', 'codeWidget'], 'Helios-Browser');
  2656. smalltalk.addMethod(
  2657. "_codeWidget",
  2658. smalltalk.method({
  2659. selector: "codeWidget",
  2660. category: 'accessing',
  2661. fn: function (){
  2662. var self=this;
  2663. return smalltalk.withContext(function($ctx1) { var $2,$1;
  2664. $2=self["@codeWidget"];
  2665. if(($receiver = $2) == nil || $receiver == undefined){
  2666. self["@codeWidget"]=_st((smalltalk.HLSourceCodeWidget || HLSourceCodeWidget))._on_(_st(self)._model());
  2667. $1=self["@codeWidget"];
  2668. } else {
  2669. $1=$2;
  2670. };
  2671. return $1;
  2672. }, function($ctx1) {$ctx1.fill(self,"codeWidget",{}, smalltalk.HLBrowserSourceWidget)})},
  2673. args: [],
  2674. source: "codeWidget\x0a\x09^ codeWidget ifNil: [ codeWidget := HLSourceCodeWidget on: self model ]",
  2675. messageSends: ["ifNil:", "on:", "model"],
  2676. referencedClasses: ["HLSourceCodeWidget"]
  2677. }),
  2678. smalltalk.HLBrowserSourceWidget);
  2679. smalltalk.addMethod(
  2680. "_contents",
  2681. smalltalk.method({
  2682. selector: "contents",
  2683. category: 'accessing',
  2684. fn: function (){
  2685. var self=this;
  2686. return smalltalk.withContext(function($ctx1) { var $1;
  2687. $1=_st(_st(self)._codeWidget())._contents();
  2688. return $1;
  2689. }, function($ctx1) {$ctx1.fill(self,"contents",{}, smalltalk.HLBrowserSourceWidget)})},
  2690. args: [],
  2691. source: "contents\x0a\x09^ self codeWidget contents",
  2692. messageSends: ["contents", "codeWidget"],
  2693. referencedClasses: []
  2694. }),
  2695. smalltalk.HLBrowserSourceWidget);
  2696. smalltalk.addMethod(
  2697. "_contents_",
  2698. smalltalk.method({
  2699. selector: "contents:",
  2700. category: 'accessing',
  2701. fn: function (aString){
  2702. var self=this;
  2703. return smalltalk.withContext(function($ctx1) { _st(self)._methodContents_(aString);
  2704. _st(_st(self)._codeWidget())._contents_(aString);
  2705. return self}, function($ctx1) {$ctx1.fill(self,"contents:",{aString:aString}, smalltalk.HLBrowserSourceWidget)})},
  2706. args: ["aString"],
  2707. source: "contents: aString\x0a\x09self methodContents: aString.\x0a\x09self codeWidget contents: aString",
  2708. messageSends: ["methodContents:", "contents:", "codeWidget"],
  2709. referencedClasses: []
  2710. }),
  2711. smalltalk.HLBrowserSourceWidget);
  2712. smalltalk.addMethod(
  2713. "_focus",
  2714. smalltalk.method({
  2715. selector: "focus",
  2716. category: 'actions',
  2717. fn: function (){
  2718. var self=this;
  2719. return smalltalk.withContext(function($ctx1) { _st(_st(self)._codeWidget())._focus();
  2720. return self}, function($ctx1) {$ctx1.fill(self,"focus",{}, smalltalk.HLBrowserSourceWidget)})},
  2721. args: [],
  2722. source: "focus\x0a\x09self codeWidget focus",
  2723. messageSends: ["focus", "codeWidget"],
  2724. referencedClasses: []
  2725. }),
  2726. smalltalk.HLBrowserSourceWidget);
  2727. smalltalk.addMethod(
  2728. "_hasFocus",
  2729. smalltalk.method({
  2730. selector: "hasFocus",
  2731. category: 'testing',
  2732. fn: function (){
  2733. var self=this;
  2734. return smalltalk.withContext(function($ctx1) { var $1;
  2735. $1=_st(_st(self)._codeWidget())._hasFocus();
  2736. return $1;
  2737. }, function($ctx1) {$ctx1.fill(self,"hasFocus",{}, smalltalk.HLBrowserSourceWidget)})},
  2738. args: [],
  2739. source: "hasFocus\x0a\x09^ self codeWidget hasFocus",
  2740. messageSends: ["hasFocus", "codeWidget"],
  2741. referencedClasses: []
  2742. }),
  2743. smalltalk.HLBrowserSourceWidget);
  2744. smalltalk.addMethod(
  2745. "_hasModification",
  2746. smalltalk.method({
  2747. selector: "hasModification",
  2748. category: 'testing',
  2749. fn: function (){
  2750. var self=this;
  2751. return smalltalk.withContext(function($ctx1) { var $1;
  2752. $1=_st(_st(_st(self)._methodContents()).__eq(_st(self)._contents()))._not();
  2753. return $1;
  2754. }, function($ctx1) {$ctx1.fill(self,"hasModification",{}, smalltalk.HLBrowserSourceWidget)})},
  2755. args: [],
  2756. source: "hasModification\x0a\x09^ (self methodContents = self contents) not",
  2757. messageSends: ["not", "=", "contents", "methodContents"],
  2758. referencedClasses: []
  2759. }),
  2760. smalltalk.HLBrowserSourceWidget);
  2761. smalltalk.addMethod(
  2762. "_initialize",
  2763. smalltalk.method({
  2764. selector: "initialize",
  2765. category: 'initialization',
  2766. fn: function (){
  2767. var self=this;
  2768. return smalltalk.withContext(function($ctx1) { smalltalk.HLWidget.fn.prototype._initialize.apply(_st(self), []);
  2769. _st(self)._observeSystem();
  2770. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{}, smalltalk.HLBrowserSourceWidget)})},
  2771. args: [],
  2772. source: "initialize\x0a\x09super initialize.\x0a \x0a self observeSystem",
  2773. messageSends: ["initialize", "observeSystem"],
  2774. referencedClasses: []
  2775. }),
  2776. smalltalk.HLBrowserSourceWidget);
  2777. smalltalk.addMethod(
  2778. "_methodContents",
  2779. smalltalk.method({
  2780. selector: "methodContents",
  2781. category: 'accessing',
  2782. fn: function (){
  2783. var self=this;
  2784. return smalltalk.withContext(function($ctx1) { var $2,$1;
  2785. $2=self["@methodContents"];
  2786. if(($receiver = $2) == nil || $receiver == undefined){
  2787. self["@methodContents"]="";
  2788. $1=self["@methodContents"];
  2789. } else {
  2790. $1=$2;
  2791. };
  2792. return $1;
  2793. }, function($ctx1) {$ctx1.fill(self,"methodContents",{}, smalltalk.HLBrowserSourceWidget)})},
  2794. args: [],
  2795. source: "methodContents\x0a\x09^ methodContents ifNil: [ methodContents := '' ]",
  2796. messageSends: ["ifNil:"],
  2797. referencedClasses: []
  2798. }),
  2799. smalltalk.HLBrowserSourceWidget);
  2800. smalltalk.addMethod(
  2801. "_methodContents_",
  2802. smalltalk.method({
  2803. selector: "methodContents:",
  2804. category: 'accessing',
  2805. fn: function (aString){
  2806. var self=this;
  2807. return smalltalk.withContext(function($ctx1) { self["@methodContents"]=aString;
  2808. return self}, function($ctx1) {$ctx1.fill(self,"methodContents:",{aString:aString}, smalltalk.HLBrowserSourceWidget)})},
  2809. args: ["aString"],
  2810. source: "methodContents: aString\x0a\x09methodContents := aString",
  2811. messageSends: [],
  2812. referencedClasses: []
  2813. }),
  2814. smalltalk.HLBrowserSourceWidget);
  2815. smalltalk.addMethod(
  2816. "_model",
  2817. smalltalk.method({
  2818. selector: "model",
  2819. category: 'accessing',
  2820. fn: function (){
  2821. var self=this;
  2822. return smalltalk.withContext(function($ctx1) { var $1;
  2823. $1=self["@model"];
  2824. return $1;
  2825. }, function($ctx1) {$ctx1.fill(self,"model",{}, smalltalk.HLBrowserSourceWidget)})},
  2826. args: [],
  2827. source: "model\x0a\x09^ model",
  2828. messageSends: [],
  2829. referencedClasses: []
  2830. }),
  2831. smalltalk.HLBrowserSourceWidget);
  2832. smalltalk.addMethod(
  2833. "_model_",
  2834. smalltalk.method({
  2835. selector: "model:",
  2836. category: 'accessing',
  2837. fn: function (aBrowserModel){
  2838. var self=this;
  2839. return smalltalk.withContext(function($ctx1) { self["@model"]=aBrowserModel;
  2840. _st(self)._observeModel();
  2841. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aBrowserModel:aBrowserModel}, smalltalk.HLBrowserSourceWidget)})},
  2842. args: ["aBrowserModel"],
  2843. source: "model: aBrowserModel\x0a\x09model := aBrowserModel.\x0a \x0a self observeModel",
  2844. messageSends: ["observeModel"],
  2845. referencedClasses: []
  2846. }),
  2847. smalltalk.HLBrowserSourceWidget);
  2848. smalltalk.addMethod(
  2849. "_observeModel",
  2850. smalltalk.method({
  2851. selector: "observeModel",
  2852. category: 'actions',
  2853. fn: function (){
  2854. var self=this;
  2855. return smalltalk.withContext(function($ctx1) { var $1,$2;
  2856. $1=_st(_st(self)._model())._announcer();
  2857. _st($1)._on_do_((smalltalk.HLMethodSelected || HLMethodSelected),(function(ann){
  2858. return smalltalk.withContext(function($ctx2) { return _st(self)._onMethodSelected_(_st(ann)._item());
  2859. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  2860. _st($1)._on_do_((smalltalk.HLClassSelected || HLClassSelected),(function(ann){
  2861. return smalltalk.withContext(function($ctx2) { return _st(self)._onClassSelected_(_st(ann)._item());
  2862. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  2863. _st($1)._on_do_((smalltalk.HLProtocolSelected || HLProtocolSelected),(function(ann){
  2864. return smalltalk.withContext(function($ctx2) { return _st(self)._onProtocolSelected_(_st(ann)._item());
  2865. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  2866. $2=_st($1)._on_do_((smalltalk.HLSourceCodeFocusRequested || HLSourceCodeFocusRequested),(function(ann){
  2867. return smalltalk.withContext(function($ctx2) { return _st(self)._onSourceCodeFocusRequested();
  2868. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  2869. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{}, smalltalk.HLBrowserSourceWidget)})},
  2870. args: [],
  2871. source: "observeModel\x0a\x09self model announcer \x0a\x09\x09on: HLMethodSelected \x0a\x09\x09do: [ :ann | self onMethodSelected: ann item ];\x0a \x09on: HLClassSelected \x0a\x09\x09do: [ :ann | self onClassSelected: ann item ];\x0a \x09on: HLProtocolSelected \x0a\x09\x09do: [ :ann | self onProtocolSelected: ann item ];\x0a\x09\x09on: HLSourceCodeFocusRequested \x0a\x09\x09do: [ :ann | self onSourceCodeFocusRequested ]",
  2872. messageSends: ["on:do:", "onMethodSelected:", "item", "announcer", "model", "onClassSelected:", "onProtocolSelected:", "onSourceCodeFocusRequested"],
  2873. referencedClasses: ["HLMethodSelected", "HLClassSelected", "HLProtocolSelected", "HLSourceCodeFocusRequested"]
  2874. }),
  2875. smalltalk.HLBrowserSourceWidget);
  2876. smalltalk.addMethod(
  2877. "_observeSystem",
  2878. smalltalk.method({
  2879. selector: "observeSystem",
  2880. category: 'actions',
  2881. fn: function (){
  2882. var self=this;
  2883. return smalltalk.withContext(function($ctx1) { _st(_st((smalltalk.SystemAnnouncer || SystemAnnouncer))._current())._on_do_((smalltalk.MethodModified || MethodModified),(function(ann){
  2884. return smalltalk.withContext(function($ctx2) { return _st(self)._onMethodModified_(_st(ann)._method());
  2885. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  2886. return self}, function($ctx1) {$ctx1.fill(self,"observeSystem",{}, smalltalk.HLBrowserSourceWidget)})},
  2887. args: [],
  2888. source: "observeSystem\x0a\x09SystemAnnouncer current\x0a \x09on: MethodModified\x0a do: [ :ann | self onMethodModified: ann method ]",
  2889. messageSends: ["on:do:", "onMethodModified:", "method", "current"],
  2890. referencedClasses: ["MethodModified", "SystemAnnouncer"]
  2891. }),
  2892. smalltalk.HLBrowserSourceWidget);
  2893. smalltalk.addMethod(
  2894. "_onClassSelected_",
  2895. smalltalk.method({
  2896. selector: "onClassSelected:",
  2897. category: 'reactions',
  2898. fn: function (aClass){
  2899. var self=this;
  2900. return smalltalk.withContext(function($ctx1) { var $1,$2;
  2901. $1=aClass;
  2902. if(($receiver = $1) == nil || $receiver == undefined){
  2903. $2=_st(self)._contents_("");
  2904. return $2;
  2905. } else {
  2906. $1;
  2907. };
  2908. _st(self)._contents_(_st(aClass)._definition());
  2909. return self}, function($ctx1) {$ctx1.fill(self,"onClassSelected:",{aClass:aClass}, smalltalk.HLBrowserSourceWidget)})},
  2910. args: ["aClass"],
  2911. source: "onClassSelected: aClass\x0a\x09aClass ifNil: [ ^ self contents: '' ].\x0a \x0a self contents: aClass definition",
  2912. messageSends: ["ifNil:", "contents:", "definition"],
  2913. referencedClasses: []
  2914. }),
  2915. smalltalk.HLBrowserSourceWidget);
  2916. smalltalk.addMethod(
  2917. "_onMethodModified_",
  2918. smalltalk.method({
  2919. selector: "onMethodModified:",
  2920. category: 'reactions',
  2921. fn: function (aMethod){
  2922. var self=this;
  2923. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4,$5,$6;
  2924. $1=_st(_st(_st(self)._model())._selectedClass()).__eq(_st(aMethod)._methodClass());
  2925. if(! smalltalk.assert($1)){
  2926. $2=self;
  2927. return $2;
  2928. };
  2929. $3=_st(_st(self)._model())._selectedMethod();
  2930. if(($receiver = $3) == nil || $receiver == undefined){
  2931. $4=self;
  2932. return $4;
  2933. } else {
  2934. $3;
  2935. };
  2936. $5=_st(_st(_st(_st(self)._model())._selectedMethod())._selector()).__eq(_st(aMethod)._selector());
  2937. if(! smalltalk.assert($5)){
  2938. $6=self;
  2939. return $6;
  2940. };
  2941. _st(self)._refresh();
  2942. return self}, function($ctx1) {$ctx1.fill(self,"onMethodModified:",{aMethod:aMethod},smalltalk.HLBrowserSourceWidget)})},
  2943. args: ["aMethod"],
  2944. source: "onMethodModified: aMethod\x0a\x0a\x09self model selectedClass = aMethod methodClass ifFalse: [ ^ self ].\x0a\x09self model selectedMethod ifNil: [ ^ self ].\x0a self model selectedMethod selector = aMethod selector ifFalse: [ ^ self ].\x0a\x0a self refresh",
  2945. messageSends: ["ifFalse:", "=", "methodClass", "selectedClass", "model", "ifNil:", "selectedMethod", "selector", "refresh"],
  2946. referencedClasses: []
  2947. }),
  2948. smalltalk.HLBrowserSourceWidget);
  2949. smalltalk.addMethod(
  2950. "_onMethodSelected_",
  2951. smalltalk.method({
  2952. selector: "onMethodSelected:",
  2953. category: 'reactions',
  2954. fn: function (aCompiledMethod){
  2955. var self=this;
  2956. return smalltalk.withContext(function($ctx1) { var $1,$2;
  2957. $1=aCompiledMethod;
  2958. if(($receiver = $1) == nil || $receiver == undefined){
  2959. $2=_st(self)._contents_("");
  2960. return $2;
  2961. } else {
  2962. $1;
  2963. };
  2964. _st(self)._contents_(_st(aCompiledMethod)._source());
  2965. return self}, function($ctx1) {$ctx1.fill(self,"onMethodSelected:",{aCompiledMethod:aCompiledMethod}, smalltalk.HLBrowserSourceWidget)})},
  2966. args: ["aCompiledMethod"],
  2967. source: "onMethodSelected: aCompiledMethod\x0a\x09aCompiledMethod ifNil: [ ^ self contents: '' ].\x0a \x0a self contents: aCompiledMethod source",
  2968. messageSends: ["ifNil:", "contents:", "source"],
  2969. referencedClasses: []
  2970. }),
  2971. smalltalk.HLBrowserSourceWidget);
  2972. smalltalk.addMethod(
  2973. "_onProtocolSelected_",
  2974. smalltalk.method({
  2975. selector: "onProtocolSelected:",
  2976. category: 'reactions',
  2977. fn: function (aString){
  2978. var self=this;
  2979. return smalltalk.withContext(function($ctx1) { var $1,$2;
  2980. $1=_st(_st(self)._model())._selectedClass();
  2981. if(($receiver = $1) == nil || $receiver == undefined){
  2982. $2=_st(self)._contents_("");
  2983. return $2;
  2984. } else {
  2985. $1;
  2986. };
  2987. _st(self)._contents_(_st(_st(_st(self)._model())._selectedClass())._definition());
  2988. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolSelected:",{aString:aString}, smalltalk.HLBrowserSourceWidget)})},
  2989. args: ["aString"],
  2990. source: "onProtocolSelected: aString\x0a\x09self model selectedClass ifNil: [ ^ self contents: '' ].\x0a \x0a self contents: self model selectedClass definition",
  2991. messageSends: ["ifNil:", "contents:", "selectedClass", "model", "definition"],
  2992. referencedClasses: []
  2993. }),
  2994. smalltalk.HLBrowserSourceWidget);
  2995. smalltalk.addMethod(
  2996. "_onSourceCodeFocusRequested",
  2997. smalltalk.method({
  2998. selector: "onSourceCodeFocusRequested",
  2999. category: 'reactions',
  3000. fn: function (){
  3001. var self=this;
  3002. return smalltalk.withContext(function($ctx1) { _st(self)._focus();
  3003. return self}, function($ctx1) {$ctx1.fill(self,"onSourceCodeFocusRequested",{}, smalltalk.HLBrowserSourceWidget)})},
  3004. args: [],
  3005. source: "onSourceCodeFocusRequested\x0a\x09self focus",
  3006. messageSends: ["focus"],
  3007. referencedClasses: []
  3008. }),
  3009. smalltalk.HLBrowserSourceWidget);
  3010. smalltalk.addMethod(
  3011. "_refresh",
  3012. smalltalk.method({
  3013. selector: "refresh",
  3014. category: 'updating',
  3015. fn: function (){
  3016. var self=this;
  3017. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4;
  3018. $1=_st(self)._hasModification();
  3019. if(smalltalk.assert($1)){
  3020. $2=self;
  3021. return $2;
  3022. };
  3023. $3=_st(self)._hasFocus();
  3024. if(smalltalk.assert($3)){
  3025. $4=self;
  3026. return $4;
  3027. };
  3028. _st(self)._contents_(_st(_st(_st(self)._model())._selectedMethod())._source());
  3029. return self}, function($ctx1) {$ctx1.fill(self,"refresh",{}, smalltalk.HLBrowserSourceWidget)})},
  3030. args: [],
  3031. source: "refresh\x0a\x09self hasModification ifTrue: [ ^ self ].\x0a self hasFocus ifTrue: [ ^ self ].\x0a\x0a\x09self contents: self model selectedMethod source",
  3032. messageSends: ["ifTrue:", "hasModification", "hasFocus", "contents:", "source", "selectedMethod", "model"],
  3033. referencedClasses: []
  3034. }),
  3035. smalltalk.HLBrowserSourceWidget);
  3036. smalltalk.addMethod(
  3037. "_renderContentOn_",
  3038. smalltalk.method({
  3039. selector: "renderContentOn:",
  3040. category: 'rendering',
  3041. fn: function (html){
  3042. var self=this;
  3043. return smalltalk.withContext(function($ctx1) { _st(_st(self)._codeWidget())._renderOn_(html);
  3044. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html}, smalltalk.HLBrowserSourceWidget)})},
  3045. args: ["html"],
  3046. source: "renderContentOn: html\x0a\x09self codeWidget renderOn: html",
  3047. messageSends: ["renderOn:", "codeWidget"],
  3048. referencedClasses: []
  3049. }),
  3050. smalltalk.HLBrowserSourceWidget);
  3051. smalltalk.addMethod(
  3052. "_on_",
  3053. smalltalk.method({
  3054. selector: "on:",
  3055. category: 'instance creation',
  3056. fn: function (aBrowserModel){
  3057. var self=this;
  3058. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  3059. $2=_st(self)._new();
  3060. _st($2)._model_(aBrowserModel);
  3061. $3=_st($2)._yourself();
  3062. $1=$3;
  3063. return $1;
  3064. }, function($ctx1) {$ctx1.fill(self,"on:",{aBrowserModel:aBrowserModel}, smalltalk.HLBrowserSourceWidget.klass)})},
  3065. args: ["aBrowserModel"],
  3066. source: "on: aBrowserModel\x0a\x09^ self new\x0a \x09model: aBrowserModel;\x0a yourself",
  3067. messageSends: ["model:", "new", "yourself"],
  3068. referencedClasses: []
  3069. }),
  3070. smalltalk.HLBrowserSourceWidget.klass);
  3071. smalltalk.addClass('HLClassCache', smalltalk.Object, ['class', 'selectorsCache', 'overrideCache', 'overriddenCache'], 'Helios-Browser');
  3072. smalltalk.addMethod(
  3073. "_invalidateChildrenSelector_",
  3074. smalltalk.method({
  3075. selector: "invalidateChildrenSelector:",
  3076. category: 'actions',
  3077. fn: function (aSelector){
  3078. var self=this;
  3079. return smalltalk.withContext(function($ctx1) { var $1,$2;
  3080. _st(_st(_st(self)._theClass())._subclasses())._do_((function(each){
  3081. return smalltalk.withContext(function($ctx2) { $1=_st(_st(self)._selectorsCache())._cacheFor_(each);
  3082. _st($1)._removeSelector_(aSelector);
  3083. $2=_st($1)._invalidateChildrenSelector_(aSelector);
  3084. return $2;
  3085. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  3086. return self}, function($ctx1) {$ctx1.fill(self,"invalidateChildrenSelector:",{aSelector:aSelector}, smalltalk.HLClassCache)})},
  3087. args: ["aSelector"],
  3088. source: "invalidateChildrenSelector: aSelector\x0a\x09self theClass subclasses do: [ :each |\x0a \x09(self selectorsCache cacheFor: each)\x0a \x09removeSelector: aSelector;\x0a \x09invalidateChildrenSelector: aSelector ]",
  3089. messageSends: ["do:", "removeSelector:", "cacheFor:", "selectorsCache", "invalidateChildrenSelector:", "subclasses", "theClass"],
  3090. referencedClasses: []
  3091. }),
  3092. smalltalk.HLClassCache);
  3093. smalltalk.addMethod(
  3094. "_invalidateParentSelector_",
  3095. smalltalk.method({
  3096. selector: "invalidateParentSelector:",
  3097. category: 'actions',
  3098. fn: function (aSelector){
  3099. var self=this;
  3100. return smalltalk.withContext(function($ctx1) { var $1,$2,$3;
  3101. $1=_st(_st(self)._theClass())._superclass();
  3102. if(($receiver = $1) == nil || $receiver == undefined){
  3103. $1;
  3104. } else {
  3105. $2=_st(_st(self)._selectorsCache())._cacheFor_(_st(_st(self)._theClass())._superclass());
  3106. _st($2)._removeSelector_(aSelector);
  3107. $3=_st($2)._invalidateParentSelector_(aSelector);
  3108. $3;
  3109. };
  3110. return self}, function($ctx1) {$ctx1.fill(self,"invalidateParentSelector:",{aSelector:aSelector}, smalltalk.HLClassCache)})},
  3111. args: ["aSelector"],
  3112. source: "invalidateParentSelector: aSelector\x0a\x09self theClass superclass ifNotNil: [\x0a \x09(self selectorsCache cacheFor: self theClass superclass)\x0a \x09removeSelector: aSelector;\x0a\x09\x09\x09invalidateParentSelector: aSelector ]",
  3113. messageSends: ["ifNotNil:", "removeSelector:", "cacheFor:", "superclass", "theClass", "selectorsCache", "invalidateParentSelector:"],
  3114. referencedClasses: []
  3115. }),
  3116. smalltalk.HLClassCache);
  3117. smalltalk.addMethod(
  3118. "_invalidateSelector_",
  3119. smalltalk.method({
  3120. selector: "invalidateSelector:",
  3121. category: 'actions',
  3122. fn: function (aSelector){
  3123. var self=this;
  3124. return smalltalk.withContext(function($ctx1) { var $1,$2;
  3125. $1=self;
  3126. _st($1)._invalidateParentSelector_(aSelector);
  3127. _st($1)._invalidateChildrenSelector_(aSelector);
  3128. $2=_st($1)._removeSelector_(aSelector);
  3129. return self}, function($ctx1) {$ctx1.fill(self,"invalidateSelector:",{aSelector:aSelector}, smalltalk.HLClassCache)})},
  3130. args: ["aSelector"],
  3131. source: "invalidateSelector: aSelector\x0a\x09self \x0a \x09invalidateParentSelector: aSelector;\x0a invalidateChildrenSelector: aSelector;\x0a removeSelector: aSelector",
  3132. messageSends: ["invalidateParentSelector:", "invalidateChildrenSelector:", "removeSelector:"],
  3133. referencedClasses: []
  3134. }),
  3135. smalltalk.HLClassCache);
  3136. smalltalk.addMethod(
  3137. "_isOverridden_",
  3138. smalltalk.method({
  3139. selector: "isOverridden:",
  3140. category: 'testing',
  3141. fn: function (aMethod){
  3142. var self=this;
  3143. return smalltalk.withContext(function($ctx1) { var $1;
  3144. $1=_st(_st(self)._overriddenCache())._at_ifAbsentPut_(_st(aMethod)._selector(),(function(){
  3145. return smalltalk.withContext(function($ctx2) { return _st(aMethod)._isOverridden();
  3146. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3147. return $1;
  3148. }, function($ctx1) {$ctx1.fill(self,"isOverridden:",{aMethod:aMethod}, smalltalk.HLClassCache)})},
  3149. args: ["aMethod"],
  3150. source: "isOverridden: aMethod\x0a\x09^ self overriddenCache \x0a \x09at: aMethod selector\x0a \x09ifAbsentPut: [ aMethod isOverridden ]",
  3151. messageSends: ["at:ifAbsentPut:", "selector", "isOverridden", "overriddenCache"],
  3152. referencedClasses: []
  3153. }),
  3154. smalltalk.HLClassCache);
  3155. smalltalk.addMethod(
  3156. "_isOverride_",
  3157. smalltalk.method({
  3158. selector: "isOverride:",
  3159. category: 'testing',
  3160. fn: function (aMethod){
  3161. var self=this;
  3162. return smalltalk.withContext(function($ctx1) { var $1;
  3163. $1=_st(_st(self)._overrideCache())._at_ifAbsentPut_(_st(aMethod)._selector(),(function(){
  3164. return smalltalk.withContext(function($ctx2) { return _st(aMethod)._isOverride();
  3165. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3166. return $1;
  3167. }, function($ctx1) {$ctx1.fill(self,"isOverride:",{aMethod:aMethod}, smalltalk.HLClassCache)})},
  3168. args: ["aMethod"],
  3169. source: "isOverride: aMethod\x0a\x09^ self overrideCache\x0a \x09at: aMethod selector\x0a \x09ifAbsentPut: [ aMethod isOverride ]",
  3170. messageSends: ["at:ifAbsentPut:", "selector", "isOverride", "overrideCache"],
  3171. referencedClasses: []
  3172. }),
  3173. smalltalk.HLClassCache);
  3174. smalltalk.addMethod(
  3175. "_overriddenCache",
  3176. smalltalk.method({
  3177. selector: "overriddenCache",
  3178. category: 'accessing',
  3179. fn: function (){
  3180. var self=this;
  3181. return smalltalk.withContext(function($ctx1) { var $2,$1;
  3182. $2=self["@overriddenCache"];
  3183. if(($receiver = $2) == nil || $receiver == undefined){
  3184. self["@overriddenCache"]=_st((smalltalk.HashedCollection || HashedCollection))._new();
  3185. $1=self["@overriddenCache"];
  3186. } else {
  3187. $1=$2;
  3188. };
  3189. return $1;
  3190. }, function($ctx1) {$ctx1.fill(self,"overriddenCache",{}, smalltalk.HLClassCache)})},
  3191. args: [],
  3192. source: "overriddenCache\x0a\x09^ overriddenCache ifNil: [ overriddenCache := HashedCollection new ]",
  3193. messageSends: ["ifNil:", "new"],
  3194. referencedClasses: ["HashedCollection"]
  3195. }),
  3196. smalltalk.HLClassCache);
  3197. smalltalk.addMethod(
  3198. "_overrideCache",
  3199. smalltalk.method({
  3200. selector: "overrideCache",
  3201. category: 'accessing',
  3202. fn: function (){
  3203. var self=this;
  3204. return smalltalk.withContext(function($ctx1) { var $2,$1;
  3205. $2=self["@overrideCache"];
  3206. if(($receiver = $2) == nil || $receiver == undefined){
  3207. self["@overrideCache"]=_st((smalltalk.HashedCollection || HashedCollection))._new();
  3208. $1=self["@overrideCache"];
  3209. } else {
  3210. $1=$2;
  3211. };
  3212. return $1;
  3213. }, function($ctx1) {$ctx1.fill(self,"overrideCache",{}, smalltalk.HLClassCache)})},
  3214. args: [],
  3215. source: "overrideCache\x0a\x09^ overrideCache ifNil: [ overrideCache := HashedCollection new ]",
  3216. messageSends: ["ifNil:", "new"],
  3217. referencedClasses: ["HashedCollection"]
  3218. }),
  3219. smalltalk.HLClassCache);
  3220. smalltalk.addMethod(
  3221. "_removeSelector_",
  3222. smalltalk.method({
  3223. selector: "removeSelector:",
  3224. category: 'private',
  3225. fn: function (aSelector){
  3226. var self=this;
  3227. return smalltalk.withContext(function($ctx1) { _st(_st(self)._overriddenCache())._removeKey_ifAbsent_(aSelector,(function(){
  3228. return smalltalk.withContext(function($ctx2) { }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3229. _st(_st(self)._overrideCache())._removeKey_ifAbsent_(aSelector,(function(){
  3230. return smalltalk.withContext(function($ctx2) { }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3231. return self}, function($ctx1) {$ctx1.fill(self,"removeSelector:",{aSelector:aSelector}, smalltalk.HLClassCache)})},
  3232. args: ["aSelector"],
  3233. source: "removeSelector: aSelector\x0a\x09self overriddenCache \x0a \x09removeKey: aSelector\x0a ifAbsent: [ ].\x0a self overrideCache \x0a \x09removeKey: aSelector\x0a ifAbsent: [ ]",
  3234. messageSends: ["removeKey:ifAbsent:", "overriddenCache", "overrideCache"],
  3235. referencedClasses: []
  3236. }),
  3237. smalltalk.HLClassCache);
  3238. smalltalk.addMethod(
  3239. "_selectorsCache",
  3240. smalltalk.method({
  3241. selector: "selectorsCache",
  3242. category: 'accessing',
  3243. fn: function (){
  3244. var self=this;
  3245. return smalltalk.withContext(function($ctx1) { var $1;
  3246. $1=self["@selectorsCache"];
  3247. return $1;
  3248. }, function($ctx1) {$ctx1.fill(self,"selectorsCache",{}, smalltalk.HLClassCache)})},
  3249. args: [],
  3250. source: "selectorsCache\x0a\x09^ selectorsCache",
  3251. messageSends: [],
  3252. referencedClasses: []
  3253. }),
  3254. smalltalk.HLClassCache);
  3255. smalltalk.addMethod(
  3256. "_selectorsCache_",
  3257. smalltalk.method({
  3258. selector: "selectorsCache:",
  3259. category: 'accessing',
  3260. fn: function (aCache){
  3261. var self=this;
  3262. return smalltalk.withContext(function($ctx1) { self["@selectorsCache"]=aCache;
  3263. return self}, function($ctx1) {$ctx1.fill(self,"selectorsCache:",{aCache:aCache}, smalltalk.HLClassCache)})},
  3264. args: ["aCache"],
  3265. source: "selectorsCache: aCache\x0a\x09selectorsCache := aCache",
  3266. messageSends: [],
  3267. referencedClasses: []
  3268. }),
  3269. smalltalk.HLClassCache);
  3270. smalltalk.addMethod(
  3271. "_theClass",
  3272. smalltalk.method({
  3273. selector: "theClass",
  3274. category: 'accessing',
  3275. fn: function (){
  3276. var self=this;
  3277. return smalltalk.withContext(function($ctx1) { var $1;
  3278. $1=self["@class"];
  3279. return $1;
  3280. }, function($ctx1) {$ctx1.fill(self,"theClass",{}, smalltalk.HLClassCache)})},
  3281. args: [],
  3282. source: "theClass\x0a\x09^ class",
  3283. messageSends: [],
  3284. referencedClasses: []
  3285. }),
  3286. smalltalk.HLClassCache);
  3287. smalltalk.addMethod(
  3288. "_theClass_",
  3289. smalltalk.method({
  3290. selector: "theClass:",
  3291. category: 'accessing',
  3292. fn: function (aClass){
  3293. var self=this;
  3294. return smalltalk.withContext(function($ctx1) { self["@class"]=aClass;
  3295. return self}, function($ctx1) {$ctx1.fill(self,"theClass:",{aClass:aClass}, smalltalk.HLClassCache)})},
  3296. args: ["aClass"],
  3297. source: "theClass: aClass\x0a\x09class := aClass",
  3298. messageSends: [],
  3299. referencedClasses: []
  3300. }),
  3301. smalltalk.HLClassCache);
  3302. smalltalk.addMethod(
  3303. "_on_selectorsCache_",
  3304. smalltalk.method({
  3305. selector: "on:selectorsCache:",
  3306. category: 'instance creation',
  3307. fn: function (aClass,aSelectorsCache){
  3308. var self=this;
  3309. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  3310. $2=_st(self)._new();
  3311. _st($2)._theClass_(aClass);
  3312. _st($2)._selectorsCache_(aSelectorsCache);
  3313. $3=_st($2)._yourself();
  3314. $1=$3;
  3315. return $1;
  3316. }, function($ctx1) {$ctx1.fill(self,"on:selectorsCache:",{aClass:aClass,aSelectorsCache:aSelectorsCache}, smalltalk.HLClassCache.klass)})},
  3317. args: ["aClass", "aSelectorsCache"],
  3318. source: "on: aClass selectorsCache: aSelectorsCache\x0a\x09^ self new\x0a \x09theClass: aClass;\x0a selectorsCache: aSelectorsCache;\x0a yourself",
  3319. messageSends: ["theClass:", "new", "selectorsCache:", "yourself"],
  3320. referencedClasses: []
  3321. }),
  3322. smalltalk.HLClassCache.klass);
  3323. smalltalk.addClass('HLSelectorsCache', smalltalk.Object, ['classesCache'], 'Helios-Browser');
  3324. smalltalk.addMethod(
  3325. "_cacheFor_",
  3326. smalltalk.method({
  3327. selector: "cacheFor:",
  3328. category: 'accessing',
  3329. fn: function (aClass){
  3330. var self=this;
  3331. return smalltalk.withContext(function($ctx1) { var $1,$2;
  3332. $1=aClass;
  3333. if(($receiver = $1) == nil || $receiver == undefined){
  3334. return nil;
  3335. } else {
  3336. $1;
  3337. };
  3338. $2=_st(_st(self)._classesCache())._at_ifAbsentPut_(_st(aClass)._name(),(function(){
  3339. return smalltalk.withContext(function($ctx2) { return _st(self)._newCacheFor_(aClass);
  3340. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3341. return $2;
  3342. }, function($ctx1) {$ctx1.fill(self,"cacheFor:",{aClass:aClass}, smalltalk.HLSelectorsCache)})},
  3343. args: ["aClass"],
  3344. source: "cacheFor: aClass\x0a\x09aClass ifNil: [ ^ nil ].\x0a \x0a\x09^ self classesCache\x0a \x09at: aClass name\x0a ifAbsentPut: [ self newCacheFor: aClass ]",
  3345. messageSends: ["ifNil:", "at:ifAbsentPut:", "name", "newCacheFor:", "classesCache"],
  3346. referencedClasses: []
  3347. }),
  3348. smalltalk.HLSelectorsCache);
  3349. smalltalk.addMethod(
  3350. "_classesCache",
  3351. smalltalk.method({
  3352. selector: "classesCache",
  3353. category: 'accessing',
  3354. fn: function (){
  3355. var self=this;
  3356. return smalltalk.withContext(function($ctx1) { var $2,$1;
  3357. $2=self["@classesCache"];
  3358. if(($receiver = $2) == nil || $receiver == undefined){
  3359. self["@classesCache"]=_st((smalltalk.HashedCollection || HashedCollection))._new();
  3360. $1=self["@classesCache"];
  3361. } else {
  3362. $1=$2;
  3363. };
  3364. return $1;
  3365. }, function($ctx1) {$ctx1.fill(self,"classesCache",{}, smalltalk.HLSelectorsCache)})},
  3366. args: [],
  3367. source: "classesCache\x0a\x09^ classesCache ifNil: [ classesCache := HashedCollection new ]",
  3368. messageSends: ["ifNil:", "new"],
  3369. referencedClasses: ["HashedCollection"]
  3370. }),
  3371. smalltalk.HLSelectorsCache);
  3372. smalltalk.addMethod(
  3373. "_initialize",
  3374. smalltalk.method({
  3375. selector: "initialize",
  3376. category: 'initialization',
  3377. fn: function (){
  3378. var self=this;
  3379. return smalltalk.withContext(function($ctx1) { smalltalk.Object.fn.prototype._initialize.apply(_st(self), []);
  3380. _st(self)._observeSystem();
  3381. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{}, smalltalk.HLSelectorsCache)})},
  3382. args: [],
  3383. source: "initialize\x0a\x09super initialize.\x0a self observeSystem",
  3384. messageSends: ["initialize", "observeSystem"],
  3385. referencedClasses: []
  3386. }),
  3387. smalltalk.HLSelectorsCache);
  3388. smalltalk.addMethod(
  3389. "_invalidateCacheFor_",
  3390. smalltalk.method({
  3391. selector: "invalidateCacheFor:",
  3392. category: 'private',
  3393. fn: function (aMethod){
  3394. var self=this;
  3395. return smalltalk.withContext(function($ctx1) { _st(_st(self)._cacheFor_(_st(aMethod)._methodClass()))._invalidateSelector_(_st(aMethod)._selector());
  3396. return self}, function($ctx1) {$ctx1.fill(self,"invalidateCacheFor:",{aMethod:aMethod}, smalltalk.HLSelectorsCache)})},
  3397. args: ["aMethod"],
  3398. source: "invalidateCacheFor: aMethod\x0a\x09(self cacheFor: aMethod methodClass)\x0a \x09invalidateSelector: aMethod selector",
  3399. messageSends: ["invalidateSelector:", "selector", "cacheFor:", "methodClass"],
  3400. referencedClasses: []
  3401. }),
  3402. smalltalk.HLSelectorsCache);
  3403. smalltalk.addMethod(
  3404. "_isOverridden_",
  3405. smalltalk.method({
  3406. selector: "isOverridden:",
  3407. category: 'testing',
  3408. fn: function (aMethod){
  3409. var self=this;
  3410. return smalltalk.withContext(function($ctx1) { var $1;
  3411. $1=_st(_st(self)._cacheFor_(_st(aMethod)._methodClass()))._isOverridden_(aMethod);
  3412. return $1;
  3413. }, function($ctx1) {$ctx1.fill(self,"isOverridden:",{aMethod:aMethod}, smalltalk.HLSelectorsCache)})},
  3414. args: ["aMethod"],
  3415. source: "isOverridden: aMethod\x0a\x09^ (self cacheFor: aMethod methodClass)\x0a \x09isOverridden: aMethod",
  3416. messageSends: ["isOverridden:", "cacheFor:", "methodClass"],
  3417. referencedClasses: []
  3418. }),
  3419. smalltalk.HLSelectorsCache);
  3420. smalltalk.addMethod(
  3421. "_isOverride_",
  3422. smalltalk.method({
  3423. selector: "isOverride:",
  3424. category: 'testing',
  3425. fn: function (aMethod){
  3426. var self=this;
  3427. return smalltalk.withContext(function($ctx1) { var $1;
  3428. $1=_st(_st(self)._cacheFor_(_st(aMethod)._methodClass()))._isOverride_(aMethod);
  3429. return $1;
  3430. }, function($ctx1) {$ctx1.fill(self,"isOverride:",{aMethod:aMethod}, smalltalk.HLSelectorsCache)})},
  3431. args: ["aMethod"],
  3432. source: "isOverride: aMethod\x0a\x09^ (self cacheFor: aMethod methodClass)\x0a \x09isOverride: aMethod",
  3433. messageSends: ["isOverride:", "cacheFor:", "methodClass"],
  3434. referencedClasses: []
  3435. }),
  3436. smalltalk.HLSelectorsCache);
  3437. smalltalk.addMethod(
  3438. "_newCacheFor_",
  3439. smalltalk.method({
  3440. selector: "newCacheFor:",
  3441. category: 'factory',
  3442. fn: function (aClass){
  3443. var self=this;
  3444. return smalltalk.withContext(function($ctx1) { var $1;
  3445. $1=_st((smalltalk.HLClassCache || HLClassCache))._on_selectorsCache_(aClass,self);
  3446. return $1;
  3447. }, function($ctx1) {$ctx1.fill(self,"newCacheFor:",{aClass:aClass}, smalltalk.HLSelectorsCache)})},
  3448. args: ["aClass"],
  3449. source: "newCacheFor: aClass\x0a\x09^ HLClassCache \x0a \x09on: aClass\x0a selectorsCache: self",
  3450. messageSends: ["on:selectorsCache:"],
  3451. referencedClasses: ["HLClassCache"]
  3452. }),
  3453. smalltalk.HLSelectorsCache);
  3454. smalltalk.addMethod(
  3455. "_observeSystem",
  3456. smalltalk.method({
  3457. selector: "observeSystem",
  3458. category: 'actions',
  3459. fn: function (){
  3460. var self=this;
  3461. return smalltalk.withContext(function($ctx1) { var $1,$2;
  3462. $1=_st((smalltalk.SystemAnnouncer || SystemAnnouncer))._current();
  3463. _st($1)._on_do_((smalltalk.MethodAdded || MethodAdded),(function(ann){
  3464. return smalltalk.withContext(function($ctx2) { return _st(self)._onMethodAdded_(_st(ann)._method());
  3465. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  3466. $2=_st($1)._on_do_((smalltalk.MethodRemoved || MethodRemoved),(function(ann){
  3467. return smalltalk.withContext(function($ctx2) { return _st(self)._onMethodRemoved_(_st(ann)._method());
  3468. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  3469. return self}, function($ctx1) {$ctx1.fill(self,"observeSystem",{}, smalltalk.HLSelectorsCache)})},
  3470. args: [],
  3471. source: "observeSystem\x0a\x09SystemAnnouncer current\x0a\x09\x09on: MethodAdded\x0a do: [ :ann | self onMethodAdded: ann method ];\x0a on: MethodRemoved\x0a do: [ :ann | self onMethodRemoved: ann method ]",
  3472. messageSends: ["on:do:", "onMethodAdded:", "method", "current", "onMethodRemoved:"],
  3473. referencedClasses: ["MethodAdded", "SystemAnnouncer", "MethodRemoved"]
  3474. }),
  3475. smalltalk.HLSelectorsCache);
  3476. smalltalk.addMethod(
  3477. "_onMethodAdded_",
  3478. smalltalk.method({
  3479. selector: "onMethodAdded:",
  3480. category: 'reactions',
  3481. fn: function (aMethod){
  3482. var self=this;
  3483. return smalltalk.withContext(function($ctx1) { _st(self)._invalidateCacheFor_(aMethod);
  3484. return self}, function($ctx1) {$ctx1.fill(self,"onMethodAdded:",{aMethod:aMethod}, smalltalk.HLSelectorsCache)})},
  3485. args: ["aMethod"],
  3486. source: "onMethodAdded: aMethod\x0a\x09self invalidateCacheFor: aMethod",
  3487. messageSends: ["invalidateCacheFor:"],
  3488. referencedClasses: []
  3489. }),
  3490. smalltalk.HLSelectorsCache);
  3491. smalltalk.addMethod(
  3492. "_onMethodRemoved_",
  3493. smalltalk.method({
  3494. selector: "onMethodRemoved:",
  3495. category: 'reactions',
  3496. fn: function (aMethod){
  3497. var self=this;
  3498. return smalltalk.withContext(function($ctx1) { _st(self)._invalidateCacheFor_(aMethod);
  3499. return self}, function($ctx1) {$ctx1.fill(self,"onMethodRemoved:",{aMethod:aMethod}, smalltalk.HLSelectorsCache)})},
  3500. args: ["aMethod"],
  3501. source: "onMethodRemoved: aMethod\x0a\x09self invalidateCacheFor: aMethod",
  3502. messageSends: ["invalidateCacheFor:"],
  3503. referencedClasses: []
  3504. }),
  3505. smalltalk.HLSelectorsCache);
  3506. smalltalk.HLSelectorsCache.klass.iVarNames = ['current'];
  3507. smalltalk.addMethod(
  3508. "_current",
  3509. smalltalk.method({
  3510. selector: "current",
  3511. category: 'accessing',
  3512. fn: function (){
  3513. var self=this;
  3514. return smalltalk.withContext(function($ctx1) { var $2,$1;
  3515. $2=self["@current"];
  3516. if(($receiver = $2) == nil || $receiver == undefined){
  3517. self["@current"]=smalltalk.Object.klass.fn.prototype._new.apply(_st(self), []);
  3518. $1=self["@current"];
  3519. } else {
  3520. $1=$2;
  3521. };
  3522. return $1;
  3523. }, function($ctx1) {$ctx1.fill(self,"current",{}, smalltalk.HLSelectorsCache.klass)})},
  3524. args: [],
  3525. source: "current\x0a\x09^ current ifNil: [ current := super new ]",
  3526. messageSends: ["ifNil:", "new"],
  3527. referencedClasses: []
  3528. }),
  3529. smalltalk.HLSelectorsCache.klass);
  3530. smalltalk.addMethod(
  3531. "_flush",
  3532. smalltalk.method({
  3533. selector: "flush",
  3534. category: 'accessing',
  3535. fn: function (){
  3536. var self=this;
  3537. return smalltalk.withContext(function($ctx1) { self["@current"]=nil;
  3538. return self}, function($ctx1) {$ctx1.fill(self,"flush",{}, smalltalk.HLSelectorsCache.klass)})},
  3539. args: [],
  3540. source: "flush\x0a\x09current := nil",
  3541. messageSends: [],
  3542. referencedClasses: []
  3543. }),
  3544. smalltalk.HLSelectorsCache.klass);
  3545. smalltalk.addMethod(
  3546. "_new",
  3547. smalltalk.method({
  3548. selector: "new",
  3549. category: 'instance creation',
  3550. fn: function (){
  3551. var self=this;
  3552. return smalltalk.withContext(function($ctx1) { _st(self)._shouldNotImplement();
  3553. return self}, function($ctx1) {$ctx1.fill(self,"new",{}, smalltalk.HLSelectorsCache.klass)})},
  3554. args: [],
  3555. source: "new\x0a\x09self shouldNotImplement",
  3556. messageSends: ["shouldNotImplement"],
  3557. referencedClasses: []
  3558. }),
  3559. smalltalk.HLSelectorsCache.klass);
  3560. smalltalk.addMethod(
  3561. "_isOverridden",
  3562. smalltalk.method({
  3563. selector: "isOverridden",
  3564. category: '*Helios-Browser',
  3565. fn: function (){
  3566. var self=this;
  3567. var selector;
  3568. return smalltalk.withContext(function($ctx1) { var $1;
  3569. var $early={};
  3570. try {
  3571. selector=_st(self)._selector();
  3572. _st(_st(self)._methodClass())._allSubclassesDo_((function(each){
  3573. return smalltalk.withContext(function($ctx2) { $1=_st(each)._includesSelector_(selector);
  3574. if(smalltalk.assert($1)){
  3575. throw $early=[true];
  3576. };
  3577. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  3578. return false;
  3579. }
  3580. catch(e) {if(e===$early)return e[0]; throw e}
  3581. }, function($ctx1) {$ctx1.fill(self,"isOverridden",{selector:selector}, smalltalk.CompiledMethod)})},
  3582. args: [],
  3583. source: "isOverridden\x0a\x09| selector |\x0a \x0a selector := self selector.\x0a self methodClass allSubclassesDo: [ :each |\x0a\x09 (each includesSelector: selector)\x0a \x09ifTrue: [ ^ true ] ].\x0a\x09^ false",
  3584. messageSends: ["selector", "allSubclassesDo:", "ifTrue:", "includesSelector:", "methodClass"],
  3585. referencedClasses: []
  3586. }),
  3587. smalltalk.CompiledMethod);
  3588. smalltalk.addMethod(
  3589. "_isOverride",
  3590. smalltalk.method({
  3591. selector: "isOverride",
  3592. category: '*Helios-Browser',
  3593. fn: function (){
  3594. var self=this;
  3595. var superclass;
  3596. return smalltalk.withContext(function($ctx1) { var $1,$2;
  3597. superclass=_st(_st(self)._methodClass())._superclass();
  3598. $1=superclass;
  3599. if(($receiver = $1) == nil || $receiver == undefined){
  3600. return false;
  3601. } else {
  3602. $1;
  3603. };
  3604. $2=_st(_st(_st(_st(self)._methodClass())._superclass())._lookupSelector_(_st(self)._selector()))._notNil();
  3605. return $2;
  3606. }, function($ctx1) {$ctx1.fill(self,"isOverride",{superclass:superclass}, smalltalk.CompiledMethod)})},
  3607. args: [],
  3608. source: "isOverride\x0a\x09| superclass |\x0a \x0a superclass := self methodClass superclass.\x0a\x09superclass ifNil: [ ^ false ].\x0a\x09\x0a ^ (self methodClass superclass lookupSelector: self selector) notNil",
  3609. messageSends: ["superclass", "methodClass", "ifNil:", "notNil", "lookupSelector:", "selector"],
  3610. referencedClasses: []
  3611. }),
  3612. smalltalk.CompiledMethod);