Helios-Browser.deploy.js 100 KB

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