1
0

Helios-Browser.js 133 KB

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