Helios-Browser.deploy.js 97 KB

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