1
0

Helios-Browser.deploy.js 69 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930
  1. smalltalk.addPackage('Helios-Browser');
  2. smalltalk.addClass('HLBrowser', smalltalk.HLWidget, ['model', 'packagesListWidget', 'classesListWidget', 'protocolsListWidget', 'methodsListWidget', 'sourceWidget'], 'Helios-Browser');
  3. smalltalk.addMethod(
  4. "_announcer",
  5. smalltalk.method({
  6. selector: "announcer",
  7. fn: function (){
  8. var self=this;
  9. return smalltalk.withContext(function($ctx1) { var $1;
  10. $1=_st(_st(self)._model())._announcer();
  11. return $1;
  12. }, function($ctx1) {$ctx1.fill(self,"announcer",{}, smalltalk.HLBrowser)})},
  13. messageSends: ["announcer", "model"]}),
  14. smalltalk.HLBrowser);
  15. smalltalk.addMethod(
  16. "_classesListWidget",
  17. smalltalk.method({
  18. selector: "classesListWidget",
  19. fn: function (){
  20. var self=this;
  21. return smalltalk.withContext(function($ctx1) { var $2,$1;
  22. $2=self["@classesListWidget"];
  23. if(($receiver = $2) == nil || $receiver == undefined){
  24. self["@classesListWidget"]=_st((smalltalk.HLClassesListWidget || HLClassesListWidget))._on_(_st(self)._model());
  25. self["@classesListWidget"];
  26. $1=_st(self["@classesListWidget"])._next_(_st(self)._protocolsListWidget());
  27. } else {
  28. $1=$2;
  29. };
  30. return $1;
  31. }, function($ctx1) {$ctx1.fill(self,"classesListWidget",{}, smalltalk.HLBrowser)})},
  32. messageSends: ["ifNil:", "on:", "model", "next:", "protocolsListWidget"]}),
  33. smalltalk.HLBrowser);
  34. smalltalk.addMethod(
  35. "_environment",
  36. smalltalk.method({
  37. selector: "environment",
  38. fn: function (){
  39. var self=this;
  40. return smalltalk.withContext(function($ctx1) { var $1;
  41. $1=_st(_st(self)._model())._environment();
  42. return $1;
  43. }, function($ctx1) {$ctx1.fill(self,"environment",{}, smalltalk.HLBrowser)})},
  44. messageSends: ["environment", "model"]}),
  45. smalltalk.HLBrowser);
  46. smalltalk.addMethod(
  47. "_methodsListWidget",
  48. smalltalk.method({
  49. selector: "methodsListWidget",
  50. fn: function (){
  51. var self=this;
  52. return smalltalk.withContext(function($ctx1) { var $2,$1;
  53. $2=self["@methodsListWidget"];
  54. if(($receiver = $2) == nil || $receiver == undefined){
  55. self["@methodsListWidget"]=_st((smalltalk.HLMethodsListWidget || HLMethodsListWidget))._on_(_st(self)._model());
  56. $1=self["@methodsListWidget"];
  57. } else {
  58. $1=$2;
  59. };
  60. return $1;
  61. }, function($ctx1) {$ctx1.fill(self,"methodsListWidget",{}, smalltalk.HLBrowser)})},
  62. messageSends: ["ifNil:", "on:", "model"]}),
  63. smalltalk.HLBrowser);
  64. smalltalk.addMethod(
  65. "_model",
  66. smalltalk.method({
  67. selector: "model",
  68. fn: function (){
  69. var self=this;
  70. return smalltalk.withContext(function($ctx1) { var $2,$1;
  71. $2=self["@model"];
  72. if(($receiver = $2) == nil || $receiver == undefined){
  73. self["@model"]=_st((smalltalk.HLBrowserModel || HLBrowserModel))._new();
  74. $1=self["@model"];
  75. } else {
  76. $1=$2;
  77. };
  78. return $1;
  79. }, function($ctx1) {$ctx1.fill(self,"model",{}, smalltalk.HLBrowser)})},
  80. messageSends: ["ifNil:", "new"]}),
  81. smalltalk.HLBrowser);
  82. smalltalk.addMethod(
  83. "_model_",
  84. smalltalk.method({
  85. selector: "model:",
  86. fn: function (aModel){
  87. var self=this;
  88. return smalltalk.withContext(function($ctx1) { self["@model"]=aModel;
  89. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel}, smalltalk.HLBrowser)})},
  90. messageSends: []}),
  91. smalltalk.HLBrowser);
  92. smalltalk.addMethod(
  93. "_packagesListWidget",
  94. smalltalk.method({
  95. selector: "packagesListWidget",
  96. fn: function (){
  97. var self=this;
  98. return smalltalk.withContext(function($ctx1) { var $2,$1;
  99. $2=self["@packagesListWidget"];
  100. if(($receiver = $2) == nil || $receiver == undefined){
  101. self["@packagesListWidget"]=_st((smalltalk.HLPackagesListWidget || HLPackagesListWidget))._on_(_st(self)._model());
  102. self["@packagesListWidget"];
  103. $1=_st(self["@packagesListWidget"])._next_(_st(self)._classesListWidget());
  104. } else {
  105. $1=$2;
  106. };
  107. return $1;
  108. }, function($ctx1) {$ctx1.fill(self,"packagesListWidget",{}, smalltalk.HLBrowser)})},
  109. messageSends: ["ifNil:", "on:", "model", "next:", "classesListWidget"]}),
  110. smalltalk.HLBrowser);
  111. smalltalk.addMethod(
  112. "_protocolsListWidget",
  113. smalltalk.method({
  114. selector: "protocolsListWidget",
  115. fn: function (){
  116. var self=this;
  117. return smalltalk.withContext(function($ctx1) { var $2,$1;
  118. $2=self["@protocolsListWidget"];
  119. if(($receiver = $2) == nil || $receiver == undefined){
  120. self["@protocolsListWidget"]=_st((smalltalk.HLProtocolsListWidget || HLProtocolsListWidget))._on_(_st(self)._model());
  121. self["@protocolsListWidget"];
  122. $1=_st(self["@protocolsListWidget"])._next_(_st(self)._methodsListWidget());
  123. } else {
  124. $1=$2;
  125. };
  126. return $1;
  127. }, function($ctx1) {$ctx1.fill(self,"protocolsListWidget",{}, smalltalk.HLBrowser)})},
  128. messageSends: ["ifNil:", "on:", "model", "next:", "methodsListWidget"]}),
  129. smalltalk.HLBrowser);
  130. smalltalk.addMethod(
  131. "_registerBindingsOn_",
  132. smalltalk.method({
  133. selector: "registerBindingsOn:",
  134. fn: function (aBindingGroup){
  135. var self=this;
  136. return smalltalk.withContext(function($ctx1) { var $1,$2,$3;
  137. $1=aBindingGroup;
  138. _st($1)._addGroupKey_labelled_((66),"Browse");
  139. _st($1)._addGroupKey_labelled_((71),"Go to");
  140. $2=_st($1)._addGroupKey_labelled_((84),"Toggle");
  141. _st(_st((smalltalk.HLBrowserCommand || HLBrowserCommand))._withAllSubclasses())._do_((function(each){
  142. return smalltalk.withContext(function($ctx2) { $3=_st(each)._key();
  143. if(($receiver = $3) == nil || $receiver == undefined){
  144. return $3;
  145. } else {
  146. return _st(_st(aBindingGroup)._at_(_st(each)._bindingGroup()))._add_(_st(_st(each)._on_(_st(self)._model()))._asBinding());
  147. };
  148. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  149. return self}, function($ctx1) {$ctx1.fill(self,"registerBindingsOn:",{aBindingGroup:aBindingGroup}, smalltalk.HLBrowser)})},
  150. messageSends: ["addGroupKey:labelled:", "do:", "ifNotNil:", "add:", "asBinding", "on:", "model", "at:", "bindingGroup", "key", "withAllSubclasses"]}),
  151. smalltalk.HLBrowser);
  152. smalltalk.addMethod(
  153. "_renderContentOn_",
  154. smalltalk.method({
  155. selector: "renderContentOn:",
  156. fn: function (html){
  157. var self=this;
  158. return smalltalk.withContext(function($ctx1) { _st(html)._with_(_st((smalltalk.HLContainer || HLContainer))._with_(_st((smalltalk.HLHorizontalSplitter || HLHorizontalSplitter))._with_with_(_st((smalltalk.HLVerticalSplitter || HLVerticalSplitter))._with_with_(_st((smalltalk.HLVerticalSplitter || HLVerticalSplitter))._with_with_(_st(self)._packagesListWidget(),_st(self)._classesListWidget()),_st((smalltalk.HLVerticalSplitter || HLVerticalSplitter))._with_with_(_st(self)._protocolsListWidget(),_st(self)._methodsListWidget())),_st(self)._sourceWidget())));
  159. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html}, smalltalk.HLBrowser)})},
  160. messageSends: ["with:", "with:with:", "packagesListWidget", "classesListWidget", "protocolsListWidget", "methodsListWidget", "sourceWidget"]}),
  161. smalltalk.HLBrowser);
  162. smalltalk.addMethod(
  163. "_sourceWidget",
  164. smalltalk.method({
  165. selector: "sourceWidget",
  166. fn: function (){
  167. var self=this;
  168. return smalltalk.withContext(function($ctx1) { var $2,$1;
  169. $2=self["@sourceWidget"];
  170. if(($receiver = $2) == nil || $receiver == undefined){
  171. self["@sourceWidget"]=_st((smalltalk.HLBrowserSourceWidget || HLBrowserSourceWidget))._on_(_st(self)._model());
  172. $1=self["@sourceWidget"];
  173. } else {
  174. $1=$2;
  175. };
  176. return $1;
  177. }, function($ctx1) {$ctx1.fill(self,"sourceWidget",{}, smalltalk.HLBrowser)})},
  178. messageSends: ["ifNil:", "on:", "model"]}),
  179. smalltalk.HLBrowser);
  180. smalltalk.HLBrowser.klass.iVarNames = ['nextId'];
  181. smalltalk.addMethod(
  182. "_canBeOpenAsTab",
  183. smalltalk.method({
  184. selector: "canBeOpenAsTab",
  185. fn: function (){
  186. var self=this;
  187. return smalltalk.withContext(function($ctx1) { return true;
  188. }, function($ctx1) {$ctx1.fill(self,"canBeOpenAsTab",{}, smalltalk.HLBrowser.klass)})},
  189. messageSends: []}),
  190. smalltalk.HLBrowser.klass);
  191. smalltalk.addMethod(
  192. "_nextId",
  193. smalltalk.method({
  194. selector: "nextId",
  195. fn: function (){
  196. var self=this;
  197. return smalltalk.withContext(function($ctx1) { var $1,$2;
  198. $1=self["@nextId"];
  199. if(($receiver = $1) == nil || $receiver == undefined){
  200. self["@nextId"]=(0);
  201. self["@nextId"];
  202. } else {
  203. $1;
  204. };
  205. $2=_st("browser_").__comma(_st(_st(self["@nextId"]).__plus((1)))._asString());
  206. return $2;
  207. }, function($ctx1) {$ctx1.fill(self,"nextId",{}, smalltalk.HLBrowser.klass)})},
  208. messageSends: ["ifNil:", ",", "asString", "+"]}),
  209. smalltalk.HLBrowser.klass);
  210. smalltalk.addMethod(
  211. "_tabLabel",
  212. smalltalk.method({
  213. selector: "tabLabel",
  214. fn: function (){
  215. var self=this;
  216. return smalltalk.withContext(function($ctx1) { return "Browser";
  217. }, function($ctx1) {$ctx1.fill(self,"tabLabel",{}, smalltalk.HLBrowser.klass)})},
  218. messageSends: []}),
  219. smalltalk.HLBrowser.klass);
  220. smalltalk.addMethod(
  221. "_tabPriority",
  222. smalltalk.method({
  223. selector: "tabPriority",
  224. fn: function (){
  225. var self=this;
  226. return smalltalk.withContext(function($ctx1) { return (0);
  227. }, function($ctx1) {$ctx1.fill(self,"tabPriority",{}, smalltalk.HLBrowser.klass)})},
  228. messageSends: []}),
  229. smalltalk.HLBrowser.klass);
  230. smalltalk.addClass('HLBrowserListWidget', smalltalk.HLNavigationListWidget, ['model'], 'Helios-Browser');
  231. smalltalk.addMethod(
  232. "_model",
  233. smalltalk.method({
  234. selector: "model",
  235. fn: function (){
  236. var self=this;
  237. return smalltalk.withContext(function($ctx1) { var $1;
  238. $1=self["@model"];
  239. return $1;
  240. }, function($ctx1) {$ctx1.fill(self,"model",{}, smalltalk.HLBrowserListWidget)})},
  241. messageSends: []}),
  242. smalltalk.HLBrowserListWidget);
  243. smalltalk.addMethod(
  244. "_model_",
  245. smalltalk.method({
  246. selector: "model:",
  247. fn: function (aBrowserModel){
  248. var self=this;
  249. return smalltalk.withContext(function($ctx1) { self["@model"]=aBrowserModel;
  250. _st(self)._observeModel();
  251. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aBrowserModel:aBrowserModel}, smalltalk.HLBrowserListWidget)})},
  252. messageSends: ["observeModel"]}),
  253. smalltalk.HLBrowserListWidget);
  254. smalltalk.addMethod(
  255. "_observeModel",
  256. smalltalk.method({
  257. selector: "observeModel",
  258. fn: function (){
  259. var self=this;
  260. return smalltalk.withContext(function($ctx1) { return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{}, smalltalk.HLBrowserListWidget)})},
  261. messageSends: []}),
  262. smalltalk.HLBrowserListWidget);
  263. smalltalk.addMethod(
  264. "_on_",
  265. smalltalk.method({
  266. selector: "on:",
  267. fn: function (aModel){
  268. var self=this;
  269. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  270. $2=_st(self)._new();
  271. _st($2)._model_(aModel);
  272. $3=_st($2)._yourself();
  273. $1=$3;
  274. return $1;
  275. }, function($ctx1) {$ctx1.fill(self,"on:",{aModel:aModel}, smalltalk.HLBrowserListWidget.klass)})},
  276. messageSends: ["model:", "new", "yourself"]}),
  277. smalltalk.HLBrowserListWidget.klass);
  278. smalltalk.addClass('HLClassesListWidget', smalltalk.HLBrowserListWidget, [], 'Helios-Browser');
  279. smalltalk.addMethod(
  280. "_focusMethodsListWidget",
  281. smalltalk.method({
  282. selector: "focusMethodsListWidget",
  283. fn: function (){
  284. var self=this;
  285. return smalltalk.withContext(function($ctx1) { _st(_st(_st(self)._model())._announcer())._announce_(_st((smalltalk.HLMethodsListFocus || HLMethodsListFocus))._new());
  286. return self}, function($ctx1) {$ctx1.fill(self,"focusMethodsListWidget",{}, smalltalk.HLClassesListWidget)})},
  287. messageSends: ["announce:", "new", "announcer", "model"]}),
  288. smalltalk.HLClassesListWidget);
  289. smalltalk.addMethod(
  290. "_focusProtocolsListWidget",
  291. smalltalk.method({
  292. selector: "focusProtocolsListWidget",
  293. fn: function (){
  294. var self=this;
  295. return smalltalk.withContext(function($ctx1) { _st(_st(_st(self)._model())._announcer())._announce_(_st((smalltalk.HLProtocolsListFocus || HLProtocolsListFocus))._new());
  296. return self}, function($ctx1) {$ctx1.fill(self,"focusProtocolsListWidget",{}, smalltalk.HLClassesListWidget)})},
  297. messageSends: ["announce:", "new", "announcer", "model"]}),
  298. smalltalk.HLClassesListWidget);
  299. smalltalk.addMethod(
  300. "_getChildrenOf_",
  301. smalltalk.method({
  302. selector: "getChildrenOf:",
  303. fn: function (aClass){
  304. var self=this;
  305. return smalltalk.withContext(function($ctx1) { var $1;
  306. $1=_st(_st(self)._items())._select_((function(each){
  307. return smalltalk.withContext(function($ctx2) { return _st(_st(each)._superclass()).__eq(aClass);
  308. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  309. return $1;
  310. }, function($ctx1) {$ctx1.fill(self,"getChildrenOf:",{aClass:aClass}, smalltalk.HLClassesListWidget)})},
  311. messageSends: ["select:", "=", "superclass", "items"]}),
  312. smalltalk.HLClassesListWidget);
  313. smalltalk.addMethod(
  314. "_getRootClassesOf_",
  315. smalltalk.method({
  316. selector: "getRootClassesOf:",
  317. fn: function (aCollection){
  318. var self=this;
  319. return smalltalk.withContext(function($ctx1) { var $1;
  320. $1=_st(aCollection)._select_((function(each){
  321. return smalltalk.withContext(function($ctx2) { return _st(_st(aCollection)._includes_(_st(each)._superclass()))._not();
  322. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  323. return $1;
  324. }, function($ctx1) {$ctx1.fill(self,"getRootClassesOf:",{aCollection:aCollection}, smalltalk.HLClassesListWidget)})},
  325. messageSends: ["select:", "not", "includes:", "superclass"]}),
  326. smalltalk.HLClassesListWidget);
  327. smalltalk.addMethod(
  328. "_iconForItem_",
  329. smalltalk.method({
  330. selector: "iconForItem:",
  331. fn: function (aClass){
  332. var self=this;
  333. return smalltalk.withContext(function($ctx1) { var $2,$1;
  334. $2=_st(_st(_st(aClass)._theNonMetaClass())._comment())._isEmpty();
  335. if(smalltalk.assert($2)){
  336. $1="icon-question-sign";
  337. } else {
  338. $1="icon-none";
  339. };
  340. return $1;
  341. }, function($ctx1) {$ctx1.fill(self,"iconForItem:",{aClass:aClass}, smalltalk.HLClassesListWidget)})},
  342. messageSends: ["ifFalse:ifTrue:", "isEmpty", "comment", "theNonMetaClass"]}),
  343. smalltalk.HLClassesListWidget);
  344. smalltalk.addMethod(
  345. "_observeModel",
  346. smalltalk.method({
  347. selector: "observeModel",
  348. fn: function (){
  349. var self=this;
  350. return smalltalk.withContext(function($ctx1) { var $1,$2;
  351. $1=_st(_st(self)._model())._announcer();
  352. _st($1)._on_do_((smalltalk.HLPackageSelected || HLPackageSelected),(function(ann){
  353. return smalltalk.withContext(function($ctx2) { return _st(self)._onPackageSelected_(_st(ann)._item());
  354. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  355. _st($1)._on_do_((smalltalk.HLShowInstanceToggled || HLShowInstanceToggled),(function(ann){
  356. return smalltalk.withContext(function($ctx2) { return _st(self)._onShowInstanceToggled();
  357. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  358. $2=_st($1)._on_do_((smalltalk.HLClassSelected || HLClassSelected),(function(ann){
  359. return smalltalk.withContext(function($ctx2) { return _st(self)._onClassSelected_(_st(ann)._item());
  360. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  361. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{}, smalltalk.HLClassesListWidget)})},
  362. messageSends: ["on:do:", "onPackageSelected:", "item", "announcer", "model", "onShowInstanceToggled", "onClassSelected:"]}),
  363. smalltalk.HLClassesListWidget);
  364. smalltalk.addMethod(
  365. "_onClassSelected_",
  366. smalltalk.method({
  367. selector: "onClassSelected:",
  368. fn: function (aClass){
  369. var self=this;
  370. return smalltalk.withContext(function($ctx1) { var $1,$2;
  371. _st(self)._selectedItem_(aClass);
  372. $1=aClass;
  373. if(($receiver = $1) == nil || $receiver == undefined){
  374. $2=self;
  375. return $2;
  376. } else {
  377. $1;
  378. };
  379. _st(self)._focus();
  380. return self}, function($ctx1) {$ctx1.fill(self,"onClassSelected:",{aClass:aClass}, smalltalk.HLClassesListWidget)})},
  381. messageSends: ["selectedItem:", "ifNil:", "focus"]}),
  382. smalltalk.HLClassesListWidget);
  383. smalltalk.addMethod(
  384. "_onPackageSelected_",
  385. smalltalk.method({
  386. selector: "onPackageSelected:",
  387. fn: function (aPackage){
  388. var self=this;
  389. return smalltalk.withContext(function($ctx1) { var $1,$3,$2;
  390. _st(self)._selectedItem_(nil);
  391. $1=self;
  392. $3=aPackage;
  393. if(($receiver = $3) == nil || $receiver == undefined){
  394. $2=[];
  395. } else {
  396. $2=_st(_st(_st(_st(aPackage)._classes())._collect_((function(each){
  397. return smalltalk.withContext(function($ctx2) { return _st(each)._theNonMetaClass();
  398. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})))._asSet())._asArray();
  399. };
  400. _st($1)._items_($2);
  401. _st(self)._refresh();
  402. return self}, function($ctx1) {$ctx1.fill(self,"onPackageSelected:",{aPackage:aPackage}, smalltalk.HLClassesListWidget)})},
  403. messageSends: ["selectedItem:", "items:", "ifNil:ifNotNil:", "asArray", "asSet", "collect:", "theNonMetaClass", "classes", "refresh"]}),
  404. smalltalk.HLClassesListWidget);
  405. smalltalk.addMethod(
  406. "_onShowInstanceToggled",
  407. smalltalk.method({
  408. selector: "onShowInstanceToggled",
  409. fn: function (){
  410. var self=this;
  411. return smalltalk.withContext(function($ctx1) { _st(self)._refresh();
  412. return self}, function($ctx1) {$ctx1.fill(self,"onShowInstanceToggled",{}, smalltalk.HLClassesListWidget)})},
  413. messageSends: ["refresh"]}),
  414. smalltalk.HLClassesListWidget);
  415. smalltalk.addMethod(
  416. "_renderButtonsOn_",
  417. smalltalk.method({
  418. selector: "renderButtonsOn:",
  419. fn: function (html){
  420. var self=this;
  421. return smalltalk.withContext(function($ctx1) { var $1,$3,$4,$5,$6,$7,$8,$2,$9,$10;
  422. $1=_st(html)._div();
  423. _st($1)._class_("btn-group");
  424. _st($1)._at_put_("data-toggle","buttons-radio");
  425. $2=_st($1)._with_((function(){
  426. return smalltalk.withContext(function($ctx2) { $3=_st(html)._button();
  427. _st($3)._class_(_st((smalltalk.String || String))._streamContents_((function(str){
  428. return smalltalk.withContext(function($ctx3) { _st(str)._nextPutAll_("btn");
  429. $4=_st(self)._showInstance();
  430. if(smalltalk.assert($4)){
  431. return _st(str)._nextPutAll_(" active");
  432. };
  433. }, function($ctx3) {$ctx3.fillBlock({str:str},$ctx1)})})));
  434. _st($3)._with_("Instance");
  435. $5=_st($3)._onClick_((function(){
  436. return smalltalk.withContext(function($ctx3) { return _st(self)._showInstance_(true);
  437. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  438. $5;
  439. $6=_st(html)._button();
  440. _st($6)._class_(_st((smalltalk.String || String))._streamContents_((function(str){
  441. return smalltalk.withContext(function($ctx3) { _st(str)._nextPutAll_("btn");
  442. $7=_st(_st(self)._model())._showInstance();
  443. if(! smalltalk.assert($7)){
  444. return _st(str)._nextPutAll_(" active");
  445. };
  446. }, function($ctx3) {$ctx3.fillBlock({str:str},$ctx1)})})));
  447. _st($6)._with_("Class");
  448. $8=_st($6)._onClick_((function(){
  449. return smalltalk.withContext(function($ctx3) { return _st(_st(self)._model())._showInstance_(false);
  450. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  451. return $8;
  452. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  453. $9=_st(html)._button();
  454. _st($9)._class_("btn");
  455. _st($9)._at_put_("data-toggle","button");
  456. $10=_st($9)._with_("Comment");
  457. return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html}, smalltalk.HLClassesListWidget)})},
  458. messageSends: ["class:", "div", "at:put:", "with:", "streamContents:", "nextPutAll:", "ifTrue:", "showInstance", "button", "onClick:", "showInstance:", "ifFalse:", "model"]}),
  459. smalltalk.HLClassesListWidget);
  460. smalltalk.addMethod(
  461. "_renderItem_level_on_",
  462. smalltalk.method({
  463. selector: "renderItem:level:on:",
  464. fn: function (aClass,anInteger,html){
  465. var self=this;
  466. var li;
  467. return smalltalk.withContext(function($ctx1) { var $1,$3,$4,$2;
  468. li=_st(html)._li();
  469. $1=li;
  470. _st($1)._at_put_("list-data",_st(_st(self)._items())._indexOf_(aClass));
  471. _st($1)._class_(_st(self)._cssClassForItem_(aClass));
  472. $2=_st($1)._with_((function(){
  473. return smalltalk.withContext(function($ctx2) { $3=_st(html)._a();
  474. _st($3)._with_((function(){
  475. return smalltalk.withContext(function($ctx3) { _st(_st(html)._tag_("i"))._class_(_st(self)._iconForItem_(aClass));
  476. return _st(self)._renderItemLabel_level_on_(aClass,anInteger,html);
  477. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  478. $4=_st($3)._onClick_((function(){
  479. return smalltalk.withContext(function($ctx3) { return _st(self)._activateListItem_(_st(li)._asJQuery());
  480. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  481. return $4;
  482. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  483. _st(_st(self)._getChildrenOf_(aClass))._do_((function(each){
  484. return smalltalk.withContext(function($ctx2) { return _st(self)._renderItem_level_on_(each,_st(anInteger).__plus((1)),html);
  485. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  486. return self}, function($ctx1) {$ctx1.fill(self,"renderItem:level:on:",{aClass:aClass,anInteger:anInteger,html:html,li:li}, smalltalk.HLClassesListWidget)})},
  487. messageSends: ["li", "at:put:", "indexOf:", "items", "class:", "cssClassForItem:", "with:", "iconForItem:", "tag:", "renderItemLabel:level:on:", "a", "onClick:", "activateListItem:", "asJQuery", "do:", "renderItem:level:on:", "+", "getChildrenOf:"]}),
  488. smalltalk.HLClassesListWidget);
  489. smalltalk.addMethod(
  490. "_renderItem_on_",
  491. smalltalk.method({
  492. selector: "renderItem:on:",
  493. fn: function (aClass,html){
  494. var self=this;
  495. return smalltalk.withContext(function($ctx1) { smalltalk.HLBrowserListWidget.fn.prototype._renderItem_on_.apply(_st(self), [aClass,html]);
  496. _st(_st(self)._getChildrenOf_(aClass))._do_((function(each){
  497. return smalltalk.withContext(function($ctx2) { return _st(self)._renderItem_level_on_(each,(1),html);
  498. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  499. return self}, function($ctx1) {$ctx1.fill(self,"renderItem:on:",{aClass:aClass,html:html}, smalltalk.HLClassesListWidget)})},
  500. messageSends: ["renderItem:on:", "do:", "renderItem:level:on:", "getChildrenOf:"]}),
  501. smalltalk.HLClassesListWidget);
  502. smalltalk.addMethod(
  503. "_renderItemLabel_level_on_",
  504. smalltalk.method({
  505. selector: "renderItemLabel:level:on:",
  506. fn: function (aClass,anInteger,html){
  507. var self=this;
  508. return smalltalk.withContext(function($ctx1) { _st(_st(_st(html)._span())._asJQuery())._html_(_st((smalltalk.String || String))._streamContents_((function(str){
  509. return smalltalk.withContext(function($ctx2) { _st(anInteger)._timesRepeat_((function(){
  510. return smalltalk.withContext(function($ctx3) { return _st(str)._nextPutAll_("    ");
  511. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  512. return _st(str)._nextPutAll_(_st(aClass)._name());
  513. }, function($ctx2) {$ctx2.fillBlock({str:str},$ctx1)})})));
  514. return self}, function($ctx1) {$ctx1.fill(self,"renderItemLabel:level:on:",{aClass:aClass,anInteger:anInteger,html:html}, smalltalk.HLClassesListWidget)})},
  515. messageSends: ["html:", "streamContents:", "timesRepeat:", "nextPutAll:", "name", "asJQuery", "span"]}),
  516. smalltalk.HLClassesListWidget);
  517. smalltalk.addMethod(
  518. "_renderItemLabel_on_",
  519. smalltalk.method({
  520. selector: "renderItemLabel:on:",
  521. fn: function (aClass,html){
  522. var self=this;
  523. return smalltalk.withContext(function($ctx1) { _st(self)._renderItemLabel_level_on_(aClass,(0),html);
  524. return self}, function($ctx1) {$ctx1.fill(self,"renderItemLabel:on:",{aClass:aClass,html:html}, smalltalk.HLClassesListWidget)})},
  525. messageSends: ["renderItemLabel:level:on:"]}),
  526. smalltalk.HLClassesListWidget);
  527. smalltalk.addMethod(
  528. "_renderListOn_",
  529. smalltalk.method({
  530. selector: "renderListOn:",
  531. fn: function (html){
  532. var self=this;
  533. return smalltalk.withContext(function($ctx1) { _st(_st(self)._getRootClassesOf_(_st(self)._items()))._do_((function(each){
  534. return smalltalk.withContext(function($ctx2) { return _st(self)._renderItem_on_(each,html);
  535. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  536. return self}, function($ctx1) {$ctx1.fill(self,"renderListOn:",{html:html}, smalltalk.HLClassesListWidget)})},
  537. messageSends: ["do:", "renderItem:on:", "getRootClassesOf:", "items"]}),
  538. smalltalk.HLClassesListWidget);
  539. smalltalk.addMethod(
  540. "_selectItem_",
  541. smalltalk.method({
  542. selector: "selectItem:",
  543. fn: function (aClass){
  544. var self=this;
  545. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._selectedClass_(aClass);
  546. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{aClass:aClass}, smalltalk.HLClassesListWidget)})},
  547. messageSends: ["selectedClass:", "model"]}),
  548. smalltalk.HLClassesListWidget);
  549. smalltalk.addMethod(
  550. "_showInstance",
  551. smalltalk.method({
  552. selector: "showInstance",
  553. fn: function (){
  554. var self=this;
  555. return smalltalk.withContext(function($ctx1) { var $1;
  556. $1=_st(_st(self)._model())._showInstance();
  557. return $1;
  558. }, function($ctx1) {$ctx1.fill(self,"showInstance",{}, smalltalk.HLClassesListWidget)})},
  559. messageSends: ["showInstance", "model"]}),
  560. smalltalk.HLClassesListWidget);
  561. smalltalk.addMethod(
  562. "_showInstance_",
  563. smalltalk.method({
  564. selector: "showInstance:",
  565. fn: function (aBoolean){
  566. var self=this;
  567. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._showInstance_(aBoolean);
  568. return self}, function($ctx1) {$ctx1.fill(self,"showInstance:",{aBoolean:aBoolean}, smalltalk.HLClassesListWidget)})},
  569. messageSends: ["showInstance:", "model"]}),
  570. smalltalk.HLClassesListWidget);
  571. smalltalk.addClass('HLMethodsListWidget', smalltalk.HLBrowserListWidget, [], 'Helios-Browser');
  572. smalltalk.addMethod(
  573. "_allProtocol",
  574. smalltalk.method({
  575. selector: "allProtocol",
  576. fn: function (){
  577. var self=this;
  578. return smalltalk.withContext(function($ctx1) { var $1;
  579. $1=_st(_st(self)._model())._allProtocol();
  580. return $1;
  581. }, function($ctx1) {$ctx1.fill(self,"allProtocol",{}, smalltalk.HLMethodsListWidget)})},
  582. messageSends: ["allProtocol", "model"]}),
  583. smalltalk.HLMethodsListWidget);
  584. smalltalk.addMethod(
  585. "_flushSelectorsCache",
  586. smalltalk.method({
  587. selector: "flushSelectorsCache",
  588. fn: function (){
  589. var self=this;
  590. return smalltalk.withContext(function($ctx1) { self["@selectorsCache"]=_st((smalltalk.Dictionary || Dictionary))._new();
  591. return self}, function($ctx1) {$ctx1.fill(self,"flushSelectorsCache",{}, smalltalk.HLMethodsListWidget)})},
  592. messageSends: ["new"]}),
  593. smalltalk.HLMethodsListWidget);
  594. smalltalk.addMethod(
  595. "_iconForItem_",
  596. smalltalk.method({
  597. selector: "iconForItem:",
  598. fn: function (aCompiledMethod){
  599. var self=this;
  600. var override,overriden;
  601. return smalltalk.withContext(function($ctx1) { var $2,$3,$4,$1;
  602. override=_st(self)._isOverride_(aCompiledMethod);
  603. overriden=_st(self)._isOverridden_(aCompiledMethod);
  604. $2=override;
  605. if(smalltalk.assert($2)){
  606. $3=overriden;
  607. if(smalltalk.assert($3)){
  608. $1="icon-resize-vertical";
  609. } else {
  610. $1="icon-arrow-up";
  611. };
  612. } else {
  613. $4=overriden;
  614. if(smalltalk.assert($4)){
  615. $1="icon-arrow-down";
  616. } else {
  617. $1="icon-none";
  618. };
  619. };
  620. return $1;
  621. }, function($ctx1) {$ctx1.fill(self,"iconForItem:",{aCompiledMethod:aCompiledMethod,override:override,overriden:overriden}, smalltalk.HLMethodsListWidget)})},
  622. messageSends: ["isOverride:", "isOverridden:", "ifTrue:ifFalse:"]}),
  623. smalltalk.HLMethodsListWidget);
  624. smalltalk.addMethod(
  625. "_initialize",
  626. smalltalk.method({
  627. selector: "initialize",
  628. fn: function (){
  629. var self=this;
  630. return smalltalk.withContext(function($ctx1) { smalltalk.HLBrowserListWidget.fn.prototype._initialize.apply(_st(self), []);
  631. _st(self)._flushSelectorsCache();
  632. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{}, smalltalk.HLMethodsListWidget)})},
  633. messageSends: ["initialize", "flushSelectorsCache"]}),
  634. smalltalk.HLMethodsListWidget);
  635. smalltalk.addMethod(
  636. "_isOverridden_",
  637. smalltalk.method({
  638. selector: "isOverridden:",
  639. fn: function (aMethod){
  640. var self=this;
  641. return smalltalk.withContext(function($ctx1) { var $1;
  642. $1=_st(_st(self)._selectorsCache())._isOverridden_(aMethod);
  643. return $1;
  644. }, function($ctx1) {$ctx1.fill(self,"isOverridden:",{aMethod:aMethod}, smalltalk.HLMethodsListWidget)})},
  645. messageSends: ["isOverridden:", "selectorsCache"]}),
  646. smalltalk.HLMethodsListWidget);
  647. smalltalk.addMethod(
  648. "_isOverride_",
  649. smalltalk.method({
  650. selector: "isOverride:",
  651. fn: function (aMethod){
  652. var self=this;
  653. return smalltalk.withContext(function($ctx1) { var $1;
  654. $1=_st(_st(self)._selectorsCache())._isOverride_(aMethod);
  655. return $1;
  656. }, function($ctx1) {$ctx1.fill(self,"isOverride:",{aMethod:aMethod}, smalltalk.HLMethodsListWidget)})},
  657. messageSends: ["isOverride:", "selectorsCache"]}),
  658. smalltalk.HLMethodsListWidget);
  659. smalltalk.addMethod(
  660. "_methodsInProtocol_",
  661. smalltalk.method({
  662. selector: "methodsInProtocol:",
  663. fn: function (aString){
  664. var self=this;
  665. return smalltalk.withContext(function($ctx1) { var $2,$1;
  666. $2=_st(aString).__eq(_st(self)._allProtocol());
  667. if(smalltalk.assert($2)){
  668. $1=_st(_st(_st(self)._model())._selectedClass())._methods();
  669. } else {
  670. $1=_st(_st(_st(self)._model())._selectedClass())._methodsInProtocol_(aString);
  671. };
  672. return $1;
  673. }, function($ctx1) {$ctx1.fill(self,"methodsInProtocol:",{aString:aString}, smalltalk.HLMethodsListWidget)})},
  674. messageSends: ["ifTrue:ifFalse:", "methods", "selectedClass", "model", "methodsInProtocol:", "=", "allProtocol"]}),
  675. smalltalk.HLMethodsListWidget);
  676. smalltalk.addMethod(
  677. "_observeModel",
  678. smalltalk.method({
  679. selector: "observeModel",
  680. fn: function (){
  681. var self=this;
  682. return smalltalk.withContext(function($ctx1) { _st(_st(_st(self)._model())._announcer())._on_do_((smalltalk.HLProtocolSelected || HLProtocolSelected),(function(ann){
  683. return smalltalk.withContext(function($ctx2) { return _st(self)._onProtocolSelected_(_st(ann)._item());
  684. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  685. _st(_st(_st(self)._model())._announcer())._on_do_((smalltalk.HLShowInstanceToggled || HLShowInstanceToggled),(function(ann){
  686. return smalltalk.withContext(function($ctx2) { return _st(self)._onProtocolSelected_(nil);
  687. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  688. _st(_st(_st(self)._model())._announcer())._on_do_((smalltalk.HLMethodSelected || HLMethodSelected),(function(ann){
  689. return smalltalk.withContext(function($ctx2) { return _st(self)._onMethodSelected_(_st(ann)._item());
  690. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  691. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{}, smalltalk.HLMethodsListWidget)})},
  692. messageSends: ["on:do:", "onProtocolSelected:", "item", "announcer", "model", "onMethodSelected:"]}),
  693. smalltalk.HLMethodsListWidget);
  694. smalltalk.addMethod(
  695. "_onMethodSelected_",
  696. smalltalk.method({
  697. selector: "onMethodSelected:",
  698. fn: function (aMethod){
  699. var self=this;
  700. return smalltalk.withContext(function($ctx1) { var $1,$2;
  701. _st(self)._selectedItem_(aMethod);
  702. $1=aMethod;
  703. if(($receiver = $1) == nil || $receiver == undefined){
  704. $2=self;
  705. return $2;
  706. } else {
  707. $1;
  708. };
  709. _st(self)._focus();
  710. return self}, function($ctx1) {$ctx1.fill(self,"onMethodSelected:",{aMethod:aMethod}, smalltalk.HLMethodsListWidget)})},
  711. messageSends: ["selectedItem:", "ifNil:", "focus"]}),
  712. smalltalk.HLMethodsListWidget);
  713. smalltalk.addMethod(
  714. "_onProtocolSelected_",
  715. smalltalk.method({
  716. selector: "onProtocolSelected:",
  717. fn: function (aString){
  718. var self=this;
  719. return smalltalk.withContext(function($ctx1) { var $1,$3,$4,$2;
  720. _st(self)._selectedItem_(nil);
  721. $1=self;
  722. $3=_st(_st(self)._model())._selectedClass();
  723. if(($receiver = $3) == nil || $receiver == undefined){
  724. $2=[];
  725. } else {
  726. $4=aString;
  727. if(($receiver = $4) == nil || $receiver == undefined){
  728. $2=[];
  729. } else {
  730. $2=_st(self)._methodsInProtocol_(aString);
  731. };
  732. };
  733. _st($1)._items_($2);
  734. _st(self)._refresh();
  735. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolSelected:",{aString:aString}, smalltalk.HLMethodsListWidget)})},
  736. messageSends: ["selectedItem:", "items:", "ifNil:ifNotNil:", "methodsInProtocol:", "selectedClass", "model", "refresh"]}),
  737. smalltalk.HLMethodsListWidget);
  738. smalltalk.addMethod(
  739. "_overrideSelectors",
  740. smalltalk.method({
  741. selector: "overrideSelectors",
  742. fn: function (){
  743. var self=this;
  744. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  745. $1=_st(_st(self)._selectorsCache())._at_ifAbsentPut_("override",(function(){
  746. return smalltalk.withContext(function($ctx2) { return _st(_st(_st(_st(self)._model())._selectedClass())._allSuperclasses())._inject_into_(_st((smalltalk.Set || Set))._new(),(function(acc,each){
  747. return smalltalk.withContext(function($ctx3) { $2=acc;
  748. _st($2)._addAll_(_st(each)._selectors());
  749. $3=_st($2)._yourself();
  750. return $3;
  751. }, function($ctx3) {$ctx3.fillBlock({acc:acc,each:each},$ctx1)})}));
  752. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  753. return $1;
  754. }, function($ctx1) {$ctx1.fill(self,"overrideSelectors",{}, smalltalk.HLMethodsListWidget)})},
  755. messageSends: ["at:ifAbsentPut:", "inject:into:", "new", "addAll:", "selectors", "yourself", "allSuperclasses", "selectedClass", "model", "selectorsCache"]}),
  756. smalltalk.HLMethodsListWidget);
  757. smalltalk.addMethod(
  758. "_overridenSelectors",
  759. smalltalk.method({
  760. selector: "overridenSelectors",
  761. fn: function (){
  762. var self=this;
  763. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  764. $1=_st(_st(self)._selectorsCache())._at_ifAbsentPut_("overriden",(function(){
  765. return smalltalk.withContext(function($ctx2) { return _st(_st(_st(_st(self)._model())._selectedClass())._allSubclasses())._inject_into_(_st((smalltalk.Set || Set))._new(),(function(acc,each){
  766. return smalltalk.withContext(function($ctx3) { $2=acc;
  767. _st($2)._addAll_(_st(each)._selectors());
  768. $3=_st($2)._yourself();
  769. return $3;
  770. }, function($ctx3) {$ctx3.fillBlock({acc:acc,each:each},$ctx1)})}));
  771. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  772. return $1;
  773. }, function($ctx1) {$ctx1.fill(self,"overridenSelectors",{}, smalltalk.HLMethodsListWidget)})},
  774. messageSends: ["at:ifAbsentPut:", "inject:into:", "new", "addAll:", "selectors", "yourself", "allSubclasses", "selectedClass", "model", "selectorsCache"]}),
  775. smalltalk.HLMethodsListWidget);
  776. smalltalk.addMethod(
  777. "_renderContentOn_",
  778. smalltalk.method({
  779. selector: "renderContentOn:",
  780. fn: function (html){
  781. var self=this;
  782. return smalltalk.withContext(function($ctx1) { var $1,$2,$3;
  783. $1=_st(_st(self)._model())._showInstance();
  784. if(smalltalk.assert($1)){
  785. smalltalk.HLBrowserListWidget.fn.prototype._renderContentOn_.apply(_st(self), [html]);
  786. } else {
  787. $2=_st(html)._div();
  788. _st($2)._class_("class_side");
  789. $3=_st($2)._with_((function(){
  790. return smalltalk.withContext(function($ctx2) { return smalltalk.HLBrowserListWidget.fn.prototype._renderContentOn_.apply(_st(self), [html]);
  791. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  792. $3;
  793. };
  794. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html}, smalltalk.HLMethodsListWidget)})},
  795. messageSends: ["ifFalse:ifTrue:", "class:", "div", "with:", "renderContentOn:", "showInstance", "model"]}),
  796. smalltalk.HLMethodsListWidget);
  797. smalltalk.addMethod(
  798. "_renderItemLabel_on_",
  799. smalltalk.method({
  800. selector: "renderItemLabel:on:",
  801. fn: function (aCompiledMethod,html){
  802. var self=this;
  803. return smalltalk.withContext(function($ctx1) { _st(html)._with_(_st(aCompiledMethod)._selector());
  804. return self}, function($ctx1) {$ctx1.fill(self,"renderItemLabel:on:",{aCompiledMethod:aCompiledMethod,html:html}, smalltalk.HLMethodsListWidget)})},
  805. messageSends: ["with:", "selector"]}),
  806. smalltalk.HLMethodsListWidget);
  807. smalltalk.addMethod(
  808. "_selectItem_",
  809. smalltalk.method({
  810. selector: "selectItem:",
  811. fn: function (aCompiledMethod){
  812. var self=this;
  813. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._selectedMethod_(aCompiledMethod);
  814. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{aCompiledMethod:aCompiledMethod}, smalltalk.HLMethodsListWidget)})},
  815. messageSends: ["selectedMethod:", "model"]}),
  816. smalltalk.HLMethodsListWidget);
  817. smalltalk.addMethod(
  818. "_selectorsCache",
  819. smalltalk.method({
  820. selector: "selectorsCache",
  821. fn: function (){
  822. var self=this;
  823. return smalltalk.withContext(function($ctx1) { var $1;
  824. $1=_st(_st(self)._class())._selectorsCache();
  825. return $1;
  826. }, function($ctx1) {$ctx1.fill(self,"selectorsCache",{}, smalltalk.HLMethodsListWidget)})},
  827. messageSends: ["selectorsCache", "class"]}),
  828. smalltalk.HLMethodsListWidget);
  829. smalltalk.HLMethodsListWidget.klass.iVarNames = ['selectorsCache'];
  830. smalltalk.addMethod(
  831. "_selectorsCache",
  832. smalltalk.method({
  833. selector: "selectorsCache",
  834. fn: function (){
  835. var self=this;
  836. return smalltalk.withContext(function($ctx1) { var $1;
  837. $1=_st((smalltalk.HLSelectorsCache || HLSelectorsCache))._current();
  838. return $1;
  839. }, function($ctx1) {$ctx1.fill(self,"selectorsCache",{}, smalltalk.HLMethodsListWidget.klass)})},
  840. messageSends: ["current"]}),
  841. smalltalk.HLMethodsListWidget.klass);
  842. smalltalk.addClass('HLPackagesListWidget', smalltalk.HLBrowserListWidget, [], 'Helios-Browser');
  843. smalltalk.addMethod(
  844. "_focusClassesListWidget",
  845. smalltalk.method({
  846. selector: "focusClassesListWidget",
  847. fn: function (){
  848. var self=this;
  849. return smalltalk.withContext(function($ctx1) { _st(_st(_st(self)._model())._announcer())._announce_(_st((smalltalk.HLClassesListFocus || HLClassesListFocus))._new());
  850. return self}, function($ctx1) {$ctx1.fill(self,"focusClassesListWidget",{}, smalltalk.HLPackagesListWidget)})},
  851. messageSends: ["announce:", "new", "announcer", "model"]}),
  852. smalltalk.HLPackagesListWidget);
  853. smalltalk.addMethod(
  854. "_initializeItems",
  855. smalltalk.method({
  856. selector: "initializeItems",
  857. fn: function (){
  858. var self=this;
  859. return smalltalk.withContext(function($ctx1) { var $1;
  860. self["@items"]=_st(_st(_st(self)._model())._packages())._sort_((function(a,b){
  861. return smalltalk.withContext(function($ctx2) { return _st(_st(a)._name()).__lt(_st(b)._name());
  862. }, function($ctx2) {$ctx2.fillBlock({a:a,b:b},$ctx1)})}));
  863. $1=self["@items"];
  864. return $1;
  865. }, function($ctx1) {$ctx1.fill(self,"initializeItems",{}, smalltalk.HLPackagesListWidget)})},
  866. messageSends: ["sort:", "<", "name", "packages", "model"]}),
  867. smalltalk.HLPackagesListWidget);
  868. smalltalk.addMethod(
  869. "_items",
  870. smalltalk.method({
  871. selector: "items",
  872. fn: function (){
  873. var self=this;
  874. return smalltalk.withContext(function($ctx1) { var $2,$1;
  875. $2=self["@items"];
  876. if(($receiver = $2) == nil || $receiver == undefined){
  877. $1=_st(self)._initializeItems();
  878. } else {
  879. $1=$2;
  880. };
  881. return $1;
  882. }, function($ctx1) {$ctx1.fill(self,"items",{}, smalltalk.HLPackagesListWidget)})},
  883. messageSends: ["ifNil:", "initializeItems"]}),
  884. smalltalk.HLPackagesListWidget);
  885. smalltalk.addMethod(
  886. "_observeModel",
  887. smalltalk.method({
  888. selector: "observeModel",
  889. fn: function (){
  890. var self=this;
  891. return smalltalk.withContext(function($ctx1) { _st(_st(_st(self)._model())._announcer())._on_do_((smalltalk.HLPackageSelected || HLPackageSelected),(function(ann){
  892. return smalltalk.withContext(function($ctx2) { return _st(self)._onPackageSelected_(_st(ann)._item());
  893. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  894. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{}, smalltalk.HLPackagesListWidget)})},
  895. messageSends: ["on:do:", "onPackageSelected:", "item", "announcer", "model"]}),
  896. smalltalk.HLPackagesListWidget);
  897. smalltalk.addMethod(
  898. "_onPackageSelected_",
  899. smalltalk.method({
  900. selector: "onPackageSelected:",
  901. fn: function (aPackage){
  902. var self=this;
  903. return smalltalk.withContext(function($ctx1) { _st(self)._selectedItem_(aPackage);
  904. _st(self)._focus();
  905. return self}, function($ctx1) {$ctx1.fill(self,"onPackageSelected:",{aPackage:aPackage}, smalltalk.HLPackagesListWidget)})},
  906. messageSends: ["selectedItem:", "focus"]}),
  907. smalltalk.HLPackagesListWidget);
  908. smalltalk.addMethod(
  909. "_renderButtonsOn_",
  910. smalltalk.method({
  911. selector: "renderButtonsOn:",
  912. fn: function (html){
  913. var self=this;
  914. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$5,$6,$7,$8,$4,$9,$10;
  915. $1=_st(html)._span();
  916. _st($1)._class_("info");
  917. $2=_st($1)._with_("Auto commit");
  918. $3=_st(html)._div();
  919. _st($3)._class_("btn-group switch");
  920. _st($3)._at_put_("data-toggle","buttons-radio");
  921. $4=_st($3)._with_((function(){
  922. return smalltalk.withContext(function($ctx2) { $5=_st(html)._button();
  923. _st($5)._class_(_st((smalltalk.String || String))._streamContents_((function(str){
  924. return smalltalk.withContext(function($ctx3) { return _st(str)._nextPutAll_("btn");
  925. }, function($ctx3) {$ctx3.fillBlock({str:str},$ctx1)})})));
  926. $6=_st($5)._with_("On");
  927. $6;
  928. $7=_st(html)._button();
  929. _st($7)._class_(_st((smalltalk.String || String))._streamContents_((function(str){
  930. return smalltalk.withContext(function($ctx3) { return _st(str)._nextPutAll_("btn active");
  931. }, function($ctx3) {$ctx3.fillBlock({str:str},$ctx1)})})));
  932. $8=_st($7)._with_("Off");
  933. return $8;
  934. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  935. $9=_st(html)._a();
  936. _st($9)._class_("btn");
  937. $10=_st($9)._with_("Commit");
  938. return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html}, smalltalk.HLPackagesListWidget)})},
  939. messageSends: ["class:", "span", "with:", "div", "at:put:", "streamContents:", "nextPutAll:", "button", "a"]}),
  940. smalltalk.HLPackagesListWidget);
  941. smalltalk.addMethod(
  942. "_selectItem_",
  943. smalltalk.method({
  944. selector: "selectItem:",
  945. fn: function (aPackage){
  946. var self=this;
  947. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._selectedPackage_(aPackage);
  948. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{aPackage:aPackage}, smalltalk.HLPackagesListWidget)})},
  949. messageSends: ["selectedPackage:", "model"]}),
  950. smalltalk.HLPackagesListWidget);
  951. smalltalk.addClass('HLProtocolsListWidget', smalltalk.HLBrowserListWidget, [], 'Helios-Browser');
  952. smalltalk.addMethod(
  953. "_allProtocol",
  954. smalltalk.method({
  955. selector: "allProtocol",
  956. fn: function (){
  957. var self=this;
  958. return smalltalk.withContext(function($ctx1) { var $1;
  959. $1=_st(_st(self)._model())._allProtocol();
  960. return $1;
  961. }, function($ctx1) {$ctx1.fill(self,"allProtocol",{}, smalltalk.HLProtocolsListWidget)})},
  962. messageSends: ["allProtocol", "model"]}),
  963. smalltalk.HLProtocolsListWidget);
  964. smalltalk.addMethod(
  965. "_observeModel",
  966. smalltalk.method({
  967. selector: "observeModel",
  968. fn: function (){
  969. var self=this;
  970. return smalltalk.withContext(function($ctx1) { _st(_st(_st(self)._model())._announcer())._on_do_((smalltalk.HLClassSelected || HLClassSelected),(function(ann){
  971. return smalltalk.withContext(function($ctx2) { return _st(self)._onClassSelected_(_st(ann)._item());
  972. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  973. _st(_st(_st(self)._model())._announcer())._on_do_((smalltalk.HLShowInstanceToggled || HLShowInstanceToggled),(function(ann){
  974. return smalltalk.withContext(function($ctx2) { return _st(self)._onClassSelected_(_st(_st(self)._model())._selectedClass());
  975. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  976. _st(_st(_st(self)._model())._announcer())._on_do_((smalltalk.HLProtocolSelected || HLProtocolSelected),(function(ann){
  977. return smalltalk.withContext(function($ctx2) { return _st(self)._onProtocolSelected_(_st(ann)._item());
  978. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  979. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{}, smalltalk.HLProtocolsListWidget)})},
  980. messageSends: ["on:do:", "onClassSelected:", "item", "announcer", "model", "selectedClass", "onProtocolSelected:"]}),
  981. smalltalk.HLProtocolsListWidget);
  982. smalltalk.addMethod(
  983. "_onClassSelected_",
  984. smalltalk.method({
  985. selector: "onClassSelected:",
  986. fn: function (aClass){
  987. var self=this;
  988. return smalltalk.withContext(function($ctx1) { var $1,$3,$4,$5,$2;
  989. _st(self)._selectedItem_(nil);
  990. $1=self;
  991. $3=aClass;
  992. if(($receiver = $3) == nil || $receiver == undefined){
  993. $2=_st((smalltalk.Array || Array))._with_(_st(self)._allProtocol());
  994. } else {
  995. $4=_st((smalltalk.Array || Array))._with_(_st(self)._allProtocol());
  996. _st($4)._addAll_(_st(aClass)._protocols());
  997. $5=_st($4)._yourself();
  998. $2=$5;
  999. };
  1000. _st($1)._items_($2);
  1001. _st(self)._refresh();
  1002. return self}, function($ctx1) {$ctx1.fill(self,"onClassSelected:",{aClass:aClass}, smalltalk.HLProtocolsListWidget)})},
  1003. messageSends: ["selectedItem:", "items:", "ifNil:ifNotNil:", "with:", "allProtocol", "addAll:", "protocols", "yourself", "refresh"]}),
  1004. smalltalk.HLProtocolsListWidget);
  1005. smalltalk.addMethod(
  1006. "_onProtocolSelected_",
  1007. smalltalk.method({
  1008. selector: "onProtocolSelected:",
  1009. fn: function (aString){
  1010. var self=this;
  1011. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1012. _st(self)._selectedItem_(aString);
  1013. $1=aString;
  1014. if(($receiver = $1) == nil || $receiver == undefined){
  1015. $2=self;
  1016. return $2;
  1017. } else {
  1018. $1;
  1019. };
  1020. _st(self)._focus();
  1021. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolSelected:",{aString:aString}, smalltalk.HLProtocolsListWidget)})},
  1022. messageSends: ["selectedItem:", "ifNil:", "focus"]}),
  1023. smalltalk.HLProtocolsListWidget);
  1024. smalltalk.addMethod(
  1025. "_renderContentOn_",
  1026. smalltalk.method({
  1027. selector: "renderContentOn:",
  1028. fn: function (html){
  1029. var self=this;
  1030. return smalltalk.withContext(function($ctx1) { var $1,$2,$3;
  1031. $1=_st(_st(self)._model())._showInstance();
  1032. if(smalltalk.assert($1)){
  1033. smalltalk.HLBrowserListWidget.fn.prototype._renderContentOn_.apply(_st(self), [html]);
  1034. } else {
  1035. $2=_st(html)._div();
  1036. _st($2)._class_("class_side");
  1037. $3=_st($2)._with_((function(){
  1038. return smalltalk.withContext(function($ctx2) { return smalltalk.HLBrowserListWidget.fn.prototype._renderContentOn_.apply(_st(self), [html]);
  1039. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1040. $3;
  1041. };
  1042. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html}, smalltalk.HLProtocolsListWidget)})},
  1043. messageSends: ["ifFalse:ifTrue:", "class:", "div", "with:", "renderContentOn:", "showInstance", "model"]}),
  1044. smalltalk.HLProtocolsListWidget);
  1045. smalltalk.addMethod(
  1046. "_selectItem_",
  1047. smalltalk.method({
  1048. selector: "selectItem:",
  1049. fn: function (aString){
  1050. var self=this;
  1051. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._selectedProtocol_(aString);
  1052. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{aString:aString}, smalltalk.HLProtocolsListWidget)})},
  1053. messageSends: ["selectedProtocol:", "model"]}),
  1054. smalltalk.HLProtocolsListWidget);
  1055. smalltalk.addMethod(
  1056. "_selectedItem",
  1057. smalltalk.method({
  1058. selector: "selectedItem",
  1059. fn: function (){
  1060. var self=this;
  1061. return smalltalk.withContext(function($ctx1) { var $1;
  1062. $1=smalltalk.HLBrowserListWidget.fn.prototype._selectedItem.apply(_st(self), []);
  1063. return $1;
  1064. }, function($ctx1) {$ctx1.fill(self,"selectedItem",{}, smalltalk.HLProtocolsListWidget)})},
  1065. messageSends: ["selectedItem"]}),
  1066. smalltalk.HLProtocolsListWidget);
  1067. smalltalk.addClass('HLBrowserModel', smalltalk.Object, ['announcer', 'environment', 'selectedPackage', 'selectedClass', 'selectedProtocol', 'selectedMethod', 'showInstance', 'showComment'], 'Helios-Browser');
  1068. smalltalk.addMethod(
  1069. "_allProtocol",
  1070. smalltalk.method({
  1071. selector: "allProtocol",
  1072. fn: function (){
  1073. var self=this;
  1074. return smalltalk.withContext(function($ctx1) { return "-- All --";
  1075. }, function($ctx1) {$ctx1.fill(self,"allProtocol",{}, smalltalk.HLBrowserModel)})},
  1076. messageSends: []}),
  1077. smalltalk.HLBrowserModel);
  1078. smalltalk.addMethod(
  1079. "_announcer",
  1080. smalltalk.method({
  1081. selector: "announcer",
  1082. fn: function (){
  1083. var self=this;
  1084. return smalltalk.withContext(function($ctx1) { var $2,$1;
  1085. $2=self["@announcer"];
  1086. if(($receiver = $2) == nil || $receiver == undefined){
  1087. self["@announcer"]=_st((smalltalk.Announcer || Announcer))._new();
  1088. $1=self["@announcer"];
  1089. } else {
  1090. $1=$2;
  1091. };
  1092. return $1;
  1093. }, function($ctx1) {$ctx1.fill(self,"announcer",{}, smalltalk.HLBrowserModel)})},
  1094. messageSends: ["ifNil:", "new"]}),
  1095. smalltalk.HLBrowserModel);
  1096. smalltalk.addMethod(
  1097. "_environment",
  1098. smalltalk.method({
  1099. selector: "environment",
  1100. fn: function (){
  1101. var self=this;
  1102. return smalltalk.withContext(function($ctx1) { var $2,$1;
  1103. $2=self["@environment"];
  1104. if(($receiver = $2) == nil || $receiver == undefined){
  1105. $1=_st(_st((smalltalk.HLManager || HLManager))._current())._environment();
  1106. } else {
  1107. $1=$2;
  1108. };
  1109. return $1;
  1110. }, function($ctx1) {$ctx1.fill(self,"environment",{}, smalltalk.HLBrowserModel)})},
  1111. messageSends: ["ifNil:", "environment", "current"]}),
  1112. smalltalk.HLBrowserModel);
  1113. smalltalk.addMethod(
  1114. "_environment_",
  1115. smalltalk.method({
  1116. selector: "environment:",
  1117. fn: function (anEnvironment){
  1118. var self=this;
  1119. return smalltalk.withContext(function($ctx1) { self["@environment"]=anEnvironment;
  1120. return self}, function($ctx1) {$ctx1.fill(self,"environment:",{anEnvironment:anEnvironment}, smalltalk.HLBrowserModel)})},
  1121. messageSends: []}),
  1122. smalltalk.HLBrowserModel);
  1123. smalltalk.addMethod(
  1124. "_packages",
  1125. smalltalk.method({
  1126. selector: "packages",
  1127. fn: function (){
  1128. var self=this;
  1129. return smalltalk.withContext(function($ctx1) { var $1;
  1130. $1=_st(_st(self)._environment())._packages();
  1131. return $1;
  1132. }, function($ctx1) {$ctx1.fill(self,"packages",{}, smalltalk.HLBrowserModel)})},
  1133. messageSends: ["packages", "environment"]}),
  1134. smalltalk.HLBrowserModel);
  1135. smalltalk.addMethod(
  1136. "_selectedClass",
  1137. smalltalk.method({
  1138. selector: "selectedClass",
  1139. fn: function (){
  1140. var self=this;
  1141. return smalltalk.withContext(function($ctx1) { var $1;
  1142. $1=self["@selectedClass"];
  1143. return $1;
  1144. }, function($ctx1) {$ctx1.fill(self,"selectedClass",{}, smalltalk.HLBrowserModel)})},
  1145. messageSends: []}),
  1146. smalltalk.HLBrowserModel);
  1147. smalltalk.addMethod(
  1148. "_selectedClass_",
  1149. smalltalk.method({
  1150. selector: "selectedClass:",
  1151. fn: function (aClass){
  1152. var self=this;
  1153. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4;
  1154. $1=_st(self["@selectedClass"]).__eq(aClass);
  1155. if(smalltalk.assert($1)){
  1156. $2=self;
  1157. return $2;
  1158. };
  1159. $3=aClass;
  1160. if(($receiver = $3) == nil || $receiver == undefined){
  1161. self["@selectedClass"]=nil;
  1162. self["@selectedClass"];
  1163. } else {
  1164. $4=_st(self)._showInstance();
  1165. if(smalltalk.assert($4)){
  1166. self["@selectedClass"]=_st(aClass)._theNonMetaClass();
  1167. self["@selectedClass"];
  1168. } else {
  1169. self["@selectedClass"]=_st(aClass)._theMetaClass();
  1170. self["@selectedClass"];
  1171. };
  1172. };
  1173. _st(self)._selectedProtocol_(nil);
  1174. _st(_st(self)._announcer())._announce_(_st((smalltalk.HLClassSelected || HLClassSelected))._on_(_st(self)._selectedClass()));
  1175. return self}, function($ctx1) {$ctx1.fill(self,"selectedClass:",{aClass:aClass}, smalltalk.HLBrowserModel)})},
  1176. messageSends: ["ifTrue:", "=", "ifNil:ifNotNil:", "ifTrue:ifFalse:", "theNonMetaClass", "theMetaClass", "showInstance", "selectedProtocol:", "announce:", "on:", "selectedClass", "announcer"]}),
  1177. smalltalk.HLBrowserModel);
  1178. smalltalk.addMethod(
  1179. "_selectedMethod",
  1180. smalltalk.method({
  1181. selector: "selectedMethod",
  1182. fn: function (){
  1183. var self=this;
  1184. return smalltalk.withContext(function($ctx1) { var $1;
  1185. $1=self["@selectedMethod"];
  1186. return $1;
  1187. }, function($ctx1) {$ctx1.fill(self,"selectedMethod",{}, smalltalk.HLBrowserModel)})},
  1188. messageSends: []}),
  1189. smalltalk.HLBrowserModel);
  1190. smalltalk.addMethod(
  1191. "_selectedMethod_",
  1192. smalltalk.method({
  1193. selector: "selectedMethod:",
  1194. fn: function (aCompiledMethod){
  1195. var self=this;
  1196. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1197. $1=_st(self["@selectedMethod"]).__eq(aCompiledMethod);
  1198. if(smalltalk.assert($1)){
  1199. $2=self;
  1200. return $2;
  1201. };
  1202. self["@selectedMethod"]=aCompiledMethod;
  1203. _st(_st(self)._announcer())._announce_(_st((smalltalk.HLMethodSelected || HLMethodSelected))._on_(aCompiledMethod));
  1204. return self}, function($ctx1) {$ctx1.fill(self,"selectedMethod:",{aCompiledMethod:aCompiledMethod}, smalltalk.HLBrowserModel)})},
  1205. messageSends: ["ifTrue:", "=", "announce:", "on:", "announcer"]}),
  1206. smalltalk.HLBrowserModel);
  1207. smalltalk.addMethod(
  1208. "_selectedPackage",
  1209. smalltalk.method({
  1210. selector: "selectedPackage",
  1211. fn: function (){
  1212. var self=this;
  1213. return smalltalk.withContext(function($ctx1) { var $1;
  1214. $1=self["@selectedPackage"];
  1215. return $1;
  1216. }, function($ctx1) {$ctx1.fill(self,"selectedPackage",{}, smalltalk.HLBrowserModel)})},
  1217. messageSends: []}),
  1218. smalltalk.HLBrowserModel);
  1219. smalltalk.addMethod(
  1220. "_selectedPackage_",
  1221. smalltalk.method({
  1222. selector: "selectedPackage:",
  1223. fn: function (aPackage){
  1224. var self=this;
  1225. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1226. $1=_st(self["@selectedPackage"]).__eq(aPackage);
  1227. if(smalltalk.assert($1)){
  1228. $2=self;
  1229. return $2;
  1230. };
  1231. self["@selectedPackage"]=aPackage;
  1232. _st(self)._selectedClass_(nil);
  1233. _st(_st(self)._announcer())._announce_(_st((smalltalk.HLPackageSelected || HLPackageSelected))._on_(aPackage));
  1234. return self}, function($ctx1) {$ctx1.fill(self,"selectedPackage:",{aPackage:aPackage}, smalltalk.HLBrowserModel)})},
  1235. messageSends: ["ifTrue:", "=", "selectedClass:", "announce:", "on:", "announcer"]}),
  1236. smalltalk.HLBrowserModel);
  1237. smalltalk.addMethod(
  1238. "_selectedProtocol",
  1239. smalltalk.method({
  1240. selector: "selectedProtocol",
  1241. fn: function (){
  1242. var self=this;
  1243. return smalltalk.withContext(function($ctx1) { var $1;
  1244. $1=self["@selectedProtocol"];
  1245. return $1;
  1246. }, function($ctx1) {$ctx1.fill(self,"selectedProtocol",{}, smalltalk.HLBrowserModel)})},
  1247. messageSends: []}),
  1248. smalltalk.HLBrowserModel);
  1249. smalltalk.addMethod(
  1250. "_selectedProtocol_",
  1251. smalltalk.method({
  1252. selector: "selectedProtocol:",
  1253. fn: function (aString){
  1254. var self=this;
  1255. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1256. $1=_st(self["@selectedProtocol"]).__eq(aString);
  1257. if(smalltalk.assert($1)){
  1258. $2=self;
  1259. return $2;
  1260. };
  1261. self["@selectedProtocol"]=aString;
  1262. _st(self)._selectedMethod_(nil);
  1263. _st(_st(self)._announcer())._announce_(_st((smalltalk.HLProtocolSelected || HLProtocolSelected))._on_(aString));
  1264. return self}, function($ctx1) {$ctx1.fill(self,"selectedProtocol:",{aString:aString}, smalltalk.HLBrowserModel)})},
  1265. messageSends: ["ifTrue:", "=", "selectedMethod:", "announce:", "on:", "announcer"]}),
  1266. smalltalk.HLBrowserModel);
  1267. smalltalk.addMethod(
  1268. "_showComment",
  1269. smalltalk.method({
  1270. selector: "showComment",
  1271. fn: function (){
  1272. var self=this;
  1273. return smalltalk.withContext(function($ctx1) { var $2,$1;
  1274. $2=self["@showComment"];
  1275. if(($receiver = $2) == nil || $receiver == undefined){
  1276. $1=false;
  1277. } else {
  1278. $1=$2;
  1279. };
  1280. return $1;
  1281. }, function($ctx1) {$ctx1.fill(self,"showComment",{}, smalltalk.HLBrowserModel)})},
  1282. messageSends: ["ifNil:"]}),
  1283. smalltalk.HLBrowserModel);
  1284. smalltalk.addMethod(
  1285. "_showComment_",
  1286. smalltalk.method({
  1287. selector: "showComment:",
  1288. fn: function (aBoolean){
  1289. var self=this;
  1290. return smalltalk.withContext(function($ctx1) { self["@showComment"]=aBoolean;
  1291. _st(_st(self)._announcer())._announce_(_st((smalltalk.HLShowCommentToggled || HLShowCommentToggled))._new());
  1292. return self}, function($ctx1) {$ctx1.fill(self,"showComment:",{aBoolean:aBoolean}, smalltalk.HLBrowserModel)})},
  1293. messageSends: ["announce:", "new", "announcer"]}),
  1294. smalltalk.HLBrowserModel);
  1295. smalltalk.addMethod(
  1296. "_showInstance",
  1297. smalltalk.method({
  1298. selector: "showInstance",
  1299. fn: function (){
  1300. var self=this;
  1301. return smalltalk.withContext(function($ctx1) { var $2,$1;
  1302. $2=self["@showInstance"];
  1303. if(($receiver = $2) == nil || $receiver == undefined){
  1304. $1=true;
  1305. } else {
  1306. $1=$2;
  1307. };
  1308. return $1;
  1309. }, function($ctx1) {$ctx1.fill(self,"showInstance",{}, smalltalk.HLBrowserModel)})},
  1310. messageSends: ["ifNil:"]}),
  1311. smalltalk.HLBrowserModel);
  1312. smalltalk.addMethod(
  1313. "_showInstance_",
  1314. smalltalk.method({
  1315. selector: "showInstance:",
  1316. fn: function (aBoolean){
  1317. var self=this;
  1318. return smalltalk.withContext(function($ctx1) { var $1,$2,$4,$3;
  1319. self["@showInstance"]=aBoolean;
  1320. $1=_st(self)._selectedClass();
  1321. if(($receiver = $1) == nil || $receiver == undefined){
  1322. $1;
  1323. } else {
  1324. $2=self;
  1325. $4=aBoolean;
  1326. if(smalltalk.assert($4)){
  1327. $3=_st(_st(self)._selectedClass())._theNonMetaClass();
  1328. } else {
  1329. $3=_st(_st(self)._selectedClass())._theMetaClass();
  1330. };
  1331. _st($2)._selectedClass_($3);
  1332. };
  1333. _st(_st(self)._announcer())._announce_(_st((smalltalk.HLShowInstanceToggled || HLShowInstanceToggled))._new());
  1334. return self}, function($ctx1) {$ctx1.fill(self,"showInstance:",{aBoolean:aBoolean}, smalltalk.HLBrowserModel)})},
  1335. messageSends: ["ifNotNil:", "selectedClass:", "ifTrue:ifFalse:", "theNonMetaClass", "selectedClass", "theMetaClass", "announce:", "new", "announcer"]}),
  1336. smalltalk.HLBrowserModel);
  1337. smalltalk.addMethod(
  1338. "_on_",
  1339. smalltalk.method({
  1340. selector: "on:",
  1341. fn: function (anEnvironment){
  1342. var self=this;
  1343. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  1344. $2=_st(self)._new();
  1345. _st($2)._environment_(anEnvironment);
  1346. $3=_st($2)._yourself();
  1347. $1=$3;
  1348. return $1;
  1349. }, function($ctx1) {$ctx1.fill(self,"on:",{anEnvironment:anEnvironment}, smalltalk.HLBrowserModel.klass)})},
  1350. messageSends: ["environment:", "new", "yourself"]}),
  1351. smalltalk.HLBrowserModel.klass);
  1352. smalltalk.addClass('HLBrowserSourceWidget', smalltalk.HLWidget, ['model', 'codeWidget'], 'Helios-Browser');
  1353. smalltalk.addMethod(
  1354. "_codeWidget",
  1355. smalltalk.method({
  1356. selector: "codeWidget",
  1357. fn: function (){
  1358. var self=this;
  1359. return smalltalk.withContext(function($ctx1) { var $2,$1;
  1360. $2=self["@codeWidget"];
  1361. if(($receiver = $2) == nil || $receiver == undefined){
  1362. self["@codeWidget"]=_st((smalltalk.HLCodeWidget || HLCodeWidget))._new();
  1363. $1=self["@codeWidget"];
  1364. } else {
  1365. $1=$2;
  1366. };
  1367. return $1;
  1368. }, function($ctx1) {$ctx1.fill(self,"codeWidget",{}, smalltalk.HLBrowserSourceWidget)})},
  1369. messageSends: ["ifNil:", "new"]}),
  1370. smalltalk.HLBrowserSourceWidget);
  1371. smalltalk.addMethod(
  1372. "_contents",
  1373. smalltalk.method({
  1374. selector: "contents",
  1375. fn: function (){
  1376. var self=this;
  1377. return smalltalk.withContext(function($ctx1) { var $1;
  1378. $1=_st(_st(self)._sourceArea())._contents();
  1379. return $1;
  1380. }, function($ctx1) {$ctx1.fill(self,"contents",{}, smalltalk.HLBrowserSourceWidget)})},
  1381. messageSends: ["contents", "sourceArea"]}),
  1382. smalltalk.HLBrowserSourceWidget);
  1383. smalltalk.addMethod(
  1384. "_contents_",
  1385. smalltalk.method({
  1386. selector: "contents:",
  1387. fn: function (aString){
  1388. var self=this;
  1389. return smalltalk.withContext(function($ctx1) { _st(_st(self)._codeWidget())._contents_(aString);
  1390. return self}, function($ctx1) {$ctx1.fill(self,"contents:",{aString:aString}, smalltalk.HLBrowserSourceWidget)})},
  1391. messageSends: ["contents:", "codeWidget"]}),
  1392. smalltalk.HLBrowserSourceWidget);
  1393. smalltalk.addMethod(
  1394. "_model",
  1395. smalltalk.method({
  1396. selector: "model",
  1397. fn: function (){
  1398. var self=this;
  1399. return smalltalk.withContext(function($ctx1) { var $1;
  1400. $1=self["@model"];
  1401. return $1;
  1402. }, function($ctx1) {$ctx1.fill(self,"model",{}, smalltalk.HLBrowserSourceWidget)})},
  1403. messageSends: []}),
  1404. smalltalk.HLBrowserSourceWidget);
  1405. smalltalk.addMethod(
  1406. "_model_",
  1407. smalltalk.method({
  1408. selector: "model:",
  1409. fn: function (aBrowserModel){
  1410. var self=this;
  1411. return smalltalk.withContext(function($ctx1) { self["@model"]=aBrowserModel;
  1412. _st(self)._observeModel();
  1413. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aBrowserModel:aBrowserModel}, smalltalk.HLBrowserSourceWidget)})},
  1414. messageSends: ["observeModel"]}),
  1415. smalltalk.HLBrowserSourceWidget);
  1416. smalltalk.addMethod(
  1417. "_observeModel",
  1418. smalltalk.method({
  1419. selector: "observeModel",
  1420. fn: function (){
  1421. var self=this;
  1422. return smalltalk.withContext(function($ctx1) { _st(_st(_st(self)._model())._announcer())._on_do_((smalltalk.HLMethodSelected || HLMethodSelected),(function(ann){
  1423. return smalltalk.withContext(function($ctx2) { return _st(self)._onMethodSelected_(_st(ann)._item());
  1424. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  1425. _st(_st(_st(self)._model())._announcer())._on_do_((smalltalk.HLClassSelected || HLClassSelected),(function(ann){
  1426. return smalltalk.withContext(function($ctx2) { return _st(self)._onClassSelected_(_st(ann)._item());
  1427. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  1428. _st(_st(_st(self)._model())._announcer())._on_do_((smalltalk.HLProtocolSelected || HLProtocolSelected),(function(ann){
  1429. return smalltalk.withContext(function($ctx2) { return _st(self)._onProtocolSelected_(_st(ann)._item());
  1430. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  1431. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{}, smalltalk.HLBrowserSourceWidget)})},
  1432. messageSends: ["on:do:", "onMethodSelected:", "item", "announcer", "model", "onClassSelected:", "onProtocolSelected:"]}),
  1433. smalltalk.HLBrowserSourceWidget);
  1434. smalltalk.addMethod(
  1435. "_onClassSelected_",
  1436. smalltalk.method({
  1437. selector: "onClassSelected:",
  1438. fn: function (aClass){
  1439. var self=this;
  1440. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1441. $1=aClass;
  1442. if(($receiver = $1) == nil || $receiver == undefined){
  1443. $2=_st(self)._contents_("");
  1444. return $2;
  1445. } else {
  1446. $1;
  1447. };
  1448. _st(self)._contents_(_st(aClass)._definition());
  1449. return self}, function($ctx1) {$ctx1.fill(self,"onClassSelected:",{aClass:aClass}, smalltalk.HLBrowserSourceWidget)})},
  1450. messageSends: ["ifNil:", "contents:", "definition"]}),
  1451. smalltalk.HLBrowserSourceWidget);
  1452. smalltalk.addMethod(
  1453. "_onMethodSelected_",
  1454. smalltalk.method({
  1455. selector: "onMethodSelected:",
  1456. fn: function (aCompiledMethod){
  1457. var self=this;
  1458. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1459. $1=aCompiledMethod;
  1460. if(($receiver = $1) == nil || $receiver == undefined){
  1461. $2=_st(self)._contents_("");
  1462. return $2;
  1463. } else {
  1464. $1;
  1465. };
  1466. _st(self)._contents_(_st(aCompiledMethod)._source());
  1467. return self}, function($ctx1) {$ctx1.fill(self,"onMethodSelected:",{aCompiledMethod:aCompiledMethod}, smalltalk.HLBrowserSourceWidget)})},
  1468. messageSends: ["ifNil:", "contents:", "source"]}),
  1469. smalltalk.HLBrowserSourceWidget);
  1470. smalltalk.addMethod(
  1471. "_onProtocolSelected_",
  1472. smalltalk.method({
  1473. selector: "onProtocolSelected:",
  1474. fn: function (aString){
  1475. var self=this;
  1476. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1477. $1=_st(_st(self)._model())._selectedClass();
  1478. if(($receiver = $1) == nil || $receiver == undefined){
  1479. $2=_st(self)._contents_("");
  1480. return $2;
  1481. } else {
  1482. $1;
  1483. };
  1484. _st(self)._contents_(_st(_st(_st(self)._model())._selectedClass())._definition());
  1485. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolSelected:",{aString:aString}, smalltalk.HLBrowserSourceWidget)})},
  1486. messageSends: ["ifNil:", "contents:", "selectedClass", "model", "definition"]}),
  1487. smalltalk.HLBrowserSourceWidget);
  1488. smalltalk.addMethod(
  1489. "_renderContentOn_",
  1490. smalltalk.method({
  1491. selector: "renderContentOn:",
  1492. fn: function (html){
  1493. var self=this;
  1494. return smalltalk.withContext(function($ctx1) { _st(_st(self)._codeWidget())._renderOn_(html);
  1495. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html}, smalltalk.HLBrowserSourceWidget)})},
  1496. messageSends: ["renderOn:", "codeWidget"]}),
  1497. smalltalk.HLBrowserSourceWidget);
  1498. smalltalk.addMethod(
  1499. "_on_",
  1500. smalltalk.method({
  1501. selector: "on:",
  1502. fn: function (aBrowserModel){
  1503. var self=this;
  1504. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  1505. $2=_st(self)._new();
  1506. _st($2)._model_(aBrowserModel);
  1507. $3=_st($2)._yourself();
  1508. $1=$3;
  1509. return $1;
  1510. }, function($ctx1) {$ctx1.fill(self,"on:",{aBrowserModel:aBrowserModel}, smalltalk.HLBrowserSourceWidget.klass)})},
  1511. messageSends: ["model:", "new", "yourself"]}),
  1512. smalltalk.HLBrowserSourceWidget.klass);
  1513. smalltalk.addClass('HLClassCache', smalltalk.Object, ['class', 'parentCache', 'overrideCache', 'overriddenCache'], 'Helios-Browser');
  1514. smalltalk.addMethod(
  1515. "_isOverridden_",
  1516. smalltalk.method({
  1517. selector: "isOverridden:",
  1518. fn: function (aMethod){
  1519. var self=this;
  1520. return smalltalk.withContext(function($ctx1) { var $1;
  1521. $1=_st(_st(self)._overriddenCache())._at_ifAbsentPut_(_st(aMethod)._selector(),(function(){
  1522. return smalltalk.withContext(function($ctx2) { return _st(aMethod)._isOverridden();
  1523. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1524. return $1;
  1525. }, function($ctx1) {$ctx1.fill(self,"isOverridden:",{aMethod:aMethod}, smalltalk.HLClassCache)})},
  1526. messageSends: ["at:ifAbsentPut:", "selector", "isOverridden", "overriddenCache"]}),
  1527. smalltalk.HLClassCache);
  1528. smalltalk.addMethod(
  1529. "_isOverride_",
  1530. smalltalk.method({
  1531. selector: "isOverride:",
  1532. fn: function (aMethod){
  1533. var self=this;
  1534. return smalltalk.withContext(function($ctx1) { var $1;
  1535. $1=_st(_st(self)._overrideCache())._at_ifAbsentPut_(_st(aMethod)._selector(),(function(){
  1536. return smalltalk.withContext(function($ctx2) { return _st(aMethod)._isOverride();
  1537. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1538. return $1;
  1539. }, function($ctx1) {$ctx1.fill(self,"isOverride:",{aMethod:aMethod}, smalltalk.HLClassCache)})},
  1540. messageSends: ["at:ifAbsentPut:", "selector", "isOverride", "overrideCache"]}),
  1541. smalltalk.HLClassCache);
  1542. smalltalk.addMethod(
  1543. "_overriddenCache",
  1544. smalltalk.method({
  1545. selector: "overriddenCache",
  1546. fn: function (){
  1547. var self=this;
  1548. return smalltalk.withContext(function($ctx1) { var $2,$1;
  1549. $2=self["@overriddenCache"];
  1550. if(($receiver = $2) == nil || $receiver == undefined){
  1551. self["@overriddenCache"]=_st((smalltalk.HashedCollection || HashedCollection))._new();
  1552. $1=self["@overriddenCache"];
  1553. } else {
  1554. $1=$2;
  1555. };
  1556. return $1;
  1557. }, function($ctx1) {$ctx1.fill(self,"overriddenCache",{}, smalltalk.HLClassCache)})},
  1558. messageSends: ["ifNil:", "new"]}),
  1559. smalltalk.HLClassCache);
  1560. smalltalk.addMethod(
  1561. "_overrideCache",
  1562. smalltalk.method({
  1563. selector: "overrideCache",
  1564. fn: function (){
  1565. var self=this;
  1566. return smalltalk.withContext(function($ctx1) { var $2,$1;
  1567. $2=self["@overrideCache"];
  1568. if(($receiver = $2) == nil || $receiver == undefined){
  1569. self["@overrideCache"]=_st((smalltalk.HashedCollection || HashedCollection))._new();
  1570. $1=self["@overrideCache"];
  1571. } else {
  1572. $1=$2;
  1573. };
  1574. return $1;
  1575. }, function($ctx1) {$ctx1.fill(self,"overrideCache",{}, smalltalk.HLClassCache)})},
  1576. messageSends: ["ifNil:", "new"]}),
  1577. smalltalk.HLClassCache);
  1578. smalltalk.addMethod(
  1579. "_parentCache",
  1580. smalltalk.method({
  1581. selector: "parentCache",
  1582. fn: function (){
  1583. var self=this;
  1584. return smalltalk.withContext(function($ctx1) { var $1;
  1585. $1=self["@parentCache"];
  1586. return $1;
  1587. }, function($ctx1) {$ctx1.fill(self,"parentCache",{}, smalltalk.HLClassCache)})},
  1588. messageSends: []}),
  1589. smalltalk.HLClassCache);
  1590. smalltalk.addMethod(
  1591. "_parentCache_",
  1592. smalltalk.method({
  1593. selector: "parentCache:",
  1594. fn: function (aCache){
  1595. var self=this;
  1596. return smalltalk.withContext(function($ctx1) { self["@parentCache"]=aCache;
  1597. return self}, function($ctx1) {$ctx1.fill(self,"parentCache:",{aCache:aCache}, smalltalk.HLClassCache)})},
  1598. messageSends: []}),
  1599. smalltalk.HLClassCache);
  1600. smalltalk.addMethod(
  1601. "_theClass",
  1602. smalltalk.method({
  1603. selector: "theClass",
  1604. fn: function (){
  1605. var self=this;
  1606. return smalltalk.withContext(function($ctx1) { var $1;
  1607. $1=self["@class"];
  1608. return $1;
  1609. }, function($ctx1) {$ctx1.fill(self,"theClass",{}, smalltalk.HLClassCache)})},
  1610. messageSends: []}),
  1611. smalltalk.HLClassCache);
  1612. smalltalk.addMethod(
  1613. "_theClass_",
  1614. smalltalk.method({
  1615. selector: "theClass:",
  1616. fn: function (aClass){
  1617. var self=this;
  1618. return smalltalk.withContext(function($ctx1) { self["@class"]=aClass;
  1619. return self}, function($ctx1) {$ctx1.fill(self,"theClass:",{aClass:aClass}, smalltalk.HLClassCache)})},
  1620. messageSends: []}),
  1621. smalltalk.HLClassCache);
  1622. smalltalk.addMethod(
  1623. "_on_parentCache_",
  1624. smalltalk.method({
  1625. selector: "on:parentCache:",
  1626. fn: function (aClass,aCache){
  1627. var self=this;
  1628. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  1629. $2=_st(self)._new();
  1630. _st($2)._theClass_(aClass);
  1631. _st($2)._parentCache_(aCache);
  1632. $3=_st($2)._yourself();
  1633. $1=$3;
  1634. return $1;
  1635. }, function($ctx1) {$ctx1.fill(self,"on:parentCache:",{aClass:aClass,aCache:aCache}, smalltalk.HLClassCache.klass)})},
  1636. messageSends: ["theClass:", "new", "parentCache:", "yourself"]}),
  1637. smalltalk.HLClassCache.klass);
  1638. smalltalk.addClass('HLSelectorsCache', smalltalk.Object, ['classesCache'], 'Helios-Browser');
  1639. smalltalk.addMethod(
  1640. "_cacheFor_",
  1641. smalltalk.method({
  1642. selector: "cacheFor:",
  1643. fn: function (aClass){
  1644. var self=this;
  1645. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1646. $1=aClass;
  1647. if(($receiver = $1) == nil || $receiver == undefined){
  1648. return nil;
  1649. } else {
  1650. $1;
  1651. };
  1652. $2=_st(_st(self)._classesCache())._at_ifAbsentPut_(_st(aClass)._name(),(function(){
  1653. return smalltalk.withContext(function($ctx2) { return _st(self)._newCacheFor_(aClass);
  1654. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1655. return $2;
  1656. }, function($ctx1) {$ctx1.fill(self,"cacheFor:",{aClass:aClass}, smalltalk.HLSelectorsCache)})},
  1657. messageSends: ["ifNil:", "at:ifAbsentPut:", "name", "newCacheFor:", "classesCache"]}),
  1658. smalltalk.HLSelectorsCache);
  1659. smalltalk.addMethod(
  1660. "_classesCache",
  1661. smalltalk.method({
  1662. selector: "classesCache",
  1663. fn: function (){
  1664. var self=this;
  1665. return smalltalk.withContext(function($ctx1) { var $2,$1;
  1666. $2=self["@classesCache"];
  1667. if(($receiver = $2) == nil || $receiver == undefined){
  1668. self["@classesCache"]=_st((smalltalk.HashedCollection || HashedCollection))._new();
  1669. $1=self["@classesCache"];
  1670. } else {
  1671. $1=$2;
  1672. };
  1673. return $1;
  1674. }, function($ctx1) {$ctx1.fill(self,"classesCache",{}, smalltalk.HLSelectorsCache)})},
  1675. messageSends: ["ifNil:", "new"]}),
  1676. smalltalk.HLSelectorsCache);
  1677. smalltalk.addMethod(
  1678. "_isOverridden_",
  1679. smalltalk.method({
  1680. selector: "isOverridden:",
  1681. fn: function (aMethod){
  1682. var self=this;
  1683. return smalltalk.withContext(function($ctx1) { var $1;
  1684. $1=_st(_st(self)._cacheFor_(_st(aMethod)._methodClass()))._isOverridden_(aMethod);
  1685. return $1;
  1686. }, function($ctx1) {$ctx1.fill(self,"isOverridden:",{aMethod:aMethod}, smalltalk.HLSelectorsCache)})},
  1687. messageSends: ["isOverridden:", "cacheFor:", "methodClass"]}),
  1688. smalltalk.HLSelectorsCache);
  1689. smalltalk.addMethod(
  1690. "_isOverride_",
  1691. smalltalk.method({
  1692. selector: "isOverride:",
  1693. fn: function (aMethod){
  1694. var self=this;
  1695. return smalltalk.withContext(function($ctx1) { var $1;
  1696. $1=_st(_st(self)._cacheFor_(_st(aMethod)._methodClass()))._isOverride_(aMethod);
  1697. return $1;
  1698. }, function($ctx1) {$ctx1.fill(self,"isOverride:",{aMethod:aMethod}, smalltalk.HLSelectorsCache)})},
  1699. messageSends: ["isOverride:", "cacheFor:", "methodClass"]}),
  1700. smalltalk.HLSelectorsCache);
  1701. smalltalk.addMethod(
  1702. "_newCacheFor_",
  1703. smalltalk.method({
  1704. selector: "newCacheFor:",
  1705. fn: function (aClass){
  1706. var self=this;
  1707. return smalltalk.withContext(function($ctx1) { var $1;
  1708. $1=_st((smalltalk.HLClassCache || HLClassCache))._on_parentCache_(aClass,_st(self)._cacheFor_(_st(aClass)._superclass()));
  1709. return $1;
  1710. }, function($ctx1) {$ctx1.fill(self,"newCacheFor:",{aClass:aClass}, smalltalk.HLSelectorsCache)})},
  1711. messageSends: ["on:parentCache:", "cacheFor:", "superclass"]}),
  1712. smalltalk.HLSelectorsCache);
  1713. smalltalk.HLSelectorsCache.klass.iVarNames = ['current'];
  1714. smalltalk.addMethod(
  1715. "_current",
  1716. smalltalk.method({
  1717. selector: "current",
  1718. fn: function (){
  1719. var self=this;
  1720. return smalltalk.withContext(function($ctx1) { var $2,$1;
  1721. $2=self["@current"];
  1722. if(($receiver = $2) == nil || $receiver == undefined){
  1723. self["@current"]=smalltalk.Object.klass.fn.prototype._new.apply(_st(self), []);
  1724. $1=self["@current"];
  1725. } else {
  1726. $1=$2;
  1727. };
  1728. return $1;
  1729. }, function($ctx1) {$ctx1.fill(self,"current",{}, smalltalk.HLSelectorsCache.klass)})},
  1730. messageSends: ["ifNil:", "new"]}),
  1731. smalltalk.HLSelectorsCache.klass);
  1732. smalltalk.addMethod(
  1733. "_flush",
  1734. smalltalk.method({
  1735. selector: "flush",
  1736. fn: function (){
  1737. var self=this;
  1738. return smalltalk.withContext(function($ctx1) { self["@current"]=nil;
  1739. return self}, function($ctx1) {$ctx1.fill(self,"flush",{}, smalltalk.HLSelectorsCache.klass)})},
  1740. messageSends: []}),
  1741. smalltalk.HLSelectorsCache.klass);
  1742. smalltalk.addMethod(
  1743. "_new",
  1744. smalltalk.method({
  1745. selector: "new",
  1746. fn: function (){
  1747. var self=this;
  1748. return smalltalk.withContext(function($ctx1) { _st(self)._shouldNotImplement();
  1749. return self}, function($ctx1) {$ctx1.fill(self,"new",{}, smalltalk.HLSelectorsCache.klass)})},
  1750. messageSends: ["shouldNotImplement"]}),
  1751. smalltalk.HLSelectorsCache.klass);
  1752. smalltalk.addMethod(
  1753. "_isOverridden",
  1754. smalltalk.method({
  1755. selector: "isOverridden",
  1756. fn: function (){
  1757. var self=this;
  1758. var selector;
  1759. return smalltalk.withContext(function($ctx1) { var $1;
  1760. var $early={};
  1761. try {
  1762. selector=_st(self)._selector();
  1763. _st(_st(self)._methodClass())._allSubclassesDo_((function(each){
  1764. return smalltalk.withContext(function($ctx2) { $1=_st(each)._includesSelector_(selector);
  1765. if(smalltalk.assert($1)){
  1766. throw $early=[true];
  1767. };
  1768. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  1769. return false;
  1770. }
  1771. catch(e) {if(e===$early)return e[0]; throw e}
  1772. }, function($ctx1) {$ctx1.fill(self,"isOverridden",{selector:selector}, smalltalk.CompiledMethod)})},
  1773. messageSends: ["selector", "allSubclassesDo:", "ifTrue:", "includesSelector:", "methodClass"]}),
  1774. smalltalk.CompiledMethod);
  1775. smalltalk.addMethod(
  1776. "_isOverride",
  1777. smalltalk.method({
  1778. selector: "isOverride",
  1779. fn: function (){
  1780. var self=this;
  1781. var superclass;
  1782. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1783. superclass=_st(_st(self)._methodClass())._superclass();
  1784. $1=superclass;
  1785. if(($receiver = $1) == nil || $receiver == undefined){
  1786. return false;
  1787. } else {
  1788. $1;
  1789. };
  1790. $2=_st(_st(_st(_st(self)._methodClass())._superclass())._lookupSelector_(_st(self)._selector()))._isNil();
  1791. return $2;
  1792. }, function($ctx1) {$ctx1.fill(self,"isOverride",{superclass:superclass}, smalltalk.CompiledMethod)})},
  1793. messageSends: ["superclass", "methodClass", "ifNil:", "isNil", "lookupSelector:", "selector"]}),
  1794. smalltalk.CompiledMethod);