Helios-Browser.deploy.js 98 KB

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