Helios-Browser.js 132 KB

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