1
0

Helios-Browser.deploy.js 103 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842
  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. fn: function (){
  7. var self=this;
  8. return smalltalk.withContext(function($ctx1) {
  9. return true;
  10. }, function($ctx1) {$ctx1.fill(self,"canHaveFocus",{},smalltalk.HLBrowser)})},
  11. messageSends: []}),
  12. smalltalk.HLBrowser);
  13. smalltalk.addMethod(
  14. smalltalk.method({
  15. selector: "classesListWidget",
  16. fn: function (){
  17. var self=this;
  18. function $HLClassesListWidget(){return smalltalk.HLClassesListWidget||(typeof HLClassesListWidget=="undefined"?nil:HLClassesListWidget)}
  19. return smalltalk.withContext(function($ctx1) {
  20. var $2,$1;
  21. $2=self["@classesListWidget"];
  22. if(($receiver = $2) == nil || $receiver == undefined){
  23. self["@classesListWidget"]=_st($HLClassesListWidget())._on_(_st(self)._model());
  24. self["@classesListWidget"];
  25. $1=_st(self["@classesListWidget"])._next_(_st(self)._protocolsListWidget());
  26. } else {
  27. $1=$2;
  28. };
  29. return $1;
  30. }, function($ctx1) {$ctx1.fill(self,"classesListWidget",{},smalltalk.HLBrowser)})},
  31. messageSends: ["ifNil:", "on:", "model", "next:", "protocolsListWidget"]}),
  32. smalltalk.HLBrowser);
  33. smalltalk.addMethod(
  34. smalltalk.method({
  35. selector: "environment",
  36. fn: function (){
  37. var self=this;
  38. return smalltalk.withContext(function($ctx1) {
  39. var $1;
  40. $1=_st(_st(self)._model())._environment();
  41. return $1;
  42. }, function($ctx1) {$ctx1.fill(self,"environment",{},smalltalk.HLBrowser)})},
  43. messageSends: ["environment", "model"]}),
  44. smalltalk.HLBrowser);
  45. smalltalk.addMethod(
  46. smalltalk.method({
  47. selector: "focus",
  48. fn: function (){
  49. var self=this;
  50. return smalltalk.withContext(function($ctx1) {
  51. var $1;
  52. $1=_st(_st(self)._packagesListWidget())._focus();
  53. return $1;
  54. }, function($ctx1) {$ctx1.fill(self,"focus",{},smalltalk.HLBrowser)})},
  55. messageSends: ["focus", "packagesListWidget"]}),
  56. smalltalk.HLBrowser);
  57. smalltalk.addMethod(
  58. smalltalk.method({
  59. selector: "methodsListWidget",
  60. fn: function (){
  61. var self=this;
  62. function $HLMethodsListWidget(){return smalltalk.HLMethodsListWidget||(typeof HLMethodsListWidget=="undefined"?nil:HLMethodsListWidget)}
  63. return smalltalk.withContext(function($ctx1) {
  64. var $2,$1;
  65. $2=self["@methodsListWidget"];
  66. if(($receiver = $2) == nil || $receiver == undefined){
  67. self["@methodsListWidget"]=_st($HLMethodsListWidget())._on_(_st(self)._model());
  68. self["@methodsListWidget"];
  69. $1=_st(self["@methodsListWidget"])._next_(_st(self)._sourceWidget());
  70. } else {
  71. $1=$2;
  72. };
  73. return $1;
  74. }, function($ctx1) {$ctx1.fill(self,"methodsListWidget",{},smalltalk.HLBrowser)})},
  75. messageSends: ["ifNil:", "on:", "model", "next:", "sourceWidget"]}),
  76. smalltalk.HLBrowser);
  77. smalltalk.addMethod(
  78. smalltalk.method({
  79. selector: "model",
  80. fn: function (){
  81. var self=this;
  82. function $HLBrowserModel(){return smalltalk.HLBrowserModel||(typeof HLBrowserModel=="undefined"?nil:HLBrowserModel)}
  83. return smalltalk.withContext(function($ctx1) {
  84. var $2,$1;
  85. $2=self["@model"];
  86. if(($receiver = $2) == nil || $receiver == undefined){
  87. self["@model"]=_st($HLBrowserModel())._new();
  88. $1=self["@model"];
  89. } else {
  90. $1=$2;
  91. };
  92. return $1;
  93. }, function($ctx1) {$ctx1.fill(self,"model",{},smalltalk.HLBrowser)})},
  94. messageSends: ["ifNil:", "new"]}),
  95. smalltalk.HLBrowser);
  96. smalltalk.addMethod(
  97. smalltalk.method({
  98. selector: "model:",
  99. fn: function (aModel){
  100. var self=this;
  101. return smalltalk.withContext(function($ctx1) {
  102. self["@model"]=aModel;
  103. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel},smalltalk.HLBrowser)})},
  104. messageSends: []}),
  105. smalltalk.HLBrowser);
  106. smalltalk.addMethod(
  107. smalltalk.method({
  108. selector: "packagesListWidget",
  109. fn: function (){
  110. var self=this;
  111. function $HLPackagesListWidget(){return smalltalk.HLPackagesListWidget||(typeof HLPackagesListWidget=="undefined"?nil:HLPackagesListWidget)}
  112. return smalltalk.withContext(function($ctx1) {
  113. var $2,$1;
  114. $2=self["@packagesListWidget"];
  115. if(($receiver = $2) == nil || $receiver == undefined){
  116. self["@packagesListWidget"]=_st($HLPackagesListWidget())._on_(_st(self)._model());
  117. self["@packagesListWidget"];
  118. $1=_st(self["@packagesListWidget"])._next_(_st(self)._classesListWidget());
  119. } else {
  120. $1=$2;
  121. };
  122. return $1;
  123. }, function($ctx1) {$ctx1.fill(self,"packagesListWidget",{},smalltalk.HLBrowser)})},
  124. messageSends: ["ifNil:", "on:", "model", "next:", "classesListWidget"]}),
  125. smalltalk.HLBrowser);
  126. smalltalk.addMethod(
  127. smalltalk.method({
  128. selector: "protocolsListWidget",
  129. fn: function (){
  130. var self=this;
  131. function $HLProtocolsListWidget(){return smalltalk.HLProtocolsListWidget||(typeof HLProtocolsListWidget=="undefined"?nil:HLProtocolsListWidget)}
  132. return smalltalk.withContext(function($ctx1) {
  133. var $2,$1;
  134. $2=self["@protocolsListWidget"];
  135. if(($receiver = $2) == nil || $receiver == undefined){
  136. self["@protocolsListWidget"]=_st($HLProtocolsListWidget())._on_(_st(self)._model());
  137. self["@protocolsListWidget"];
  138. $1=_st(self["@protocolsListWidget"])._next_(_st(self)._methodsListWidget());
  139. } else {
  140. $1=$2;
  141. };
  142. return $1;
  143. }, function($ctx1) {$ctx1.fill(self,"protocolsListWidget",{},smalltalk.HLBrowser)})},
  144. messageSends: ["ifNil:", "on:", "model", "next:", "methodsListWidget"]}),
  145. smalltalk.HLBrowser);
  146. smalltalk.addMethod(
  147. smalltalk.method({
  148. selector: "registerBindingsOn:",
  149. fn: function (aBindingGroup){
  150. var self=this;
  151. function $HLToolCommand(){return smalltalk.HLToolCommand||(typeof HLToolCommand=="undefined"?nil:HLToolCommand)}
  152. return smalltalk.withContext(function($ctx1) {
  153. _st($HLToolCommand())._registerConcreteClassesOn_for_(aBindingGroup,_st(self)._model());
  154. return self}, function($ctx1) {$ctx1.fill(self,"registerBindingsOn:",{aBindingGroup:aBindingGroup},smalltalk.HLBrowser)})},
  155. messageSends: ["registerConcreteClassesOn:for:", "model"]}),
  156. smalltalk.HLBrowser);
  157. smalltalk.addMethod(
  158. smalltalk.method({
  159. selector: "renderContentOn:",
  160. fn: function (html){
  161. var self=this;
  162. function $HLVerticalSplitter(){return smalltalk.HLVerticalSplitter||(typeof HLVerticalSplitter=="undefined"?nil:HLVerticalSplitter)}
  163. function $HLHorizontalSplitter(){return smalltalk.HLHorizontalSplitter||(typeof HLHorizontalSplitter=="undefined"?nil:HLHorizontalSplitter)}
  164. function $HLContainer(){return smalltalk.HLContainer||(typeof HLContainer=="undefined"?nil:HLContainer)}
  165. return smalltalk.withContext(function($ctx1) {
  166. _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())));
  167. _st(_st(self)._packagesListWidget())._focus();
  168. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLBrowser)})},
  169. messageSends: ["with:", "with:with:", "packagesListWidget", "classesListWidget", "protocolsListWidget", "methodsListWidget", "sourceWidget", "focus"]}),
  170. smalltalk.HLBrowser);
  171. smalltalk.addMethod(
  172. smalltalk.method({
  173. selector: "sourceWidget",
  174. fn: function (){
  175. var self=this;
  176. function $HLBrowserBottomWidget(){return smalltalk.HLBrowserBottomWidget||(typeof HLBrowserBottomWidget=="undefined"?nil:HLBrowserBottomWidget)}
  177. return smalltalk.withContext(function($ctx1) {
  178. var $2,$3,$4,$1;
  179. $2=self["@sourceWidget"];
  180. if(($receiver = $2) == nil || $receiver == undefined){
  181. $3=_st($HLBrowserBottomWidget())._new();
  182. _st($3)._model_(_st(self)._model());
  183. $4=_st($3)._yourself();
  184. self["@sourceWidget"]=$4;
  185. $1=self["@sourceWidget"];
  186. } else {
  187. $1=$2;
  188. };
  189. return $1;
  190. }, function($ctx1) {$ctx1.fill(self,"sourceWidget",{},smalltalk.HLBrowser)})},
  191. messageSends: ["ifNil:", "model:", "model", "new", "yourself"]}),
  192. smalltalk.HLBrowser);
  193. smalltalk.addMethod(
  194. smalltalk.method({
  195. selector: "unregister",
  196. fn: function (){
  197. var self=this;
  198. return smalltalk.withContext(function($ctx1) {
  199. smalltalk.HLWidget.fn.prototype._unregister.apply(_st(self), []);
  200. _st([_st(self)._packagesListWidget(),_st(self)._classesListWidget(),_st(self)._protocolsListWidget(),_st(self)._methodsListWidget(),_st(self)._sourceWidget()])._do_((function(each){
  201. return smalltalk.withContext(function($ctx2) {
  202. return _st(each)._unregister();
  203. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  204. return self}, function($ctx1) {$ctx1.fill(self,"unregister",{},smalltalk.HLBrowser)})},
  205. messageSends: ["unregister", "do:", "packagesListWidget", "classesListWidget", "protocolsListWidget", "methodsListWidget", "sourceWidget"]}),
  206. smalltalk.HLBrowser);
  207. smalltalk.HLBrowser.klass.iVarNames = ['nextId'];
  208. smalltalk.addMethod(
  209. smalltalk.method({
  210. selector: "canBeOpenAsTab",
  211. fn: function (){
  212. var self=this;
  213. return smalltalk.withContext(function($ctx1) {
  214. return true;
  215. }, function($ctx1) {$ctx1.fill(self,"canBeOpenAsTab",{},smalltalk.HLBrowser.klass)})},
  216. messageSends: []}),
  217. smalltalk.HLBrowser.klass);
  218. smalltalk.addMethod(
  219. smalltalk.method({
  220. selector: "nextId",
  221. fn: function (){
  222. var self=this;
  223. return smalltalk.withContext(function($ctx1) {
  224. var $1,$2;
  225. $1=self["@nextId"];
  226. if(($receiver = $1) == nil || $receiver == undefined){
  227. self["@nextId"]=(0);
  228. self["@nextId"];
  229. } else {
  230. $1;
  231. };
  232. $2=_st("browser_").__comma(_st(_st(self["@nextId"]).__plus((1)))._asString());
  233. return $2;
  234. }, function($ctx1) {$ctx1.fill(self,"nextId",{},smalltalk.HLBrowser.klass)})},
  235. messageSends: ["ifNil:", ",", "asString", "+"]}),
  236. smalltalk.HLBrowser.klass);
  237. smalltalk.addMethod(
  238. smalltalk.method({
  239. selector: "tabLabel",
  240. fn: function (){
  241. var self=this;
  242. return smalltalk.withContext(function($ctx1) {
  243. return "Browser";
  244. }, function($ctx1) {$ctx1.fill(self,"tabLabel",{},smalltalk.HLBrowser.klass)})},
  245. messageSends: []}),
  246. smalltalk.HLBrowser.klass);
  247. smalltalk.addMethod(
  248. smalltalk.method({
  249. selector: "tabPriority",
  250. fn: function (){
  251. var self=this;
  252. return smalltalk.withContext(function($ctx1) {
  253. var $1;
  254. $1=(0);
  255. return $1;
  256. }, function($ctx1) {$ctx1.fill(self,"tabPriority",{},smalltalk.HLBrowser.klass)})},
  257. messageSends: []}),
  258. smalltalk.HLBrowser.klass);
  259. smalltalk.addClass('HLBrowserBottomWidget', smalltalk.HLWidget, ['model', 'codeWidget', 'documentationWidget'], 'Helios-Browser');
  260. smalltalk.addMethod(
  261. smalltalk.method({
  262. selector: "canHaveFocus",
  263. fn: function (){
  264. var self=this;
  265. return smalltalk.withContext(function($ctx1) {
  266. return true;
  267. }, function($ctx1) {$ctx1.fill(self,"canHaveFocus",{},smalltalk.HLBrowserBottomWidget)})},
  268. messageSends: []}),
  269. smalltalk.HLBrowserBottomWidget);
  270. smalltalk.addMethod(
  271. smalltalk.method({
  272. selector: "codeWidget",
  273. fn: function (){
  274. var self=this;
  275. function $HLBrowserCodeWidget(){return smalltalk.HLBrowserCodeWidget||(typeof HLBrowserCodeWidget=="undefined"?nil:HLBrowserCodeWidget)}
  276. return smalltalk.withContext(function($ctx1) {
  277. var $2,$3,$4,$1;
  278. $2=self["@codeWidget"];
  279. if(($receiver = $2) == nil || $receiver == undefined){
  280. $3=_st($HLBrowserCodeWidget())._new();
  281. _st($3)._browserModel_(_st(self)._model());
  282. $4=_st($3)._yourself();
  283. self["@codeWidget"]=$4;
  284. $1=self["@codeWidget"];
  285. } else {
  286. $1=$2;
  287. };
  288. return $1;
  289. }, function($ctx1) {$ctx1.fill(self,"codeWidget",{},smalltalk.HLBrowserBottomWidget)})},
  290. messageSends: ["ifNil:", "browserModel:", "model", "new", "yourself"]}),
  291. smalltalk.HLBrowserBottomWidget);
  292. smalltalk.addMethod(
  293. smalltalk.method({
  294. selector: "documentationWidget",
  295. fn: function (){
  296. var self=this;
  297. function $HLDocumentationWidget(){return smalltalk.HLDocumentationWidget||(typeof HLDocumentationWidget=="undefined"?nil:HLDocumentationWidget)}
  298. return smalltalk.withContext(function($ctx1) {
  299. var $2,$3,$4,$1;
  300. $2=self["@documentationWidget"];
  301. if(($receiver = $2) == nil || $receiver == undefined){
  302. $3=_st($HLDocumentationWidget())._new();
  303. _st($3)._model_(_st(self)._model());
  304. $4=_st($3)._yourself();
  305. self["@documentationWidget"]=$4;
  306. $1=self["@documentationWidget"];
  307. } else {
  308. $1=$2;
  309. };
  310. return $1;
  311. }, function($ctx1) {$ctx1.fill(self,"documentationWidget",{},smalltalk.HLBrowserBottomWidget)})},
  312. messageSends: ["ifNil:", "model:", "model", "new", "yourself"]}),
  313. smalltalk.HLBrowserBottomWidget);
  314. smalltalk.addMethod(
  315. smalltalk.method({
  316. selector: "focus",
  317. fn: function (){
  318. var self=this;
  319. return smalltalk.withContext(function($ctx1) {
  320. _st(_st(self)._codeWidget())._focus();
  321. return self}, function($ctx1) {$ctx1.fill(self,"focus",{},smalltalk.HLBrowserBottomWidget)})},
  322. messageSends: ["focus", "codeWidget"]}),
  323. smalltalk.HLBrowserBottomWidget);
  324. smalltalk.addMethod(
  325. smalltalk.method({
  326. selector: "model",
  327. fn: function (){
  328. var self=this;
  329. return smalltalk.withContext(function($ctx1) {
  330. var $1;
  331. $1=self["@model"];
  332. return $1;
  333. }, function($ctx1) {$ctx1.fill(self,"model",{},smalltalk.HLBrowserBottomWidget)})},
  334. messageSends: []}),
  335. smalltalk.HLBrowserBottomWidget);
  336. smalltalk.addMethod(
  337. smalltalk.method({
  338. selector: "model:",
  339. fn: function (aModel){
  340. var self=this;
  341. return smalltalk.withContext(function($ctx1) {
  342. self["@model"]=aModel;
  343. _st(self)._observeModel();
  344. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel},smalltalk.HLBrowserBottomWidget)})},
  345. messageSends: ["observeModel"]}),
  346. smalltalk.HLBrowserBottomWidget);
  347. smalltalk.addMethod(
  348. smalltalk.method({
  349. selector: "observeModel",
  350. fn: function (){
  351. var self=this;
  352. function $HLShowInstanceToggled(){return smalltalk.HLShowInstanceToggled||(typeof HLShowInstanceToggled=="undefined"?nil:HLShowInstanceToggled)}
  353. function $HLShowCommentToggled(){return smalltalk.HLShowCommentToggled||(typeof HLShowCommentToggled=="undefined"?nil:HLShowCommentToggled)}
  354. return smalltalk.withContext(function($ctx1) {
  355. var $1,$2;
  356. $1=_st(_st(self)._model())._announcer();
  357. _st($1)._on_send_to_($HLShowInstanceToggled(),"onShowInstanceToggled",self);
  358. $2=_st($1)._on_send_to_($HLShowCommentToggled(),"onShowCommentToggled",self);
  359. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{},smalltalk.HLBrowserBottomWidget)})},
  360. messageSends: ["on:send:to:", "announcer", "model"]}),
  361. smalltalk.HLBrowserBottomWidget);
  362. smalltalk.addMethod(
  363. smalltalk.method({
  364. selector: "onShowCommentToggled",
  365. fn: function (){
  366. var self=this;
  367. return smalltalk.withContext(function($ctx1) {
  368. _st(self)._refresh();
  369. return self}, function($ctx1) {$ctx1.fill(self,"onShowCommentToggled",{},smalltalk.HLBrowserBottomWidget)})},
  370. messageSends: ["refresh"]}),
  371. smalltalk.HLBrowserBottomWidget);
  372. smalltalk.addMethod(
  373. smalltalk.method({
  374. selector: "onShowInstanceToggled",
  375. fn: function (){
  376. var self=this;
  377. return smalltalk.withContext(function($ctx1) {
  378. _st(self)._refresh();
  379. return self}, function($ctx1) {$ctx1.fill(self,"onShowInstanceToggled",{},smalltalk.HLBrowserBottomWidget)})},
  380. messageSends: ["refresh"]}),
  381. smalltalk.HLBrowserBottomWidget);
  382. smalltalk.addMethod(
  383. smalltalk.method({
  384. selector: "previous",
  385. fn: function (){
  386. var self=this;
  387. return smalltalk.withContext(function($ctx1) {
  388. return self}, function($ctx1) {$ctx1.fill(self,"previous",{},smalltalk.HLBrowserBottomWidget)})},
  389. messageSends: []}),
  390. smalltalk.HLBrowserBottomWidget);
  391. smalltalk.addMethod(
  392. smalltalk.method({
  393. selector: "previous:",
  394. fn: function (aWidget){
  395. var self=this;
  396. return smalltalk.withContext(function($ctx1) {
  397. return self}, function($ctx1) {$ctx1.fill(self,"previous:",{aWidget:aWidget},smalltalk.HLBrowserBottomWidget)})},
  398. messageSends: []}),
  399. smalltalk.HLBrowserBottomWidget);
  400. smalltalk.addMethod(
  401. smalltalk.method({
  402. selector: "renderContentOn:",
  403. fn: function (html){
  404. var self=this;
  405. return smalltalk.withContext(function($ctx1) {
  406. var $1;
  407. $1=_st(_st(self)._model())._showComment();
  408. if(smalltalk.assert($1)){
  409. _st(self)._renderPanesOn_(html);
  410. } else {
  411. _st(html)._with_(_st(self)._codeWidget());
  412. };
  413. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLBrowserBottomWidget)})},
  414. messageSends: ["ifTrue:ifFalse:", "renderPanesOn:", "with:", "codeWidget", "showComment", "model"]}),
  415. smalltalk.HLBrowserBottomWidget);
  416. smalltalk.addMethod(
  417. smalltalk.method({
  418. selector: "renderPanesOn:",
  419. fn: function (html){
  420. var self=this;
  421. function $HLVerticalSplitter(){return smalltalk.HLVerticalSplitter||(typeof HLVerticalSplitter=="undefined"?nil:HLVerticalSplitter)}
  422. return smalltalk.withContext(function($ctx1) {
  423. _st(html)._with_(_st($HLVerticalSplitter())._with_with_(_st(self)._codeWidget(),_st(self)._documentationWidget()));
  424. return self}, function($ctx1) {$ctx1.fill(self,"renderPanesOn:",{html:html},smalltalk.HLBrowserBottomWidget)})},
  425. messageSends: ["with:", "with:with:", "codeWidget", "documentationWidget"]}),
  426. smalltalk.HLBrowserBottomWidget);
  427. smalltalk.addClass('HLBrowserModel', smalltalk.HLToolModel, ['showInstance', 'showComment'], 'Helios-Browser');
  428. smalltalk.addMethod(
  429. smalltalk.method({
  430. selector: "focusOnClasses",
  431. fn: function (){
  432. var self=this;
  433. function $HLClassesFocusRequested(){return smalltalk.HLClassesFocusRequested||(typeof HLClassesFocusRequested=="undefined"?nil:HLClassesFocusRequested)}
  434. return smalltalk.withContext(function($ctx1) {
  435. _st(_st(self)._announcer())._announce_(_st($HLClassesFocusRequested())._new());
  436. return self}, function($ctx1) {$ctx1.fill(self,"focusOnClasses",{},smalltalk.HLBrowserModel)})},
  437. messageSends: ["announce:", "new", "announcer"]}),
  438. smalltalk.HLBrowserModel);
  439. smalltalk.addMethod(
  440. smalltalk.method({
  441. selector: "focusOnMethods",
  442. fn: function (){
  443. var self=this;
  444. function $HLMethodsFocusRequested(){return smalltalk.HLMethodsFocusRequested||(typeof HLMethodsFocusRequested=="undefined"?nil:HLMethodsFocusRequested)}
  445. return smalltalk.withContext(function($ctx1) {
  446. _st(_st(self)._announcer())._announce_(_st($HLMethodsFocusRequested())._new());
  447. return self}, function($ctx1) {$ctx1.fill(self,"focusOnMethods",{},smalltalk.HLBrowserModel)})},
  448. messageSends: ["announce:", "new", "announcer"]}),
  449. smalltalk.HLBrowserModel);
  450. smalltalk.addMethod(
  451. smalltalk.method({
  452. selector: "focusOnPackages",
  453. fn: function (){
  454. var self=this;
  455. function $HLPackagesFocusRequested(){return smalltalk.HLPackagesFocusRequested||(typeof HLPackagesFocusRequested=="undefined"?nil:HLPackagesFocusRequested)}
  456. return smalltalk.withContext(function($ctx1) {
  457. _st(_st(self)._announcer())._announce_(_st($HLPackagesFocusRequested())._new());
  458. return self}, function($ctx1) {$ctx1.fill(self,"focusOnPackages",{},smalltalk.HLBrowserModel)})},
  459. messageSends: ["announce:", "new", "announcer"]}),
  460. smalltalk.HLBrowserModel);
  461. smalltalk.addMethod(
  462. smalltalk.method({
  463. selector: "focusOnProtocols",
  464. fn: function (){
  465. var self=this;
  466. function $HLProtocolsFocusRequested(){return smalltalk.HLProtocolsFocusRequested||(typeof HLProtocolsFocusRequested=="undefined"?nil:HLProtocolsFocusRequested)}
  467. return smalltalk.withContext(function($ctx1) {
  468. _st(_st(self)._announcer())._announce_(_st($HLProtocolsFocusRequested())._new());
  469. return self}, function($ctx1) {$ctx1.fill(self,"focusOnProtocols",{},smalltalk.HLBrowserModel)})},
  470. messageSends: ["announce:", "new", "announcer"]}),
  471. smalltalk.HLBrowserModel);
  472. smalltalk.addMethod(
  473. smalltalk.method({
  474. selector: "focusOnSourceCode",
  475. fn: function (){
  476. var self=this;
  477. function $HLSourceCodeFocusRequested(){return smalltalk.HLSourceCodeFocusRequested||(typeof HLSourceCodeFocusRequested=="undefined"?nil:HLSourceCodeFocusRequested)}
  478. return smalltalk.withContext(function($ctx1) {
  479. _st(_st(self)._announcer())._announce_(_st($HLSourceCodeFocusRequested())._new());
  480. return self}, function($ctx1) {$ctx1.fill(self,"focusOnSourceCode",{},smalltalk.HLBrowserModel)})},
  481. messageSends: ["announce:", "new", "announcer"]}),
  482. smalltalk.HLBrowserModel);
  483. smalltalk.addMethod(
  484. smalltalk.method({
  485. selector: "isBrowserModel",
  486. fn: function (){
  487. var self=this;
  488. return smalltalk.withContext(function($ctx1) {
  489. return true;
  490. }, function($ctx1) {$ctx1.fill(self,"isBrowserModel",{},smalltalk.HLBrowserModel)})},
  491. messageSends: []}),
  492. smalltalk.HLBrowserModel);
  493. smalltalk.addMethod(
  494. smalltalk.method({
  495. selector: "showComment",
  496. fn: function (){
  497. var self=this;
  498. return smalltalk.withContext(function($ctx1) {
  499. var $2,$1;
  500. $2=self["@showComment"];
  501. if(($receiver = $2) == nil || $receiver == undefined){
  502. $1=false;
  503. } else {
  504. $1=$2;
  505. };
  506. return $1;
  507. }, function($ctx1) {$ctx1.fill(self,"showComment",{},smalltalk.HLBrowserModel)})},
  508. messageSends: ["ifNil:"]}),
  509. smalltalk.HLBrowserModel);
  510. smalltalk.addMethod(
  511. smalltalk.method({
  512. selector: "showComment:",
  513. fn: function (aBoolean){
  514. var self=this;
  515. function $HLShowCommentToggled(){return smalltalk.HLShowCommentToggled||(typeof HLShowCommentToggled=="undefined"?nil:HLShowCommentToggled)}
  516. return smalltalk.withContext(function($ctx1) {
  517. _st(self)._withChangesDo_((function(){
  518. return smalltalk.withContext(function($ctx2) {
  519. self["@showComment"]=aBoolean;
  520. self["@showComment"];
  521. return _st(_st(self)._announcer())._announce_(_st($HLShowCommentToggled())._new());
  522. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  523. return self}, function($ctx1) {$ctx1.fill(self,"showComment:",{aBoolean:aBoolean},smalltalk.HLBrowserModel)})},
  524. messageSends: ["withChangesDo:", "announce:", "new", "announcer"]}),
  525. smalltalk.HLBrowserModel);
  526. smalltalk.addMethod(
  527. smalltalk.method({
  528. selector: "showInstance",
  529. fn: function (){
  530. var self=this;
  531. return smalltalk.withContext(function($ctx1) {
  532. var $2,$1;
  533. $2=self["@showInstance"];
  534. if(($receiver = $2) == nil || $receiver == undefined){
  535. $1=true;
  536. } else {
  537. $1=$2;
  538. };
  539. return $1;
  540. }, function($ctx1) {$ctx1.fill(self,"showInstance",{},smalltalk.HLBrowserModel)})},
  541. messageSends: ["ifNil:"]}),
  542. smalltalk.HLBrowserModel);
  543. smalltalk.addMethod(
  544. smalltalk.method({
  545. selector: "showInstance:",
  546. fn: function (aBoolean){
  547. var self=this;
  548. function $HLShowInstanceToggled(){return smalltalk.HLShowInstanceToggled||(typeof HLShowInstanceToggled=="undefined"?nil:HLShowInstanceToggled)}
  549. return smalltalk.withContext(function($ctx1) {
  550. var $1,$2,$4,$3;
  551. _st(self)._withChangesDo_((function(){
  552. return smalltalk.withContext(function($ctx2) {
  553. self["@showInstance"]=aBoolean;
  554. self["@showInstance"];
  555. $1=_st(self)._selectedClass();
  556. if(($receiver = $1) == nil || $receiver == undefined){
  557. $1;
  558. } else {
  559. $2=self;
  560. $4=aBoolean;
  561. if(smalltalk.assert($4)){
  562. $3=_st(_st(self)._selectedClass())._theNonMetaClass();
  563. } else {
  564. $3=_st(_st(self)._selectedClass())._theMetaClass();
  565. };
  566. _st($2)._selectedClass_($3);
  567. };
  568. return _st(_st(self)._announcer())._announce_(_st($HLShowInstanceToggled())._new());
  569. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  570. return self}, function($ctx1) {$ctx1.fill(self,"showInstance:",{aBoolean:aBoolean},smalltalk.HLBrowserModel)})},
  571. messageSends: ["withChangesDo:", "ifNotNil:", "selectedClass:", "ifTrue:ifFalse:", "theNonMetaClass", "selectedClass", "theMetaClass", "announce:", "new", "announcer"]}),
  572. smalltalk.HLBrowserModel);
  573. smalltalk.addMethod(
  574. smalltalk.method({
  575. selector: "on:",
  576. fn: function (anEnvironment){
  577. var self=this;
  578. return smalltalk.withContext(function($ctx1) {
  579. var $2,$3,$1;
  580. $2=_st(self)._new();
  581. _st($2)._environment_(anEnvironment);
  582. $3=_st($2)._yourself();
  583. $1=$3;
  584. return $1;
  585. }, function($ctx1) {$ctx1.fill(self,"on:",{anEnvironment:anEnvironment},smalltalk.HLBrowserModel.klass)})},
  586. messageSends: ["environment:", "new", "yourself"]}),
  587. smalltalk.HLBrowserModel.klass);
  588. smalltalk.addClass('HLClassCache', smalltalk.Object, ['class', 'selectorsCache', 'overrideCache', 'overriddenCache'], 'Helios-Browser');
  589. smalltalk.addMethod(
  590. smalltalk.method({
  591. selector: "invalidateChildrenSelector:",
  592. fn: function (aSelector){
  593. var self=this;
  594. return smalltalk.withContext(function($ctx1) {
  595. var $1,$2;
  596. _st(_st(_st(self)._theClass())._subclasses())._do_((function(each){
  597. return smalltalk.withContext(function($ctx2) {
  598. $1=_st(_st(self)._selectorsCache())._cacheFor_(each);
  599. _st($1)._removeSelector_(aSelector);
  600. $2=_st($1)._invalidateChildrenSelector_(aSelector);
  601. return $2;
  602. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  603. return self}, function($ctx1) {$ctx1.fill(self,"invalidateChildrenSelector:",{aSelector:aSelector},smalltalk.HLClassCache)})},
  604. messageSends: ["do:", "removeSelector:", "cacheFor:", "selectorsCache", "invalidateChildrenSelector:", "subclasses", "theClass"]}),
  605. smalltalk.HLClassCache);
  606. smalltalk.addMethod(
  607. smalltalk.method({
  608. selector: "invalidateParentSelector:",
  609. fn: function (aSelector){
  610. var self=this;
  611. return smalltalk.withContext(function($ctx1) {
  612. var $1,$2,$3;
  613. $1=_st(_st(self)._theClass())._superclass();
  614. if(($receiver = $1) == nil || $receiver == undefined){
  615. $1;
  616. } else {
  617. $2=_st(_st(self)._selectorsCache())._cacheFor_(_st(_st(self)._theClass())._superclass());
  618. _st($2)._removeSelector_(aSelector);
  619. $3=_st($2)._invalidateParentSelector_(aSelector);
  620. $3;
  621. };
  622. return self}, function($ctx1) {$ctx1.fill(self,"invalidateParentSelector:",{aSelector:aSelector},smalltalk.HLClassCache)})},
  623. messageSends: ["ifNotNil:", "removeSelector:", "cacheFor:", "superclass", "theClass", "selectorsCache", "invalidateParentSelector:"]}),
  624. smalltalk.HLClassCache);
  625. smalltalk.addMethod(
  626. smalltalk.method({
  627. selector: "invalidateSelector:",
  628. fn: function (aSelector){
  629. var self=this;
  630. return smalltalk.withContext(function($ctx1) {
  631. var $1,$2;
  632. $1=self;
  633. _st($1)._invalidateParentSelector_(aSelector);
  634. _st($1)._invalidateChildrenSelector_(aSelector);
  635. $2=_st($1)._removeSelector_(aSelector);
  636. return self}, function($ctx1) {$ctx1.fill(self,"invalidateSelector:",{aSelector:aSelector},smalltalk.HLClassCache)})},
  637. messageSends: ["invalidateParentSelector:", "invalidateChildrenSelector:", "removeSelector:"]}),
  638. smalltalk.HLClassCache);
  639. smalltalk.addMethod(
  640. smalltalk.method({
  641. selector: "isOverridden:",
  642. fn: function (aMethod){
  643. var self=this;
  644. return smalltalk.withContext(function($ctx1) {
  645. var $1;
  646. $1=_st(_st(self)._overriddenCache())._at_ifAbsentPut_(_st(aMethod)._selector(),(function(){
  647. return smalltalk.withContext(function($ctx2) {
  648. return _st(aMethod)._isOverridden();
  649. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  650. return $1;
  651. }, function($ctx1) {$ctx1.fill(self,"isOverridden:",{aMethod:aMethod},smalltalk.HLClassCache)})},
  652. messageSends: ["at:ifAbsentPut:", "selector", "isOverridden", "overriddenCache"]}),
  653. smalltalk.HLClassCache);
  654. smalltalk.addMethod(
  655. smalltalk.method({
  656. selector: "isOverride:",
  657. fn: function (aMethod){
  658. var self=this;
  659. return smalltalk.withContext(function($ctx1) {
  660. var $1;
  661. $1=_st(_st(self)._overrideCache())._at_ifAbsentPut_(_st(aMethod)._selector(),(function(){
  662. return smalltalk.withContext(function($ctx2) {
  663. return _st(aMethod)._isOverride();
  664. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  665. return $1;
  666. }, function($ctx1) {$ctx1.fill(self,"isOverride:",{aMethod:aMethod},smalltalk.HLClassCache)})},
  667. messageSends: ["at:ifAbsentPut:", "selector", "isOverride", "overrideCache"]}),
  668. smalltalk.HLClassCache);
  669. smalltalk.addMethod(
  670. smalltalk.method({
  671. selector: "overriddenCache",
  672. fn: function (){
  673. var self=this;
  674. function $HashedCollection(){return smalltalk.HashedCollection||(typeof HashedCollection=="undefined"?nil:HashedCollection)}
  675. return smalltalk.withContext(function($ctx1) {
  676. var $2,$1;
  677. $2=self["@overriddenCache"];
  678. if(($receiver = $2) == nil || $receiver == undefined){
  679. self["@overriddenCache"]=_st($HashedCollection())._new();
  680. $1=self["@overriddenCache"];
  681. } else {
  682. $1=$2;
  683. };
  684. return $1;
  685. }, function($ctx1) {$ctx1.fill(self,"overriddenCache",{},smalltalk.HLClassCache)})},
  686. messageSends: ["ifNil:", "new"]}),
  687. smalltalk.HLClassCache);
  688. smalltalk.addMethod(
  689. smalltalk.method({
  690. selector: "overrideCache",
  691. fn: function (){
  692. var self=this;
  693. function $HashedCollection(){return smalltalk.HashedCollection||(typeof HashedCollection=="undefined"?nil:HashedCollection)}
  694. return smalltalk.withContext(function($ctx1) {
  695. var $2,$1;
  696. $2=self["@overrideCache"];
  697. if(($receiver = $2) == nil || $receiver == undefined){
  698. self["@overrideCache"]=_st($HashedCollection())._new();
  699. $1=self["@overrideCache"];
  700. } else {
  701. $1=$2;
  702. };
  703. return $1;
  704. }, function($ctx1) {$ctx1.fill(self,"overrideCache",{},smalltalk.HLClassCache)})},
  705. messageSends: ["ifNil:", "new"]}),
  706. smalltalk.HLClassCache);
  707. smalltalk.addMethod(
  708. smalltalk.method({
  709. selector: "removeSelector:",
  710. fn: function (aSelector){
  711. var self=this;
  712. return smalltalk.withContext(function($ctx1) {
  713. _st(_st(self)._overriddenCache())._removeKey_ifAbsent_(aSelector,(function(){
  714. return smalltalk.withContext(function($ctx2) {
  715. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  716. _st(_st(self)._overrideCache())._removeKey_ifAbsent_(aSelector,(function(){
  717. return smalltalk.withContext(function($ctx2) {
  718. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  719. return self}, function($ctx1) {$ctx1.fill(self,"removeSelector:",{aSelector:aSelector},smalltalk.HLClassCache)})},
  720. messageSends: ["removeKey:ifAbsent:", "overriddenCache", "overrideCache"]}),
  721. smalltalk.HLClassCache);
  722. smalltalk.addMethod(
  723. smalltalk.method({
  724. selector: "selectorsCache",
  725. fn: function (){
  726. var self=this;
  727. return smalltalk.withContext(function($ctx1) {
  728. var $1;
  729. $1=self["@selectorsCache"];
  730. return $1;
  731. }, function($ctx1) {$ctx1.fill(self,"selectorsCache",{},smalltalk.HLClassCache)})},
  732. messageSends: []}),
  733. smalltalk.HLClassCache);
  734. smalltalk.addMethod(
  735. smalltalk.method({
  736. selector: "selectorsCache:",
  737. fn: function (aCache){
  738. var self=this;
  739. return smalltalk.withContext(function($ctx1) {
  740. self["@selectorsCache"]=aCache;
  741. return self}, function($ctx1) {$ctx1.fill(self,"selectorsCache:",{aCache:aCache},smalltalk.HLClassCache)})},
  742. messageSends: []}),
  743. smalltalk.HLClassCache);
  744. smalltalk.addMethod(
  745. smalltalk.method({
  746. selector: "theClass",
  747. fn: function (){
  748. var self=this;
  749. return smalltalk.withContext(function($ctx1) {
  750. var $1;
  751. $1=self["@class"];
  752. return $1;
  753. }, function($ctx1) {$ctx1.fill(self,"theClass",{},smalltalk.HLClassCache)})},
  754. messageSends: []}),
  755. smalltalk.HLClassCache);
  756. smalltalk.addMethod(
  757. smalltalk.method({
  758. selector: "theClass:",
  759. fn: function (aClass){
  760. var self=this;
  761. return smalltalk.withContext(function($ctx1) {
  762. self["@class"]=aClass;
  763. return self}, function($ctx1) {$ctx1.fill(self,"theClass:",{aClass:aClass},smalltalk.HLClassCache)})},
  764. messageSends: []}),
  765. smalltalk.HLClassCache);
  766. smalltalk.addMethod(
  767. smalltalk.method({
  768. selector: "on:selectorsCache:",
  769. fn: function (aClass,aSelectorsCache){
  770. var self=this;
  771. return smalltalk.withContext(function($ctx1) {
  772. var $2,$3,$1;
  773. $2=_st(self)._new();
  774. _st($2)._theClass_(aClass);
  775. _st($2)._selectorsCache_(aSelectorsCache);
  776. $3=_st($2)._yourself();
  777. $1=$3;
  778. return $1;
  779. }, function($ctx1) {$ctx1.fill(self,"on:selectorsCache:",{aClass:aClass,aSelectorsCache:aSelectorsCache},smalltalk.HLClassCache.klass)})},
  780. messageSends: ["theClass:", "new", "selectorsCache:", "yourself"]}),
  781. smalltalk.HLClassCache.klass);
  782. smalltalk.addClass('HLClassesListWidget', smalltalk.HLToolListWidget, [], 'Helios-Browser');
  783. smalltalk.addMethod(
  784. smalltalk.method({
  785. selector: "focusMethodsListWidget",
  786. fn: function (){
  787. var self=this;
  788. function $HLMethodsListFocus(){return smalltalk.HLMethodsListFocus||(typeof HLMethodsListFocus=="undefined"?nil:HLMethodsListFocus)}
  789. return smalltalk.withContext(function($ctx1) {
  790. _st(_st(_st(self)._model())._announcer())._announce_(_st($HLMethodsListFocus())._new());
  791. return self}, function($ctx1) {$ctx1.fill(self,"focusMethodsListWidget",{},smalltalk.HLClassesListWidget)})},
  792. messageSends: ["announce:", "new", "announcer", "model"]}),
  793. smalltalk.HLClassesListWidget);
  794. smalltalk.addMethod(
  795. smalltalk.method({
  796. selector: "focusProtocolsListWidget",
  797. fn: function (){
  798. var self=this;
  799. function $HLProtocolsListFocus(){return smalltalk.HLProtocolsListFocus||(typeof HLProtocolsListFocus=="undefined"?nil:HLProtocolsListFocus)}
  800. return smalltalk.withContext(function($ctx1) {
  801. _st(_st(_st(self)._model())._announcer())._announce_(_st($HLProtocolsListFocus())._new());
  802. return self}, function($ctx1) {$ctx1.fill(self,"focusProtocolsListWidget",{},smalltalk.HLClassesListWidget)})},
  803. messageSends: ["announce:", "new", "announcer", "model"]}),
  804. smalltalk.HLClassesListWidget);
  805. smalltalk.addMethod(
  806. smalltalk.method({
  807. selector: "getChildrenOf:",
  808. fn: function (aClass){
  809. var self=this;
  810. return smalltalk.withContext(function($ctx1) {
  811. var $1;
  812. $1=_st(_st(self)._items())._select_((function(each){
  813. return smalltalk.withContext(function($ctx2) {
  814. return _st(_st(each)._superclass()).__eq(aClass);
  815. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  816. return $1;
  817. }, function($ctx1) {$ctx1.fill(self,"getChildrenOf:",{aClass:aClass},smalltalk.HLClassesListWidget)})},
  818. messageSends: ["select:", "=", "superclass", "items"]}),
  819. smalltalk.HLClassesListWidget);
  820. smalltalk.addMethod(
  821. smalltalk.method({
  822. selector: "getRootClassesOf:",
  823. fn: function (aCollection){
  824. var self=this;
  825. return smalltalk.withContext(function($ctx1) {
  826. var $1;
  827. $1=_st(aCollection)._select_((function(each){
  828. return smalltalk.withContext(function($ctx2) {
  829. return _st(_st(aCollection)._includes_(_st(each)._superclass()))._not();
  830. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  831. return $1;
  832. }, function($ctx1) {$ctx1.fill(self,"getRootClassesOf:",{aCollection:aCollection},smalltalk.HLClassesListWidget)})},
  833. messageSends: ["select:", "not", "includes:", "superclass"]}),
  834. smalltalk.HLClassesListWidget);
  835. smalltalk.addMethod(
  836. smalltalk.method({
  837. selector: "iconForItem:",
  838. fn: function (aClass){
  839. var self=this;
  840. return smalltalk.withContext(function($ctx1) {
  841. var $2,$1;
  842. $2=_st(_st(_st(aClass)._theNonMetaClass())._comment())._isEmpty();
  843. if(smalltalk.assert($2)){
  844. $1="icon-question-sign";
  845. } else {
  846. $1="icon-none";
  847. };
  848. return $1;
  849. }, function($ctx1) {$ctx1.fill(self,"iconForItem:",{aClass:aClass},smalltalk.HLClassesListWidget)})},
  850. messageSends: ["ifFalse:ifTrue:", "isEmpty", "comment", "theNonMetaClass"]}),
  851. smalltalk.HLClassesListWidget);
  852. smalltalk.addMethod(
  853. smalltalk.method({
  854. selector: "label",
  855. fn: function (){
  856. var self=this;
  857. return smalltalk.withContext(function($ctx1) {
  858. return "Classes";
  859. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLClassesListWidget)})},
  860. messageSends: []}),
  861. smalltalk.HLClassesListWidget);
  862. smalltalk.addMethod(
  863. smalltalk.method({
  864. selector: "observeModel",
  865. fn: function (){
  866. var self=this;
  867. function $HLPackageSelected(){return smalltalk.HLPackageSelected||(typeof HLPackageSelected=="undefined"?nil:HLPackageSelected)}
  868. function $HLShowInstanceToggled(){return smalltalk.HLShowInstanceToggled||(typeof HLShowInstanceToggled=="undefined"?nil:HLShowInstanceToggled)}
  869. function $HLShowCommentToggled(){return smalltalk.HLShowCommentToggled||(typeof HLShowCommentToggled=="undefined"?nil:HLShowCommentToggled)}
  870. function $HLClassSelected(){return smalltalk.HLClassSelected||(typeof HLClassSelected=="undefined"?nil:HLClassSelected)}
  871. function $HLClassesFocusRequested(){return smalltalk.HLClassesFocusRequested||(typeof HLClassesFocusRequested=="undefined"?nil:HLClassesFocusRequested)}
  872. return smalltalk.withContext(function($ctx1) {
  873. var $1,$2;
  874. $1=_st(_st(self)._model())._announcer();
  875. _st($1)._on_send_to_($HLPackageSelected(),"onPackageSelected:",self);
  876. _st($1)._on_send_to_($HLShowInstanceToggled(),"onShowInstanceToggled",self);
  877. _st($1)._on_send_to_($HLShowCommentToggled(),"onShowCommentToggled",self);
  878. _st($1)._on_send_to_($HLClassSelected(),"onClassSelected:",self);
  879. $2=_st($1)._on_send_to_($HLClassesFocusRequested(),"onClassesFocusRequested",self);
  880. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{},smalltalk.HLClassesListWidget)})},
  881. messageSends: ["on:send:to:", "announcer", "model"]}),
  882. smalltalk.HLClassesListWidget);
  883. smalltalk.addMethod(
  884. smalltalk.method({
  885. selector: "observeSystem",
  886. fn: function (){
  887. var self=this;
  888. function $ClassAdded(){return smalltalk.ClassAdded||(typeof ClassAdded=="undefined"?nil:ClassAdded)}
  889. function $ClassRemoved(){return smalltalk.ClassRemoved||(typeof ClassRemoved=="undefined"?nil:ClassRemoved)}
  890. function $ClassMoved(){return smalltalk.ClassMoved||(typeof ClassMoved=="undefined"?nil:ClassMoved)}
  891. function $ClassRenamed(){return smalltalk.ClassRenamed||(typeof ClassRenamed=="undefined"?nil:ClassRenamed)}
  892. function $ClassMigrated(){return smalltalk.ClassMigrated||(typeof ClassMigrated=="undefined"?nil:ClassMigrated)}
  893. return smalltalk.withContext(function($ctx1) {
  894. var $1,$2;
  895. $1=_st(_st(self)._model())._systemAnnouncer();
  896. _st($1)._on_send_to_($ClassAdded(),"onClassAdded:",self);
  897. _st($1)._on_send_to_($ClassRemoved(),"onClassRemoved:",self);
  898. _st($1)._on_send_to_($ClassMoved(),"onClassMoved:",self);
  899. _st($1)._on_send_to_($ClassRenamed(),"onClassRenamed:",self);
  900. $2=_st($1)._on_send_to_($ClassMigrated(),"onClassMigrated:",self);
  901. return self}, function($ctx1) {$ctx1.fill(self,"observeSystem",{},smalltalk.HLClassesListWidget)})},
  902. messageSends: ["on:send:to:", "systemAnnouncer", "model"]}),
  903. smalltalk.HLClassesListWidget);
  904. smalltalk.addMethod(
  905. smalltalk.method({
  906. selector: "onClassAdded:",
  907. fn: function (anAnnouncement){
  908. var self=this;
  909. var class_;
  910. return smalltalk.withContext(function($ctx1) {
  911. var $1,$2;
  912. class_=_st(anAnnouncement)._theClass();
  913. $1=_st(_st(_st(class_)._package()).__eq(_st(_st(self)._model())._selectedPackage()))._or_((function(){
  914. return smalltalk.withContext(function($ctx2) {
  915. return _st(_st(self)._items())._includes_(class_);
  916. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  917. if(! smalltalk.assert($1)){
  918. $2=self;
  919. return $2;
  920. };
  921. _st(self)._setItemsForSelectedPackage();
  922. _st(self)._refresh();
  923. return self}, function($ctx1) {$ctx1.fill(self,"onClassAdded:",{anAnnouncement:anAnnouncement,class_:class_},smalltalk.HLClassesListWidget)})},
  924. messageSends: ["theClass", "ifFalse:", "or:", "includes:", "items", "=", "selectedPackage", "model", "package", "setItemsForSelectedPackage", "refresh"]}),
  925. smalltalk.HLClassesListWidget);
  926. smalltalk.addMethod(
  927. smalltalk.method({
  928. selector: "onClassMigrated:",
  929. fn: function (anAnnouncement){
  930. var self=this;
  931. var class_,oldClass;
  932. return smalltalk.withContext(function($ctx1) {
  933. var $1,$2,$3;
  934. class_=_st(anAnnouncement)._theClass();
  935. oldClass=_st(anAnnouncement)._oldClass();
  936. $1=_st(_st(self)._items())._includes_(oldClass);
  937. if(! smalltalk.assert($1)){
  938. $2=self;
  939. return $2;
  940. };
  941. $3=_st(_st(_st(self)._model())._selectedClass()).__eq(oldClass);
  942. if(smalltalk.assert($3)){
  943. _st(_st(self)._model())._selectedClass_(class_);
  944. };
  945. _st(self)._setItemsForSelectedPackage();
  946. _st(self)._refresh();
  947. return self}, function($ctx1) {$ctx1.fill(self,"onClassMigrated:",{anAnnouncement:anAnnouncement,class_:class_,oldClass:oldClass},smalltalk.HLClassesListWidget)})},
  948. messageSends: ["theClass", "oldClass", "ifFalse:", "includes:", "items", "ifTrue:", "selectedClass:", "model", "=", "selectedClass", "setItemsForSelectedPackage", "refresh"]}),
  949. smalltalk.HLClassesListWidget);
  950. smalltalk.addMethod(
  951. smalltalk.method({
  952. selector: "onClassMoved:",
  953. fn: function (anAnnouncement){
  954. var self=this;
  955. var class_,oldPackage;
  956. return smalltalk.withContext(function($ctx1) {
  957. var $1,$2,$3,$4,$5;
  958. class_=_st(anAnnouncement)._theClass();
  959. oldPackage=_st(anAnnouncement)._oldPackage();
  960. $1=_st(_st(oldPackage).__eq(_st(_st(self)._model())._selectedPackage()))._or_((function(){
  961. return smalltalk.withContext(function($ctx2) {
  962. return _st(_st(class_)._package()).__eq(_st(_st(self)._model())._selectedPackage());
  963. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  964. if(! smalltalk.assert($1)){
  965. $2=self;
  966. return $2;
  967. };
  968. $3=_st(oldPackage).__eq(_st(_st(self)._model())._selectedPackage());
  969. if(smalltalk.assert($3)){
  970. $4=self;
  971. _st($4)._selectedItem_(nil);
  972. $5=_st($4)._selectItem_(nil);
  973. $5;
  974. };
  975. _st(self)._setItemsForSelectedPackage();
  976. _st(self)._refresh();
  977. return self}, function($ctx1) {$ctx1.fill(self,"onClassMoved:",{anAnnouncement:anAnnouncement,class_:class_,oldPackage:oldPackage},smalltalk.HLClassesListWidget)})},
  978. messageSends: ["theClass", "oldPackage", "ifFalse:", "or:", "=", "selectedPackage", "model", "package", "ifTrue:", "selectedItem:", "selectItem:", "setItemsForSelectedPackage", "refresh"]}),
  979. smalltalk.HLClassesListWidget);
  980. smalltalk.addMethod(
  981. smalltalk.method({
  982. selector: "onClassRemoved:",
  983. fn: function (anAnnouncement){
  984. var self=this;
  985. var class_;
  986. return smalltalk.withContext(function($ctx1) {
  987. var $1,$2,$3;
  988. class_=_st(anAnnouncement)._theClass();
  989. $1=_st(_st(class_)._package()).__eq(_st(_st(self)._model())._selectedPackage());
  990. if(! smalltalk.assert($1)){
  991. $2=self;
  992. return $2;
  993. };
  994. $3=_st(class_).__eq(_st(_st(self)._model())._selectedClass());
  995. if(smalltalk.assert($3)){
  996. _st(self)._selectItem_(nil);
  997. };
  998. _st(self)._setItemsForSelectedPackage();
  999. _st(self)._refresh();
  1000. return self}, function($ctx1) {$ctx1.fill(self,"onClassRemoved:",{anAnnouncement:anAnnouncement,class_:class_},smalltalk.HLClassesListWidget)})},
  1001. messageSends: ["theClass", "ifFalse:", "=", "selectedPackage", "model", "package", "ifTrue:", "selectItem:", "selectedClass", "setItemsForSelectedPackage", "refresh"]}),
  1002. smalltalk.HLClassesListWidget);
  1003. smalltalk.addMethod(
  1004. smalltalk.method({
  1005. selector: "onClassRenamed:",
  1006. fn: function (anAnnouncement){
  1007. var self=this;
  1008. return smalltalk.withContext(function($ctx1) {
  1009. var $1,$2;
  1010. $1=_st(_st(_st(anAnnouncement)._theClass())._package()).__eq(_st(_st(self)._model())._selectedPackage());
  1011. if(! smalltalk.assert($1)){
  1012. $2=self;
  1013. return $2;
  1014. };
  1015. _st(self)._setItemsForSelectedPackage();
  1016. _st(self)._refresh();
  1017. return self}, function($ctx1) {$ctx1.fill(self,"onClassRenamed:",{anAnnouncement:anAnnouncement},smalltalk.HLClassesListWidget)})},
  1018. messageSends: ["ifFalse:", "=", "selectedPackage", "model", "package", "theClass", "setItemsForSelectedPackage", "refresh"]}),
  1019. smalltalk.HLClassesListWidget);
  1020. smalltalk.addMethod(
  1021. smalltalk.method({
  1022. selector: "onClassSelected:",
  1023. fn: function (anAnnouncement){
  1024. var self=this;
  1025. var selectedClass;
  1026. return smalltalk.withContext(function($ctx1) {
  1027. var $1,$2,$3,$4,$5;
  1028. $1=_st(anAnnouncement)._item();
  1029. if(($receiver = $1) == nil || $receiver == undefined){
  1030. $2=self;
  1031. return $2;
  1032. } else {
  1033. $1;
  1034. };
  1035. selectedClass=_st(_st(anAnnouncement)._item())._theNonMetaClass();
  1036. _st(self)._selectedItem_(selectedClass);
  1037. $3=_st(self)._hasFocus();
  1038. if(! smalltalk.assert($3)){
  1039. $4=self;
  1040. _st($4)._activateItem_(selectedClass);
  1041. $5=_st($4)._focus();
  1042. $5;
  1043. };
  1044. return self}, function($ctx1) {$ctx1.fill(self,"onClassSelected:",{anAnnouncement:anAnnouncement,selectedClass:selectedClass},smalltalk.HLClassesListWidget)})},
  1045. messageSends: ["ifNil:", "item", "theNonMetaClass", "selectedItem:", "ifFalse:", "activateItem:", "focus", "hasFocus"]}),
  1046. smalltalk.HLClassesListWidget);
  1047. smalltalk.addMethod(
  1048. smalltalk.method({
  1049. selector: "onClassesFocusRequested",
  1050. fn: function (){
  1051. var self=this;
  1052. return smalltalk.withContext(function($ctx1) {
  1053. _st(self)._focus();
  1054. return self}, function($ctx1) {$ctx1.fill(self,"onClassesFocusRequested",{},smalltalk.HLClassesListWidget)})},
  1055. messageSends: ["focus"]}),
  1056. smalltalk.HLClassesListWidget);
  1057. smalltalk.addMethod(
  1058. smalltalk.method({
  1059. selector: "onPackageSelected:",
  1060. fn: function (anAnnouncement){
  1061. var self=this;
  1062. return smalltalk.withContext(function($ctx1) {
  1063. _st(self)._selectedItem_(nil);
  1064. _st(self)._setItemsForSelectedPackage();
  1065. _st(self)._refresh();
  1066. return self}, function($ctx1) {$ctx1.fill(self,"onPackageSelected:",{anAnnouncement:anAnnouncement},smalltalk.HLClassesListWidget)})},
  1067. messageSends: ["selectedItem:", "setItemsForSelectedPackage", "refresh"]}),
  1068. smalltalk.HLClassesListWidget);
  1069. smalltalk.addMethod(
  1070. smalltalk.method({
  1071. selector: "onShowCommentToggled",
  1072. fn: function (){
  1073. var self=this;
  1074. return smalltalk.withContext(function($ctx1) {
  1075. _st(self)._refresh();
  1076. return self}, function($ctx1) {$ctx1.fill(self,"onShowCommentToggled",{},smalltalk.HLClassesListWidget)})},
  1077. messageSends: ["refresh"]}),
  1078. smalltalk.HLClassesListWidget);
  1079. smalltalk.addMethod(
  1080. smalltalk.method({
  1081. selector: "onShowInstanceToggled",
  1082. fn: function (){
  1083. var self=this;
  1084. return smalltalk.withContext(function($ctx1) {
  1085. _st(self)._refresh();
  1086. return self}, function($ctx1) {$ctx1.fill(self,"onShowInstanceToggled",{},smalltalk.HLClassesListWidget)})},
  1087. messageSends: ["refresh"]}),
  1088. smalltalk.HLClassesListWidget);
  1089. smalltalk.addMethod(
  1090. smalltalk.method({
  1091. selector: "renderButtonsOn:",
  1092. fn: function (html){
  1093. var self=this;
  1094. var checkbox;
  1095. function $String(){return smalltalk.String||(typeof String=="undefined"?nil:String)}
  1096. return smalltalk.withContext(function($ctx1) {
  1097. var $1,$3,$4,$5,$6,$7,$8,$2,$9,$11,$12,$10,$13;
  1098. $1=_st(html)._div();
  1099. _st($1)._class_("btn-group");
  1100. $2=_st($1)._with_((function(){
  1101. return smalltalk.withContext(function($ctx2) {
  1102. $3=_st(html)._button();
  1103. _st($3)._class_(_st($String())._streamContents_((function(str){
  1104. return smalltalk.withContext(function($ctx3) {
  1105. _st(str)._nextPutAll_("btn");
  1106. $4=_st(self)._showInstance();
  1107. if(smalltalk.assert($4)){
  1108. return _st(str)._nextPutAll_(" active");
  1109. };
  1110. }, function($ctx3) {$ctx3.fillBlock({str:str},$ctx1)})})));
  1111. _st($3)._with_("Instance");
  1112. $5=_st($3)._onClick_((function(){
  1113. return smalltalk.withContext(function($ctx3) {
  1114. return _st(self)._showInstance_(true);
  1115. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1116. $5;
  1117. $6=_st(html)._button();
  1118. _st($6)._class_(_st($String())._streamContents_((function(str){
  1119. return smalltalk.withContext(function($ctx3) {
  1120. _st(str)._nextPutAll_("btn");
  1121. $7=_st(self)._showClass();
  1122. if(smalltalk.assert($7)){
  1123. return _st(str)._nextPutAll_(" active");
  1124. };
  1125. }, function($ctx3) {$ctx3.fillBlock({str:str},$ctx1)})})));
  1126. _st($6)._with_("Class");
  1127. $8=_st($6)._onClick_((function(){
  1128. return smalltalk.withContext(function($ctx3) {
  1129. return _st(self)._showInstance_(false);
  1130. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1131. return $8;
  1132. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1133. $9=_st(html)._label();
  1134. _st($9)._class_("checkbox");
  1135. $10=_st($9)._with_((function(){
  1136. return smalltalk.withContext(function($ctx2) {
  1137. $11=_st(html)._input();
  1138. _st($11)._type_("checkbox");
  1139. $12=_st($11)._onClick_((function(){
  1140. return smalltalk.withContext(function($ctx3) {
  1141. return _st(self)._toggleShowComment();
  1142. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1143. checkbox=$12;
  1144. checkbox;
  1145. return _st(html)._with_("Doc");
  1146. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1147. $13=_st(self)._showComment();
  1148. if(smalltalk.assert($13)){
  1149. _st(checkbox)._at_put_("checked","checked");
  1150. };
  1151. return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html,checkbox:checkbox},smalltalk.HLClassesListWidget)})},
  1152. messageSends: ["class:", "div", "with:", "streamContents:", "nextPutAll:", "ifTrue:", "showInstance", "button", "onClick:", "showInstance:", "showClass", "label", "type:", "input", "toggleShowComment", "at:put:", "showComment"]}),
  1153. smalltalk.HLClassesListWidget);
  1154. smalltalk.addMethod(
  1155. smalltalk.method({
  1156. selector: "renderItem:level:on:",
  1157. fn: function (aClass,anInteger,html){
  1158. var self=this;
  1159. var li;
  1160. return smalltalk.withContext(function($ctx1) {
  1161. var $1,$3,$4,$2;
  1162. li=_st(html)._li();
  1163. _st(self)._registerMappingFrom_to_(aClass,li);
  1164. $1=li;
  1165. _st($1)._at_put_("list-data",_st(_st(self)._items())._indexOf_(aClass));
  1166. _st($1)._class_(_st(self)._cssClassForItem_(aClass));
  1167. $2=_st($1)._with_((function(){
  1168. return smalltalk.withContext(function($ctx2) {
  1169. $3=_st(html)._a();
  1170. _st($3)._with_((function(){
  1171. return smalltalk.withContext(function($ctx3) {
  1172. _st(_st(html)._tag_("i"))._class_(_st(self)._iconForItem_(aClass));
  1173. return _st(self)._renderItemLabel_level_on_(aClass,anInteger,html);
  1174. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1175. $4=_st($3)._onClick_((function(){
  1176. return smalltalk.withContext(function($ctx3) {
  1177. return _st(self)._activateListItem_(_st(li)._asJQuery());
  1178. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1179. return $4;
  1180. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1181. _st(_st(self)._getChildrenOf_(aClass))._do_((function(each){
  1182. return smalltalk.withContext(function($ctx2) {
  1183. return _st(self)._renderItem_level_on_(each,_st(anInteger).__plus((1)),html);
  1184. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  1185. return self}, function($ctx1) {$ctx1.fill(self,"renderItem:level:on:",{aClass:aClass,anInteger:anInteger,html:html,li:li},smalltalk.HLClassesListWidget)})},
  1186. 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:"]}),
  1187. smalltalk.HLClassesListWidget);
  1188. smalltalk.addMethod(
  1189. smalltalk.method({
  1190. selector: "renderItem:on:",
  1191. fn: function (aClass,html){
  1192. var self=this;
  1193. return smalltalk.withContext(function($ctx1) {
  1194. smalltalk.HLToolListWidget.fn.prototype._renderItem_on_.apply(_st(self), [aClass,html]);
  1195. _st(_st(self)._getChildrenOf_(aClass))._do_((function(each){
  1196. return smalltalk.withContext(function($ctx2) {
  1197. return _st(self)._renderItem_level_on_(each,(1),html);
  1198. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  1199. return self}, function($ctx1) {$ctx1.fill(self,"renderItem:on:",{aClass:aClass,html:html},smalltalk.HLClassesListWidget)})},
  1200. messageSends: ["renderItem:on:", "do:", "renderItem:level:on:", "getChildrenOf:"]}),
  1201. smalltalk.HLClassesListWidget);
  1202. smalltalk.addMethod(
  1203. smalltalk.method({
  1204. selector: "renderItemLabel:level:on:",
  1205. fn: function (aClass,anInteger,html){
  1206. var self=this;
  1207. function $String(){return smalltalk.String||(typeof String=="undefined"?nil:String)}
  1208. return smalltalk.withContext(function($ctx1) {
  1209. _st(_st(_st(html)._span())._asJQuery())._html_(_st($String())._streamContents_((function(str){
  1210. return smalltalk.withContext(function($ctx2) {
  1211. _st(anInteger)._timesRepeat_((function(){
  1212. return smalltalk.withContext(function($ctx3) {
  1213. return _st(str)._nextPutAll_("    ");
  1214. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1215. return _st(str)._nextPutAll_(_st(aClass)._name());
  1216. }, function($ctx2) {$ctx2.fillBlock({str:str},$ctx1)})})));
  1217. return self}, function($ctx1) {$ctx1.fill(self,"renderItemLabel:level:on:",{aClass:aClass,anInteger:anInteger,html:html},smalltalk.HLClassesListWidget)})},
  1218. messageSends: ["html:", "streamContents:", "timesRepeat:", "nextPutAll:", "name", "asJQuery", "span"]}),
  1219. smalltalk.HLClassesListWidget);
  1220. smalltalk.addMethod(
  1221. smalltalk.method({
  1222. selector: "renderItemLabel:on:",
  1223. fn: function (aClass,html){
  1224. var self=this;
  1225. return smalltalk.withContext(function($ctx1) {
  1226. _st(self)._renderItemLabel_level_on_(aClass,(0),html);
  1227. return self}, function($ctx1) {$ctx1.fill(self,"renderItemLabel:on:",{aClass:aClass,html:html},smalltalk.HLClassesListWidget)})},
  1228. messageSends: ["renderItemLabel:level:on:"]}),
  1229. smalltalk.HLClassesListWidget);
  1230. smalltalk.addMethod(
  1231. smalltalk.method({
  1232. selector: "renderListOn:",
  1233. fn: function (html){
  1234. var self=this;
  1235. return smalltalk.withContext(function($ctx1) {
  1236. _st(_st(self)._getRootClassesOf_(_st(self)._items()))._do_((function(each){
  1237. return smalltalk.withContext(function($ctx2) {
  1238. return _st(self)._renderItem_on_(each,html);
  1239. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  1240. return self}, function($ctx1) {$ctx1.fill(self,"renderListOn:",{html:html},smalltalk.HLClassesListWidget)})},
  1241. messageSends: ["do:", "renderItem:on:", "getRootClassesOf:", "items"]}),
  1242. smalltalk.HLClassesListWidget);
  1243. smalltalk.addMethod(
  1244. smalltalk.method({
  1245. selector: "selectItem:",
  1246. fn: function (aClass){
  1247. var self=this;
  1248. return smalltalk.withContext(function($ctx1) {
  1249. _st(_st(self)._model())._selectedClass_(aClass);
  1250. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{aClass:aClass},smalltalk.HLClassesListWidget)})},
  1251. messageSends: ["selectedClass:", "model"]}),
  1252. smalltalk.HLClassesListWidget);
  1253. smalltalk.addMethod(
  1254. smalltalk.method({
  1255. selector: "setItemsForPackage:",
  1256. fn: function (aPackage){
  1257. var self=this;
  1258. return smalltalk.withContext(function($ctx1) {
  1259. var $1,$3,$2;
  1260. $1=self;
  1261. $3=aPackage;
  1262. if(($receiver = $3) == nil || $receiver == undefined){
  1263. $2=[];
  1264. } else {
  1265. $2=_st(_st(_st(_st(_st(aPackage)._classes())._collect_((function(each){
  1266. return smalltalk.withContext(function($ctx2) {
  1267. return _st(each)._theNonMetaClass();
  1268. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})))._asSet())._asArray())._sort_((function(a,b){
  1269. return smalltalk.withContext(function($ctx2) {
  1270. return _st(_st(a)._name()).__lt(_st(b)._name());
  1271. }, function($ctx2) {$ctx2.fillBlock({a:a,b:b},$ctx1)})}));
  1272. };
  1273. _st($1)._items_($2);
  1274. return self}, function($ctx1) {$ctx1.fill(self,"setItemsForPackage:",{aPackage:aPackage},smalltalk.HLClassesListWidget)})},
  1275. messageSends: ["items:", "ifNil:ifNotNil:", "sort:", "<", "name", "asArray", "asSet", "collect:", "theNonMetaClass", "classes"]}),
  1276. smalltalk.HLClassesListWidget);
  1277. smalltalk.addMethod(
  1278. smalltalk.method({
  1279. selector: "setItemsForSelectedPackage",
  1280. fn: function (){
  1281. var self=this;
  1282. return smalltalk.withContext(function($ctx1) {
  1283. _st(self)._setItemsForPackage_(_st(_st(self)._model())._selectedPackage());
  1284. return self}, function($ctx1) {$ctx1.fill(self,"setItemsForSelectedPackage",{},smalltalk.HLClassesListWidget)})},
  1285. messageSends: ["setItemsForPackage:", "selectedPackage", "model"]}),
  1286. smalltalk.HLClassesListWidget);
  1287. smalltalk.addMethod(
  1288. smalltalk.method({
  1289. selector: "showClass",
  1290. fn: function (){
  1291. var self=this;
  1292. return smalltalk.withContext(function($ctx1) {
  1293. var $1;
  1294. $1=_st(_st(_st(self)._model())._showInstance())._not();
  1295. return $1;
  1296. }, function($ctx1) {$ctx1.fill(self,"showClass",{},smalltalk.HLClassesListWidget)})},
  1297. messageSends: ["not", "showInstance", "model"]}),
  1298. smalltalk.HLClassesListWidget);
  1299. smalltalk.addMethod(
  1300. smalltalk.method({
  1301. selector: "showComment",
  1302. fn: function (){
  1303. var self=this;
  1304. return smalltalk.withContext(function($ctx1) {
  1305. var $1;
  1306. $1=_st(_st(self)._model())._showComment();
  1307. return $1;
  1308. }, function($ctx1) {$ctx1.fill(self,"showComment",{},smalltalk.HLClassesListWidget)})},
  1309. messageSends: ["showComment", "model"]}),
  1310. smalltalk.HLClassesListWidget);
  1311. smalltalk.addMethod(
  1312. smalltalk.method({
  1313. selector: "showComment:",
  1314. fn: function (aBoolean){
  1315. var self=this;
  1316. return smalltalk.withContext(function($ctx1) {
  1317. _st(_st(self)._model())._showComment_(aBoolean);
  1318. return self}, function($ctx1) {$ctx1.fill(self,"showComment:",{aBoolean:aBoolean},smalltalk.HLClassesListWidget)})},
  1319. messageSends: ["showComment:", "model"]}),
  1320. smalltalk.HLClassesListWidget);
  1321. smalltalk.addMethod(
  1322. smalltalk.method({
  1323. selector: "showInstance",
  1324. fn: function (){
  1325. var self=this;
  1326. return smalltalk.withContext(function($ctx1) {
  1327. var $1;
  1328. $1=_st(_st(self)._model())._showInstance();
  1329. return $1;
  1330. }, function($ctx1) {$ctx1.fill(self,"showInstance",{},smalltalk.HLClassesListWidget)})},
  1331. messageSends: ["showInstance", "model"]}),
  1332. smalltalk.HLClassesListWidget);
  1333. smalltalk.addMethod(
  1334. smalltalk.method({
  1335. selector: "showInstance:",
  1336. fn: function (aBoolean){
  1337. var self=this;
  1338. return smalltalk.withContext(function($ctx1) {
  1339. _st(_st(self)._model())._showInstance_(aBoolean);
  1340. return self}, function($ctx1) {$ctx1.fill(self,"showInstance:",{aBoolean:aBoolean},smalltalk.HLClassesListWidget)})},
  1341. messageSends: ["showInstance:", "model"]}),
  1342. smalltalk.HLClassesListWidget);
  1343. smalltalk.addMethod(
  1344. smalltalk.method({
  1345. selector: "toggleShowComment",
  1346. fn: function (){
  1347. var self=this;
  1348. return smalltalk.withContext(function($ctx1) {
  1349. _st(_st(self)._model())._showComment_(_st(_st(self)._showComment())._not());
  1350. return self}, function($ctx1) {$ctx1.fill(self,"toggleShowComment",{},smalltalk.HLClassesListWidget)})},
  1351. messageSends: ["showComment:", "not", "showComment", "model"]}),
  1352. smalltalk.HLClassesListWidget);
  1353. smalltalk.addClass('HLDocumentationWidget', smalltalk.HLFocusableWidget, ['model'], 'Helios-Browser');
  1354. smalltalk.addMethod(
  1355. smalltalk.method({
  1356. selector: "defaultDocumentation",
  1357. fn: function (){
  1358. var self=this;
  1359. return smalltalk.withContext(function($ctx1) {
  1360. return "No documentation available. \x0a**That's bad. Seriously.**";
  1361. }, function($ctx1) {$ctx1.fill(self,"defaultDocumentation",{},smalltalk.HLDocumentationWidget)})},
  1362. messageSends: []}),
  1363. smalltalk.HLDocumentationWidget);
  1364. smalltalk.addMethod(
  1365. smalltalk.method({
  1366. selector: "defaultHead",
  1367. fn: function (){
  1368. var self=this;
  1369. return smalltalk.withContext(function($ctx1) {
  1370. return "No class selected";
  1371. }, function($ctx1) {$ctx1.fill(self,"defaultHead",{},smalltalk.HLDocumentationWidget)})},
  1372. messageSends: []}),
  1373. smalltalk.HLDocumentationWidget);
  1374. smalltalk.addMethod(
  1375. smalltalk.method({
  1376. selector: "documentation",
  1377. fn: function (){
  1378. var self=this;
  1379. return smalltalk.withContext(function($ctx1) {
  1380. var $2,$1;
  1381. $2=_st(self)._selectedItem();
  1382. if(($receiver = $2) == nil || $receiver == undefined){
  1383. $1="";
  1384. } else {
  1385. var item;
  1386. item=$receiver;
  1387. $1=_st(_st(item)._comment())._ifEmpty_((function(){
  1388. return smalltalk.withContext(function($ctx2) {
  1389. return _st(self)._defaultDocumentation();
  1390. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1391. };
  1392. return $1;
  1393. }, function($ctx1) {$ctx1.fill(self,"documentation",{},smalltalk.HLDocumentationWidget)})},
  1394. messageSends: ["ifNil:ifNotNil:", "ifEmpty:", "defaultDocumentation", "comment", "selectedItem"]}),
  1395. smalltalk.HLDocumentationWidget);
  1396. smalltalk.addMethod(
  1397. smalltalk.method({
  1398. selector: "head",
  1399. fn: function (){
  1400. var self=this;
  1401. return smalltalk.withContext(function($ctx1) {
  1402. var $2,$1;
  1403. $2=_st(self)._selectedItem();
  1404. if(($receiver = $2) == nil || $receiver == undefined){
  1405. $1=_st(self)._defaultHead();
  1406. } else {
  1407. var item;
  1408. item=$receiver;
  1409. $1=_st(item)._name();
  1410. };
  1411. return $1;
  1412. }, function($ctx1) {$ctx1.fill(self,"head",{},smalltalk.HLDocumentationWidget)})},
  1413. messageSends: ["ifNil:ifNotNil:", "defaultHead", "name", "selectedItem"]}),
  1414. smalltalk.HLDocumentationWidget);
  1415. smalltalk.addMethod(
  1416. smalltalk.method({
  1417. selector: "model",
  1418. fn: function (){
  1419. var self=this;
  1420. return smalltalk.withContext(function($ctx1) {
  1421. var $1;
  1422. $1=self["@model"];
  1423. return $1;
  1424. }, function($ctx1) {$ctx1.fill(self,"model",{},smalltalk.HLDocumentationWidget)})},
  1425. messageSends: []}),
  1426. smalltalk.HLDocumentationWidget);
  1427. smalltalk.addMethod(
  1428. smalltalk.method({
  1429. selector: "model:",
  1430. fn: function (aModel){
  1431. var self=this;
  1432. return smalltalk.withContext(function($ctx1) {
  1433. self["@model"]=aModel;
  1434. _st(self)._observeModel();
  1435. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel},smalltalk.HLDocumentationWidget)})},
  1436. messageSends: ["observeModel"]}),
  1437. smalltalk.HLDocumentationWidget);
  1438. smalltalk.addMethod(
  1439. smalltalk.method({
  1440. selector: "observeModel",
  1441. fn: function (){
  1442. var self=this;
  1443. function $HLClassSelected(){return smalltalk.HLClassSelected||(typeof HLClassSelected=="undefined"?nil:HLClassSelected)}
  1444. return smalltalk.withContext(function($ctx1) {
  1445. _st(_st(_st(self)._model())._announcer())._on_send_to_($HLClassSelected(),"onClassSelected:",self);
  1446. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{},smalltalk.HLDocumentationWidget)})},
  1447. messageSends: ["on:send:to:", "announcer", "model"]}),
  1448. smalltalk.HLDocumentationWidget);
  1449. smalltalk.addMethod(
  1450. smalltalk.method({
  1451. selector: "onClassSelected:",
  1452. fn: function (anAnnouncement){
  1453. var self=this;
  1454. return smalltalk.withContext(function($ctx1) {
  1455. _st(self)._refresh();
  1456. return self}, function($ctx1) {$ctx1.fill(self,"onClassSelected:",{anAnnouncement:anAnnouncement},smalltalk.HLDocumentationWidget)})},
  1457. messageSends: ["refresh"]}),
  1458. smalltalk.HLDocumentationWidget);
  1459. smalltalk.addMethod(
  1460. smalltalk.method({
  1461. selector: "renderContentOn:",
  1462. fn: function (html){
  1463. var self=this;
  1464. return smalltalk.withContext(function($ctx1) {
  1465. var $1,$3,$4,$2;
  1466. $1=_st(html)._div();
  1467. _st($1)._class_("doc");
  1468. $2=_st($1)._with_((function(){
  1469. return smalltalk.withContext(function($ctx2) {
  1470. $3=self;
  1471. _st($3)._renderHeadOn_(html);
  1472. $4=_st($3)._renderDocOn_(html);
  1473. return $4;
  1474. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1475. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLDocumentationWidget)})},
  1476. messageSends: ["class:", "div", "with:", "renderHeadOn:", "renderDocOn:"]}),
  1477. smalltalk.HLDocumentationWidget);
  1478. smalltalk.addMethod(
  1479. smalltalk.method({
  1480. selector: "renderDocOn:",
  1481. fn: function (html){
  1482. var self=this;
  1483. function $Showdown(){return smalltalk.Showdown||(typeof Showdown=="undefined"?nil:Showdown)}
  1484. return smalltalk.withContext(function($ctx1) {
  1485. var $1,$2,$3;
  1486. $1=_st(self)._selectedItem();
  1487. if(($receiver = $1) == nil || $receiver == undefined){
  1488. $1;
  1489. } else {
  1490. _st(self)._renderInheritanceOn_(html);
  1491. _st(_st(html)._h1())._with_("Overview");
  1492. $2=_st(html)._div();
  1493. _st($2)._class_("markdown");
  1494. $3=_st($2)._asJQuery();
  1495. _st($3)._html_(_st(_st(_st($Showdown())._at_("converter"))._new())._makeHtml_(_st(self)._documentation()));
  1496. };
  1497. return self}, function($ctx1) {$ctx1.fill(self,"renderDocOn:",{html:html},smalltalk.HLDocumentationWidget)})},
  1498. messageSends: ["ifNotNil:", "renderInheritanceOn:", "with:", "h1", "html:", "makeHtml:", "documentation", "new", "at:", "class:", "div", "asJQuery", "selectedItem"]}),
  1499. smalltalk.HLDocumentationWidget);
  1500. smalltalk.addMethod(
  1501. smalltalk.method({
  1502. selector: "renderHeadOn:",
  1503. fn: function (html){
  1504. var self=this;
  1505. return smalltalk.withContext(function($ctx1) {
  1506. var $1,$2;
  1507. $1=_st(html)._div();
  1508. _st($1)._class_("head");
  1509. $2=_st($1)._with_(_st(self)._head());
  1510. return self}, function($ctx1) {$ctx1.fill(self,"renderHeadOn:",{html:html},smalltalk.HLDocumentationWidget)})},
  1511. messageSends: ["class:", "div", "with:", "head"]}),
  1512. smalltalk.HLDocumentationWidget);
  1513. smalltalk.addMethod(
  1514. smalltalk.method({
  1515. selector: "renderInheritanceOn:",
  1516. fn: function (html){
  1517. var self=this;
  1518. return smalltalk.withContext(function($ctx1) {
  1519. var $1,$3,$4,$5,$2;
  1520. $1=_st(html)._div();
  1521. _st($1)._class_("inheritance");
  1522. $2=_st($1)._with_((function(){
  1523. return smalltalk.withContext(function($ctx2) {
  1524. _st(html)._with_("Subclass of ");
  1525. $3=_st(_st(self)._selectedItem())._superclass();
  1526. if(($receiver = $3) == nil || $receiver == undefined){
  1527. return _st(_st(html)._em())._with_("nil");
  1528. } else {
  1529. $4=_st(html)._a();
  1530. _st($4)._with_(_st(_st(_st(self)._selectedItem())._superclass())._name());
  1531. $5=_st($4)._onClick_((function(){
  1532. return smalltalk.withContext(function($ctx3) {
  1533. return _st(self)._selectClass_(_st(_st(self)._selectedItem())._superclass());
  1534. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1535. return $5;
  1536. };
  1537. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1538. return self}, function($ctx1) {$ctx1.fill(self,"renderInheritanceOn:",{html:html},smalltalk.HLDocumentationWidget)})},
  1539. messageSends: ["class:", "div", "with:", "ifNil:ifNotNil:", "em", "name", "superclass", "selectedItem", "a", "onClick:", "selectClass:"]}),
  1540. smalltalk.HLDocumentationWidget);
  1541. smalltalk.addMethod(
  1542. smalltalk.method({
  1543. selector: "selectClass:",
  1544. fn: function (aClass){
  1545. var self=this;
  1546. return smalltalk.withContext(function($ctx1) {
  1547. _st(_st(self)._model())._selectedClass_(aClass);
  1548. return self}, function($ctx1) {$ctx1.fill(self,"selectClass:",{aClass:aClass},smalltalk.HLDocumentationWidget)})},
  1549. messageSends: ["selectedClass:", "model"]}),
  1550. smalltalk.HLDocumentationWidget);
  1551. smalltalk.addMethod(
  1552. smalltalk.method({
  1553. selector: "selectedItem",
  1554. fn: function (){
  1555. var self=this;
  1556. return smalltalk.withContext(function($ctx1) {
  1557. var $2,$1;
  1558. $2=_st(_st(self)._model())._selectedClass();
  1559. if(($receiver = $2) == nil || $receiver == undefined){
  1560. $1=$2;
  1561. } else {
  1562. var class_;
  1563. class_=$receiver;
  1564. $1=_st(class_)._theNonMetaClass();
  1565. };
  1566. return $1;
  1567. }, function($ctx1) {$ctx1.fill(self,"selectedItem",{},smalltalk.HLDocumentationWidget)})},
  1568. messageSends: ["ifNotNil:", "theNonMetaClass", "selectedClass", "model"]}),
  1569. smalltalk.HLDocumentationWidget);
  1570. smalltalk.addMethod(
  1571. smalltalk.method({
  1572. selector: "unregister",
  1573. fn: function (){
  1574. var self=this;
  1575. return smalltalk.withContext(function($ctx1) {
  1576. smalltalk.HLFocusableWidget.fn.prototype._unregister.apply(_st(self), []);
  1577. _st(_st(_st(self)._model())._announcer())._unregister_(self);
  1578. return self}, function($ctx1) {$ctx1.fill(self,"unregister",{},smalltalk.HLDocumentationWidget)})},
  1579. messageSends: ["unregister", "unregister:", "announcer", "model"]}),
  1580. smalltalk.HLDocumentationWidget);
  1581. smalltalk.addClass('HLMethodsListWidget', smalltalk.HLToolListWidget, ['selectorsCache'], 'Helios-Browser');
  1582. smalltalk.addMethod(
  1583. smalltalk.method({
  1584. selector: "allProtocol",
  1585. fn: function (){
  1586. var self=this;
  1587. return smalltalk.withContext(function($ctx1) {
  1588. var $1;
  1589. $1=_st(_st(self)._model())._allProtocol();
  1590. return $1;
  1591. }, function($ctx1) {$ctx1.fill(self,"allProtocol",{},smalltalk.HLMethodsListWidget)})},
  1592. messageSends: ["allProtocol", "model"]}),
  1593. smalltalk.HLMethodsListWidget);
  1594. smalltalk.addMethod(
  1595. smalltalk.method({
  1596. selector: "iconForItem:",
  1597. fn: function (aSelector){
  1598. var self=this;
  1599. var override,overriden,method;
  1600. return smalltalk.withContext(function($ctx1) {
  1601. var $2,$3,$4,$1;
  1602. method=_st(self)._methodForSelector_(aSelector);
  1603. override=_st(self)._isOverride_(method);
  1604. overriden=_st(self)._isOverridden_(method);
  1605. $2=override;
  1606. if(smalltalk.assert($2)){
  1607. $3=overriden;
  1608. if(smalltalk.assert($3)){
  1609. $1="icon-resize-vertical";
  1610. } else {
  1611. $1="icon-arrow-up";
  1612. };
  1613. } else {
  1614. $4=overriden;
  1615. if(smalltalk.assert($4)){
  1616. $1="icon-arrow-down";
  1617. } else {
  1618. $1="icon-none";
  1619. };
  1620. };
  1621. return $1;
  1622. }, function($ctx1) {$ctx1.fill(self,"iconForItem:",{aSelector:aSelector,override:override,overriden:overriden,method:method},smalltalk.HLMethodsListWidget)})},
  1623. messageSends: ["methodForSelector:", "isOverride:", "isOverridden:", "ifTrue:ifFalse:"]}),
  1624. smalltalk.HLMethodsListWidget);
  1625. smalltalk.addMethod(
  1626. smalltalk.method({
  1627. selector: "isOverridden:",
  1628. fn: function (aMethod){
  1629. var self=this;
  1630. return smalltalk.withContext(function($ctx1) {
  1631. var $1;
  1632. $1=_st(_st(self)._selectorsCache())._isOverridden_(aMethod);
  1633. return $1;
  1634. }, function($ctx1) {$ctx1.fill(self,"isOverridden:",{aMethod:aMethod},smalltalk.HLMethodsListWidget)})},
  1635. messageSends: ["isOverridden:", "selectorsCache"]}),
  1636. smalltalk.HLMethodsListWidget);
  1637. smalltalk.addMethod(
  1638. smalltalk.method({
  1639. selector: "isOverride:",
  1640. fn: function (aMethod){
  1641. var self=this;
  1642. return smalltalk.withContext(function($ctx1) {
  1643. var $1;
  1644. $1=_st(_st(self)._selectorsCache())._isOverride_(aMethod);
  1645. return $1;
  1646. }, function($ctx1) {$ctx1.fill(self,"isOverride:",{aMethod:aMethod},smalltalk.HLMethodsListWidget)})},
  1647. messageSends: ["isOverride:", "selectorsCache"]}),
  1648. smalltalk.HLMethodsListWidget);
  1649. smalltalk.addMethod(
  1650. smalltalk.method({
  1651. selector: "label",
  1652. fn: function (){
  1653. var self=this;
  1654. return smalltalk.withContext(function($ctx1) {
  1655. return "Methods";
  1656. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLMethodsListWidget)})},
  1657. messageSends: []}),
  1658. smalltalk.HLMethodsListWidget);
  1659. smalltalk.addMethod(
  1660. smalltalk.method({
  1661. selector: "methodForSelector:",
  1662. fn: function (aSelector){
  1663. var self=this;
  1664. return smalltalk.withContext(function($ctx1) {
  1665. var $1;
  1666. $1=_st(_st(_st(_st(self)._model())._selectedClass())._methodDictionary())._at_(aSelector);
  1667. return $1;
  1668. }, function($ctx1) {$ctx1.fill(self,"methodForSelector:",{aSelector:aSelector},smalltalk.HLMethodsListWidget)})},
  1669. messageSends: ["at:", "methodDictionary", "selectedClass", "model"]}),
  1670. smalltalk.HLMethodsListWidget);
  1671. smalltalk.addMethod(
  1672. smalltalk.method({
  1673. selector: "methodsInProtocol:",
  1674. fn: function (aString){
  1675. var self=this;
  1676. return smalltalk.withContext(function($ctx1) {
  1677. var $1,$2,$4,$3;
  1678. $1=_st(_st(self)._model())._selectedClass();
  1679. if(($receiver = $1) == nil || $receiver == undefined){
  1680. $2=[];
  1681. return $2;
  1682. } else {
  1683. $1;
  1684. };
  1685. $4=_st(aString).__eq(_st(self)._allProtocol());
  1686. if(smalltalk.assert($4)){
  1687. $3=_st(_st(_st(self)._model())._selectedClass())._methods();
  1688. } else {
  1689. $3=_st(_st(_st(self)._model())._selectedClass())._methodsInProtocol_(aString);
  1690. };
  1691. return $3;
  1692. }, function($ctx1) {$ctx1.fill(self,"methodsInProtocol:",{aString:aString},smalltalk.HLMethodsListWidget)})},
  1693. messageSends: ["ifNil:", "selectedClass", "model", "ifTrue:ifFalse:", "methods", "methodsInProtocol:", "=", "allProtocol"]}),
  1694. smalltalk.HLMethodsListWidget);
  1695. smalltalk.addMethod(
  1696. smalltalk.method({
  1697. selector: "observeModel",
  1698. fn: function (){
  1699. var self=this;
  1700. function $HLProtocolSelected(){return smalltalk.HLProtocolSelected||(typeof HLProtocolSelected=="undefined"?nil:HLProtocolSelected)}
  1701. function $HLShowInstanceToggled(){return smalltalk.HLShowInstanceToggled||(typeof HLShowInstanceToggled=="undefined"?nil:HLShowInstanceToggled)}
  1702. function $HLMethodSelected(){return smalltalk.HLMethodSelected||(typeof HLMethodSelected=="undefined"?nil:HLMethodSelected)}
  1703. function $HLMethodsFocusRequested(){return smalltalk.HLMethodsFocusRequested||(typeof HLMethodsFocusRequested=="undefined"?nil:HLMethodsFocusRequested)}
  1704. return smalltalk.withContext(function($ctx1) {
  1705. var $1,$2;
  1706. $1=_st(_st(self)._model())._announcer();
  1707. _st($1)._on_send_to_($HLProtocolSelected(),"onProtocolSelected:",self);
  1708. _st($1)._on_send_to_($HLShowInstanceToggled(),"onShowInstanceToggled",self);
  1709. _st($1)._on_send_to_($HLMethodSelected(),"onMethodSelected:",self);
  1710. $2=_st($1)._on_send_to_($HLMethodsFocusRequested(),"onMethodsFocusRequested",self);
  1711. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{},smalltalk.HLMethodsListWidget)})},
  1712. messageSends: ["on:send:to:", "announcer", "model"]}),
  1713. smalltalk.HLMethodsListWidget);
  1714. smalltalk.addMethod(
  1715. smalltalk.method({
  1716. selector: "observeSystem",
  1717. fn: function (){
  1718. var self=this;
  1719. function $ProtocolAdded(){return smalltalk.ProtocolAdded||(typeof ProtocolAdded=="undefined"?nil:ProtocolAdded)}
  1720. function $ProtocolRemoved(){return smalltalk.ProtocolRemoved||(typeof ProtocolRemoved=="undefined"?nil:ProtocolRemoved)}
  1721. function $MethodAdded(){return smalltalk.MethodAdded||(typeof MethodAdded=="undefined"?nil:MethodAdded)}
  1722. function $MethodRemoved(){return smalltalk.MethodRemoved||(typeof MethodRemoved=="undefined"?nil:MethodRemoved)}
  1723. function $MethodMoved(){return smalltalk.MethodMoved||(typeof MethodMoved=="undefined"?nil:MethodMoved)}
  1724. return smalltalk.withContext(function($ctx1) {
  1725. var $1,$2;
  1726. $1=_st(_st(self)._model())._systemAnnouncer();
  1727. _st($1)._on_send_to_($ProtocolAdded(),"onProtocolAdded:",self);
  1728. _st($1)._on_send_to_($ProtocolRemoved(),"onProtocolRemoved:",self);
  1729. _st($1)._on_send_to_($MethodAdded(),"onMethodAdded:",self);
  1730. _st($1)._on_send_to_($MethodRemoved(),"onMethodRemoved:",self);
  1731. $2=_st($1)._on_send_to_($MethodMoved(),"onMethodMoved:",self);
  1732. return self}, function($ctx1) {$ctx1.fill(self,"observeSystem",{},smalltalk.HLMethodsListWidget)})},
  1733. messageSends: ["on:send:to:", "systemAnnouncer", "model"]}),
  1734. smalltalk.HLMethodsListWidget);
  1735. smalltalk.addMethod(
  1736. smalltalk.method({
  1737. selector: "onMethodAdded:",
  1738. fn: function (anAnnouncement){
  1739. var self=this;
  1740. return smalltalk.withContext(function($ctx1) {
  1741. var $1,$2;
  1742. $1=_st(_st(_st(self)._model())._selectedClass()).__eq(_st(_st(anAnnouncement)._method())._methodClass());
  1743. if(! smalltalk.assert($1)){
  1744. $2=self;
  1745. return $2;
  1746. };
  1747. _st(self)._setItemsForSelectedProtocol();
  1748. _st(self)._refresh();
  1749. return self}, function($ctx1) {$ctx1.fill(self,"onMethodAdded:",{anAnnouncement:anAnnouncement},smalltalk.HLMethodsListWidget)})},
  1750. messageSends: ["ifFalse:", "=", "methodClass", "method", "selectedClass", "model", "setItemsForSelectedProtocol", "refresh"]}),
  1751. smalltalk.HLMethodsListWidget);
  1752. smalltalk.addMethod(
  1753. smalltalk.method({
  1754. selector: "onMethodMoved:",
  1755. fn: function (anAnnouncement){
  1756. var self=this;
  1757. return smalltalk.withContext(function($ctx1) {
  1758. var $1,$2,$3,$4,$5;
  1759. $1=_st(_st(_st(self)._model())._selectedMethod()).__eq(_st(anAnnouncement)._method());
  1760. if(! smalltalk.assert($1)){
  1761. $2=self;
  1762. return $2;
  1763. };
  1764. $3=_st(_st(_st(self)._model())._selectedProtocol()).__eq(_st(_st(self)._model())._allProtocol());
  1765. if(! smalltalk.assert($3)){
  1766. $4=self;
  1767. _st($4)._selectedItem_(nil);
  1768. _st($4)._selectItem_(nil);
  1769. _st($4)._setItemsForSelectedProtocol();
  1770. $5=_st($4)._refresh();
  1771. $5;
  1772. };
  1773. return self}, function($ctx1) {$ctx1.fill(self,"onMethodMoved:",{anAnnouncement:anAnnouncement},smalltalk.HLMethodsListWidget)})},
  1774. messageSends: ["ifFalse:", "=", "method", "selectedMethod", "model", "selectedItem:", "selectItem:", "setItemsForSelectedProtocol", "refresh", "allProtocol", "selectedProtocol"]}),
  1775. smalltalk.HLMethodsListWidget);
  1776. smalltalk.addMethod(
  1777. smalltalk.method({
  1778. selector: "onMethodRemoved:",
  1779. fn: function (anAnnouncement){
  1780. var self=this;
  1781. var method;
  1782. return smalltalk.withContext(function($ctx1) {
  1783. var $1,$2,$3,$4,$5;
  1784. var $early={};
  1785. try {
  1786. method=_st(anAnnouncement)._method();
  1787. _st(_st(self)._items())._detect_ifNone_((function(each){
  1788. return smalltalk.withContext(function($ctx2) {
  1789. return _st(each).__eq(_st(method)._selector());
  1790. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}),(function(){
  1791. return smalltalk.withContext(function($ctx2) {
  1792. $1=self;
  1793. throw $early=[$1];
  1794. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1795. $2=_st(self)._selectedItem();
  1796. if(($receiver = $2) == nil || $receiver == undefined){
  1797. $2;
  1798. } else {
  1799. $3=_st(_st(_st(method)._methodClass()).__eq(_st(_st(self)._model())._selectedClass()))._and_((function(){
  1800. return smalltalk.withContext(function($ctx2) {
  1801. return _st(_st(method)._selector()).__eq(_st(self)._selectedItem());
  1802. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1803. if(smalltalk.assert($3)){
  1804. $4=self;
  1805. _st($4)._selectedItem_(nil);
  1806. $5=_st($4)._selectItem_(nil);
  1807. $5;
  1808. };
  1809. };
  1810. _st(self)._setItemsForSelectedProtocol();
  1811. _st(self)._refresh();
  1812. return self}
  1813. catch(e) {if(e===$early)return e[0]; throw e}
  1814. }, function($ctx1) {$ctx1.fill(self,"onMethodRemoved:",{anAnnouncement:anAnnouncement,method:method},smalltalk.HLMethodsListWidget)})},
  1815. messageSends: ["method", "detect:ifNone:", "=", "selector", "items", "ifNotNil:", "ifTrue:", "selectedItem:", "selectItem:", "and:", "selectedItem", "selectedClass", "model", "methodClass", "setItemsForSelectedProtocol", "refresh"]}),
  1816. smalltalk.HLMethodsListWidget);
  1817. smalltalk.addMethod(
  1818. smalltalk.method({
  1819. selector: "onMethodSelected:",
  1820. fn: function (anAnnouncement){
  1821. var self=this;
  1822. var selector,method;
  1823. return smalltalk.withContext(function($ctx1) {
  1824. var $1,$2,$3;
  1825. method=_st(anAnnouncement)._item();
  1826. $1=_st(method)._isCompiledMethod();
  1827. if(smalltalk.assert($1)){
  1828. selector=_st(method)._selector();
  1829. } else {
  1830. selector=nil;
  1831. };
  1832. $2=self;
  1833. _st($2)._selectedItem_(selector);
  1834. $3=_st($2)._activateItem_(selector);
  1835. return self}, function($ctx1) {$ctx1.fill(self,"onMethodSelected:",{anAnnouncement:anAnnouncement,selector:selector,method:method},smalltalk.HLMethodsListWidget)})},
  1836. messageSends: ["item", "ifTrue:ifFalse:", "selector", "isCompiledMethod", "selectedItem:", "activateItem:"]}),
  1837. smalltalk.HLMethodsListWidget);
  1838. smalltalk.addMethod(
  1839. smalltalk.method({
  1840. selector: "onMethodsFocusRequested",
  1841. fn: function (){
  1842. var self=this;
  1843. return smalltalk.withContext(function($ctx1) {
  1844. _st(self)._focus();
  1845. return self}, function($ctx1) {$ctx1.fill(self,"onMethodsFocusRequested",{},smalltalk.HLMethodsListWidget)})},
  1846. messageSends: ["focus"]}),
  1847. smalltalk.HLMethodsListWidget);
  1848. smalltalk.addMethod(
  1849. smalltalk.method({
  1850. selector: "onProtocolAdded:",
  1851. fn: function (anAnnouncement){
  1852. var self=this;
  1853. return smalltalk.withContext(function($ctx1) {
  1854. var $1,$2;
  1855. $1=_st(_st(_st(self)._model())._selectedClass()).__eq(_st(anAnnouncement)._theClass());
  1856. if(! smalltalk.assert($1)){
  1857. $2=self;
  1858. return $2;
  1859. };
  1860. _st(self)._setItemsForSelectedProtocol();
  1861. _st(self)._refresh();
  1862. _st(self)._focus();
  1863. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolAdded:",{anAnnouncement:anAnnouncement},smalltalk.HLMethodsListWidget)})},
  1864. messageSends: ["ifFalse:", "=", "theClass", "selectedClass", "model", "setItemsForSelectedProtocol", "refresh", "focus"]}),
  1865. smalltalk.HLMethodsListWidget);
  1866. smalltalk.addMethod(
  1867. smalltalk.method({
  1868. selector: "onProtocolRemoved:",
  1869. fn: function (anAnnouncement){
  1870. var self=this;
  1871. return smalltalk.withContext(function($ctx1) {
  1872. var $1,$2;
  1873. $1=_st(_st(_st(self)._model())._selectedClass()).__eq(_st(anAnnouncement)._theClass());
  1874. if(! smalltalk.assert($1)){
  1875. $2=self;
  1876. return $2;
  1877. };
  1878. _st(self)._setItemsForSelectedProtocol();
  1879. _st(self)._refresh();
  1880. _st(self)._focus();
  1881. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolRemoved:",{anAnnouncement:anAnnouncement},smalltalk.HLMethodsListWidget)})},
  1882. messageSends: ["ifFalse:", "=", "theClass", "selectedClass", "model", "setItemsForSelectedProtocol", "refresh", "focus"]}),
  1883. smalltalk.HLMethodsListWidget);
  1884. smalltalk.addMethod(
  1885. smalltalk.method({
  1886. selector: "onProtocolSelected:",
  1887. fn: function (anAnnouncement){
  1888. var self=this;
  1889. return smalltalk.withContext(function($ctx1) {
  1890. _st(self)._selectedItem_(nil);
  1891. _st(self)._setItemsForSelectedProtocol();
  1892. _st(self)._refresh();
  1893. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolSelected:",{anAnnouncement:anAnnouncement},smalltalk.HLMethodsListWidget)})},
  1894. messageSends: ["selectedItem:", "setItemsForSelectedProtocol", "refresh"]}),
  1895. smalltalk.HLMethodsListWidget);
  1896. smalltalk.addMethod(
  1897. smalltalk.method({
  1898. selector: "onShowInstanceToggled",
  1899. fn: function (){
  1900. var self=this;
  1901. return smalltalk.withContext(function($ctx1) {
  1902. _st(self)._onProtocolSelected_(nil);
  1903. return self}, function($ctx1) {$ctx1.fill(self,"onShowInstanceToggled",{},smalltalk.HLMethodsListWidget)})},
  1904. messageSends: ["onProtocolSelected:"]}),
  1905. smalltalk.HLMethodsListWidget);
  1906. smalltalk.addMethod(
  1907. smalltalk.method({
  1908. selector: "overrideSelectors",
  1909. fn: function (){
  1910. var self=this;
  1911. function $Set(){return smalltalk.Set||(typeof Set=="undefined"?nil:Set)}
  1912. return smalltalk.withContext(function($ctx1) {
  1913. var $2,$3,$1;
  1914. $1=_st(_st(self)._selectorsCache())._at_ifAbsentPut_("override",(function(){
  1915. return smalltalk.withContext(function($ctx2) {
  1916. return _st(_st(_st(_st(self)._model())._selectedClass())._allSuperclasses())._inject_into_(_st($Set())._new(),(function(acc,each){
  1917. return smalltalk.withContext(function($ctx3) {
  1918. $2=acc;
  1919. _st($2)._addAll_(_st(each)._selectors());
  1920. $3=_st($2)._yourself();
  1921. return $3;
  1922. }, function($ctx3) {$ctx3.fillBlock({acc:acc,each:each},$ctx1)})}));
  1923. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1924. return $1;
  1925. }, function($ctx1) {$ctx1.fill(self,"overrideSelectors",{},smalltalk.HLMethodsListWidget)})},
  1926. messageSends: ["at:ifAbsentPut:", "inject:into:", "new", "addAll:", "selectors", "yourself", "allSuperclasses", "selectedClass", "model", "selectorsCache"]}),
  1927. smalltalk.HLMethodsListWidget);
  1928. smalltalk.addMethod(
  1929. smalltalk.method({
  1930. selector: "overridenSelectors",
  1931. fn: function (){
  1932. var self=this;
  1933. function $Set(){return smalltalk.Set||(typeof Set=="undefined"?nil:Set)}
  1934. return smalltalk.withContext(function($ctx1) {
  1935. var $2,$3,$1;
  1936. $1=_st(_st(self)._selectorsCache())._at_ifAbsentPut_("overriden",(function(){
  1937. return smalltalk.withContext(function($ctx2) {
  1938. return _st(_st(_st(_st(self)._model())._selectedClass())._allSubclasses())._inject_into_(_st($Set())._new(),(function(acc,each){
  1939. return smalltalk.withContext(function($ctx3) {
  1940. $2=acc;
  1941. _st($2)._addAll_(_st(each)._selectors());
  1942. $3=_st($2)._yourself();
  1943. return $3;
  1944. }, function($ctx3) {$ctx3.fillBlock({acc:acc,each:each},$ctx1)})}));
  1945. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1946. return $1;
  1947. }, function($ctx1) {$ctx1.fill(self,"overridenSelectors",{},smalltalk.HLMethodsListWidget)})},
  1948. messageSends: ["at:ifAbsentPut:", "inject:into:", "new", "addAll:", "selectors", "yourself", "allSubclasses", "selectedClass", "model", "selectorsCache"]}),
  1949. smalltalk.HLMethodsListWidget);
  1950. smalltalk.addMethod(
  1951. smalltalk.method({
  1952. selector: "renderContentOn:",
  1953. fn: function (html){
  1954. var self=this;
  1955. return smalltalk.withContext(function($ctx1) {
  1956. var $1,$2,$3;
  1957. $1=_st(_st(self)._model())._showInstance();
  1958. if(smalltalk.assert($1)){
  1959. smalltalk.HLToolListWidget.fn.prototype._renderContentOn_.apply(_st(self), [html]);
  1960. } else {
  1961. $2=_st(html)._div();
  1962. _st($2)._class_("class_side");
  1963. $3=_st($2)._with_((function(){
  1964. return smalltalk.withContext(function($ctx2) {
  1965. return smalltalk.HLToolListWidget.fn.prototype._renderContentOn_.apply(_st(self), [html]);
  1966. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1967. $3;
  1968. };
  1969. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLMethodsListWidget)})},
  1970. messageSends: ["ifFalse:ifTrue:", "class:", "div", "with:", "renderContentOn:", "showInstance", "model"]}),
  1971. smalltalk.HLMethodsListWidget);
  1972. smalltalk.addMethod(
  1973. smalltalk.method({
  1974. selector: "renderItemLabel:on:",
  1975. fn: function (aSelector,html){
  1976. var self=this;
  1977. return smalltalk.withContext(function($ctx1) {
  1978. _st(html)._with_(aSelector);
  1979. return self}, function($ctx1) {$ctx1.fill(self,"renderItemLabel:on:",{aSelector:aSelector,html:html},smalltalk.HLMethodsListWidget)})},
  1980. messageSends: ["with:"]}),
  1981. smalltalk.HLMethodsListWidget);
  1982. smalltalk.addMethod(
  1983. smalltalk.method({
  1984. selector: "selectItem:",
  1985. fn: function (aSelector){
  1986. var self=this;
  1987. return smalltalk.withContext(function($ctx1) {
  1988. var $1,$2;
  1989. $1=aSelector;
  1990. if(($receiver = $1) == nil || $receiver == undefined){
  1991. $2=_st(_st(self)._model())._selectedMethod_(nil);
  1992. return $2;
  1993. } else {
  1994. $1;
  1995. };
  1996. _st(_st(self)._model())._selectedMethod_(_st(self)._methodForSelector_(aSelector));
  1997. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{aSelector:aSelector},smalltalk.HLMethodsListWidget)})},
  1998. messageSends: ["ifNil:", "selectedMethod:", "model", "methodForSelector:"]}),
  1999. smalltalk.HLMethodsListWidget);
  2000. smalltalk.addMethod(
  2001. smalltalk.method({
  2002. selector: "selectorsCache",
  2003. fn: function (){
  2004. var self=this;
  2005. return smalltalk.withContext(function($ctx1) {
  2006. var $1;
  2007. $1=_st(_st(self)._class())._selectorsCache();
  2008. return $1;
  2009. }, function($ctx1) {$ctx1.fill(self,"selectorsCache",{},smalltalk.HLMethodsListWidget)})},
  2010. messageSends: ["selectorsCache", "class"]}),
  2011. smalltalk.HLMethodsListWidget);
  2012. smalltalk.addMethod(
  2013. smalltalk.method({
  2014. selector: "selectorsInProtocol:",
  2015. fn: function (aString){
  2016. var self=this;
  2017. return smalltalk.withContext(function($ctx1) {
  2018. var $1;
  2019. $1=_st(_st(_st(self)._methodsInProtocol_(aString))._collect_((function(each){
  2020. return smalltalk.withContext(function($ctx2) {
  2021. return _st(each)._selector();
  2022. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})))._sorted();
  2023. return $1;
  2024. }, function($ctx1) {$ctx1.fill(self,"selectorsInProtocol:",{aString:aString},smalltalk.HLMethodsListWidget)})},
  2025. messageSends: ["sorted", "collect:", "selector", "methodsInProtocol:"]}),
  2026. smalltalk.HLMethodsListWidget);
  2027. smalltalk.addMethod(
  2028. smalltalk.method({
  2029. selector: "setItemsForProtocol:",
  2030. fn: function (aString){
  2031. var self=this;
  2032. return smalltalk.withContext(function($ctx1) {
  2033. var $2,$4,$3,$1;
  2034. $2=self;
  2035. $4=aString;
  2036. if(($receiver = $4) == nil || $receiver == undefined){
  2037. $3=[];
  2038. } else {
  2039. $3=_st(self)._selectorsInProtocol_(aString);
  2040. };
  2041. $1=_st($2)._items_($3);
  2042. return $1;
  2043. }, function($ctx1) {$ctx1.fill(self,"setItemsForProtocol:",{aString:aString},smalltalk.HLMethodsListWidget)})},
  2044. messageSends: ["items:", "ifNil:ifNotNil:", "selectorsInProtocol:"]}),
  2045. smalltalk.HLMethodsListWidget);
  2046. smalltalk.addMethod(
  2047. smalltalk.method({
  2048. selector: "setItemsForSelectedProtocol",
  2049. fn: function (){
  2050. var self=this;
  2051. return smalltalk.withContext(function($ctx1) {
  2052. _st(self)._setItemsForProtocol_(_st(_st(self)._model())._selectedProtocol());
  2053. return self}, function($ctx1) {$ctx1.fill(self,"setItemsForSelectedProtocol",{},smalltalk.HLMethodsListWidget)})},
  2054. messageSends: ["setItemsForProtocol:", "selectedProtocol", "model"]}),
  2055. smalltalk.HLMethodsListWidget);
  2056. smalltalk.HLMethodsListWidget.klass.iVarNames = ['selectorsCache'];
  2057. smalltalk.addMethod(
  2058. smalltalk.method({
  2059. selector: "selectorsCache",
  2060. fn: function (){
  2061. var self=this;
  2062. function $HLSelectorsCache(){return smalltalk.HLSelectorsCache||(typeof HLSelectorsCache=="undefined"?nil:HLSelectorsCache)}
  2063. return smalltalk.withContext(function($ctx1) {
  2064. var $1;
  2065. $1=_st($HLSelectorsCache())._current();
  2066. return $1;
  2067. }, function($ctx1) {$ctx1.fill(self,"selectorsCache",{},smalltalk.HLMethodsListWidget.klass)})},
  2068. messageSends: ["current"]}),
  2069. smalltalk.HLMethodsListWidget.klass);
  2070. smalltalk.addClass('HLPackagesListWidget', smalltalk.HLToolListWidget, [], 'Helios-Browser');
  2071. smalltalk.addMethod(
  2072. smalltalk.method({
  2073. selector: "commitPackage",
  2074. fn: function (){
  2075. var self=this;
  2076. return smalltalk.withContext(function($ctx1) {
  2077. _st(_st(self)._model())._commitPackage();
  2078. return self}, function($ctx1) {$ctx1.fill(self,"commitPackage",{},smalltalk.HLPackagesListWidget)})},
  2079. messageSends: ["commitPackage", "model"]}),
  2080. smalltalk.HLPackagesListWidget);
  2081. smalltalk.addMethod(
  2082. smalltalk.method({
  2083. selector: "focusClassesListWidget",
  2084. fn: function (){
  2085. var self=this;
  2086. function $HLClassesListFocus(){return smalltalk.HLClassesListFocus||(typeof HLClassesListFocus=="undefined"?nil:HLClassesListFocus)}
  2087. return smalltalk.withContext(function($ctx1) {
  2088. _st(_st(_st(self)._model())._announcer())._announce_(_st($HLClassesListFocus())._new());
  2089. return self}, function($ctx1) {$ctx1.fill(self,"focusClassesListWidget",{},smalltalk.HLPackagesListWidget)})},
  2090. messageSends: ["announce:", "new", "announcer", "model"]}),
  2091. smalltalk.HLPackagesListWidget);
  2092. smalltalk.addMethod(
  2093. smalltalk.method({
  2094. selector: "initializeItems",
  2095. fn: function (){
  2096. var self=this;
  2097. return smalltalk.withContext(function($ctx1) {
  2098. var $1;
  2099. self["@items"]=_st(_st(_st(self)._model())._packages())._sort_((function(a,b){
  2100. return smalltalk.withContext(function($ctx2) {
  2101. return _st(_st(a)._name()).__lt(_st(b)._name());
  2102. }, function($ctx2) {$ctx2.fillBlock({a:a,b:b},$ctx1)})}));
  2103. $1=self["@items"];
  2104. return $1;
  2105. }, function($ctx1) {$ctx1.fill(self,"initializeItems",{},smalltalk.HLPackagesListWidget)})},
  2106. messageSends: ["sort:", "<", "name", "packages", "model"]}),
  2107. smalltalk.HLPackagesListWidget);
  2108. smalltalk.addMethod(
  2109. smalltalk.method({
  2110. selector: "items",
  2111. fn: function (){
  2112. var self=this;
  2113. return smalltalk.withContext(function($ctx1) {
  2114. var $2,$1;
  2115. $2=self["@items"];
  2116. if(($receiver = $2) == nil || $receiver == undefined){
  2117. $1=_st(self)._initializeItems();
  2118. } else {
  2119. $1=$2;
  2120. };
  2121. return $1;
  2122. }, function($ctx1) {$ctx1.fill(self,"items",{},smalltalk.HLPackagesListWidget)})},
  2123. messageSends: ["ifNil:", "initializeItems"]}),
  2124. smalltalk.HLPackagesListWidget);
  2125. smalltalk.addMethod(
  2126. smalltalk.method({
  2127. selector: "label",
  2128. fn: function (){
  2129. var self=this;
  2130. return smalltalk.withContext(function($ctx1) {
  2131. return "Packages";
  2132. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLPackagesListWidget)})},
  2133. messageSends: []}),
  2134. smalltalk.HLPackagesListWidget);
  2135. smalltalk.addMethod(
  2136. smalltalk.method({
  2137. selector: "observeModel",
  2138. fn: function (){
  2139. var self=this;
  2140. function $HLPackageSelected(){return smalltalk.HLPackageSelected||(typeof HLPackageSelected=="undefined"?nil:HLPackageSelected)}
  2141. function $HLPackagesFocusRequested(){return smalltalk.HLPackagesFocusRequested||(typeof HLPackagesFocusRequested=="undefined"?nil:HLPackagesFocusRequested)}
  2142. return smalltalk.withContext(function($ctx1) {
  2143. var $1,$2;
  2144. $1=_st(_st(self)._model())._announcer();
  2145. _st($1)._on_send_to_($HLPackageSelected(),"onPackageSelected:",self);
  2146. $2=_st($1)._on_send_to_($HLPackagesFocusRequested(),"onPackagesFocusRequested",self);
  2147. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{},smalltalk.HLPackagesListWidget)})},
  2148. messageSends: ["on:send:to:", "announcer", "model"]}),
  2149. smalltalk.HLPackagesListWidget);
  2150. smalltalk.addMethod(
  2151. smalltalk.method({
  2152. selector: "observeSystem",
  2153. fn: function (){
  2154. var self=this;
  2155. function $ClassAdded(){return smalltalk.ClassAdded||(typeof ClassAdded=="undefined"?nil:ClassAdded)}
  2156. return smalltalk.withContext(function($ctx1) {
  2157. _st(_st(_st(self)._model())._systemAnnouncer())._on_send_to_($ClassAdded(),"onClassAdded:",self);
  2158. return self}, function($ctx1) {$ctx1.fill(self,"observeSystem",{},smalltalk.HLPackagesListWidget)})},
  2159. messageSends: ["on:send:to:", "systemAnnouncer", "model"]}),
  2160. smalltalk.HLPackagesListWidget);
  2161. smalltalk.addMethod(
  2162. smalltalk.method({
  2163. selector: "onClassAdded:",
  2164. fn: function (anAnnouncement){
  2165. var self=this;
  2166. return smalltalk.withContext(function($ctx1) {
  2167. var $1,$2,$3;
  2168. $1=_st(_st(self)._items())._includes_(_st(_st(anAnnouncement)._theClass())._package());
  2169. if(! smalltalk.assert($1)){
  2170. $2=self;
  2171. _st($2)._initializeItems();
  2172. $3=_st($2)._refresh();
  2173. $3;
  2174. };
  2175. return self}, function($ctx1) {$ctx1.fill(self,"onClassAdded:",{anAnnouncement:anAnnouncement},smalltalk.HLPackagesListWidget)})},
  2176. messageSends: ["ifFalse:", "initializeItems", "refresh", "includes:", "package", "theClass", "items"]}),
  2177. smalltalk.HLPackagesListWidget);
  2178. smalltalk.addMethod(
  2179. smalltalk.method({
  2180. selector: "onPackageSelected:",
  2181. fn: function (anAnnouncement){
  2182. var self=this;
  2183. var package_;
  2184. return smalltalk.withContext(function($ctx1) {
  2185. var $1,$2,$3;
  2186. package_=_st(anAnnouncement)._item();
  2187. _st(self)._selectedItem_(package_);
  2188. $1=_st(self)._hasFocus();
  2189. if(! smalltalk.assert($1)){
  2190. $2=self;
  2191. _st($2)._activateItem_(package_);
  2192. $3=_st($2)._focus();
  2193. $3;
  2194. };
  2195. return self}, function($ctx1) {$ctx1.fill(self,"onPackageSelected:",{anAnnouncement:anAnnouncement,package_:package_},smalltalk.HLPackagesListWidget)})},
  2196. messageSends: ["item", "selectedItem:", "ifFalse:", "activateItem:", "focus", "hasFocus"]}),
  2197. smalltalk.HLPackagesListWidget);
  2198. smalltalk.addMethod(
  2199. smalltalk.method({
  2200. selector: "onPackagesFocusRequested",
  2201. fn: function (){
  2202. var self=this;
  2203. return smalltalk.withContext(function($ctx1) {
  2204. _st(self)._focus();
  2205. return self}, function($ctx1) {$ctx1.fill(self,"onPackagesFocusRequested",{},smalltalk.HLPackagesListWidget)})},
  2206. messageSends: ["focus"]}),
  2207. smalltalk.HLPackagesListWidget);
  2208. smalltalk.addMethod(
  2209. smalltalk.method({
  2210. selector: "renderButtonsOn:",
  2211. fn: function (html){
  2212. var self=this;
  2213. return smalltalk.withContext(function($ctx1) {
  2214. var $1,$3,$4,$2;
  2215. $1=_st(html)._div();
  2216. _st($1)._class_("buttons");
  2217. $2=_st($1)._with_((function(){
  2218. return smalltalk.withContext(function($ctx2) {
  2219. $3=_st(html)._button();
  2220. _st($3)._class_("btn");
  2221. _st($3)._with_("Commit");
  2222. $4=_st($3)._onClick_((function(){
  2223. return smalltalk.withContext(function($ctx3) {
  2224. return _st(self)._commitPackage();
  2225. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  2226. return $4;
  2227. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2228. return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html},smalltalk.HLPackagesListWidget)})},
  2229. messageSends: ["class:", "div", "with:", "button", "onClick:", "commitPackage"]}),
  2230. smalltalk.HLPackagesListWidget);
  2231. smalltalk.addMethod(
  2232. smalltalk.method({
  2233. selector: "renderItemLabel:on:",
  2234. fn: function (aPackage,html){
  2235. var self=this;
  2236. return smalltalk.withContext(function($ctx1) {
  2237. _st(html)._with_(_st(aPackage)._name());
  2238. return self}, function($ctx1) {$ctx1.fill(self,"renderItemLabel:on:",{aPackage:aPackage,html:html},smalltalk.HLPackagesListWidget)})},
  2239. messageSends: ["with:", "name"]}),
  2240. smalltalk.HLPackagesListWidget);
  2241. smalltalk.addMethod(
  2242. smalltalk.method({
  2243. selector: "selectItem:",
  2244. fn: function (aPackage){
  2245. var self=this;
  2246. return smalltalk.withContext(function($ctx1) {
  2247. _st(_st(self)._model())._selectedPackage_(aPackage);
  2248. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{aPackage:aPackage},smalltalk.HLPackagesListWidget)})},
  2249. messageSends: ["selectedPackage:", "model"]}),
  2250. smalltalk.HLPackagesListWidget);
  2251. smalltalk.addClass('HLProtocolsListWidget', smalltalk.HLToolListWidget, [], 'Helios-Browser');
  2252. smalltalk.addMethod(
  2253. smalltalk.method({
  2254. selector: "allProtocol",
  2255. fn: function (){
  2256. var self=this;
  2257. return smalltalk.withContext(function($ctx1) {
  2258. var $1;
  2259. $1=_st(_st(self)._model())._allProtocol();
  2260. return $1;
  2261. }, function($ctx1) {$ctx1.fill(self,"allProtocol",{},smalltalk.HLProtocolsListWidget)})},
  2262. messageSends: ["allProtocol", "model"]}),
  2263. smalltalk.HLProtocolsListWidget);
  2264. smalltalk.addMethod(
  2265. smalltalk.method({
  2266. selector: "label",
  2267. fn: function (){
  2268. var self=this;
  2269. return smalltalk.withContext(function($ctx1) {
  2270. return "Protocols";
  2271. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLProtocolsListWidget)})},
  2272. messageSends: []}),
  2273. smalltalk.HLProtocolsListWidget);
  2274. smalltalk.addMethod(
  2275. smalltalk.method({
  2276. selector: "observeModel",
  2277. fn: function (){
  2278. var self=this;
  2279. function $HLClassSelected(){return smalltalk.HLClassSelected||(typeof HLClassSelected=="undefined"?nil:HLClassSelected)}
  2280. function $HLShowInstanceToggled(){return smalltalk.HLShowInstanceToggled||(typeof HLShowInstanceToggled=="undefined"?nil:HLShowInstanceToggled)}
  2281. function $HLProtocolSelected(){return smalltalk.HLProtocolSelected||(typeof HLProtocolSelected=="undefined"?nil:HLProtocolSelected)}
  2282. function $HLProtocolsFocusRequested(){return smalltalk.HLProtocolsFocusRequested||(typeof HLProtocolsFocusRequested=="undefined"?nil:HLProtocolsFocusRequested)}
  2283. return smalltalk.withContext(function($ctx1) {
  2284. var $1,$2;
  2285. $1=_st(_st(self)._model())._announcer();
  2286. _st($1)._on_send_to_($HLClassSelected(),"onClassSelected:",self);
  2287. _st($1)._on_send_to_($HLShowInstanceToggled(),"onClassSelected:",self);
  2288. _st($1)._on_send_to_($HLProtocolSelected(),"onProtocolSelected:",self);
  2289. $2=_st($1)._on_send_to_($HLProtocolsFocusRequested(),"onProtocolsFocusRequested",self);
  2290. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{},smalltalk.HLProtocolsListWidget)})},
  2291. messageSends: ["on:send:to:", "announcer", "model"]}),
  2292. smalltalk.HLProtocolsListWidget);
  2293. smalltalk.addMethod(
  2294. smalltalk.method({
  2295. selector: "observeSystem",
  2296. fn: function (){
  2297. var self=this;
  2298. function $ProtocolAdded(){return smalltalk.ProtocolAdded||(typeof ProtocolAdded=="undefined"?nil:ProtocolAdded)}
  2299. function $ProtocolRemoved(){return smalltalk.ProtocolRemoved||(typeof ProtocolRemoved=="undefined"?nil:ProtocolRemoved)}
  2300. return smalltalk.withContext(function($ctx1) {
  2301. var $1,$2;
  2302. $1=_st(_st(self)._model())._systemAnnouncer();
  2303. _st($1)._on_send_to_($ProtocolAdded(),"onProtocolAdded:",self);
  2304. $2=_st($1)._on_send_to_($ProtocolRemoved(),"onProtocolRemoved:",self);
  2305. return self}, function($ctx1) {$ctx1.fill(self,"observeSystem",{},smalltalk.HLProtocolsListWidget)})},
  2306. messageSends: ["on:send:to:", "systemAnnouncer", "model"]}),
  2307. smalltalk.HLProtocolsListWidget);
  2308. smalltalk.addMethod(
  2309. smalltalk.method({
  2310. selector: "onClassSelected:",
  2311. fn: function (anAnnouncement){
  2312. var self=this;
  2313. return smalltalk.withContext(function($ctx1) {
  2314. _st(self)._selectedItem_(nil);
  2315. _st(self)._setItemsForSelectedClass();
  2316. _st(self)._refresh();
  2317. return self}, function($ctx1) {$ctx1.fill(self,"onClassSelected:",{anAnnouncement:anAnnouncement},smalltalk.HLProtocolsListWidget)})},
  2318. messageSends: ["selectedItem:", "setItemsForSelectedClass", "refresh"]}),
  2319. smalltalk.HLProtocolsListWidget);
  2320. smalltalk.addMethod(
  2321. smalltalk.method({
  2322. selector: "onProtocolAdded:",
  2323. fn: function (anAnnouncement){
  2324. var self=this;
  2325. var class_;
  2326. return smalltalk.withContext(function($ctx1) {
  2327. var $1,$2;
  2328. class_=_st(anAnnouncement)._theClass();
  2329. $1=_st(class_).__eq(_st(_st(self)._model())._selectedClass());
  2330. if(! smalltalk.assert($1)){
  2331. $2=self;
  2332. return $2;
  2333. };
  2334. _st(self)._setItemsForSelectedClass();
  2335. _st(self)._refresh();
  2336. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolAdded:",{anAnnouncement:anAnnouncement,class_:class_},smalltalk.HLProtocolsListWidget)})},
  2337. messageSends: ["theClass", "ifFalse:", "=", "selectedClass", "model", "setItemsForSelectedClass", "refresh"]}),
  2338. smalltalk.HLProtocolsListWidget);
  2339. smalltalk.addMethod(
  2340. smalltalk.method({
  2341. selector: "onProtocolRemoved:",
  2342. fn: function (anAnnouncement){
  2343. var self=this;
  2344. var class_,protocol;
  2345. return smalltalk.withContext(function($ctx1) {
  2346. var $1,$2,$3,$4,$5;
  2347. class_=_st(anAnnouncement)._theClass();
  2348. protocol=_st(anAnnouncement)._protocol();
  2349. $1=_st(class_).__eq(_st(_st(self)._model())._selectedClass());
  2350. if(! smalltalk.assert($1)){
  2351. $2=self;
  2352. return $2;
  2353. };
  2354. $3=_st(_st(_st(self)._model())._selectedProtocol()).__eq(protocol);
  2355. if(smalltalk.assert($3)){
  2356. $4=self;
  2357. _st($4)._selectedItem_(nil);
  2358. $5=_st($4)._selectItem_(nil);
  2359. $5;
  2360. };
  2361. _st(self)._setItemsForSelectedClass();
  2362. _st(self)._refresh();
  2363. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolRemoved:",{anAnnouncement:anAnnouncement,class_:class_,protocol:protocol},smalltalk.HLProtocolsListWidget)})},
  2364. messageSends: ["theClass", "protocol", "ifFalse:", "=", "selectedClass", "model", "ifTrue:", "selectedItem:", "selectItem:", "selectedProtocol", "setItemsForSelectedClass", "refresh"]}),
  2365. smalltalk.HLProtocolsListWidget);
  2366. smalltalk.addMethod(
  2367. smalltalk.method({
  2368. selector: "onProtocolSelected:",
  2369. fn: function (anAnnouncement){
  2370. var self=this;
  2371. var protocol;
  2372. return smalltalk.withContext(function($ctx1) {
  2373. var $1,$2,$3,$4,$5;
  2374. protocol=_st(anAnnouncement)._item();
  2375. _st(self)._selectedItem_(protocol);
  2376. $1=protocol;
  2377. if(($receiver = $1) == nil || $receiver == undefined){
  2378. $2=self;
  2379. return $2;
  2380. } else {
  2381. $1;
  2382. };
  2383. $3=_st(self)._hasFocus();
  2384. if(! smalltalk.assert($3)){
  2385. $4=self;
  2386. _st($4)._activateItem_(protocol);
  2387. $5=_st($4)._focus();
  2388. $5;
  2389. };
  2390. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolSelected:",{anAnnouncement:anAnnouncement,protocol:protocol},smalltalk.HLProtocolsListWidget)})},
  2391. messageSends: ["item", "selectedItem:", "ifNil:", "ifFalse:", "activateItem:", "focus", "hasFocus"]}),
  2392. smalltalk.HLProtocolsListWidget);
  2393. smalltalk.addMethod(
  2394. smalltalk.method({
  2395. selector: "onProtocolsFocusRequested",
  2396. fn: function (){
  2397. var self=this;
  2398. return smalltalk.withContext(function($ctx1) {
  2399. _st(self)._focus();
  2400. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolsFocusRequested",{},smalltalk.HLProtocolsListWidget)})},
  2401. messageSends: ["focus"]}),
  2402. smalltalk.HLProtocolsListWidget);
  2403. smalltalk.addMethod(
  2404. smalltalk.method({
  2405. selector: "renderContentOn:",
  2406. fn: function (html){
  2407. var self=this;
  2408. return smalltalk.withContext(function($ctx1) {
  2409. var $1,$2,$3;
  2410. $1=_st(_st(self)._model())._showInstance();
  2411. if(smalltalk.assert($1)){
  2412. smalltalk.HLToolListWidget.fn.prototype._renderContentOn_.apply(_st(self), [html]);
  2413. } else {
  2414. $2=_st(html)._div();
  2415. _st($2)._class_("class_side");
  2416. $3=_st($2)._with_((function(){
  2417. return smalltalk.withContext(function($ctx2) {
  2418. return smalltalk.HLToolListWidget.fn.prototype._renderContentOn_.apply(_st(self), [html]);
  2419. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2420. $3;
  2421. };
  2422. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLProtocolsListWidget)})},
  2423. messageSends: ["ifFalse:ifTrue:", "class:", "div", "with:", "renderContentOn:", "showInstance", "model"]}),
  2424. smalltalk.HLProtocolsListWidget);
  2425. smalltalk.addMethod(
  2426. smalltalk.method({
  2427. selector: "selectItem:",
  2428. fn: function (aString){
  2429. var self=this;
  2430. return smalltalk.withContext(function($ctx1) {
  2431. _st(_st(self)._model())._selectedProtocol_(aString);
  2432. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{aString:aString},smalltalk.HLProtocolsListWidget)})},
  2433. messageSends: ["selectedProtocol:", "model"]}),
  2434. smalltalk.HLProtocolsListWidget);
  2435. smalltalk.addMethod(
  2436. smalltalk.method({
  2437. selector: "selectedItem",
  2438. fn: function (){
  2439. var self=this;
  2440. return smalltalk.withContext(function($ctx1) {
  2441. var $1;
  2442. $1=smalltalk.HLToolListWidget.fn.prototype._selectedItem.apply(_st(self), []);
  2443. return $1;
  2444. }, function($ctx1) {$ctx1.fill(self,"selectedItem",{},smalltalk.HLProtocolsListWidget)})},
  2445. messageSends: ["selectedItem"]}),
  2446. smalltalk.HLProtocolsListWidget);
  2447. smalltalk.addMethod(
  2448. smalltalk.method({
  2449. selector: "setItemsForClass:",
  2450. fn: function (aClass){
  2451. var self=this;
  2452. function $Array(){return smalltalk.Array||(typeof Array=="undefined"?nil:Array)}
  2453. return smalltalk.withContext(function($ctx1) {
  2454. var $1,$3,$4,$5,$2;
  2455. $1=self;
  2456. $3=aClass;
  2457. if(($receiver = $3) == nil || $receiver == undefined){
  2458. $2=_st($Array())._with_(_st(self)._allProtocol());
  2459. } else {
  2460. $4=_st($Array())._with_(_st(self)._allProtocol());
  2461. _st($4)._addAll_(_st(aClass)._protocols());
  2462. $5=_st($4)._yourself();
  2463. $2=$5;
  2464. };
  2465. _st($1)._items_($2);
  2466. return self}, function($ctx1) {$ctx1.fill(self,"setItemsForClass:",{aClass:aClass},smalltalk.HLProtocolsListWidget)})},
  2467. messageSends: ["items:", "ifNil:ifNotNil:", "with:", "allProtocol", "addAll:", "protocols", "yourself"]}),
  2468. smalltalk.HLProtocolsListWidget);
  2469. smalltalk.addMethod(
  2470. smalltalk.method({
  2471. selector: "setItemsForSelectedClass",
  2472. fn: function (){
  2473. var self=this;
  2474. return smalltalk.withContext(function($ctx1) {
  2475. _st(self)._setItemsForClass_(_st(_st(self)._model())._selectedClass());
  2476. return self}, function($ctx1) {$ctx1.fill(self,"setItemsForSelectedClass",{},smalltalk.HLProtocolsListWidget)})},
  2477. messageSends: ["setItemsForClass:", "selectedClass", "model"]}),
  2478. smalltalk.HLProtocolsListWidget);
  2479. smalltalk.addClass('HLSelectorsCache', smalltalk.Object, ['classesCache'], 'Helios-Browser');
  2480. smalltalk.addMethod(
  2481. smalltalk.method({
  2482. selector: "cacheFor:",
  2483. fn: function (aClass){
  2484. var self=this;
  2485. return smalltalk.withContext(function($ctx1) {
  2486. var $1,$2;
  2487. $1=aClass;
  2488. if(($receiver = $1) == nil || $receiver == undefined){
  2489. return nil;
  2490. } else {
  2491. $1;
  2492. };
  2493. $2=_st(_st(self)._classesCache())._at_ifAbsentPut_(_st(aClass)._name(),(function(){
  2494. return smalltalk.withContext(function($ctx2) {
  2495. return _st(self)._newCacheFor_(aClass);
  2496. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2497. return $2;
  2498. }, function($ctx1) {$ctx1.fill(self,"cacheFor:",{aClass:aClass},smalltalk.HLSelectorsCache)})},
  2499. messageSends: ["ifNil:", "at:ifAbsentPut:", "name", "newCacheFor:", "classesCache"]}),
  2500. smalltalk.HLSelectorsCache);
  2501. smalltalk.addMethod(
  2502. smalltalk.method({
  2503. selector: "classesCache",
  2504. fn: function (){
  2505. var self=this;
  2506. function $HashedCollection(){return smalltalk.HashedCollection||(typeof HashedCollection=="undefined"?nil:HashedCollection)}
  2507. return smalltalk.withContext(function($ctx1) {
  2508. var $2,$1;
  2509. $2=self["@classesCache"];
  2510. if(($receiver = $2) == nil || $receiver == undefined){
  2511. self["@classesCache"]=_st($HashedCollection())._new();
  2512. $1=self["@classesCache"];
  2513. } else {
  2514. $1=$2;
  2515. };
  2516. return $1;
  2517. }, function($ctx1) {$ctx1.fill(self,"classesCache",{},smalltalk.HLSelectorsCache)})},
  2518. messageSends: ["ifNil:", "new"]}),
  2519. smalltalk.HLSelectorsCache);
  2520. smalltalk.addMethod(
  2521. smalltalk.method({
  2522. selector: "initialize",
  2523. fn: function (){
  2524. var self=this;
  2525. return smalltalk.withContext(function($ctx1) {
  2526. smalltalk.Object.fn.prototype._initialize.apply(_st(self), []);
  2527. _st(self)._observeSystem();
  2528. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.HLSelectorsCache)})},
  2529. messageSends: ["initialize", "observeSystem"]}),
  2530. smalltalk.HLSelectorsCache);
  2531. smalltalk.addMethod(
  2532. smalltalk.method({
  2533. selector: "invalidateCacheFor:",
  2534. fn: function (aMethod){
  2535. var self=this;
  2536. return smalltalk.withContext(function($ctx1) {
  2537. _st(_st(self)._cacheFor_(_st(aMethod)._methodClass()))._invalidateSelector_(_st(aMethod)._selector());
  2538. return self}, function($ctx1) {$ctx1.fill(self,"invalidateCacheFor:",{aMethod:aMethod},smalltalk.HLSelectorsCache)})},
  2539. messageSends: ["invalidateSelector:", "selector", "cacheFor:", "methodClass"]}),
  2540. smalltalk.HLSelectorsCache);
  2541. smalltalk.addMethod(
  2542. smalltalk.method({
  2543. selector: "isOverridden:",
  2544. fn: function (aMethod){
  2545. var self=this;
  2546. return smalltalk.withContext(function($ctx1) {
  2547. var $1;
  2548. $1=_st(_st(self)._cacheFor_(_st(aMethod)._methodClass()))._isOverridden_(aMethod);
  2549. return $1;
  2550. }, function($ctx1) {$ctx1.fill(self,"isOverridden:",{aMethod:aMethod},smalltalk.HLSelectorsCache)})},
  2551. messageSends: ["isOverridden:", "cacheFor:", "methodClass"]}),
  2552. smalltalk.HLSelectorsCache);
  2553. smalltalk.addMethod(
  2554. smalltalk.method({
  2555. selector: "isOverride:",
  2556. fn: function (aMethod){
  2557. var self=this;
  2558. return smalltalk.withContext(function($ctx1) {
  2559. var $1;
  2560. $1=_st(_st(self)._cacheFor_(_st(aMethod)._methodClass()))._isOverride_(aMethod);
  2561. return $1;
  2562. }, function($ctx1) {$ctx1.fill(self,"isOverride:",{aMethod:aMethod},smalltalk.HLSelectorsCache)})},
  2563. messageSends: ["isOverride:", "cacheFor:", "methodClass"]}),
  2564. smalltalk.HLSelectorsCache);
  2565. smalltalk.addMethod(
  2566. smalltalk.method({
  2567. selector: "newCacheFor:",
  2568. fn: function (aClass){
  2569. var self=this;
  2570. function $HLClassCache(){return smalltalk.HLClassCache||(typeof HLClassCache=="undefined"?nil:HLClassCache)}
  2571. return smalltalk.withContext(function($ctx1) {
  2572. var $1;
  2573. $1=_st($HLClassCache())._on_selectorsCache_(aClass,self);
  2574. return $1;
  2575. }, function($ctx1) {$ctx1.fill(self,"newCacheFor:",{aClass:aClass},smalltalk.HLSelectorsCache)})},
  2576. messageSends: ["on:selectorsCache:"]}),
  2577. smalltalk.HLSelectorsCache);
  2578. smalltalk.addMethod(
  2579. smalltalk.method({
  2580. selector: "observeSystem",
  2581. fn: function (){
  2582. var self=this;
  2583. function $MethodAdded(){return smalltalk.MethodAdded||(typeof MethodAdded=="undefined"?nil:MethodAdded)}
  2584. function $SystemAnnouncer(){return smalltalk.SystemAnnouncer||(typeof SystemAnnouncer=="undefined"?nil:SystemAnnouncer)}
  2585. function $MethodRemoved(){return smalltalk.MethodRemoved||(typeof MethodRemoved=="undefined"?nil:MethodRemoved)}
  2586. return smalltalk.withContext(function($ctx1) {
  2587. var $1,$2;
  2588. $1=_st($SystemAnnouncer())._current();
  2589. _st($1)._on_send_to_($MethodAdded(),"onMethodAdded:",self);
  2590. $2=_st($1)._on_send_to_($MethodRemoved(),"onMethodRemoved:",self);
  2591. return self}, function($ctx1) {$ctx1.fill(self,"observeSystem",{},smalltalk.HLSelectorsCache)})},
  2592. messageSends: ["on:send:to:", "current"]}),
  2593. smalltalk.HLSelectorsCache);
  2594. smalltalk.addMethod(
  2595. smalltalk.method({
  2596. selector: "onMethodAdded:",
  2597. fn: function (anAnnouncement){
  2598. var self=this;
  2599. return smalltalk.withContext(function($ctx1) {
  2600. _st(self)._invalidateCacheFor_(_st(anAnnouncement)._method());
  2601. return self}, function($ctx1) {$ctx1.fill(self,"onMethodAdded:",{anAnnouncement:anAnnouncement},smalltalk.HLSelectorsCache)})},
  2602. messageSends: ["invalidateCacheFor:", "method"]}),
  2603. smalltalk.HLSelectorsCache);
  2604. smalltalk.addMethod(
  2605. smalltalk.method({
  2606. selector: "onMethodRemoved:",
  2607. fn: function (anAnnouncement){
  2608. var self=this;
  2609. return smalltalk.withContext(function($ctx1) {
  2610. _st(self)._invalidateCacheFor_(_st(anAnnouncement)._method());
  2611. return self}, function($ctx1) {$ctx1.fill(self,"onMethodRemoved:",{anAnnouncement:anAnnouncement},smalltalk.HLSelectorsCache)})},
  2612. messageSends: ["invalidateCacheFor:", "method"]}),
  2613. smalltalk.HLSelectorsCache);
  2614. smalltalk.HLSelectorsCache.klass.iVarNames = ['current'];
  2615. smalltalk.addMethod(
  2616. smalltalk.method({
  2617. selector: "current",
  2618. fn: function (){
  2619. var self=this;
  2620. return smalltalk.withContext(function($ctx1) {
  2621. var $2,$1;
  2622. $2=self["@current"];
  2623. if(($receiver = $2) == nil || $receiver == undefined){
  2624. self["@current"]=smalltalk.Object.klass.fn.prototype._new.apply(_st(self), []);
  2625. $1=self["@current"];
  2626. } else {
  2627. $1=$2;
  2628. };
  2629. return $1;
  2630. }, function($ctx1) {$ctx1.fill(self,"current",{},smalltalk.HLSelectorsCache.klass)})},
  2631. messageSends: ["ifNil:", "new"]}),
  2632. smalltalk.HLSelectorsCache.klass);
  2633. smalltalk.addMethod(
  2634. smalltalk.method({
  2635. selector: "flush",
  2636. fn: function (){
  2637. var self=this;
  2638. return smalltalk.withContext(function($ctx1) {
  2639. self["@current"]=nil;
  2640. return self}, function($ctx1) {$ctx1.fill(self,"flush",{},smalltalk.HLSelectorsCache.klass)})},
  2641. messageSends: []}),
  2642. smalltalk.HLSelectorsCache.klass);
  2643. smalltalk.addMethod(
  2644. smalltalk.method({
  2645. selector: "new",
  2646. fn: function (){
  2647. var self=this;
  2648. return smalltalk.withContext(function($ctx1) {
  2649. _st(self)._shouldNotImplement();
  2650. return self}, function($ctx1) {$ctx1.fill(self,"new",{},smalltalk.HLSelectorsCache.klass)})},
  2651. messageSends: ["shouldNotImplement"]}),
  2652. smalltalk.HLSelectorsCache.klass);