Helios-Browser.js 148 KB

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