Helios-Browser.deploy.js 103 KB

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