2
0

Helios-Browser.js 150 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890
  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. category: 'testing',
  7. fn: function (){
  8. var self=this;
  9. return smalltalk.withContext(function($ctx1) {
  10. return true;
  11. }, function($ctx1) {$ctx1.fill(self,"canHaveFocus",{},smalltalk.HLBrowser)})},
  12. args: [],
  13. source: "canHaveFocus\x0a\x09^ true",
  14. messageSends: [],
  15. referencedClasses: []
  16. }),
  17. smalltalk.HLBrowser);
  18. smalltalk.addMethod(
  19. smalltalk.method({
  20. selector: "classesListWidget",
  21. category: 'widgets',
  22. fn: function (){
  23. var self=this;
  24. function $HLClassesListWidget(){return smalltalk.HLClassesListWidget||(typeof HLClassesListWidget=="undefined"?nil:HLClassesListWidget)}
  25. return smalltalk.withContext(function($ctx1) {
  26. var $2,$1;
  27. $2=self["@classesListWidget"];
  28. if(($receiver = $2) == nil || $receiver == undefined){
  29. self["@classesListWidget"]=_st($HLClassesListWidget())._on_(_st(self)._model());
  30. self["@classesListWidget"];
  31. $1=_st(self["@classesListWidget"])._next_(_st(self)._protocolsListWidget());
  32. } else {
  33. $1=$2;
  34. };
  35. return $1;
  36. }, function($ctx1) {$ctx1.fill(self,"classesListWidget",{},smalltalk.HLBrowser)})},
  37. args: [],
  38. source: "classesListWidget\x0a\x09^ classesListWidget ifNil: [\x0a \x09classesListWidget := HLClassesListWidget on: self model.\x0a\x09\x09classesListWidget next: self protocolsListWidget ]",
  39. messageSends: ["ifNil:", "on:", "model", "next:", "protocolsListWidget"],
  40. referencedClasses: ["HLClassesListWidget"]
  41. }),
  42. smalltalk.HLBrowser);
  43. smalltalk.addMethod(
  44. smalltalk.method({
  45. selector: "environment",
  46. category: 'accessing',
  47. fn: function (){
  48. var self=this;
  49. return smalltalk.withContext(function($ctx1) {
  50. var $1;
  51. $1=_st(_st(self)._model())._environment();
  52. return $1;
  53. }, function($ctx1) {$ctx1.fill(self,"environment",{},smalltalk.HLBrowser)})},
  54. args: [],
  55. source: "environment\x0a\x09^ self model environment",
  56. messageSends: ["environment", "model"],
  57. referencedClasses: []
  58. }),
  59. smalltalk.HLBrowser);
  60. smalltalk.addMethod(
  61. smalltalk.method({
  62. selector: "focus",
  63. category: 'actions',
  64. fn: function (){
  65. var self=this;
  66. return smalltalk.withContext(function($ctx1) {
  67. var $1;
  68. $1=_st(_st(self)._packagesListWidget())._focus();
  69. return $1;
  70. }, function($ctx1) {$ctx1.fill(self,"focus",{},smalltalk.HLBrowser)})},
  71. args: [],
  72. source: "focus\x0a\x09^ self packagesListWidget focus",
  73. messageSends: ["focus", "packagesListWidget"],
  74. referencedClasses: []
  75. }),
  76. smalltalk.HLBrowser);
  77. smalltalk.addMethod(
  78. smalltalk.method({
  79. selector: "methodsListWidget",
  80. category: 'widgets',
  81. fn: function (){
  82. var self=this;
  83. function $HLMethodsListWidget(){return smalltalk.HLMethodsListWidget||(typeof HLMethodsListWidget=="undefined"?nil:HLMethodsListWidget)}
  84. return smalltalk.withContext(function($ctx1) {
  85. var $2,$1;
  86. $2=self["@methodsListWidget"];
  87. if(($receiver = $2) == nil || $receiver == undefined){
  88. self["@methodsListWidget"]=_st($HLMethodsListWidget())._on_(_st(self)._model());
  89. self["@methodsListWidget"];
  90. $1=_st(self["@methodsListWidget"])._next_(_st(self)._sourceWidget());
  91. } else {
  92. $1=$2;
  93. };
  94. return $1;
  95. }, function($ctx1) {$ctx1.fill(self,"methodsListWidget",{},smalltalk.HLBrowser)})},
  96. args: [],
  97. source: "methodsListWidget\x0a\x09^ methodsListWidget ifNil: [\x0a \x09methodsListWidget := HLMethodsListWidget on: self model.\x0a\x09\x09methodsListWidget next: self sourceWidget ]",
  98. messageSends: ["ifNil:", "on:", "model", "next:", "sourceWidget"],
  99. referencedClasses: ["HLMethodsListWidget"]
  100. }),
  101. smalltalk.HLBrowser);
  102. smalltalk.addMethod(
  103. smalltalk.method({
  104. selector: "model",
  105. category: 'accessing',
  106. fn: function (){
  107. var self=this;
  108. function $HLBrowserModel(){return smalltalk.HLBrowserModel||(typeof HLBrowserModel=="undefined"?nil:HLBrowserModel)}
  109. return smalltalk.withContext(function($ctx1) {
  110. var $2,$1;
  111. $2=self["@model"];
  112. if(($receiver = $2) == nil || $receiver == undefined){
  113. self["@model"]=_st($HLBrowserModel())._new();
  114. $1=self["@model"];
  115. } else {
  116. $1=$2;
  117. };
  118. return $1;
  119. }, function($ctx1) {$ctx1.fill(self,"model",{},smalltalk.HLBrowser)})},
  120. args: [],
  121. source: "model\x0a\x09^ model ifNil: [ model := HLBrowserModel new ]",
  122. messageSends: ["ifNil:", "new"],
  123. referencedClasses: ["HLBrowserModel"]
  124. }),
  125. smalltalk.HLBrowser);
  126. smalltalk.addMethod(
  127. smalltalk.method({
  128. selector: "model:",
  129. category: 'accessing',
  130. fn: function (aModel){
  131. var self=this;
  132. return smalltalk.withContext(function($ctx1) {
  133. self["@model"]=aModel;
  134. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel},smalltalk.HLBrowser)})},
  135. args: ["aModel"],
  136. source: "model: aModel\x0a\x09model := aModel",
  137. messageSends: [],
  138. referencedClasses: []
  139. }),
  140. smalltalk.HLBrowser);
  141. smalltalk.addMethod(
  142. smalltalk.method({
  143. selector: "packagesListWidget",
  144. category: 'widgets',
  145. fn: function (){
  146. var self=this;
  147. function $HLPackagesListWidget(){return smalltalk.HLPackagesListWidget||(typeof HLPackagesListWidget=="undefined"?nil:HLPackagesListWidget)}
  148. return smalltalk.withContext(function($ctx1) {
  149. var $2,$1;
  150. $2=self["@packagesListWidget"];
  151. if(($receiver = $2) == nil || $receiver == undefined){
  152. self["@packagesListWidget"]=_st($HLPackagesListWidget())._on_(_st(self)._model());
  153. self["@packagesListWidget"];
  154. $1=_st(self["@packagesListWidget"])._next_(_st(self)._classesListWidget());
  155. } else {
  156. $1=$2;
  157. };
  158. return $1;
  159. }, function($ctx1) {$ctx1.fill(self,"packagesListWidget",{},smalltalk.HLBrowser)})},
  160. args: [],
  161. source: "packagesListWidget\x0a\x09^ packagesListWidget ifNil: [\x0a \x09packagesListWidget := HLPackagesListWidget on: self model.\x0a\x09\x09packagesListWidget next: self classesListWidget ]",
  162. messageSends: ["ifNil:", "on:", "model", "next:", "classesListWidget"],
  163. referencedClasses: ["HLPackagesListWidget"]
  164. }),
  165. smalltalk.HLBrowser);
  166. smalltalk.addMethod(
  167. smalltalk.method({
  168. selector: "protocolsListWidget",
  169. category: 'widgets',
  170. fn: function (){
  171. var self=this;
  172. function $HLProtocolsListWidget(){return smalltalk.HLProtocolsListWidget||(typeof HLProtocolsListWidget=="undefined"?nil:HLProtocolsListWidget)}
  173. return smalltalk.withContext(function($ctx1) {
  174. var $2,$1;
  175. $2=self["@protocolsListWidget"];
  176. if(($receiver = $2) == nil || $receiver == undefined){
  177. self["@protocolsListWidget"]=_st($HLProtocolsListWidget())._on_(_st(self)._model());
  178. self["@protocolsListWidget"];
  179. $1=_st(self["@protocolsListWidget"])._next_(_st(self)._methodsListWidget());
  180. } else {
  181. $1=$2;
  182. };
  183. return $1;
  184. }, function($ctx1) {$ctx1.fill(self,"protocolsListWidget",{},smalltalk.HLBrowser)})},
  185. args: [],
  186. source: "protocolsListWidget\x0a\x09^ protocolsListWidget ifNil: [\x0a \x09protocolsListWidget := HLProtocolsListWidget on: self model.\x0a\x09\x09protocolsListWidget next: self methodsListWidget ]",
  187. messageSends: ["ifNil:", "on:", "model", "next:", "methodsListWidget"],
  188. referencedClasses: ["HLProtocolsListWidget"]
  189. }),
  190. smalltalk.HLBrowser);
  191. smalltalk.addMethod(
  192. smalltalk.method({
  193. selector: "registerBindingsOn:",
  194. category: 'keybindings',
  195. fn: function (aBindingGroup){
  196. var self=this;
  197. function $HLToolCommand(){return smalltalk.HLToolCommand||(typeof HLToolCommand=="undefined"?nil:HLToolCommand)}
  198. return smalltalk.withContext(function($ctx1) {
  199. _st($HLToolCommand())._registerConcreteClassesOn_for_(aBindingGroup,_st(self)._model());
  200. return self}, function($ctx1) {$ctx1.fill(self,"registerBindingsOn:",{aBindingGroup:aBindingGroup},smalltalk.HLBrowser)})},
  201. args: ["aBindingGroup"],
  202. source: "registerBindingsOn: aBindingGroup\x0a\x09HLToolCommand \x0a\x09\x09registerConcreteClassesOn: aBindingGroup \x0a\x09\x09for: self model",
  203. messageSends: ["registerConcreteClassesOn:for:", "model"],
  204. referencedClasses: ["HLToolCommand"]
  205. }),
  206. smalltalk.HLBrowser);
  207. smalltalk.addMethod(
  208. smalltalk.method({
  209. selector: "renderContentOn:",
  210. category: 'rendering',
  211. fn: function (html){
  212. var self=this;
  213. function $HLVerticalSplitter(){return smalltalk.HLVerticalSplitter||(typeof HLVerticalSplitter=="undefined"?nil:HLVerticalSplitter)}
  214. function $HLHorizontalSplitter(){return smalltalk.HLHorizontalSplitter||(typeof HLHorizontalSplitter=="undefined"?nil:HLHorizontalSplitter)}
  215. function $HLContainer(){return smalltalk.HLContainer||(typeof HLContainer=="undefined"?nil:HLContainer)}
  216. return smalltalk.withContext(function($ctx1) {
  217. _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())));
  218. _st(_st(self)._packagesListWidget())._focus();
  219. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLBrowser)})},
  220. args: ["html"],
  221. source: "renderContentOn: html\x0a\x09html with: (HLContainer with: (HLHorizontalSplitter \x0a \x09with: (HLVerticalSplitter\x0a \x09with: (HLVerticalSplitter\x0a \x09with: self packagesListWidget\x0a with: self classesListWidget)\x0a with: (HLVerticalSplitter\x0a \x09with: self protocolsListWidget\x0a with: self methodsListWidget)) \x0a with: self sourceWidget)).\x0a\x09\x0a\x09self packagesListWidget focus",
  222. messageSends: ["with:", "with:with:", "packagesListWidget", "classesListWidget", "protocolsListWidget", "methodsListWidget", "sourceWidget", "focus"],
  223. referencedClasses: ["HLVerticalSplitter", "HLHorizontalSplitter", "HLContainer"]
  224. }),
  225. smalltalk.HLBrowser);
  226. smalltalk.addMethod(
  227. smalltalk.method({
  228. selector: "sourceWidget",
  229. category: 'widgets',
  230. fn: function (){
  231. var self=this;
  232. function $HLBrowserBottomWidget(){return smalltalk.HLBrowserBottomWidget||(typeof HLBrowserBottomWidget=="undefined"?nil:HLBrowserBottomWidget)}
  233. return smalltalk.withContext(function($ctx1) {
  234. var $2,$3,$4,$1;
  235. $2=self["@sourceWidget"];
  236. if(($receiver = $2) == nil || $receiver == undefined){
  237. $3=_st($HLBrowserBottomWidget())._new();
  238. _st($3)._model_(_st(self)._model());
  239. $4=_st($3)._yourself();
  240. self["@sourceWidget"]=$4;
  241. $1=self["@sourceWidget"];
  242. } else {
  243. $1=$2;
  244. };
  245. return $1;
  246. }, function($ctx1) {$ctx1.fill(self,"sourceWidget",{},smalltalk.HLBrowser)})},
  247. args: [],
  248. source: "sourceWidget\x0a\x09^ sourceWidget ifNil: [\x0a \x09sourceWidget := HLBrowserBottomWidget new\x0a\x09\x09\x09model: self model;\x0a\x09\x09\x09yourself ]",
  249. messageSends: ["ifNil:", "model:", "model", "new", "yourself"],
  250. referencedClasses: ["HLBrowserBottomWidget"]
  251. }),
  252. smalltalk.HLBrowser);
  253. smalltalk.addMethod(
  254. smalltalk.method({
  255. selector: "unregister",
  256. category: 'actions',
  257. fn: function (){
  258. var self=this;
  259. return smalltalk.withContext(function($ctx1) {
  260. smalltalk.HLWidget.fn.prototype._unregister.apply(_st(self), []);
  261. _st([_st(self)._packagesListWidget(),_st(self)._classesListWidget(),_st(self)._protocolsListWidget(),_st(self)._methodsListWidget(),_st(self)._sourceWidget()])._do_((function(each){
  262. return smalltalk.withContext(function($ctx2) {
  263. return _st(each)._unregister();
  264. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  265. return self}, function($ctx1) {$ctx1.fill(self,"unregister",{},smalltalk.HLBrowser)})},
  266. args: [],
  267. source: "unregister\x0a\x09super unregister.\x0a\x0a\x09{ \x0a\x09\x09self packagesListWidget.\x0a\x09\x09self classesListWidget.\x0a\x09\x09self protocolsListWidget.\x0a\x09\x09self methodsListWidget.\x0a\x09\x09self sourceWidget\x0a\x09} \x0a\x09\x09do: [ :each | each unregister ]",
  268. messageSends: ["unregister", "do:", "packagesListWidget", "classesListWidget", "protocolsListWidget", "methodsListWidget", "sourceWidget"],
  269. referencedClasses: []
  270. }),
  271. smalltalk.HLBrowser);
  272. smalltalk.HLBrowser.klass.iVarNames = ['nextId'];
  273. smalltalk.addMethod(
  274. smalltalk.method({
  275. selector: "canBeOpenAsTab",
  276. category: 'testing',
  277. fn: function (){
  278. var self=this;
  279. return smalltalk.withContext(function($ctx1) {
  280. return true;
  281. }, function($ctx1) {$ctx1.fill(self,"canBeOpenAsTab",{},smalltalk.HLBrowser.klass)})},
  282. args: [],
  283. source: "canBeOpenAsTab\x0a\x09^ true",
  284. messageSends: [],
  285. referencedClasses: []
  286. }),
  287. smalltalk.HLBrowser.klass);
  288. smalltalk.addMethod(
  289. smalltalk.method({
  290. selector: "nextId",
  291. category: 'accessing',
  292. fn: function (){
  293. var self=this;
  294. return smalltalk.withContext(function($ctx1) {
  295. var $1,$2;
  296. $1=self["@nextId"];
  297. if(($receiver = $1) == nil || $receiver == undefined){
  298. self["@nextId"]=(0);
  299. self["@nextId"];
  300. } else {
  301. $1;
  302. };
  303. $2=_st("browser_").__comma(_st(_st(self["@nextId"]).__plus((1)))._asString());
  304. return $2;
  305. }, function($ctx1) {$ctx1.fill(self,"nextId",{},smalltalk.HLBrowser.klass)})},
  306. args: [],
  307. source: "nextId\x0a\x09nextId ifNil: [ nextId := 0 ].\x0a ^ 'browser_', (nextId + 1) asString",
  308. messageSends: ["ifNil:", ",", "asString", "+"],
  309. referencedClasses: []
  310. }),
  311. smalltalk.HLBrowser.klass);
  312. smalltalk.addMethod(
  313. smalltalk.method({
  314. selector: "tabClass",
  315. category: 'accessing',
  316. fn: function (){
  317. var self=this;
  318. return smalltalk.withContext(function($ctx1) {
  319. return "browser";
  320. }, function($ctx1) {$ctx1.fill(self,"tabClass",{},smalltalk.HLBrowser.klass)})},
  321. args: [],
  322. source: "tabClass\x0a\x09^ 'browser'",
  323. messageSends: [],
  324. referencedClasses: []
  325. }),
  326. smalltalk.HLBrowser.klass);
  327. smalltalk.addMethod(
  328. smalltalk.method({
  329. selector: "tabLabel",
  330. category: 'accessing',
  331. fn: function (){
  332. var self=this;
  333. return smalltalk.withContext(function($ctx1) {
  334. return "Browser";
  335. }, function($ctx1) {$ctx1.fill(self,"tabLabel",{},smalltalk.HLBrowser.klass)})},
  336. args: [],
  337. source: "tabLabel\x0a\x09^ 'Browser'",
  338. messageSends: [],
  339. referencedClasses: []
  340. }),
  341. smalltalk.HLBrowser.klass);
  342. smalltalk.addMethod(
  343. smalltalk.method({
  344. selector: "tabPriority",
  345. category: 'accessing',
  346. fn: function (){
  347. var self=this;
  348. return smalltalk.withContext(function($ctx1) {
  349. var $1;
  350. $1=(0);
  351. return $1;
  352. }, function($ctx1) {$ctx1.fill(self,"tabPriority",{},smalltalk.HLBrowser.klass)})},
  353. args: [],
  354. source: "tabPriority\x0a\x09^ 0",
  355. messageSends: [],
  356. referencedClasses: []
  357. }),
  358. smalltalk.HLBrowser.klass);
  359. smalltalk.addClass('HLBrowserBottomWidget', smalltalk.HLWidget, ['model', 'codeWidget', 'documentationWidget'], 'Helios-Browser');
  360. smalltalk.addMethod(
  361. smalltalk.method({
  362. selector: "canHaveFocus",
  363. category: 'testing',
  364. fn: function (){
  365. var self=this;
  366. return smalltalk.withContext(function($ctx1) {
  367. return true;
  368. }, function($ctx1) {$ctx1.fill(self,"canHaveFocus",{},smalltalk.HLBrowserBottomWidget)})},
  369. args: [],
  370. source: "canHaveFocus\x0a\x09^ true",
  371. messageSends: [],
  372. referencedClasses: []
  373. }),
  374. smalltalk.HLBrowserBottomWidget);
  375. smalltalk.addMethod(
  376. smalltalk.method({
  377. selector: "codeWidget",
  378. category: 'accessing',
  379. fn: function (){
  380. var self=this;
  381. function $HLBrowserCodeWidget(){return smalltalk.HLBrowserCodeWidget||(typeof HLBrowserCodeWidget=="undefined"?nil:HLBrowserCodeWidget)}
  382. return smalltalk.withContext(function($ctx1) {
  383. var $2,$3,$4,$1;
  384. $2=self["@codeWidget"];
  385. if(($receiver = $2) == nil || $receiver == undefined){
  386. $3=_st($HLBrowserCodeWidget())._new();
  387. _st($3)._browserModel_(_st(self)._model());
  388. $4=_st($3)._yourself();
  389. self["@codeWidget"]=$4;
  390. $1=self["@codeWidget"];
  391. } else {
  392. $1=$2;
  393. };
  394. return $1;
  395. }, function($ctx1) {$ctx1.fill(self,"codeWidget",{},smalltalk.HLBrowserBottomWidget)})},
  396. args: [],
  397. source: "codeWidget\x0a\x09^ codeWidget ifNil: [ codeWidget := HLBrowserCodeWidget new\x0a\x09\x09browserModel: self model;\x0a\x09\x09yourself ]",
  398. messageSends: ["ifNil:", "browserModel:", "model", "new", "yourself"],
  399. referencedClasses: ["HLBrowserCodeWidget"]
  400. }),
  401. smalltalk.HLBrowserBottomWidget);
  402. smalltalk.addMethod(
  403. smalltalk.method({
  404. selector: "documentationWidget",
  405. category: 'accessing',
  406. fn: function (){
  407. var self=this;
  408. function $HLDocumentationWidget(){return smalltalk.HLDocumentationWidget||(typeof HLDocumentationWidget=="undefined"?nil:HLDocumentationWidget)}
  409. return smalltalk.withContext(function($ctx1) {
  410. var $2,$3,$4,$1;
  411. $2=self["@documentationWidget"];
  412. if(($receiver = $2) == nil || $receiver == undefined){
  413. $3=_st($HLDocumentationWidget())._new();
  414. _st($3)._model_(_st(self)._model());
  415. $4=_st($3)._yourself();
  416. self["@documentationWidget"]=$4;
  417. $1=self["@documentationWidget"];
  418. } else {
  419. $1=$2;
  420. };
  421. return $1;
  422. }, function($ctx1) {$ctx1.fill(self,"documentationWidget",{},smalltalk.HLBrowserBottomWidget)})},
  423. args: [],
  424. source: "documentationWidget\x0a\x09^ documentationWidget ifNil: [ documentationWidget := HLDocumentationWidget new\x0a\x09\x09model: self model;\x0a\x09\x09yourself ]",
  425. messageSends: ["ifNil:", "model:", "model", "new", "yourself"],
  426. referencedClasses: ["HLDocumentationWidget"]
  427. }),
  428. smalltalk.HLBrowserBottomWidget);
  429. smalltalk.addMethod(
  430. smalltalk.method({
  431. selector: "focus",
  432. category: 'actions',
  433. fn: function (){
  434. var self=this;
  435. return smalltalk.withContext(function($ctx1) {
  436. _st(_st(self)._codeWidget())._focus();
  437. return self}, function($ctx1) {$ctx1.fill(self,"focus",{},smalltalk.HLBrowserBottomWidget)})},
  438. args: [],
  439. source: "focus\x0a\x09self codeWidget focus",
  440. messageSends: ["focus", "codeWidget"],
  441. referencedClasses: []
  442. }),
  443. smalltalk.HLBrowserBottomWidget);
  444. smalltalk.addMethod(
  445. smalltalk.method({
  446. selector: "model",
  447. category: 'accessing',
  448. fn: function (){
  449. var self=this;
  450. return smalltalk.withContext(function($ctx1) {
  451. var $1;
  452. $1=self["@model"];
  453. return $1;
  454. }, function($ctx1) {$ctx1.fill(self,"model",{},smalltalk.HLBrowserBottomWidget)})},
  455. args: [],
  456. source: "model\x0a\x09^ model",
  457. messageSends: [],
  458. referencedClasses: []
  459. }),
  460. smalltalk.HLBrowserBottomWidget);
  461. smalltalk.addMethod(
  462. smalltalk.method({
  463. selector: "model:",
  464. category: 'accessing',
  465. fn: function (aModel){
  466. var self=this;
  467. return smalltalk.withContext(function($ctx1) {
  468. self["@model"]=aModel;
  469. _st(self)._observeModel();
  470. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel},smalltalk.HLBrowserBottomWidget)})},
  471. args: ["aModel"],
  472. source: "model: aModel\x0a\x09model := aModel.\x0a\x09self observeModel",
  473. messageSends: ["observeModel"],
  474. referencedClasses: []
  475. }),
  476. smalltalk.HLBrowserBottomWidget);
  477. smalltalk.addMethod(
  478. smalltalk.method({
  479. selector: "observeModel",
  480. category: 'actions',
  481. fn: function (){
  482. var self=this;
  483. function $HLShowInstanceToggled(){return smalltalk.HLShowInstanceToggled||(typeof HLShowInstanceToggled=="undefined"?nil:HLShowInstanceToggled)}
  484. function $HLShowCommentToggled(){return smalltalk.HLShowCommentToggled||(typeof HLShowCommentToggled=="undefined"?nil:HLShowCommentToggled)}
  485. return smalltalk.withContext(function($ctx1) {
  486. var $1,$2;
  487. $1=_st(_st(self)._model())._announcer();
  488. _st($1)._on_send_to_($HLShowInstanceToggled(),"onShowInstanceToggled",self);
  489. $2=_st($1)._on_send_to_($HLShowCommentToggled(),"onShowCommentToggled",self);
  490. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{},smalltalk.HLBrowserBottomWidget)})},
  491. args: [],
  492. source: "observeModel\x0a\x09self model announcer \x0a\x09\x09on: HLShowInstanceToggled\x0a\x09\x09send: #onShowInstanceToggled\x0a\x09\x09to: self;\x0a\x09\x09on: HLShowCommentToggled\x0a\x09\x09send: #onShowCommentToggled\x0a\x09\x09to: self",
  493. messageSends: ["on:send:to:", "announcer", "model"],
  494. referencedClasses: ["HLShowInstanceToggled", "HLShowCommentToggled"]
  495. }),
  496. smalltalk.HLBrowserBottomWidget);
  497. smalltalk.addMethod(
  498. smalltalk.method({
  499. selector: "onShowCommentToggled",
  500. category: 'reactions',
  501. fn: function (){
  502. var self=this;
  503. return smalltalk.withContext(function($ctx1) {
  504. _st(self)._refresh();
  505. return self}, function($ctx1) {$ctx1.fill(self,"onShowCommentToggled",{},smalltalk.HLBrowserBottomWidget)})},
  506. args: [],
  507. source: "onShowCommentToggled\x0a\x09self refresh",
  508. messageSends: ["refresh"],
  509. referencedClasses: []
  510. }),
  511. smalltalk.HLBrowserBottomWidget);
  512. smalltalk.addMethod(
  513. smalltalk.method({
  514. selector: "onShowInstanceToggled",
  515. category: 'reactions',
  516. fn: function (){
  517. var self=this;
  518. return smalltalk.withContext(function($ctx1) {
  519. _st(self)._refresh();
  520. return self}, function($ctx1) {$ctx1.fill(self,"onShowInstanceToggled",{},smalltalk.HLBrowserBottomWidget)})},
  521. args: [],
  522. source: "onShowInstanceToggled\x0a\x09self refresh",
  523. messageSends: ["refresh"],
  524. referencedClasses: []
  525. }),
  526. smalltalk.HLBrowserBottomWidget);
  527. smalltalk.addMethod(
  528. smalltalk.method({
  529. selector: "previous",
  530. category: 'accessing',
  531. fn: function (){
  532. var self=this;
  533. return smalltalk.withContext(function($ctx1) {
  534. return self}, function($ctx1) {$ctx1.fill(self,"previous",{},smalltalk.HLBrowserBottomWidget)})},
  535. args: [],
  536. source: "previous\x0a\x09\x22For navigation\x22",
  537. messageSends: [],
  538. referencedClasses: []
  539. }),
  540. smalltalk.HLBrowserBottomWidget);
  541. smalltalk.addMethod(
  542. smalltalk.method({
  543. selector: "previous:",
  544. category: 'accessing',
  545. fn: function (aWidget){
  546. var self=this;
  547. return smalltalk.withContext(function($ctx1) {
  548. return self}, function($ctx1) {$ctx1.fill(self,"previous:",{aWidget:aWidget},smalltalk.HLBrowserBottomWidget)})},
  549. args: ["aWidget"],
  550. source: "previous: aWidget\x0a\x09\x22For navigation\x22",
  551. messageSends: [],
  552. referencedClasses: []
  553. }),
  554. smalltalk.HLBrowserBottomWidget);
  555. smalltalk.addMethod(
  556. smalltalk.method({
  557. selector: "renderContentOn:",
  558. category: 'rendering',
  559. fn: function (html){
  560. var self=this;
  561. return smalltalk.withContext(function($ctx1) {
  562. var $1;
  563. $1=_st(_st(self)._model())._showComment();
  564. if(smalltalk.assert($1)){
  565. _st(self)._renderPanesOn_(html);
  566. } else {
  567. _st(html)._with_(_st(self)._codeWidget());
  568. };
  569. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLBrowserBottomWidget)})},
  570. args: ["html"],
  571. source: "renderContentOn: html\x0a\x09self model showComment \x0a\x09\x09ifTrue: [ self renderPanesOn: html ]\x0a\x09\x09ifFalse: [ html with: self codeWidget ]",
  572. messageSends: ["ifTrue:ifFalse:", "renderPanesOn:", "with:", "codeWidget", "showComment", "model"],
  573. referencedClasses: []
  574. }),
  575. smalltalk.HLBrowserBottomWidget);
  576. smalltalk.addMethod(
  577. smalltalk.method({
  578. selector: "renderPanesOn:",
  579. category: 'rendering',
  580. fn: function (html){
  581. var self=this;
  582. function $HLVerticalSplitter(){return smalltalk.HLVerticalSplitter||(typeof HLVerticalSplitter=="undefined"?nil:HLVerticalSplitter)}
  583. return smalltalk.withContext(function($ctx1) {
  584. _st(html)._with_(_st($HLVerticalSplitter())._with_with_(_st(self)._codeWidget(),_st(self)._documentationWidget()));
  585. return self}, function($ctx1) {$ctx1.fill(self,"renderPanesOn:",{html:html},smalltalk.HLBrowserBottomWidget)})},
  586. args: ["html"],
  587. source: "renderPanesOn: html\x0a\x09html with: (HLVerticalSplitter\x0a\x09\x09with: self codeWidget\x0a\x09\x09with: self documentationWidget)",
  588. messageSends: ["with:", "with:with:", "codeWidget", "documentationWidget"],
  589. referencedClasses: ["HLVerticalSplitter"]
  590. }),
  591. smalltalk.HLBrowserBottomWidget);
  592. smalltalk.addClass('HLBrowserModel', smalltalk.HLToolModel, ['showInstance', 'showComment'], 'Helios-Browser');
  593. smalltalk.addMethod(
  594. smalltalk.method({
  595. selector: "editComment",
  596. category: 'commands actions',
  597. fn: function (){
  598. var self=this;
  599. function $HLEditComment(){return smalltalk.HLEditComment||(typeof HLEditComment=="undefined"?nil:HLEditComment)}
  600. return smalltalk.withContext(function($ctx1) {
  601. _st(_st(self)._announcer())._announce_(_st($HLEditComment())._new());
  602. return self}, function($ctx1) {$ctx1.fill(self,"editComment",{},smalltalk.HLBrowserModel)})},
  603. args: [],
  604. source: "editComment\x0a\x09self announcer announce: HLEditComment new",
  605. messageSends: ["announce:", "new", "announcer"],
  606. referencedClasses: ["HLEditComment"]
  607. }),
  608. smalltalk.HLBrowserModel);
  609. smalltalk.addMethod(
  610. smalltalk.method({
  611. selector: "focusOnClasses",
  612. category: 'actions',
  613. fn: function (){
  614. var self=this;
  615. function $HLClassesFocusRequested(){return smalltalk.HLClassesFocusRequested||(typeof HLClassesFocusRequested=="undefined"?nil:HLClassesFocusRequested)}
  616. return smalltalk.withContext(function($ctx1) {
  617. _st(_st(self)._announcer())._announce_(_st($HLClassesFocusRequested())._new());
  618. return self}, function($ctx1) {$ctx1.fill(self,"focusOnClasses",{},smalltalk.HLBrowserModel)})},
  619. args: [],
  620. source: "focusOnClasses\x0a\x09self announcer announce: HLClassesFocusRequested new",
  621. messageSends: ["announce:", "new", "announcer"],
  622. referencedClasses: ["HLClassesFocusRequested"]
  623. }),
  624. smalltalk.HLBrowserModel);
  625. smalltalk.addMethod(
  626. smalltalk.method({
  627. selector: "focusOnMethods",
  628. category: 'actions',
  629. fn: function (){
  630. var self=this;
  631. function $HLMethodsFocusRequested(){return smalltalk.HLMethodsFocusRequested||(typeof HLMethodsFocusRequested=="undefined"?nil:HLMethodsFocusRequested)}
  632. return smalltalk.withContext(function($ctx1) {
  633. _st(_st(self)._announcer())._announce_(_st($HLMethodsFocusRequested())._new());
  634. return self}, function($ctx1) {$ctx1.fill(self,"focusOnMethods",{},smalltalk.HLBrowserModel)})},
  635. args: [],
  636. source: "focusOnMethods\x0a\x09self announcer announce: HLMethodsFocusRequested new",
  637. messageSends: ["announce:", "new", "announcer"],
  638. referencedClasses: ["HLMethodsFocusRequested"]
  639. }),
  640. smalltalk.HLBrowserModel);
  641. smalltalk.addMethod(
  642. smalltalk.method({
  643. selector: "focusOnPackages",
  644. category: 'actions',
  645. fn: function (){
  646. var self=this;
  647. function $HLPackagesFocusRequested(){return smalltalk.HLPackagesFocusRequested||(typeof HLPackagesFocusRequested=="undefined"?nil:HLPackagesFocusRequested)}
  648. return smalltalk.withContext(function($ctx1) {
  649. _st(_st(self)._announcer())._announce_(_st($HLPackagesFocusRequested())._new());
  650. return self}, function($ctx1) {$ctx1.fill(self,"focusOnPackages",{},smalltalk.HLBrowserModel)})},
  651. args: [],
  652. source: "focusOnPackages\x0a\x09self announcer announce: HLPackagesFocusRequested new",
  653. messageSends: ["announce:", "new", "announcer"],
  654. referencedClasses: ["HLPackagesFocusRequested"]
  655. }),
  656. smalltalk.HLBrowserModel);
  657. smalltalk.addMethod(
  658. smalltalk.method({
  659. selector: "focusOnProtocols",
  660. category: 'actions',
  661. fn: function (){
  662. var self=this;
  663. function $HLProtocolsFocusRequested(){return smalltalk.HLProtocolsFocusRequested||(typeof HLProtocolsFocusRequested=="undefined"?nil:HLProtocolsFocusRequested)}
  664. return smalltalk.withContext(function($ctx1) {
  665. _st(_st(self)._announcer())._announce_(_st($HLProtocolsFocusRequested())._new());
  666. return self}, function($ctx1) {$ctx1.fill(self,"focusOnProtocols",{},smalltalk.HLBrowserModel)})},
  667. args: [],
  668. source: "focusOnProtocols\x0a\x09self announcer announce: HLProtocolsFocusRequested new",
  669. messageSends: ["announce:", "new", "announcer"],
  670. referencedClasses: ["HLProtocolsFocusRequested"]
  671. }),
  672. smalltalk.HLBrowserModel);
  673. smalltalk.addMethod(
  674. smalltalk.method({
  675. selector: "focusOnSourceCode",
  676. category: 'actions',
  677. fn: function (){
  678. var self=this;
  679. function $HLSourceCodeFocusRequested(){return smalltalk.HLSourceCodeFocusRequested||(typeof HLSourceCodeFocusRequested=="undefined"?nil:HLSourceCodeFocusRequested)}
  680. return smalltalk.withContext(function($ctx1) {
  681. _st(_st(self)._announcer())._announce_(_st($HLSourceCodeFocusRequested())._new());
  682. return self}, function($ctx1) {$ctx1.fill(self,"focusOnSourceCode",{},smalltalk.HLBrowserModel)})},
  683. args: [],
  684. source: "focusOnSourceCode\x0a\x09self announcer announce: HLSourceCodeFocusRequested new",
  685. messageSends: ["announce:", "new", "announcer"],
  686. referencedClasses: ["HLSourceCodeFocusRequested"]
  687. }),
  688. smalltalk.HLBrowserModel);
  689. smalltalk.addMethod(
  690. smalltalk.method({
  691. selector: "isBrowserModel",
  692. category: 'testing',
  693. fn: function (){
  694. var self=this;
  695. return smalltalk.withContext(function($ctx1) {
  696. return true;
  697. }, function($ctx1) {$ctx1.fill(self,"isBrowserModel",{},smalltalk.HLBrowserModel)})},
  698. args: [],
  699. source: "isBrowserModel\x0a\x09^ true",
  700. messageSends: [],
  701. referencedClasses: []
  702. }),
  703. smalltalk.HLBrowserModel);
  704. smalltalk.addMethod(
  705. smalltalk.method({
  706. selector: "setClassComment:",
  707. category: 'actions',
  708. fn: function (aString){
  709. var self=this;
  710. return smalltalk.withContext(function($ctx1) {
  711. _st(_st(self)._environment())._setClassCommentOf_to_(_st(_st(self)._selectedClass())._theNonMetaClass(),aString);
  712. return self}, function($ctx1) {$ctx1.fill(self,"setClassComment:",{aString:aString},smalltalk.HLBrowserModel)})},
  713. args: ["aString"],
  714. source: "setClassComment: aString\x0a\x09self environment\x0a\x09\x09setClassCommentOf: self selectedClass theNonMetaClass\x0a\x09\x09to: aString",
  715. messageSends: ["setClassCommentOf:to:", "theNonMetaClass", "selectedClass", "environment"],
  716. referencedClasses: []
  717. }),
  718. smalltalk.HLBrowserModel);
  719. smalltalk.addMethod(
  720. smalltalk.method({
  721. selector: "showComment",
  722. category: 'accessing',
  723. fn: function (){
  724. var self=this;
  725. return smalltalk.withContext(function($ctx1) {
  726. var $2,$1;
  727. $2=self["@showComment"];
  728. if(($receiver = $2) == nil || $receiver == undefined){
  729. $1=false;
  730. } else {
  731. $1=$2;
  732. };
  733. return $1;
  734. }, function($ctx1) {$ctx1.fill(self,"showComment",{},smalltalk.HLBrowserModel)})},
  735. args: [],
  736. source: "showComment\x0a\x09^ showComment ifNil: [ false ]",
  737. messageSends: ["ifNil:"],
  738. referencedClasses: []
  739. }),
  740. smalltalk.HLBrowserModel);
  741. smalltalk.addMethod(
  742. smalltalk.method({
  743. selector: "showComment:",
  744. category: 'accessing',
  745. fn: function (aBoolean){
  746. var self=this;
  747. function $HLShowCommentToggled(){return smalltalk.HLShowCommentToggled||(typeof HLShowCommentToggled=="undefined"?nil:HLShowCommentToggled)}
  748. return smalltalk.withContext(function($ctx1) {
  749. _st(self)._withChangesDo_((function(){
  750. return smalltalk.withContext(function($ctx2) {
  751. self["@showComment"]=aBoolean;
  752. self["@showComment"];
  753. return _st(_st(self)._announcer())._announce_(_st($HLShowCommentToggled())._new());
  754. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  755. return self}, function($ctx1) {$ctx1.fill(self,"showComment:",{aBoolean:aBoolean},smalltalk.HLBrowserModel)})},
  756. args: ["aBoolean"],
  757. source: "showComment: aBoolean\x0a\x09self withChangesDo: [\x0a\x09\x09showComment := aBoolean.\x0a\x09\x09self announcer announce: HLShowCommentToggled new ]",
  758. messageSends: ["withChangesDo:", "announce:", "new", "announcer"],
  759. referencedClasses: ["HLShowCommentToggled"]
  760. }),
  761. smalltalk.HLBrowserModel);
  762. smalltalk.addMethod(
  763. smalltalk.method({
  764. selector: "showInstance",
  765. category: 'accessing',
  766. fn: function (){
  767. var self=this;
  768. return smalltalk.withContext(function($ctx1) {
  769. var $2,$1;
  770. $2=self["@showInstance"];
  771. if(($receiver = $2) == nil || $receiver == undefined){
  772. $1=true;
  773. } else {
  774. $1=$2;
  775. };
  776. return $1;
  777. }, function($ctx1) {$ctx1.fill(self,"showInstance",{},smalltalk.HLBrowserModel)})},
  778. args: [],
  779. source: "showInstance\x0a\x09^ showInstance ifNil: [ true ]",
  780. messageSends: ["ifNil:"],
  781. referencedClasses: []
  782. }),
  783. smalltalk.HLBrowserModel);
  784. smalltalk.addMethod(
  785. smalltalk.method({
  786. selector: "showInstance:",
  787. category: 'accessing',
  788. fn: function (aBoolean){
  789. var self=this;
  790. function $HLShowInstanceToggled(){return smalltalk.HLShowInstanceToggled||(typeof HLShowInstanceToggled=="undefined"?nil:HLShowInstanceToggled)}
  791. return smalltalk.withContext(function($ctx1) {
  792. var $1,$2,$4,$3;
  793. _st(self)._withChangesDo_((function(){
  794. return smalltalk.withContext(function($ctx2) {
  795. self["@showInstance"]=aBoolean;
  796. self["@showInstance"];
  797. $1=_st(self)._selectedClass();
  798. if(($receiver = $1) == nil || $receiver == undefined){
  799. $1;
  800. } else {
  801. $2=self;
  802. $4=aBoolean;
  803. if(smalltalk.assert($4)){
  804. $3=_st(_st(self)._selectedClass())._theNonMetaClass();
  805. } else {
  806. $3=_st(_st(self)._selectedClass())._theMetaClass();
  807. };
  808. _st($2)._selectedClass_($3);
  809. };
  810. return _st(_st(self)._announcer())._announce_(_st($HLShowInstanceToggled())._new());
  811. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  812. return self}, function($ctx1) {$ctx1.fill(self,"showInstance:",{aBoolean:aBoolean},smalltalk.HLBrowserModel)})},
  813. args: ["aBoolean"],
  814. source: "showInstance: aBoolean\x0a\x0a\x09self withChangesDo: [\x0a\x09\x09showInstance := aBoolean.\x0a\x0a \x09self selectedClass ifNotNil: [\x0a \x09\x09self selectedClass: (aBoolean\x0a \x09\x09\x09ifTrue: [self selectedClass theNonMetaClass ]\x0a\x09 \x09 \x09ifFalse: [ self selectedClass theMetaClass ]) ].\x0a \x0a\x09\x09self announcer announce: HLShowInstanceToggled new ] ",
  815. messageSends: ["withChangesDo:", "ifNotNil:", "selectedClass:", "ifTrue:ifFalse:", "theNonMetaClass", "selectedClass", "theMetaClass", "announce:", "new", "announcer"],
  816. referencedClasses: ["HLShowInstanceToggled"]
  817. }),
  818. smalltalk.HLBrowserModel);
  819. smalltalk.addMethod(
  820. smalltalk.method({
  821. selector: "on:",
  822. category: 'actions',
  823. fn: function (anEnvironment){
  824. var self=this;
  825. return smalltalk.withContext(function($ctx1) {
  826. var $2,$3,$1;
  827. $2=_st(self)._new();
  828. _st($2)._environment_(anEnvironment);
  829. $3=_st($2)._yourself();
  830. $1=$3;
  831. return $1;
  832. }, function($ctx1) {$ctx1.fill(self,"on:",{anEnvironment:anEnvironment},smalltalk.HLBrowserModel.klass)})},
  833. args: ["anEnvironment"],
  834. source: "on: anEnvironment\x0a\x0a\x09^ self new\x0a \x09environment: anEnvironment;\x0a yourself",
  835. messageSends: ["environment:", "new", "yourself"],
  836. referencedClasses: []
  837. }),
  838. smalltalk.HLBrowserModel.klass);
  839. smalltalk.addClass('HLClassCache', smalltalk.Object, ['class', 'selectorsCache', 'overrideCache', 'overriddenCache'], 'Helios-Browser');
  840. smalltalk.addMethod(
  841. smalltalk.method({
  842. selector: "invalidateChildrenSelector:",
  843. category: 'actions',
  844. fn: function (aSelector){
  845. var self=this;
  846. return smalltalk.withContext(function($ctx1) {
  847. var $1,$2;
  848. _st(_st(_st(self)._theClass())._subclasses())._do_((function(each){
  849. return smalltalk.withContext(function($ctx2) {
  850. $1=_st(_st(self)._selectorsCache())._cacheFor_(each);
  851. _st($1)._removeSelector_(aSelector);
  852. $2=_st($1)._invalidateChildrenSelector_(aSelector);
  853. return $2;
  854. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  855. return self}, function($ctx1) {$ctx1.fill(self,"invalidateChildrenSelector:",{aSelector:aSelector},smalltalk.HLClassCache)})},
  856. args: ["aSelector"],
  857. source: "invalidateChildrenSelector: aSelector\x0a\x09self theClass subclasses do: [ :each |\x0a \x09(self selectorsCache cacheFor: each)\x0a \x09removeSelector: aSelector;\x0a \x09invalidateChildrenSelector: aSelector ]",
  858. messageSends: ["do:", "removeSelector:", "cacheFor:", "selectorsCache", "invalidateChildrenSelector:", "subclasses", "theClass"],
  859. referencedClasses: []
  860. }),
  861. smalltalk.HLClassCache);
  862. smalltalk.addMethod(
  863. smalltalk.method({
  864. selector: "invalidateParentSelector:",
  865. category: 'actions',
  866. fn: function (aSelector){
  867. var self=this;
  868. return smalltalk.withContext(function($ctx1) {
  869. var $1,$2,$3;
  870. $1=_st(_st(self)._theClass())._superclass();
  871. if(($receiver = $1) == nil || $receiver == undefined){
  872. $1;
  873. } else {
  874. $2=_st(_st(self)._selectorsCache())._cacheFor_(_st(_st(self)._theClass())._superclass());
  875. _st($2)._removeSelector_(aSelector);
  876. $3=_st($2)._invalidateParentSelector_(aSelector);
  877. $3;
  878. };
  879. return self}, function($ctx1) {$ctx1.fill(self,"invalidateParentSelector:",{aSelector:aSelector},smalltalk.HLClassCache)})},
  880. args: ["aSelector"],
  881. source: "invalidateParentSelector: aSelector\x0a\x09self theClass superclass ifNotNil: [\x0a \x09(self selectorsCache cacheFor: self theClass superclass)\x0a \x09removeSelector: aSelector;\x0a\x09\x09\x09invalidateParentSelector: aSelector ]",
  882. messageSends: ["ifNotNil:", "removeSelector:", "cacheFor:", "superclass", "theClass", "selectorsCache", "invalidateParentSelector:"],
  883. referencedClasses: []
  884. }),
  885. smalltalk.HLClassCache);
  886. smalltalk.addMethod(
  887. smalltalk.method({
  888. selector: "invalidateSelector:",
  889. category: 'actions',
  890. fn: function (aSelector){
  891. var self=this;
  892. return smalltalk.withContext(function($ctx1) {
  893. var $1,$2;
  894. $1=self;
  895. _st($1)._invalidateParentSelector_(aSelector);
  896. _st($1)._invalidateChildrenSelector_(aSelector);
  897. $2=_st($1)._removeSelector_(aSelector);
  898. return self}, function($ctx1) {$ctx1.fill(self,"invalidateSelector:",{aSelector:aSelector},smalltalk.HLClassCache)})},
  899. args: ["aSelector"],
  900. source: "invalidateSelector: aSelector\x0a\x09self \x0a \x09invalidateParentSelector: aSelector;\x0a invalidateChildrenSelector: aSelector;\x0a removeSelector: aSelector",
  901. messageSends: ["invalidateParentSelector:", "invalidateChildrenSelector:", "removeSelector:"],
  902. referencedClasses: []
  903. }),
  904. smalltalk.HLClassCache);
  905. smalltalk.addMethod(
  906. smalltalk.method({
  907. selector: "isOverridden:",
  908. category: 'testing',
  909. fn: function (aMethod){
  910. var self=this;
  911. return smalltalk.withContext(function($ctx1) {
  912. var $1;
  913. $1=_st(_st(self)._overriddenCache())._at_ifAbsentPut_(_st(aMethod)._selector(),(function(){
  914. return smalltalk.withContext(function($ctx2) {
  915. return _st(aMethod)._isOverridden();
  916. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  917. return $1;
  918. }, function($ctx1) {$ctx1.fill(self,"isOverridden:",{aMethod:aMethod},smalltalk.HLClassCache)})},
  919. args: ["aMethod"],
  920. source: "isOverridden: aMethod\x0a\x09^ self overriddenCache \x0a \x09at: aMethod selector\x0a \x09ifAbsentPut: [ aMethod isOverridden ]",
  921. messageSends: ["at:ifAbsentPut:", "selector", "isOverridden", "overriddenCache"],
  922. referencedClasses: []
  923. }),
  924. smalltalk.HLClassCache);
  925. smalltalk.addMethod(
  926. smalltalk.method({
  927. selector: "isOverride:",
  928. category: 'testing',
  929. fn: function (aMethod){
  930. var self=this;
  931. return smalltalk.withContext(function($ctx1) {
  932. var $1;
  933. $1=_st(_st(self)._overrideCache())._at_ifAbsentPut_(_st(aMethod)._selector(),(function(){
  934. return smalltalk.withContext(function($ctx2) {
  935. return _st(aMethod)._isOverride();
  936. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  937. return $1;
  938. }, function($ctx1) {$ctx1.fill(self,"isOverride:",{aMethod:aMethod},smalltalk.HLClassCache)})},
  939. args: ["aMethod"],
  940. source: "isOverride: aMethod\x0a\x09^ self overrideCache\x0a \x09at: aMethod selector\x0a \x09ifAbsentPut: [ aMethod isOverride ]",
  941. messageSends: ["at:ifAbsentPut:", "selector", "isOverride", "overrideCache"],
  942. referencedClasses: []
  943. }),
  944. smalltalk.HLClassCache);
  945. smalltalk.addMethod(
  946. smalltalk.method({
  947. selector: "overriddenCache",
  948. category: 'accessing',
  949. fn: function (){
  950. var self=this;
  951. function $HashedCollection(){return smalltalk.HashedCollection||(typeof HashedCollection=="undefined"?nil:HashedCollection)}
  952. return smalltalk.withContext(function($ctx1) {
  953. var $2,$1;
  954. $2=self["@overriddenCache"];
  955. if(($receiver = $2) == nil || $receiver == undefined){
  956. self["@overriddenCache"]=_st($HashedCollection())._new();
  957. $1=self["@overriddenCache"];
  958. } else {
  959. $1=$2;
  960. };
  961. return $1;
  962. }, function($ctx1) {$ctx1.fill(self,"overriddenCache",{},smalltalk.HLClassCache)})},
  963. args: [],
  964. source: "overriddenCache\x0a\x09^ overriddenCache ifNil: [ overriddenCache := HashedCollection new ]",
  965. messageSends: ["ifNil:", "new"],
  966. referencedClasses: ["HashedCollection"]
  967. }),
  968. smalltalk.HLClassCache);
  969. smalltalk.addMethod(
  970. smalltalk.method({
  971. selector: "overrideCache",
  972. category: 'accessing',
  973. fn: function (){
  974. var self=this;
  975. function $HashedCollection(){return smalltalk.HashedCollection||(typeof HashedCollection=="undefined"?nil:HashedCollection)}
  976. return smalltalk.withContext(function($ctx1) {
  977. var $2,$1;
  978. $2=self["@overrideCache"];
  979. if(($receiver = $2) == nil || $receiver == undefined){
  980. self["@overrideCache"]=_st($HashedCollection())._new();
  981. $1=self["@overrideCache"];
  982. } else {
  983. $1=$2;
  984. };
  985. return $1;
  986. }, function($ctx1) {$ctx1.fill(self,"overrideCache",{},smalltalk.HLClassCache)})},
  987. args: [],
  988. source: "overrideCache\x0a\x09^ overrideCache ifNil: [ overrideCache := HashedCollection new ]",
  989. messageSends: ["ifNil:", "new"],
  990. referencedClasses: ["HashedCollection"]
  991. }),
  992. smalltalk.HLClassCache);
  993. smalltalk.addMethod(
  994. smalltalk.method({
  995. selector: "removeSelector:",
  996. category: 'private',
  997. fn: function (aSelector){
  998. var self=this;
  999. return smalltalk.withContext(function($ctx1) {
  1000. _st(_st(self)._overriddenCache())._removeKey_ifAbsent_(aSelector,(function(){
  1001. return smalltalk.withContext(function($ctx2) {
  1002. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1003. _st(_st(self)._overrideCache())._removeKey_ifAbsent_(aSelector,(function(){
  1004. return smalltalk.withContext(function($ctx2) {
  1005. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1006. return self}, function($ctx1) {$ctx1.fill(self,"removeSelector:",{aSelector:aSelector},smalltalk.HLClassCache)})},
  1007. args: ["aSelector"],
  1008. source: "removeSelector: aSelector\x0a\x09self overriddenCache \x0a \x09removeKey: aSelector\x0a ifAbsent: [ ].\x0a self overrideCache \x0a \x09removeKey: aSelector\x0a ifAbsent: [ ]",
  1009. messageSends: ["removeKey:ifAbsent:", "overriddenCache", "overrideCache"],
  1010. referencedClasses: []
  1011. }),
  1012. smalltalk.HLClassCache);
  1013. smalltalk.addMethod(
  1014. smalltalk.method({
  1015. selector: "selectorsCache",
  1016. category: 'accessing',
  1017. fn: function (){
  1018. var self=this;
  1019. return smalltalk.withContext(function($ctx1) {
  1020. var $1;
  1021. $1=self["@selectorsCache"];
  1022. return $1;
  1023. }, function($ctx1) {$ctx1.fill(self,"selectorsCache",{},smalltalk.HLClassCache)})},
  1024. args: [],
  1025. source: "selectorsCache\x0a\x09^ selectorsCache",
  1026. messageSends: [],
  1027. referencedClasses: []
  1028. }),
  1029. smalltalk.HLClassCache);
  1030. smalltalk.addMethod(
  1031. smalltalk.method({
  1032. selector: "selectorsCache:",
  1033. category: 'accessing',
  1034. fn: function (aCache){
  1035. var self=this;
  1036. return smalltalk.withContext(function($ctx1) {
  1037. self["@selectorsCache"]=aCache;
  1038. return self}, function($ctx1) {$ctx1.fill(self,"selectorsCache:",{aCache:aCache},smalltalk.HLClassCache)})},
  1039. args: ["aCache"],
  1040. source: "selectorsCache: aCache\x0a\x09selectorsCache := aCache",
  1041. messageSends: [],
  1042. referencedClasses: []
  1043. }),
  1044. smalltalk.HLClassCache);
  1045. smalltalk.addMethod(
  1046. smalltalk.method({
  1047. selector: "theClass",
  1048. category: 'accessing',
  1049. fn: function (){
  1050. var self=this;
  1051. return smalltalk.withContext(function($ctx1) {
  1052. var $1;
  1053. $1=self["@class"];
  1054. return $1;
  1055. }, function($ctx1) {$ctx1.fill(self,"theClass",{},smalltalk.HLClassCache)})},
  1056. args: [],
  1057. source: "theClass\x0a\x09^ class",
  1058. messageSends: [],
  1059. referencedClasses: []
  1060. }),
  1061. smalltalk.HLClassCache);
  1062. smalltalk.addMethod(
  1063. smalltalk.method({
  1064. selector: "theClass:",
  1065. category: 'accessing',
  1066. fn: function (aClass){
  1067. var self=this;
  1068. return smalltalk.withContext(function($ctx1) {
  1069. self["@class"]=aClass;
  1070. return self}, function($ctx1) {$ctx1.fill(self,"theClass:",{aClass:aClass},smalltalk.HLClassCache)})},
  1071. args: ["aClass"],
  1072. source: "theClass: aClass\x0a\x09class := aClass",
  1073. messageSends: [],
  1074. referencedClasses: []
  1075. }),
  1076. smalltalk.HLClassCache);
  1077. smalltalk.addMethod(
  1078. smalltalk.method({
  1079. selector: "on:selectorsCache:",
  1080. category: 'instance creation',
  1081. fn: function (aClass,aSelectorsCache){
  1082. var self=this;
  1083. return smalltalk.withContext(function($ctx1) {
  1084. var $2,$3,$1;
  1085. $2=_st(self)._new();
  1086. _st($2)._theClass_(aClass);
  1087. _st($2)._selectorsCache_(aSelectorsCache);
  1088. $3=_st($2)._yourself();
  1089. $1=$3;
  1090. return $1;
  1091. }, function($ctx1) {$ctx1.fill(self,"on:selectorsCache:",{aClass:aClass,aSelectorsCache:aSelectorsCache},smalltalk.HLClassCache.klass)})},
  1092. args: ["aClass", "aSelectorsCache"],
  1093. source: "on: aClass selectorsCache: aSelectorsCache\x0a\x09^ self new\x0a \x09theClass: aClass;\x0a selectorsCache: aSelectorsCache;\x0a yourself",
  1094. messageSends: ["theClass:", "new", "selectorsCache:", "yourself"],
  1095. referencedClasses: []
  1096. }),
  1097. smalltalk.HLClassCache.klass);
  1098. smalltalk.addClass('HLClassesListWidget', smalltalk.HLToolListWidget, [], 'Helios-Browser');
  1099. smalltalk.addMethod(
  1100. smalltalk.method({
  1101. selector: "cssClassForItem:",
  1102. category: 'accessing',
  1103. fn: function (aClass){
  1104. var self=this;
  1105. return smalltalk.withContext(function($ctx1) {
  1106. var $1,$2;
  1107. $1=_st(_st(_st(aClass)._theNonMetaClass())._comment())._isEmpty();
  1108. if(smalltalk.assert($1)){
  1109. return "uncommented";
  1110. };
  1111. $2=_st(_st(aClass)._theNonMetaClass())._heliosClass();
  1112. return $2;
  1113. }, function($ctx1) {$ctx1.fill(self,"cssClassForItem:",{aClass:aClass},smalltalk.HLClassesListWidget)})},
  1114. args: ["aClass"],
  1115. source: "cssClassForItem: aClass\x0a\x09aClass theNonMetaClass comment isEmpty \x0a\x09\x09ifTrue: [ ^ 'uncommented' ].\x0a\x09^ aClass theNonMetaClass heliosClass",
  1116. messageSends: ["ifTrue:", "isEmpty", "comment", "theNonMetaClass", "heliosClass"],
  1117. referencedClasses: []
  1118. }),
  1119. smalltalk.HLClassesListWidget);
  1120. smalltalk.addMethod(
  1121. smalltalk.method({
  1122. selector: "focusMethodsListWidget",
  1123. category: 'actions',
  1124. fn: function (){
  1125. var self=this;
  1126. function $HLMethodsListFocus(){return smalltalk.HLMethodsListFocus||(typeof HLMethodsListFocus=="undefined"?nil:HLMethodsListFocus)}
  1127. return smalltalk.withContext(function($ctx1) {
  1128. _st(_st(_st(self)._model())._announcer())._announce_(_st($HLMethodsListFocus())._new());
  1129. return self}, function($ctx1) {$ctx1.fill(self,"focusMethodsListWidget",{},smalltalk.HLClassesListWidget)})},
  1130. args: [],
  1131. source: "focusMethodsListWidget\x0a\x09self model announcer announce: HLMethodsListFocus new",
  1132. messageSends: ["announce:", "new", "announcer", "model"],
  1133. referencedClasses: ["HLMethodsListFocus"]
  1134. }),
  1135. smalltalk.HLClassesListWidget);
  1136. smalltalk.addMethod(
  1137. smalltalk.method({
  1138. selector: "focusProtocolsListWidget",
  1139. category: 'actions',
  1140. fn: function (){
  1141. var self=this;
  1142. function $HLProtocolsListFocus(){return smalltalk.HLProtocolsListFocus||(typeof HLProtocolsListFocus=="undefined"?nil:HLProtocolsListFocus)}
  1143. return smalltalk.withContext(function($ctx1) {
  1144. _st(_st(_st(self)._model())._announcer())._announce_(_st($HLProtocolsListFocus())._new());
  1145. return self}, function($ctx1) {$ctx1.fill(self,"focusProtocolsListWidget",{},smalltalk.HLClassesListWidget)})},
  1146. args: [],
  1147. source: "focusProtocolsListWidget\x0a\x09self model announcer announce: HLProtocolsListFocus new",
  1148. messageSends: ["announce:", "new", "announcer", "model"],
  1149. referencedClasses: ["HLProtocolsListFocus"]
  1150. }),
  1151. smalltalk.HLClassesListWidget);
  1152. smalltalk.addMethod(
  1153. smalltalk.method({
  1154. selector: "getChildrenOf:",
  1155. category: 'accessing',
  1156. fn: function (aClass){
  1157. var self=this;
  1158. return smalltalk.withContext(function($ctx1) {
  1159. var $1;
  1160. $1=_st(_st(self)._items())._select_((function(each){
  1161. return smalltalk.withContext(function($ctx2) {
  1162. return _st(_st(each)._superclass()).__eq(aClass);
  1163. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  1164. return $1;
  1165. }, function($ctx1) {$ctx1.fill(self,"getChildrenOf:",{aClass:aClass},smalltalk.HLClassesListWidget)})},
  1166. args: ["aClass"],
  1167. source: "getChildrenOf: aClass\x0a\x09^ self items select: [ :each | each superclass = aClass ]",
  1168. messageSends: ["select:", "=", "superclass", "items"],
  1169. referencedClasses: []
  1170. }),
  1171. smalltalk.HLClassesListWidget);
  1172. smalltalk.addMethod(
  1173. smalltalk.method({
  1174. selector: "getRootClassesOf:",
  1175. category: 'accessing',
  1176. fn: function (aCollection){
  1177. var self=this;
  1178. return smalltalk.withContext(function($ctx1) {
  1179. var $1;
  1180. $1=_st(aCollection)._select_((function(each){
  1181. return smalltalk.withContext(function($ctx2) {
  1182. return _st(_st(aCollection)._includes_(_st(each)._superclass()))._not();
  1183. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  1184. return $1;
  1185. }, function($ctx1) {$ctx1.fill(self,"getRootClassesOf:",{aCollection:aCollection},smalltalk.HLClassesListWidget)})},
  1186. args: ["aCollection"],
  1187. source: "getRootClassesOf: aCollection\x0a\x09^ aCollection select: [ :each |\x0a \x09\x09(aCollection includes: each superclass) not ]",
  1188. messageSends: ["select:", "not", "includes:", "superclass"],
  1189. referencedClasses: []
  1190. }),
  1191. smalltalk.HLClassesListWidget);
  1192. smalltalk.addMethod(
  1193. smalltalk.method({
  1194. selector: "label",
  1195. category: 'accessing',
  1196. fn: function (){
  1197. var self=this;
  1198. return smalltalk.withContext(function($ctx1) {
  1199. return "Classes";
  1200. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLClassesListWidget)})},
  1201. args: [],
  1202. source: "label\x0a\x09^ 'Classes'",
  1203. messageSends: [],
  1204. referencedClasses: []
  1205. }),
  1206. smalltalk.HLClassesListWidget);
  1207. smalltalk.addMethod(
  1208. smalltalk.method({
  1209. selector: "observeModel",
  1210. category: 'actions',
  1211. fn: function (){
  1212. var self=this;
  1213. function $HLPackageSelected(){return smalltalk.HLPackageSelected||(typeof HLPackageSelected=="undefined"?nil:HLPackageSelected)}
  1214. function $HLShowInstanceToggled(){return smalltalk.HLShowInstanceToggled||(typeof HLShowInstanceToggled=="undefined"?nil:HLShowInstanceToggled)}
  1215. function $HLShowCommentToggled(){return smalltalk.HLShowCommentToggled||(typeof HLShowCommentToggled=="undefined"?nil:HLShowCommentToggled)}
  1216. function $HLClassSelected(){return smalltalk.HLClassSelected||(typeof HLClassSelected=="undefined"?nil:HLClassSelected)}
  1217. function $HLClassesFocusRequested(){return smalltalk.HLClassesFocusRequested||(typeof HLClassesFocusRequested=="undefined"?nil:HLClassesFocusRequested)}
  1218. return smalltalk.withContext(function($ctx1) {
  1219. var $1,$2;
  1220. $1=_st(_st(self)._model())._announcer();
  1221. _st($1)._on_send_to_($HLPackageSelected(),"onPackageSelected:",self);
  1222. _st($1)._on_send_to_($HLShowInstanceToggled(),"onShowInstanceToggled",self);
  1223. _st($1)._on_send_to_($HLShowCommentToggled(),"onShowCommentToggled",self);
  1224. _st($1)._on_send_to_($HLClassSelected(),"onClassSelected:",self);
  1225. $2=_st($1)._on_send_to_($HLClassesFocusRequested(),"onClassesFocusRequested",self);
  1226. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{},smalltalk.HLClassesListWidget)})},
  1227. args: [],
  1228. source: "observeModel\x0a\x09self model announcer \x0a \x09on: HLPackageSelected\x0a\x09\x09send: #onPackageSelected:\x0a\x09\x09to: self;\x0a\x09\x09\x0a \x09on: HLShowInstanceToggled \x0a\x09\x09send: #onShowInstanceToggled\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: HLShowCommentToggled\x0a\x09\x09send: #onShowCommentToggled\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: HLClassSelected\x0a\x09\x09send: #onClassSelected:\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: HLClassesFocusRequested\x0a\x09\x09send: #onClassesFocusRequested\x0a\x09\x09to: self",
  1229. messageSends: ["on:send:to:", "announcer", "model"],
  1230. referencedClasses: ["HLPackageSelected", "HLShowInstanceToggled", "HLShowCommentToggled", "HLClassSelected", "HLClassesFocusRequested"]
  1231. }),
  1232. smalltalk.HLClassesListWidget);
  1233. smalltalk.addMethod(
  1234. smalltalk.method({
  1235. selector: "observeSystem",
  1236. category: 'actions',
  1237. fn: function (){
  1238. var self=this;
  1239. function $ClassAdded(){return smalltalk.ClassAdded||(typeof ClassAdded=="undefined"?nil:ClassAdded)}
  1240. function $ClassRemoved(){return smalltalk.ClassRemoved||(typeof ClassRemoved=="undefined"?nil:ClassRemoved)}
  1241. function $ClassMoved(){return smalltalk.ClassMoved||(typeof ClassMoved=="undefined"?nil:ClassMoved)}
  1242. function $ClassRenamed(){return smalltalk.ClassRenamed||(typeof ClassRenamed=="undefined"?nil:ClassRenamed)}
  1243. function $ClassMigrated(){return smalltalk.ClassMigrated||(typeof ClassMigrated=="undefined"?nil:ClassMigrated)}
  1244. function $ClassCommentChanged(){return smalltalk.ClassCommentChanged||(typeof ClassCommentChanged=="undefined"?nil:ClassCommentChanged)}
  1245. return smalltalk.withContext(function($ctx1) {
  1246. var $1,$2;
  1247. $1=_st(_st(self)._model())._systemAnnouncer();
  1248. _st($1)._on_send_to_($ClassAdded(),"onClassAdded:",self);
  1249. _st($1)._on_send_to_($ClassRemoved(),"onClassRemoved:",self);
  1250. _st($1)._on_send_to_($ClassMoved(),"onClassMoved:",self);
  1251. _st($1)._on_send_to_($ClassRenamed(),"onClassRenamed:",self);
  1252. _st($1)._on_send_to_($ClassMigrated(),"onClassMigrated:",self);
  1253. $2=_st($1)._on_send_to_($ClassCommentChanged(),"onClassCommentChanged:",self);
  1254. return self}, function($ctx1) {$ctx1.fill(self,"observeSystem",{},smalltalk.HLClassesListWidget)})},
  1255. args: [],
  1256. source: "observeSystem\x0a\x09self model systemAnnouncer\x0a \x09on: ClassAdded\x0a\x09\x09send: #onClassAdded:\x0a\x09\x09to: self;\x0a\x09\x09\x0a on: ClassRemoved\x0a send: #onClassRemoved:\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: ClassMoved\x0a\x09\x09send: #onClassMoved:\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: ClassRenamed\x0a\x09\x09send: #onClassRenamed:\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: ClassMigrated\x0a\x09\x09send: #onClassMigrated:\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: ClassCommentChanged\x0a send: #onClassCommentChanged:\x0a\x09\x09to: self",
  1257. messageSends: ["on:send:to:", "systemAnnouncer", "model"],
  1258. referencedClasses: ["ClassAdded", "ClassRemoved", "ClassMoved", "ClassRenamed", "ClassMigrated", "ClassCommentChanged"]
  1259. }),
  1260. smalltalk.HLClassesListWidget);
  1261. smalltalk.addMethod(
  1262. smalltalk.method({
  1263. selector: "onClassAdded:",
  1264. category: 'reactions',
  1265. fn: function (anAnnouncement){
  1266. var self=this;
  1267. var class_;
  1268. return smalltalk.withContext(function($ctx1) {
  1269. var $1,$2;
  1270. class_=_st(anAnnouncement)._theClass();
  1271. $1=_st(_st(_st(class_)._package()).__eq(_st(_st(self)._model())._selectedPackage()))._or_((function(){
  1272. return smalltalk.withContext(function($ctx2) {
  1273. return _st(_st(self)._items())._includes_(class_);
  1274. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1275. if(! smalltalk.assert($1)){
  1276. $2=self;
  1277. return $2;
  1278. };
  1279. _st(self)._setItemsForSelectedPackage();
  1280. _st(self)._refresh();
  1281. return self}, function($ctx1) {$ctx1.fill(self,"onClassAdded:",{anAnnouncement:anAnnouncement,class_:class_},smalltalk.HLClassesListWidget)})},
  1282. args: ["anAnnouncement"],
  1283. source: "onClassAdded: anAnnouncement\x0a\x09| class |\x0a\x09\x0a\x09class := anAnnouncement theClass.\x0a\x09\x0a\x09(class package = self model selectedPackage or: [\x0a\x09\x09self items includes: class ]) ifFalse: [ ^ self ].\x0a \x0a self setItemsForSelectedPackage.\x0a self refresh",
  1284. messageSends: ["theClass", "ifFalse:", "or:", "includes:", "items", "=", "selectedPackage", "model", "package", "setItemsForSelectedPackage", "refresh"],
  1285. referencedClasses: []
  1286. }),
  1287. smalltalk.HLClassesListWidget);
  1288. smalltalk.addMethod(
  1289. smalltalk.method({
  1290. selector: "onClassCommentChanged:",
  1291. category: 'reactions',
  1292. fn: function (anAnnouncement){
  1293. var self=this;
  1294. var class_;
  1295. return smalltalk.withContext(function($ctx1) {
  1296. var $1,$2;
  1297. class_=_st(anAnnouncement)._theClass();
  1298. $1=_st(_st(class_)._package()).__eq(_st(_st(self)._model())._selectedPackage());
  1299. if(! smalltalk.assert($1)){
  1300. $2=self;
  1301. return $2;
  1302. };
  1303. _st(self)._refresh();
  1304. return self}, function($ctx1) {$ctx1.fill(self,"onClassCommentChanged:",{anAnnouncement:anAnnouncement,class_:class_},smalltalk.HLClassesListWidget)})},
  1305. args: ["anAnnouncement"],
  1306. source: "onClassCommentChanged: anAnnouncement\x0a\x09| class |\x0a\x09class := anAnnouncement theClass.\x0a\x0a\x09class package = self model selectedPackage ifFalse: [ ^ self ].\x0a \x0a self refresh",
  1307. messageSends: ["theClass", "ifFalse:", "=", "selectedPackage", "model", "package", "refresh"],
  1308. referencedClasses: []
  1309. }),
  1310. smalltalk.HLClassesListWidget);
  1311. smalltalk.addMethod(
  1312. smalltalk.method({
  1313. selector: "onClassMigrated:",
  1314. category: 'reactions',
  1315. fn: function (anAnnouncement){
  1316. var self=this;
  1317. var class_,oldClass;
  1318. return smalltalk.withContext(function($ctx1) {
  1319. var $1,$2,$3;
  1320. class_=_st(anAnnouncement)._theClass();
  1321. oldClass=_st(anAnnouncement)._oldClass();
  1322. $1=_st(_st(self)._items())._includes_(oldClass);
  1323. if(! smalltalk.assert($1)){
  1324. $2=self;
  1325. return $2;
  1326. };
  1327. $3=_st(_st(_st(self)._model())._selectedClass()).__eq(oldClass);
  1328. if(smalltalk.assert($3)){
  1329. _st(_st(self)._model())._selectedClass_(class_);
  1330. };
  1331. _st(self)._setItemsForSelectedPackage();
  1332. _st(self)._refresh();
  1333. return self}, function($ctx1) {$ctx1.fill(self,"onClassMigrated:",{anAnnouncement:anAnnouncement,class_:class_,oldClass:oldClass},smalltalk.HLClassesListWidget)})},
  1334. args: ["anAnnouncement"],
  1335. source: "onClassMigrated: anAnnouncement\x0a\x09| class oldClass |\x0a\x09\x0a\x09class := anAnnouncement theClass.\x0a\x09oldClass := anAnnouncement oldClass.\x0a\x0a\x09(self items includes: oldClass) ifFalse: [ ^ self ].\x0a\x0a\x09self model selectedClass = oldClass ifTrue: [\x0a\x09\x09self model selectedClass: class ].\x0a \x0a self setItemsForSelectedPackage.\x0a self refresh",
  1336. messageSends: ["theClass", "oldClass", "ifFalse:", "includes:", "items", "ifTrue:", "selectedClass:", "model", "=", "selectedClass", "setItemsForSelectedPackage", "refresh"],
  1337. referencedClasses: []
  1338. }),
  1339. smalltalk.HLClassesListWidget);
  1340. smalltalk.addMethod(
  1341. smalltalk.method({
  1342. selector: "onClassMoved:",
  1343. category: 'reactions',
  1344. fn: function (anAnnouncement){
  1345. var self=this;
  1346. var class_,oldPackage;
  1347. return smalltalk.withContext(function($ctx1) {
  1348. var $1,$2,$3,$4,$5;
  1349. class_=_st(anAnnouncement)._theClass();
  1350. oldPackage=_st(anAnnouncement)._oldPackage();
  1351. $1=_st(_st(oldPackage).__eq(_st(_st(self)._model())._selectedPackage()))._or_((function(){
  1352. return smalltalk.withContext(function($ctx2) {
  1353. return _st(_st(class_)._package()).__eq(_st(_st(self)._model())._selectedPackage());
  1354. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1355. if(! smalltalk.assert($1)){
  1356. $2=self;
  1357. return $2;
  1358. };
  1359. $3=_st(oldPackage).__eq(_st(_st(self)._model())._selectedPackage());
  1360. if(smalltalk.assert($3)){
  1361. $4=self;
  1362. _st($4)._selectedItem_(nil);
  1363. $5=_st($4)._selectItem_(nil);
  1364. $5;
  1365. };
  1366. _st(self)._setItemsForSelectedPackage();
  1367. _st(self)._refresh();
  1368. return self}, function($ctx1) {$ctx1.fill(self,"onClassMoved:",{anAnnouncement:anAnnouncement,class_:class_,oldPackage:oldPackage},smalltalk.HLClassesListWidget)})},
  1369. args: ["anAnnouncement"],
  1370. source: "onClassMoved: anAnnouncement\x0a\x09| class oldPackage |\x0a\x09\x0a\x09class := anAnnouncement theClass.\x0a\x09oldPackage := anAnnouncement oldPackage.\x0a\x09\x0a\x09(oldPackage = self model selectedPackage or: [\x0a\x09\x09class package = self model selectedPackage ])\x0a\x09\x09\x09ifFalse: [ ^ self ].\x0a\x09\x0a\x09oldPackage = self model selectedPackage ifTrue: [ \x0a\x09\x09self \x0a\x09\x09\x09selectedItem: nil;\x0a\x09\x09\x09selectItem: nil ].\x0a \x0a self setItemsForSelectedPackage.\x0a self refresh",
  1371. messageSends: ["theClass", "oldPackage", "ifFalse:", "or:", "=", "selectedPackage", "model", "package", "ifTrue:", "selectedItem:", "selectItem:", "setItemsForSelectedPackage", "refresh"],
  1372. referencedClasses: []
  1373. }),
  1374. smalltalk.HLClassesListWidget);
  1375. smalltalk.addMethod(
  1376. smalltalk.method({
  1377. selector: "onClassRemoved:",
  1378. category: 'reactions',
  1379. fn: function (anAnnouncement){
  1380. var self=this;
  1381. var class_;
  1382. return smalltalk.withContext(function($ctx1) {
  1383. var $1,$2;
  1384. class_=_st(anAnnouncement)._theClass();
  1385. $1=_st(_st(class_)._package()).__eq(_st(_st(self)._model())._selectedPackage());
  1386. if(! smalltalk.assert($1)){
  1387. $2=self;
  1388. return $2;
  1389. };
  1390. _st(self)._setItemsForSelectedPackage();
  1391. _st(self)._refresh();
  1392. return self}, function($ctx1) {$ctx1.fill(self,"onClassRemoved:",{anAnnouncement:anAnnouncement,class_:class_},smalltalk.HLClassesListWidget)})},
  1393. args: ["anAnnouncement"],
  1394. source: "onClassRemoved: anAnnouncement\x0a\x09| class |\x0a\x09class := anAnnouncement theClass.\x0a\x0a\x09class package = self model selectedPackage ifFalse: [ ^ self ].\x0a \x0a self setItemsForSelectedPackage.\x0a self refresh",
  1395. messageSends: ["theClass", "ifFalse:", "=", "selectedPackage", "model", "package", "setItemsForSelectedPackage", "refresh"],
  1396. referencedClasses: []
  1397. }),
  1398. smalltalk.HLClassesListWidget);
  1399. smalltalk.addMethod(
  1400. smalltalk.method({
  1401. selector: "onClassRenamed:",
  1402. category: 'reactions',
  1403. fn: function (anAnnouncement){
  1404. var self=this;
  1405. return smalltalk.withContext(function($ctx1) {
  1406. var $1,$2;
  1407. $1=_st(_st(_st(anAnnouncement)._theClass())._package()).__eq(_st(_st(self)._model())._selectedPackage());
  1408. if(! smalltalk.assert($1)){
  1409. $2=self;
  1410. return $2;
  1411. };
  1412. _st(self)._setItemsForSelectedPackage();
  1413. _st(self)._refresh();
  1414. return self}, function($ctx1) {$ctx1.fill(self,"onClassRenamed:",{anAnnouncement:anAnnouncement},smalltalk.HLClassesListWidget)})},
  1415. args: ["anAnnouncement"],
  1416. source: "onClassRenamed: anAnnouncement\x0a\x09anAnnouncement theClass package = self model selectedPackage ifFalse: [ ^ self ].\x0a \x0a self setItemsForSelectedPackage.\x0a self refresh",
  1417. messageSends: ["ifFalse:", "=", "selectedPackage", "model", "package", "theClass", "setItemsForSelectedPackage", "refresh"],
  1418. referencedClasses: []
  1419. }),
  1420. smalltalk.HLClassesListWidget);
  1421. smalltalk.addMethod(
  1422. smalltalk.method({
  1423. selector: "onClassSelected:",
  1424. category: 'reactions',
  1425. fn: function (anAnnouncement){
  1426. var self=this;
  1427. var selectedClass;
  1428. return smalltalk.withContext(function($ctx1) {
  1429. var $1,$2,$3,$4,$5;
  1430. $1=_st(anAnnouncement)._item();
  1431. if(($receiver = $1) == nil || $receiver == undefined){
  1432. $2=self;
  1433. return $2;
  1434. } else {
  1435. $1;
  1436. };
  1437. selectedClass=_st(_st(anAnnouncement)._item())._theNonMetaClass();
  1438. _st(self)._selectedItem_(selectedClass);
  1439. $3=_st(self)._hasFocus();
  1440. if(! smalltalk.assert($3)){
  1441. $4=self;
  1442. _st($4)._activateItem_(selectedClass);
  1443. $5=_st($4)._focus();
  1444. $5;
  1445. };
  1446. return self}, function($ctx1) {$ctx1.fill(self,"onClassSelected:",{anAnnouncement:anAnnouncement,selectedClass:selectedClass},smalltalk.HLClassesListWidget)})},
  1447. args: ["anAnnouncement"],
  1448. source: "onClassSelected: anAnnouncement\x0a\x09| selectedClass |\x0a\x09\x0a\x09anAnnouncement item ifNil: [ ^ self ].\x0a\x09\x0a\x09selectedClass := anAnnouncement item theNonMetaClass.\x0a\x09self selectedItem: selectedClass.\x0a\x0a\x09self hasFocus ifFalse: [\x0a\x09\x09self \x0a\x09\x09\x09activateItem: selectedClass;\x0a\x09\x09\x09focus ]",
  1449. messageSends: ["ifNil:", "item", "theNonMetaClass", "selectedItem:", "ifFalse:", "activateItem:", "focus", "hasFocus"],
  1450. referencedClasses: []
  1451. }),
  1452. smalltalk.HLClassesListWidget);
  1453. smalltalk.addMethod(
  1454. smalltalk.method({
  1455. selector: "onClassesFocusRequested",
  1456. category: 'reactions',
  1457. fn: function (){
  1458. var self=this;
  1459. return smalltalk.withContext(function($ctx1) {
  1460. _st(self)._focus();
  1461. return self}, function($ctx1) {$ctx1.fill(self,"onClassesFocusRequested",{},smalltalk.HLClassesListWidget)})},
  1462. args: [],
  1463. source: "onClassesFocusRequested\x0a\x09self focus",
  1464. messageSends: ["focus"],
  1465. referencedClasses: []
  1466. }),
  1467. smalltalk.HLClassesListWidget);
  1468. smalltalk.addMethod(
  1469. smalltalk.method({
  1470. selector: "onPackageSelected:",
  1471. category: 'reactions',
  1472. fn: function (anAnnouncement){
  1473. var self=this;
  1474. return smalltalk.withContext(function($ctx1) {
  1475. _st(self)._selectedItem_(nil);
  1476. _st(self)._setItemsForSelectedPackage();
  1477. _st(self)._refresh();
  1478. return self}, function($ctx1) {$ctx1.fill(self,"onPackageSelected:",{anAnnouncement:anAnnouncement},smalltalk.HLClassesListWidget)})},
  1479. args: ["anAnnouncement"],
  1480. source: "onPackageSelected: anAnnouncement\x0a self selectedItem: nil.\x0a \x0a self setItemsForSelectedPackage.\x0a self refresh",
  1481. messageSends: ["selectedItem:", "setItemsForSelectedPackage", "refresh"],
  1482. referencedClasses: []
  1483. }),
  1484. smalltalk.HLClassesListWidget);
  1485. smalltalk.addMethod(
  1486. smalltalk.method({
  1487. selector: "onShowCommentToggled",
  1488. category: 'reactions',
  1489. fn: function (){
  1490. var self=this;
  1491. return smalltalk.withContext(function($ctx1) {
  1492. _st(self)._refresh();
  1493. return self}, function($ctx1) {$ctx1.fill(self,"onShowCommentToggled",{},smalltalk.HLClassesListWidget)})},
  1494. args: [],
  1495. source: "onShowCommentToggled\x0a\x09self refresh",
  1496. messageSends: ["refresh"],
  1497. referencedClasses: []
  1498. }),
  1499. smalltalk.HLClassesListWidget);
  1500. smalltalk.addMethod(
  1501. smalltalk.method({
  1502. selector: "onShowInstanceToggled",
  1503. category: 'reactions',
  1504. fn: function (){
  1505. var self=this;
  1506. return smalltalk.withContext(function($ctx1) {
  1507. _st(self)._refresh();
  1508. return self}, function($ctx1) {$ctx1.fill(self,"onShowInstanceToggled",{},smalltalk.HLClassesListWidget)})},
  1509. args: [],
  1510. source: "onShowInstanceToggled\x0a\x09self refresh",
  1511. messageSends: ["refresh"],
  1512. referencedClasses: []
  1513. }),
  1514. smalltalk.HLClassesListWidget);
  1515. smalltalk.addMethod(
  1516. smalltalk.method({
  1517. selector: "renderButtonsOn:",
  1518. category: 'rendering',
  1519. fn: function (html){
  1520. var self=this;
  1521. var checkbox;
  1522. function $String(){return smalltalk.String||(typeof String=="undefined"?nil:String)}
  1523. return smalltalk.withContext(function($ctx1) {
  1524. var $1,$3,$4,$5,$6,$7,$8,$2,$9,$11,$12,$10,$13;
  1525. $1=_st(html)._div();
  1526. _st($1)._class_("btn-group");
  1527. $2=_st($1)._with_((function(){
  1528. return smalltalk.withContext(function($ctx2) {
  1529. $3=_st(html)._button();
  1530. _st($3)._class_(_st($String())._streamContents_((function(str){
  1531. return smalltalk.withContext(function($ctx3) {
  1532. _st(str)._nextPutAll_("btn");
  1533. $4=_st(self)._showInstance();
  1534. if(smalltalk.assert($4)){
  1535. return _st(str)._nextPutAll_(" active");
  1536. };
  1537. }, function($ctx3) {$ctx3.fillBlock({str:str},$ctx1)})})));
  1538. _st($3)._with_("Instance");
  1539. $5=_st($3)._onClick_((function(){
  1540. return smalltalk.withContext(function($ctx3) {
  1541. return _st(self)._showInstance_(true);
  1542. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1543. $5;
  1544. $6=_st(html)._button();
  1545. _st($6)._class_(_st($String())._streamContents_((function(str){
  1546. return smalltalk.withContext(function($ctx3) {
  1547. _st(str)._nextPutAll_("btn");
  1548. $7=_st(self)._showClass();
  1549. if(smalltalk.assert($7)){
  1550. return _st(str)._nextPutAll_(" active");
  1551. };
  1552. }, function($ctx3) {$ctx3.fillBlock({str:str},$ctx1)})})));
  1553. _st($6)._with_("Class");
  1554. $8=_st($6)._onClick_((function(){
  1555. return smalltalk.withContext(function($ctx3) {
  1556. return _st(self)._showInstance_(false);
  1557. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1558. return $8;
  1559. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1560. $9=_st(html)._label();
  1561. _st($9)._class_("checkbox");
  1562. $10=_st($9)._with_((function(){
  1563. return smalltalk.withContext(function($ctx2) {
  1564. $11=_st(html)._input();
  1565. _st($11)._type_("checkbox");
  1566. $12=_st($11)._onClick_((function(){
  1567. return smalltalk.withContext(function($ctx3) {
  1568. return _st(self)._toggleShowComment();
  1569. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1570. checkbox=$12;
  1571. checkbox;
  1572. return _st(html)._with_("Doc");
  1573. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1574. $13=_st(self)._showComment();
  1575. if(smalltalk.assert($13)){
  1576. _st(checkbox)._at_put_("checked","checked");
  1577. };
  1578. return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html,checkbox:checkbox},smalltalk.HLClassesListWidget)})},
  1579. args: ["html"],
  1580. source: "renderButtonsOn: html\x0a\x09| checkbox |\x0a\x09\x0a\x09html div \x0a class: 'btn-group';\x0a\x09\x09with: [ \x0a \x09html button \x0a class: (String streamContents: [ :str |\x0a \x09str nextPutAll: 'btn'.\x0a self showInstance ifTrue: [ \x0a \x09str nextPutAll: ' active' ] ]);\x0a \x09\x09\x09\x09with: 'Instance';\x0a onClick: [ self showInstance: true ].\x0a \x09\x09\x09html button\x0a \x09\x09\x09\x09class: (String streamContents: [ :str |\x0a \x09str nextPutAll: 'btn'.\x0a self showClass ifTrue: [ \x0a \x09str nextPutAll: ' active' ] ]);\x0a \x09\x09\x09\x09with: 'Class';\x0a\x09\x09\x09\x09onClick: [ self showInstance: false ] ].\x0a\x09\x09html label \x0a\x09\x09\x09class: 'checkbox';\x0a\x09\x09\x09with: [\x0a\x09\x09\x09\x09checkbox := html input\x0a\x09\x09\x09\x09\x09type: 'checkbox';\x0a\x09\x09\x09\x09\x09onClick: [ self toggleShowComment ].\x0a\x09\x09\x09\x09html with: 'Doc' ].\x0a\x09\x09\x09\x09\x0a\x09\x09self showComment ifTrue: [\x0a\x09\x09\x09checkbox at: 'checked' put: 'checked' ]",
  1581. messageSends: ["class:", "div", "with:", "streamContents:", "nextPutAll:", "ifTrue:", "showInstance", "button", "onClick:", "showInstance:", "showClass", "label", "type:", "input", "toggleShowComment", "at:put:", "showComment"],
  1582. referencedClasses: ["String"]
  1583. }),
  1584. smalltalk.HLClassesListWidget);
  1585. smalltalk.addMethod(
  1586. smalltalk.method({
  1587. selector: "renderItem:level:on:",
  1588. category: 'rendering',
  1589. fn: function (aClass,anInteger,html){
  1590. var self=this;
  1591. var li;
  1592. return smalltalk.withContext(function($ctx1) {
  1593. var $1,$3,$4,$2;
  1594. li=_st(html)._li();
  1595. _st(self)._registerMappingFrom_to_(aClass,li);
  1596. $1=li;
  1597. _st($1)._at_put_("list-data",_st(_st(self)._items())._indexOf_(aClass));
  1598. _st($1)._class_(_st(self)._listCssClassForItem_(aClass));
  1599. $2=_st($1)._with_((function(){
  1600. return smalltalk.withContext(function($ctx2) {
  1601. $3=_st(html)._a();
  1602. _st($3)._with_((function(){
  1603. return smalltalk.withContext(function($ctx3) {
  1604. _st(_st(html)._tag_("i"))._class_(_st(self)._cssClassForItem_(aClass));
  1605. return _st(self)._renderItemLabel_level_on_(aClass,anInteger,html);
  1606. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1607. $4=_st($3)._onClick_((function(){
  1608. return smalltalk.withContext(function($ctx3) {
  1609. return _st(self)._activateListItem_(_st(li)._asJQuery());
  1610. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1611. return $4;
  1612. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1613. _st(_st(self)._getChildrenOf_(aClass))._do_((function(each){
  1614. return smalltalk.withContext(function($ctx2) {
  1615. return _st(self)._renderItem_level_on_(each,_st(anInteger).__plus((1)),html);
  1616. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  1617. return self}, function($ctx1) {$ctx1.fill(self,"renderItem:level:on:",{aClass:aClass,anInteger:anInteger,html:html,li:li},smalltalk.HLClassesListWidget)})},
  1618. args: ["aClass", "anInteger", "html"],
  1619. source: "renderItem: aClass level: anInteger on: html\x0a\x09| li |\x0a \x0a\x09li := html li.\x0a\x09self registerMappingFrom: aClass to: li.\x0a\x09\x0a li\x0a \x09at: 'list-data' put: (self items indexOf: aClass);\x0a\x09\x09class: (self listCssClassForItem: aClass);\x0a\x09\x09with: [ \x0a \x09html a\x0a \x09with: [ \x0a \x09\x09(html tag: 'i') class: (self cssClassForItem: aClass).\x0a \x09\x09\x09\x09\x09self renderItemLabel: aClass level: anInteger on: html ];\x0a\x09\x09\x09\x09onClick: [\x0a \x09self activateListItem: li asJQuery ] ].\x0a \x0a (self getChildrenOf: aClass) do: [ :each |\x0a \x09self renderItem: each level: anInteger + 1 on: html ]",
  1620. messageSends: ["li", "registerMappingFrom:to:", "at:put:", "indexOf:", "items", "class:", "listCssClassForItem:", "with:", "cssClassForItem:", "tag:", "renderItemLabel:level:on:", "a", "onClick:", "activateListItem:", "asJQuery", "do:", "renderItem:level:on:", "+", "getChildrenOf:"],
  1621. referencedClasses: []
  1622. }),
  1623. smalltalk.HLClassesListWidget);
  1624. smalltalk.addMethod(
  1625. smalltalk.method({
  1626. selector: "renderItem:on:",
  1627. category: 'rendering',
  1628. fn: function (aClass,html){
  1629. var self=this;
  1630. return smalltalk.withContext(function($ctx1) {
  1631. smalltalk.HLToolListWidget.fn.prototype._renderItem_on_.apply(_st(self), [aClass,html]);
  1632. _st(_st(self)._getChildrenOf_(aClass))._do_((function(each){
  1633. return smalltalk.withContext(function($ctx2) {
  1634. return _st(self)._renderItem_level_on_(each,(1),html);
  1635. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  1636. return self}, function($ctx1) {$ctx1.fill(self,"renderItem:on:",{aClass:aClass,html:html},smalltalk.HLClassesListWidget)})},
  1637. args: ["aClass", "html"],
  1638. source: "renderItem: aClass on: html\x0a\x09super renderItem: aClass on: html.\x0a (self getChildrenOf: aClass) do: [ :each |\x0a \x09self renderItem: each level: 1 on: html ]",
  1639. messageSends: ["renderItem:on:", "do:", "renderItem:level:on:", "getChildrenOf:"],
  1640. referencedClasses: []
  1641. }),
  1642. smalltalk.HLClassesListWidget);
  1643. smalltalk.addMethod(
  1644. smalltalk.method({
  1645. selector: "renderItemLabel:level:on:",
  1646. category: 'rendering',
  1647. fn: function (aClass,anInteger,html){
  1648. var self=this;
  1649. function $String(){return smalltalk.String||(typeof String=="undefined"?nil:String)}
  1650. return smalltalk.withContext(function($ctx1) {
  1651. _st(_st(_st(html)._span())._asJQuery())._html_(_st($String())._streamContents_((function(str){
  1652. return smalltalk.withContext(function($ctx2) {
  1653. _st(anInteger)._timesRepeat_((function(){
  1654. return smalltalk.withContext(function($ctx3) {
  1655. return _st(str)._nextPutAll_("    ");
  1656. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1657. return _st(str)._nextPutAll_(_st(aClass)._name());
  1658. }, function($ctx2) {$ctx2.fillBlock({str:str},$ctx1)})})));
  1659. return self}, function($ctx1) {$ctx1.fill(self,"renderItemLabel:level:on:",{aClass:aClass,anInteger:anInteger,html:html},smalltalk.HLClassesListWidget)})},
  1660. args: ["aClass", "anInteger", "html"],
  1661. source: "renderItemLabel: aClass level: anInteger on: html\x0a\x09html span asJQuery html: (String streamContents: [ :str |\x0a\x09\x09anInteger timesRepeat: [\x0a\x09\x09\x09str nextPutAll: '    '].\x0a\x09\x09\x09str nextPutAll: aClass name ])",
  1662. messageSends: ["html:", "streamContents:", "timesRepeat:", "nextPutAll:", "name", "asJQuery", "span"],
  1663. referencedClasses: ["String"]
  1664. }),
  1665. smalltalk.HLClassesListWidget);
  1666. smalltalk.addMethod(
  1667. smalltalk.method({
  1668. selector: "renderItemLabel:on:",
  1669. category: 'rendering',
  1670. fn: function (aClass,html){
  1671. var self=this;
  1672. return smalltalk.withContext(function($ctx1) {
  1673. _st(self)._renderItemLabel_level_on_(aClass,(0),html);
  1674. return self}, function($ctx1) {$ctx1.fill(self,"renderItemLabel:on:",{aClass:aClass,html:html},smalltalk.HLClassesListWidget)})},
  1675. args: ["aClass", "html"],
  1676. source: "renderItemLabel: aClass on: html\x0a\x09self renderItemLabel: aClass level: 0 on: html",
  1677. messageSends: ["renderItemLabel:level:on:"],
  1678. referencedClasses: []
  1679. }),
  1680. smalltalk.HLClassesListWidget);
  1681. smalltalk.addMethod(
  1682. smalltalk.method({
  1683. selector: "renderListOn:",
  1684. category: 'rendering',
  1685. fn: function (html){
  1686. var self=this;
  1687. return smalltalk.withContext(function($ctx1) {
  1688. _st(_st(self)._getRootClassesOf_(_st(self)._items()))._do_((function(each){
  1689. return smalltalk.withContext(function($ctx2) {
  1690. return _st(self)._renderItem_on_(each,html);
  1691. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  1692. return self}, function($ctx1) {$ctx1.fill(self,"renderListOn:",{html:html},smalltalk.HLClassesListWidget)})},
  1693. args: ["html"],
  1694. source: "renderListOn: html\x0a\x09(self getRootClassesOf: self items)\x0a \x09do: [ :each | self renderItem: each on: html ]",
  1695. messageSends: ["do:", "renderItem:on:", "getRootClassesOf:", "items"],
  1696. referencedClasses: []
  1697. }),
  1698. smalltalk.HLClassesListWidget);
  1699. smalltalk.addMethod(
  1700. smalltalk.method({
  1701. selector: "selectItem:",
  1702. category: 'actions',
  1703. fn: function (aClass){
  1704. var self=this;
  1705. return smalltalk.withContext(function($ctx1) {
  1706. _st(_st(self)._model())._selectedClass_(aClass);
  1707. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{aClass:aClass},smalltalk.HLClassesListWidget)})},
  1708. args: ["aClass"],
  1709. source: "selectItem: aClass\x0a self model selectedClass: aClass",
  1710. messageSends: ["selectedClass:", "model"],
  1711. referencedClasses: []
  1712. }),
  1713. smalltalk.HLClassesListWidget);
  1714. smalltalk.addMethod(
  1715. smalltalk.method({
  1716. selector: "setItemsForPackage:",
  1717. category: 'private',
  1718. fn: function (aPackage){
  1719. var self=this;
  1720. return smalltalk.withContext(function($ctx1) {
  1721. var $1,$3,$2;
  1722. $1=self;
  1723. $3=aPackage;
  1724. if(($receiver = $3) == nil || $receiver == undefined){
  1725. $2=[];
  1726. } else {
  1727. $2=_st(_st(_st(_st(_st(aPackage)._classes())._collect_((function(each){
  1728. return smalltalk.withContext(function($ctx2) {
  1729. return _st(each)._theNonMetaClass();
  1730. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})))._asSet())._asArray())._sort_((function(a,b){
  1731. return smalltalk.withContext(function($ctx2) {
  1732. return _st(_st(a)._name()).__lt(_st(b)._name());
  1733. }, function($ctx2) {$ctx2.fillBlock({a:a,b:b},$ctx1)})}));
  1734. };
  1735. _st($1)._items_($2);
  1736. return self}, function($ctx1) {$ctx1.fill(self,"setItemsForPackage:",{aPackage:aPackage},smalltalk.HLClassesListWidget)})},
  1737. args: ["aPackage"],
  1738. source: "setItemsForPackage: aPackage\x0a\x09self items: (aPackage \x0a \x09ifNil: [ #() ]\x0a \x09\x09ifNotNil: [ ((aPackage classes \x0a \x09collect: [ :each | each theNonMetaClass ]) asSet asArray) \x0a \x09sort: [:a :b | a name < b name ] ]).",
  1739. messageSends: ["items:", "ifNil:ifNotNil:", "sort:", "<", "name", "asArray", "asSet", "collect:", "theNonMetaClass", "classes"],
  1740. referencedClasses: []
  1741. }),
  1742. smalltalk.HLClassesListWidget);
  1743. smalltalk.addMethod(
  1744. smalltalk.method({
  1745. selector: "setItemsForSelectedPackage",
  1746. category: 'private',
  1747. fn: function (){
  1748. var self=this;
  1749. return smalltalk.withContext(function($ctx1) {
  1750. _st(self)._setItemsForPackage_(_st(_st(self)._model())._selectedPackage());
  1751. return self}, function($ctx1) {$ctx1.fill(self,"setItemsForSelectedPackage",{},smalltalk.HLClassesListWidget)})},
  1752. args: [],
  1753. source: "setItemsForSelectedPackage\x0a\x09self setItemsForPackage: self model selectedPackage",
  1754. messageSends: ["setItemsForPackage:", "selectedPackage", "model"],
  1755. referencedClasses: []
  1756. }),
  1757. smalltalk.HLClassesListWidget);
  1758. smalltalk.addMethod(
  1759. smalltalk.method({
  1760. selector: "showClass",
  1761. category: 'testing',
  1762. fn: function (){
  1763. var self=this;
  1764. return smalltalk.withContext(function($ctx1) {
  1765. var $1;
  1766. $1=_st(_st(_st(self)._model())._showInstance())._not();
  1767. return $1;
  1768. }, function($ctx1) {$ctx1.fill(self,"showClass",{},smalltalk.HLClassesListWidget)})},
  1769. args: [],
  1770. source: "showClass\x0a\x09^ self model showInstance not",
  1771. messageSends: ["not", "showInstance", "model"],
  1772. referencedClasses: []
  1773. }),
  1774. smalltalk.HLClassesListWidget);
  1775. smalltalk.addMethod(
  1776. smalltalk.method({
  1777. selector: "showComment",
  1778. category: 'testing',
  1779. fn: function (){
  1780. var self=this;
  1781. return smalltalk.withContext(function($ctx1) {
  1782. var $1;
  1783. $1=_st(_st(self)._model())._showComment();
  1784. return $1;
  1785. }, function($ctx1) {$ctx1.fill(self,"showComment",{},smalltalk.HLClassesListWidget)})},
  1786. args: [],
  1787. source: "showComment\x0a\x09^ self model showComment",
  1788. messageSends: ["showComment", "model"],
  1789. referencedClasses: []
  1790. }),
  1791. smalltalk.HLClassesListWidget);
  1792. smalltalk.addMethod(
  1793. smalltalk.method({
  1794. selector: "showComment:",
  1795. category: 'actions',
  1796. fn: function (aBoolean){
  1797. var self=this;
  1798. return smalltalk.withContext(function($ctx1) {
  1799. _st(_st(self)._model())._showComment_(aBoolean);
  1800. return self}, function($ctx1) {$ctx1.fill(self,"showComment:",{aBoolean:aBoolean},smalltalk.HLClassesListWidget)})},
  1801. args: ["aBoolean"],
  1802. source: "showComment: aBoolean\x0a\x09self model showComment: aBoolean",
  1803. messageSends: ["showComment:", "model"],
  1804. referencedClasses: []
  1805. }),
  1806. smalltalk.HLClassesListWidget);
  1807. smalltalk.addMethod(
  1808. smalltalk.method({
  1809. selector: "showInstance",
  1810. category: 'testing',
  1811. fn: function (){
  1812. var self=this;
  1813. return smalltalk.withContext(function($ctx1) {
  1814. var $1;
  1815. $1=_st(_st(self)._model())._showInstance();
  1816. return $1;
  1817. }, function($ctx1) {$ctx1.fill(self,"showInstance",{},smalltalk.HLClassesListWidget)})},
  1818. args: [],
  1819. source: "showInstance\x0a\x09^ self model showInstance",
  1820. messageSends: ["showInstance", "model"],
  1821. referencedClasses: []
  1822. }),
  1823. smalltalk.HLClassesListWidget);
  1824. smalltalk.addMethod(
  1825. smalltalk.method({
  1826. selector: "showInstance:",
  1827. category: 'actions',
  1828. fn: function (aBoolean){
  1829. var self=this;
  1830. return smalltalk.withContext(function($ctx1) {
  1831. _st(_st(self)._model())._showInstance_(aBoolean);
  1832. return self}, function($ctx1) {$ctx1.fill(self,"showInstance:",{aBoolean:aBoolean},smalltalk.HLClassesListWidget)})},
  1833. args: ["aBoolean"],
  1834. source: "showInstance: aBoolean\x0a\x09self model showInstance: aBoolean",
  1835. messageSends: ["showInstance:", "model"],
  1836. referencedClasses: []
  1837. }),
  1838. smalltalk.HLClassesListWidget);
  1839. smalltalk.addMethod(
  1840. smalltalk.method({
  1841. selector: "toggleShowComment",
  1842. category: 'actions',
  1843. fn: function (){
  1844. var self=this;
  1845. return smalltalk.withContext(function($ctx1) {
  1846. _st(_st(self)._model())._showComment_(_st(_st(self)._showComment())._not());
  1847. return self}, function($ctx1) {$ctx1.fill(self,"toggleShowComment",{},smalltalk.HLClassesListWidget)})},
  1848. args: [],
  1849. source: "toggleShowComment\x0a\x09self model showComment: self showComment not",
  1850. messageSends: ["showComment:", "not", "showComment", "model"],
  1851. referencedClasses: []
  1852. }),
  1853. smalltalk.HLClassesListWidget);
  1854. smalltalk.addClass('HLDocumentationWidget', smalltalk.HLFocusableWidget, ['model'], 'Helios-Browser');
  1855. smalltalk.addMethod(
  1856. smalltalk.method({
  1857. selector: "defaultDocumentation",
  1858. category: 'defaults',
  1859. fn: function (){
  1860. var self=this;
  1861. return smalltalk.withContext(function($ctx1) {
  1862. return "No documentation available. \x0a**That's bad. Seriously.**";
  1863. }, function($ctx1) {$ctx1.fill(self,"defaultDocumentation",{},smalltalk.HLDocumentationWidget)})},
  1864. args: [],
  1865. source: "defaultDocumentation\x0a\x09^ 'No documentation available. \x0a**That''s bad. Seriously.**'",
  1866. messageSends: [],
  1867. referencedClasses: []
  1868. }),
  1869. smalltalk.HLDocumentationWidget);
  1870. smalltalk.addMethod(
  1871. smalltalk.method({
  1872. selector: "defaultHead",
  1873. category: 'defaults',
  1874. fn: function (){
  1875. var self=this;
  1876. return smalltalk.withContext(function($ctx1) {
  1877. return "No class selected";
  1878. }, function($ctx1) {$ctx1.fill(self,"defaultHead",{},smalltalk.HLDocumentationWidget)})},
  1879. args: [],
  1880. source: "defaultHead\x0a\x09^ 'No class selected'",
  1881. messageSends: [],
  1882. referencedClasses: []
  1883. }),
  1884. smalltalk.HLDocumentationWidget);
  1885. smalltalk.addMethod(
  1886. smalltalk.method({
  1887. selector: "documentation",
  1888. category: 'accessing',
  1889. fn: function (){
  1890. var self=this;
  1891. return smalltalk.withContext(function($ctx1) {
  1892. var $2,$1;
  1893. $2=_st(self)._selectedItem();
  1894. if(($receiver = $2) == nil || $receiver == undefined){
  1895. $1="";
  1896. } else {
  1897. var item;
  1898. item=$receiver;
  1899. $1=_st(_st(item)._comment())._ifEmpty_((function(){
  1900. return smalltalk.withContext(function($ctx2) {
  1901. return _st(self)._defaultDocumentation();
  1902. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1903. };
  1904. return $1;
  1905. }, function($ctx1) {$ctx1.fill(self,"documentation",{},smalltalk.HLDocumentationWidget)})},
  1906. args: [],
  1907. source: "documentation\x0a\x09^ self selectedItem \x0a\x09\x09ifNil: [ '' ]\x0a\x09\x09ifNotNil: [ :item | item comment ifEmpty: [ self defaultDocumentation ] ]",
  1908. messageSends: ["ifNil:ifNotNil:", "ifEmpty:", "defaultDocumentation", "comment", "selectedItem"],
  1909. referencedClasses: []
  1910. }),
  1911. smalltalk.HLDocumentationWidget);
  1912. smalltalk.addMethod(
  1913. smalltalk.method({
  1914. selector: "editDocumentation",
  1915. category: 'actions',
  1916. fn: function (){
  1917. var self=this;
  1918. return smalltalk.withContext(function($ctx1) {
  1919. _st(_st(self)._model())._editComment();
  1920. return self}, function($ctx1) {$ctx1.fill(self,"editDocumentation",{},smalltalk.HLDocumentationWidget)})},
  1921. args: [],
  1922. source: "editDocumentation\x0a\x09self model editComment",
  1923. messageSends: ["editComment", "model"],
  1924. referencedClasses: []
  1925. }),
  1926. smalltalk.HLDocumentationWidget);
  1927. smalltalk.addMethod(
  1928. smalltalk.method({
  1929. selector: "head",
  1930. category: 'accessing',
  1931. fn: function (){
  1932. var self=this;
  1933. return smalltalk.withContext(function($ctx1) {
  1934. var $2,$1;
  1935. $2=_st(self)._selectedItem();
  1936. if(($receiver = $2) == nil || $receiver == undefined){
  1937. $1=_st(self)._defaultHead();
  1938. } else {
  1939. var item;
  1940. item=$receiver;
  1941. $1=_st(item)._name();
  1942. };
  1943. return $1;
  1944. }, function($ctx1) {$ctx1.fill(self,"head",{},smalltalk.HLDocumentationWidget)})},
  1945. args: [],
  1946. source: "head\x0a\x09^ self selectedItem \x0a\x09\x09ifNil: [ self defaultHead ]\x0a\x09\x09ifNotNil: [ :item | item name ]",
  1947. messageSends: ["ifNil:ifNotNil:", "defaultHead", "name", "selectedItem"],
  1948. referencedClasses: []
  1949. }),
  1950. smalltalk.HLDocumentationWidget);
  1951. smalltalk.addMethod(
  1952. smalltalk.method({
  1953. selector: "model",
  1954. category: 'accessing',
  1955. fn: function (){
  1956. var self=this;
  1957. return smalltalk.withContext(function($ctx1) {
  1958. var $1;
  1959. $1=self["@model"];
  1960. return $1;
  1961. }, function($ctx1) {$ctx1.fill(self,"model",{},smalltalk.HLDocumentationWidget)})},
  1962. args: [],
  1963. source: "model\x0a\x09^ model",
  1964. messageSends: [],
  1965. referencedClasses: []
  1966. }),
  1967. smalltalk.HLDocumentationWidget);
  1968. smalltalk.addMethod(
  1969. smalltalk.method({
  1970. selector: "model:",
  1971. category: 'accessing',
  1972. fn: function (aModel){
  1973. var self=this;
  1974. return smalltalk.withContext(function($ctx1) {
  1975. var $1,$2;
  1976. self["@model"]=aModel;
  1977. $1=self;
  1978. _st($1)._observeSystem();
  1979. $2=_st($1)._observeModel();
  1980. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel},smalltalk.HLDocumentationWidget)})},
  1981. args: ["aModel"],
  1982. source: "model: aModel\x0a\x09model := aModel.\x0a\x09self \x0a\x09\x09observeSystem;\x0a\x09\x09observeModel",
  1983. messageSends: ["observeSystem", "observeModel"],
  1984. referencedClasses: []
  1985. }),
  1986. smalltalk.HLDocumentationWidget);
  1987. smalltalk.addMethod(
  1988. smalltalk.method({
  1989. selector: "observeModel",
  1990. category: 'actions',
  1991. fn: function (){
  1992. var self=this;
  1993. function $HLClassSelected(){return smalltalk.HLClassSelected||(typeof HLClassSelected=="undefined"?nil:HLClassSelected)}
  1994. function $HLEditComment(){return smalltalk.HLEditComment||(typeof HLEditComment=="undefined"?nil:HLEditComment)}
  1995. return smalltalk.withContext(function($ctx1) {
  1996. var $1,$2;
  1997. $1=_st(_st(self)._model())._announcer();
  1998. _st($1)._on_send_to_($HLClassSelected(),"onClassSelected:",self);
  1999. $2=_st($1)._on_send_to_($HLEditComment(),"onEditDocumentation",self);
  2000. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{},smalltalk.HLDocumentationWidget)})},
  2001. args: [],
  2002. source: "observeModel\x0a\x09self model announcer \x0a\x09\x09on: HLClassSelected\x0a\x09\x09send: #onClassSelected:\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: HLEditComment\x0a\x09\x09send: #onEditDocumentation\x0a\x09\x09to: self",
  2003. messageSends: ["on:send:to:", "announcer", "model"],
  2004. referencedClasses: ["HLClassSelected", "HLEditComment"]
  2005. }),
  2006. smalltalk.HLDocumentationWidget);
  2007. smalltalk.addMethod(
  2008. smalltalk.method({
  2009. selector: "observeSystem",
  2010. category: 'actions',
  2011. fn: function (){
  2012. var self=this;
  2013. function $ClassCommentChanged(){return smalltalk.ClassCommentChanged||(typeof ClassCommentChanged=="undefined"?nil:ClassCommentChanged)}
  2014. return smalltalk.withContext(function($ctx1) {
  2015. _st(_st(_st(self)._model())._systemAnnouncer())._on_send_to_($ClassCommentChanged(),"onClassCommentChanged:",self);
  2016. return self}, function($ctx1) {$ctx1.fill(self,"observeSystem",{},smalltalk.HLDocumentationWidget)})},
  2017. args: [],
  2018. source: "observeSystem\x0a\x09self model systemAnnouncer \x0a\x09\x09on: ClassCommentChanged\x0a\x09\x09send: #onClassCommentChanged:\x0a\x09\x09to: self",
  2019. messageSends: ["on:send:to:", "systemAnnouncer", "model"],
  2020. referencedClasses: ["ClassCommentChanged"]
  2021. }),
  2022. smalltalk.HLDocumentationWidget);
  2023. smalltalk.addMethod(
  2024. smalltalk.method({
  2025. selector: "onClassCommentChanged:",
  2026. category: 'reactions',
  2027. fn: function (anAnnouncement){
  2028. var self=this;
  2029. return smalltalk.withContext(function($ctx1) {
  2030. var $1;
  2031. $1=_st(_st(anAnnouncement)._theClass()).__eq(_st(_st(_st(self)._model())._selectedClass())._theNonMetaClass());
  2032. if(smalltalk.assert($1)){
  2033. _st(self)._refresh();
  2034. };
  2035. return self}, function($ctx1) {$ctx1.fill(self,"onClassCommentChanged:",{anAnnouncement:anAnnouncement},smalltalk.HLDocumentationWidget)})},
  2036. args: ["anAnnouncement"],
  2037. source: "onClassCommentChanged: anAnnouncement\x0a\x09anAnnouncement theClass = self model selectedClass theNonMetaClass\x0a\x09\x09ifTrue: [ self refresh ]",
  2038. messageSends: ["ifTrue:", "refresh", "=", "theNonMetaClass", "selectedClass", "model", "theClass"],
  2039. referencedClasses: []
  2040. }),
  2041. smalltalk.HLDocumentationWidget);
  2042. smalltalk.addMethod(
  2043. smalltalk.method({
  2044. selector: "onClassSelected:",
  2045. category: 'reactions',
  2046. fn: function (anAnnouncement){
  2047. var self=this;
  2048. return smalltalk.withContext(function($ctx1) {
  2049. _st(self)._refresh();
  2050. return self}, function($ctx1) {$ctx1.fill(self,"onClassSelected:",{anAnnouncement:anAnnouncement},smalltalk.HLDocumentationWidget)})},
  2051. args: ["anAnnouncement"],
  2052. source: "onClassSelected: anAnnouncement\x0a\x09self refresh",
  2053. messageSends: ["refresh"],
  2054. referencedClasses: []
  2055. }),
  2056. smalltalk.HLDocumentationWidget);
  2057. smalltalk.addMethod(
  2058. smalltalk.method({
  2059. selector: "onEditDocumentation",
  2060. category: 'reactions',
  2061. fn: function (){
  2062. var self=this;
  2063. return smalltalk.withContext(function($ctx1) {
  2064. _st(self)._request_value_do_(_st(_st(_st(_st(_st(self)._model())._selectedClass())._theNonMetaClass())._name()).__comma(" comment"),_st(_st(_st(_st(self)._model())._selectedClass())._theNonMetaClass())._comment(),(function(comment){
  2065. return smalltalk.withContext(function($ctx2) {
  2066. return _st(self)._setClassComment_(comment);
  2067. }, function($ctx2) {$ctx2.fillBlock({comment:comment},$ctx1)})}));
  2068. return self}, function($ctx1) {$ctx1.fill(self,"onEditDocumentation",{},smalltalk.HLDocumentationWidget)})},
  2069. args: [],
  2070. source: "onEditDocumentation\x0a\x09self \x0a\x09\x09request: self model selectedClass theNonMetaClass name, ' comment'\x0a\x09\x09value: self model selectedClass theNonMetaClass comment\x0a\x09\x09do: [ :comment | self setClassComment: comment ]",
  2071. messageSends: ["request:value:do:", ",", "name", "theNonMetaClass", "selectedClass", "model", "comment", "setClassComment:"],
  2072. referencedClasses: []
  2073. }),
  2074. smalltalk.HLDocumentationWidget);
  2075. smalltalk.addMethod(
  2076. smalltalk.method({
  2077. selector: "renderContentOn:",
  2078. category: 'rendering',
  2079. fn: function (html){
  2080. var self=this;
  2081. return smalltalk.withContext(function($ctx1) {
  2082. var $1,$3,$4,$2;
  2083. $1=_st(html)._div();
  2084. _st($1)._class_("doc");
  2085. $2=_st($1)._with_((function(){
  2086. return smalltalk.withContext(function($ctx2) {
  2087. $3=self;
  2088. _st($3)._renderHeadOn_(html);
  2089. $4=_st($3)._renderDocOn_(html);
  2090. return $4;
  2091. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2092. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLDocumentationWidget)})},
  2093. args: ["html"],
  2094. source: "renderContentOn: html\x0a\x09html div \x0a\x09\x09class: 'doc';\x0a\x09\x09with: [\x0a\x09\x09\x09self \x0a\x09\x09\x09\x09renderHeadOn: html;\x0a\x09\x09\x09\x09renderDocOn: html ]",
  2095. messageSends: ["class:", "div", "with:", "renderHeadOn:", "renderDocOn:"],
  2096. referencedClasses: []
  2097. }),
  2098. smalltalk.HLDocumentationWidget);
  2099. smalltalk.addMethod(
  2100. smalltalk.method({
  2101. selector: "renderDocOn:",
  2102. category: 'rendering',
  2103. fn: function (html){
  2104. var self=this;
  2105. function $Showdown(){return smalltalk.Showdown||(typeof Showdown=="undefined"?nil:Showdown)}
  2106. return smalltalk.withContext(function($ctx1) {
  2107. var $1,$2,$4,$5,$3,$6,$7;
  2108. $1=_st(self)._selectedItem();
  2109. if(($receiver = $1) == nil || $receiver == undefined){
  2110. $1;
  2111. } else {
  2112. _st(self)._renderInheritanceOn_(html);
  2113. $2=_st(html)._h1();
  2114. _st($2)._with_("Overview");
  2115. $3=_st($2)._with_((function(){
  2116. return smalltalk.withContext(function($ctx2) {
  2117. $4=_st(html)._button();
  2118. _st($4)._class_("button default");
  2119. _st($4)._with_("Edit");
  2120. $5=_st($4)._onClick_((function(){
  2121. return smalltalk.withContext(function($ctx3) {
  2122. return _st(self)._editDocumentation();
  2123. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  2124. return $5;
  2125. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2126. $3;
  2127. $6=_st(html)._div();
  2128. _st($6)._class_("markdown");
  2129. $7=_st($6)._asJQuery();
  2130. _st($7)._html_(_st(_st(_st($Showdown())._at_("converter"))._new())._makeHtml_(_st(self)._documentation()));
  2131. };
  2132. return self}, function($ctx1) {$ctx1.fill(self,"renderDocOn:",{html:html},smalltalk.HLDocumentationWidget)})},
  2133. args: ["html"],
  2134. source: "renderDocOn: html\x0a\x09self selectedItem ifNotNil: [\x0a\x09\x09self renderInheritanceOn: html.\x0a\x09\x09html h1 \x0a\x09\x09\x09with: 'Overview';\x0a\x09\x09\x09with: [ \x0a\x09\x09\x09\x09html button\x0a\x09\x09\x09\x09\x09class: 'button default';\x0a\x09\x09\x09\x09\x09with: 'Edit';\x0a\x09\x09\x09\x09\x09onClick: [ self editDocumentation ] ].\x0a\x09\x09(html div \x0a\x09\x09\x09class: 'markdown';\x0a\x09\x09\x09asJQuery) html: ((Showdown at: 'converter') new makeHtml: self documentation) ]",
  2135. messageSends: ["ifNotNil:", "renderInheritanceOn:", "with:", "h1", "class:", "button", "onClick:", "editDocumentation", "html:", "makeHtml:", "documentation", "new", "at:", "div", "asJQuery", "selectedItem"],
  2136. referencedClasses: ["Showdown"]
  2137. }),
  2138. smalltalk.HLDocumentationWidget);
  2139. smalltalk.addMethod(
  2140. smalltalk.method({
  2141. selector: "renderHeadOn:",
  2142. category: 'rendering',
  2143. fn: function (html){
  2144. var self=this;
  2145. return smalltalk.withContext(function($ctx1) {
  2146. var $1,$2;
  2147. $1=_st(html)._div();
  2148. _st($1)._class_("head");
  2149. $2=_st($1)._with_(_st(self)._head());
  2150. return self}, function($ctx1) {$ctx1.fill(self,"renderHeadOn:",{html:html},smalltalk.HLDocumentationWidget)})},
  2151. args: ["html"],
  2152. source: "renderHeadOn: html\x0a\x09html div \x0a\x09\x09class: 'head';\x0a\x09\x09with: self head",
  2153. messageSends: ["class:", "div", "with:", "head"],
  2154. referencedClasses: []
  2155. }),
  2156. smalltalk.HLDocumentationWidget);
  2157. smalltalk.addMethod(
  2158. smalltalk.method({
  2159. selector: "renderInheritanceOn:",
  2160. category: 'rendering',
  2161. fn: function (html){
  2162. var self=this;
  2163. return smalltalk.withContext(function($ctx1) {
  2164. var $1,$3,$4,$5,$2;
  2165. $1=_st(html)._div();
  2166. _st($1)._class_("inheritance");
  2167. $2=_st($1)._with_((function(){
  2168. return smalltalk.withContext(function($ctx2) {
  2169. _st(html)._with_("Subclass of ");
  2170. $3=_st(_st(self)._selectedItem())._superclass();
  2171. if(($receiver = $3) == nil || $receiver == undefined){
  2172. return _st(_st(html)._em())._with_("nil");
  2173. } else {
  2174. $4=_st(html)._a();
  2175. _st($4)._with_(_st(_st(_st(self)._selectedItem())._superclass())._name());
  2176. $5=_st($4)._onClick_((function(){
  2177. return smalltalk.withContext(function($ctx3) {
  2178. return _st(self)._selectClass_(_st(_st(self)._selectedItem())._superclass());
  2179. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  2180. return $5;
  2181. };
  2182. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2183. return self}, function($ctx1) {$ctx1.fill(self,"renderInheritanceOn:",{html:html},smalltalk.HLDocumentationWidget)})},
  2184. args: ["html"],
  2185. source: "renderInheritanceOn: html\x0a\x09html div \x09\x0a\x09\x09class: 'inheritance';\x0a\x09\x09with: [\x0a\x09\x09\x09html with: 'Subclass of '.\x0a\x09\x09\x09self selectedItem superclass \x0a\x09\x09\x09\x09ifNil: [ html em with: 'nil' ]\x0a\x09\x09\x09\x09ifNotNil: [\x0a\x09\x09\x09\x09\x09html a \x0a\x09\x09\x09\x09\x09\x09with: self selectedItem superclass name;\x0a\x09\x09\x09\x09\x09\x09onClick: [ self selectClass: self selectedItem superclass ] ] ]",
  2186. messageSends: ["class:", "div", "with:", "ifNil:ifNotNil:", "em", "name", "superclass", "selectedItem", "a", "onClick:", "selectClass:"],
  2187. referencedClasses: []
  2188. }),
  2189. smalltalk.HLDocumentationWidget);
  2190. smalltalk.addMethod(
  2191. smalltalk.method({
  2192. selector: "selectClass:",
  2193. category: 'actions',
  2194. fn: function (aClass){
  2195. var self=this;
  2196. return smalltalk.withContext(function($ctx1) {
  2197. _st(_st(self)._model())._selectedClass_(aClass);
  2198. return self}, function($ctx1) {$ctx1.fill(self,"selectClass:",{aClass:aClass},smalltalk.HLDocumentationWidget)})},
  2199. args: ["aClass"],
  2200. source: "selectClass: aClass\x0a\x09self model selectedClass: aClass",
  2201. messageSends: ["selectedClass:", "model"],
  2202. referencedClasses: []
  2203. }),
  2204. smalltalk.HLDocumentationWidget);
  2205. smalltalk.addMethod(
  2206. smalltalk.method({
  2207. selector: "selectedItem",
  2208. category: 'accessing',
  2209. fn: function (){
  2210. var self=this;
  2211. return smalltalk.withContext(function($ctx1) {
  2212. var $2,$1;
  2213. $2=_st(_st(self)._model())._selectedClass();
  2214. if(($receiver = $2) == nil || $receiver == undefined){
  2215. $1=$2;
  2216. } else {
  2217. var class_;
  2218. class_=$receiver;
  2219. $1=_st(class_)._theNonMetaClass();
  2220. };
  2221. return $1;
  2222. }, function($ctx1) {$ctx1.fill(self,"selectedItem",{},smalltalk.HLDocumentationWidget)})},
  2223. args: [],
  2224. source: "selectedItem\x0a\x09^ self model selectedClass ifNotNil: [ :class | class theNonMetaClass ]",
  2225. messageSends: ["ifNotNil:", "theNonMetaClass", "selectedClass", "model"],
  2226. referencedClasses: []
  2227. }),
  2228. smalltalk.HLDocumentationWidget);
  2229. smalltalk.addMethod(
  2230. smalltalk.method({
  2231. selector: "setClassComment:",
  2232. category: 'reactions',
  2233. fn: function (aString){
  2234. var self=this;
  2235. return smalltalk.withContext(function($ctx1) {
  2236. _st(_st(self)._model())._setClassComment_(aString);
  2237. return self}, function($ctx1) {$ctx1.fill(self,"setClassComment:",{aString:aString},smalltalk.HLDocumentationWidget)})},
  2238. args: ["aString"],
  2239. source: "setClassComment: aString\x0a\x09self model setClassComment: aString",
  2240. messageSends: ["setClassComment:", "model"],
  2241. referencedClasses: []
  2242. }),
  2243. smalltalk.HLDocumentationWidget);
  2244. smalltalk.addMethod(
  2245. smalltalk.method({
  2246. selector: "unregister",
  2247. category: 'actions',
  2248. fn: function (){
  2249. var self=this;
  2250. return smalltalk.withContext(function($ctx1) {
  2251. smalltalk.HLFocusableWidget.fn.prototype._unregister.apply(_st(self), []);
  2252. _st(_st(_st(self)._model())._announcer())._unregister_(self);
  2253. return self}, function($ctx1) {$ctx1.fill(self,"unregister",{},smalltalk.HLDocumentationWidget)})},
  2254. args: [],
  2255. source: "unregister\x0a\x09super unregister.\x0a\x09self model announcer unregister: self",
  2256. messageSends: ["unregister", "unregister:", "announcer", "model"],
  2257. referencedClasses: []
  2258. }),
  2259. smalltalk.HLDocumentationWidget);
  2260. smalltalk.addClass('HLMethodsListWidget', smalltalk.HLToolListWidget, ['selectorsCache'], 'Helios-Browser');
  2261. smalltalk.addMethod(
  2262. smalltalk.method({
  2263. selector: "allProtocol",
  2264. category: 'accessing',
  2265. fn: function (){
  2266. var self=this;
  2267. return smalltalk.withContext(function($ctx1) {
  2268. var $1;
  2269. $1=_st(_st(self)._model())._allProtocol();
  2270. return $1;
  2271. }, function($ctx1) {$ctx1.fill(self,"allProtocol",{},smalltalk.HLMethodsListWidget)})},
  2272. args: [],
  2273. source: "allProtocol\x0a\x09^ self model allProtocol",
  2274. messageSends: ["allProtocol", "model"],
  2275. referencedClasses: []
  2276. }),
  2277. smalltalk.HLMethodsListWidget);
  2278. smalltalk.addMethod(
  2279. smalltalk.method({
  2280. selector: "cssClassForItem:",
  2281. category: 'accessing',
  2282. fn: function (aSelector){
  2283. var self=this;
  2284. var override,overriden,method;
  2285. return smalltalk.withContext(function($ctx1) {
  2286. var $2,$3,$4,$1;
  2287. method=_st(self)._methodForSelector_(aSelector);
  2288. override=_st(self)._isOverride_(method);
  2289. overriden=_st(self)._isOverridden_(method);
  2290. $2=override;
  2291. if(smalltalk.assert($2)){
  2292. $3=overriden;
  2293. if(smalltalk.assert($3)){
  2294. $1="override-overridden";
  2295. } else {
  2296. $1="override";
  2297. };
  2298. } else {
  2299. $4=overriden;
  2300. if(smalltalk.assert($4)){
  2301. $1="overridden";
  2302. } else {
  2303. $1="";
  2304. };
  2305. };
  2306. return $1;
  2307. }, function($ctx1) {$ctx1.fill(self,"cssClassForItem:",{aSelector:aSelector,override:override,overriden:overriden,method:method},smalltalk.HLMethodsListWidget)})},
  2308. args: ["aSelector"],
  2309. source: "cssClassForItem: aSelector\x0a\x09| override overriden method |\x0a \x0a method := self methodForSelector: aSelector.\x0a override := self isOverride: method.\x0a overriden := self isOverridden: method.\x0a \x0a\x09^ override\x0a \x09ifTrue: [ overriden\x0a\x09\x09\x09ifTrue: [ 'override-overridden' ]\x0a\x09\x09\x09ifFalse: [ 'override' ] ]\x0a\x09\x09ifFalse: [\x0a\x09\x09\x09overriden\x0a\x09\x09\x09ifTrue: [ 'overridden' ]\x0a\x09\x09\x09ifFalse: [ '' ] ]",
  2310. messageSends: ["methodForSelector:", "isOverride:", "isOverridden:", "ifTrue:ifFalse:"],
  2311. referencedClasses: []
  2312. }),
  2313. smalltalk.HLMethodsListWidget);
  2314. smalltalk.addMethod(
  2315. smalltalk.method({
  2316. selector: "isOverridden:",
  2317. category: 'testing',
  2318. fn: function (aMethod){
  2319. var self=this;
  2320. return smalltalk.withContext(function($ctx1) {
  2321. var $1;
  2322. $1=_st(_st(self)._selectorsCache())._isOverridden_(aMethod);
  2323. return $1;
  2324. }, function($ctx1) {$ctx1.fill(self,"isOverridden:",{aMethod:aMethod},smalltalk.HLMethodsListWidget)})},
  2325. args: ["aMethod"],
  2326. source: "isOverridden: aMethod\x0a ^ self selectorsCache isOverridden: aMethod",
  2327. messageSends: ["isOverridden:", "selectorsCache"],
  2328. referencedClasses: []
  2329. }),
  2330. smalltalk.HLMethodsListWidget);
  2331. smalltalk.addMethod(
  2332. smalltalk.method({
  2333. selector: "isOverride:",
  2334. category: 'testing',
  2335. fn: function (aMethod){
  2336. var self=this;
  2337. return smalltalk.withContext(function($ctx1) {
  2338. var $1;
  2339. $1=_st(_st(self)._selectorsCache())._isOverride_(aMethod);
  2340. return $1;
  2341. }, function($ctx1) {$ctx1.fill(self,"isOverride:",{aMethod:aMethod},smalltalk.HLMethodsListWidget)})},
  2342. args: ["aMethod"],
  2343. source: "isOverride: aMethod\x0a ^ self selectorsCache isOverride: aMethod",
  2344. messageSends: ["isOverride:", "selectorsCache"],
  2345. referencedClasses: []
  2346. }),
  2347. smalltalk.HLMethodsListWidget);
  2348. smalltalk.addMethod(
  2349. smalltalk.method({
  2350. selector: "label",
  2351. category: 'accessing',
  2352. fn: function (){
  2353. var self=this;
  2354. return smalltalk.withContext(function($ctx1) {
  2355. return "Methods";
  2356. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLMethodsListWidget)})},
  2357. args: [],
  2358. source: "label\x0a\x09^ 'Methods'",
  2359. messageSends: [],
  2360. referencedClasses: []
  2361. }),
  2362. smalltalk.HLMethodsListWidget);
  2363. smalltalk.addMethod(
  2364. smalltalk.method({
  2365. selector: "methodForSelector:",
  2366. category: 'accessing',
  2367. fn: function (aSelector){
  2368. var self=this;
  2369. return smalltalk.withContext(function($ctx1) {
  2370. var $1;
  2371. $1=_st(_st(_st(_st(self)._model())._selectedClass())._methodDictionary())._at_(aSelector);
  2372. return $1;
  2373. }, function($ctx1) {$ctx1.fill(self,"methodForSelector:",{aSelector:aSelector},smalltalk.HLMethodsListWidget)})},
  2374. args: ["aSelector"],
  2375. source: "methodForSelector: aSelector\x0a\x09^ self model selectedClass\x0a \x09methodDictionary at: aSelector",
  2376. messageSends: ["at:", "methodDictionary", "selectedClass", "model"],
  2377. referencedClasses: []
  2378. }),
  2379. smalltalk.HLMethodsListWidget);
  2380. smalltalk.addMethod(
  2381. smalltalk.method({
  2382. selector: "methodsInProtocol:",
  2383. category: 'accessing',
  2384. fn: function (aString){
  2385. var self=this;
  2386. return smalltalk.withContext(function($ctx1) {
  2387. var $1,$2,$4,$3;
  2388. $1=_st(_st(self)._model())._selectedClass();
  2389. if(($receiver = $1) == nil || $receiver == undefined){
  2390. $2=[];
  2391. return $2;
  2392. } else {
  2393. $1;
  2394. };
  2395. $4=_st(aString).__eq(_st(self)._allProtocol());
  2396. if(smalltalk.assert($4)){
  2397. $3=_st(_st(_st(self)._model())._selectedClass())._methods();
  2398. } else {
  2399. $3=_st(_st(_st(self)._model())._selectedClass())._methodsInProtocol_(aString);
  2400. };
  2401. return $3;
  2402. }, function($ctx1) {$ctx1.fill(self,"methodsInProtocol:",{aString:aString},smalltalk.HLMethodsListWidget)})},
  2403. args: ["aString"],
  2404. source: "methodsInProtocol: aString\x0a\x09self model selectedClass ifNil: [ ^ #() ].\x0a \x0a\x09^ aString = self allProtocol\x0a \x09ifTrue: [ self model selectedClass methods ]\x0a \x09ifFalse: [ self model selectedClass methodsInProtocol: aString ]",
  2405. messageSends: ["ifNil:", "selectedClass", "model", "ifTrue:ifFalse:", "methods", "methodsInProtocol:", "=", "allProtocol"],
  2406. referencedClasses: []
  2407. }),
  2408. smalltalk.HLMethodsListWidget);
  2409. smalltalk.addMethod(
  2410. smalltalk.method({
  2411. selector: "observeModel",
  2412. category: 'actions',
  2413. fn: function (){
  2414. var self=this;
  2415. function $HLProtocolSelected(){return smalltalk.HLProtocolSelected||(typeof HLProtocolSelected=="undefined"?nil:HLProtocolSelected)}
  2416. function $HLShowInstanceToggled(){return smalltalk.HLShowInstanceToggled||(typeof HLShowInstanceToggled=="undefined"?nil:HLShowInstanceToggled)}
  2417. function $HLMethodSelected(){return smalltalk.HLMethodSelected||(typeof HLMethodSelected=="undefined"?nil:HLMethodSelected)}
  2418. function $HLMethodsFocusRequested(){return smalltalk.HLMethodsFocusRequested||(typeof HLMethodsFocusRequested=="undefined"?nil:HLMethodsFocusRequested)}
  2419. return smalltalk.withContext(function($ctx1) {
  2420. var $1,$2;
  2421. $1=_st(_st(self)._model())._announcer();
  2422. _st($1)._on_send_to_($HLProtocolSelected(),"onProtocolSelected:",self);
  2423. _st($1)._on_send_to_($HLShowInstanceToggled(),"onShowInstanceToggled",self);
  2424. _st($1)._on_send_to_($HLMethodSelected(),"onMethodSelected:",self);
  2425. $2=_st($1)._on_send_to_($HLMethodsFocusRequested(),"onMethodsFocusRequested",self);
  2426. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{},smalltalk.HLMethodsListWidget)})},
  2427. args: [],
  2428. source: "observeModel\x0a\x09self model announcer \x0a\x09\x09on: HLProtocolSelected \x0a\x09\x09send: #onProtocolSelected: \x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: HLShowInstanceToggled \x0a\x09\x09send: #onShowInstanceToggled\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: HLMethodSelected \x0a\x09\x09send: #onMethodSelected:\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: HLMethodsFocusRequested \x0a\x09\x09send: #onMethodsFocusRequested\x0a\x09\x09to: self",
  2429. messageSends: ["on:send:to:", "announcer", "model"],
  2430. referencedClasses: ["HLProtocolSelected", "HLShowInstanceToggled", "HLMethodSelected", "HLMethodsFocusRequested"]
  2431. }),
  2432. smalltalk.HLMethodsListWidget);
  2433. smalltalk.addMethod(
  2434. smalltalk.method({
  2435. selector: "observeSystem",
  2436. category: 'actions',
  2437. fn: function (){
  2438. var self=this;
  2439. function $ProtocolAdded(){return smalltalk.ProtocolAdded||(typeof ProtocolAdded=="undefined"?nil:ProtocolAdded)}
  2440. function $ProtocolRemoved(){return smalltalk.ProtocolRemoved||(typeof ProtocolRemoved=="undefined"?nil:ProtocolRemoved)}
  2441. function $MethodAdded(){return smalltalk.MethodAdded||(typeof MethodAdded=="undefined"?nil:MethodAdded)}
  2442. function $MethodRemoved(){return smalltalk.MethodRemoved||(typeof MethodRemoved=="undefined"?nil:MethodRemoved)}
  2443. function $MethodMoved(){return smalltalk.MethodMoved||(typeof MethodMoved=="undefined"?nil:MethodMoved)}
  2444. return smalltalk.withContext(function($ctx1) {
  2445. var $1,$2;
  2446. $1=_st(_st(self)._model())._systemAnnouncer();
  2447. _st($1)._on_send_to_($ProtocolAdded(),"onProtocolAdded:",self);
  2448. _st($1)._on_send_to_($ProtocolRemoved(),"onProtocolRemoved:",self);
  2449. _st($1)._on_send_to_($MethodAdded(),"onMethodAdded:",self);
  2450. _st($1)._on_send_to_($MethodRemoved(),"onMethodRemoved:",self);
  2451. $2=_st($1)._on_send_to_($MethodMoved(),"onMethodMoved:",self);
  2452. return self}, function($ctx1) {$ctx1.fill(self,"observeSystem",{},smalltalk.HLMethodsListWidget)})},
  2453. args: [],
  2454. source: "observeSystem\x0a\x09self model systemAnnouncer \x0a \x09on: ProtocolAdded\x0a send: #onProtocolAdded:\x0a\x09\x09to: self;\x0a \x09\x0a\x09\x09on: ProtocolRemoved\x0a send: #onProtocolRemoved:\x0a\x09\x09to: self;\x0a\x09\x09\x0a \x09on: MethodAdded \x0a send: #onMethodAdded:\x0a\x09\x09to: self;\x0a\x09\x09\x0a on: MethodRemoved \x0a send: #onMethodRemoved:\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: MethodMoved \x0a send: #onMethodMoved:\x0a\x09\x09to: self",
  2455. messageSends: ["on:send:to:", "systemAnnouncer", "model"],
  2456. referencedClasses: ["ProtocolAdded", "ProtocolRemoved", "MethodAdded", "MethodRemoved", "MethodMoved"]
  2457. }),
  2458. smalltalk.HLMethodsListWidget);
  2459. smalltalk.addMethod(
  2460. smalltalk.method({
  2461. selector: "onMethodAdded:",
  2462. category: 'reactions',
  2463. fn: function (anAnnouncement){
  2464. var self=this;
  2465. return smalltalk.withContext(function($ctx1) {
  2466. var $1,$2;
  2467. $1=_st(_st(_st(self)._model())._selectedClass()).__eq(_st(_st(anAnnouncement)._method())._methodClass());
  2468. if(! smalltalk.assert($1)){
  2469. $2=self;
  2470. return $2;
  2471. };
  2472. _st(self)._setItemsForSelectedProtocol();
  2473. _st(self)._refresh();
  2474. return self}, function($ctx1) {$ctx1.fill(self,"onMethodAdded:",{anAnnouncement:anAnnouncement},smalltalk.HLMethodsListWidget)})},
  2475. args: ["anAnnouncement"],
  2476. source: "onMethodAdded: anAnnouncement\x0a\x09self model selectedClass = anAnnouncement method methodClass ifFalse: [ ^ self ].\x0a \x0a self setItemsForSelectedProtocol.\x0a self refresh",
  2477. messageSends: ["ifFalse:", "=", "methodClass", "method", "selectedClass", "model", "setItemsForSelectedProtocol", "refresh"],
  2478. referencedClasses: []
  2479. }),
  2480. smalltalk.HLMethodsListWidget);
  2481. smalltalk.addMethod(
  2482. smalltalk.method({
  2483. selector: "onMethodMoved:",
  2484. category: 'reactions',
  2485. fn: function (anAnnouncement){
  2486. var self=this;
  2487. return smalltalk.withContext(function($ctx1) {
  2488. var $1,$2,$3,$4,$5;
  2489. $1=_st(_st(_st(self)._model())._selectedMethod()).__eq(_st(anAnnouncement)._method());
  2490. if(! smalltalk.assert($1)){
  2491. $2=self;
  2492. return $2;
  2493. };
  2494. $3=_st(_st(_st(self)._model())._selectedProtocol()).__eq(_st(_st(self)._model())._allProtocol());
  2495. if(! smalltalk.assert($3)){
  2496. $4=self;
  2497. _st($4)._selectedItem_(nil);
  2498. _st($4)._selectItem_(nil);
  2499. _st($4)._setItemsForSelectedProtocol();
  2500. $5=_st($4)._refresh();
  2501. $5;
  2502. };
  2503. return self}, function($ctx1) {$ctx1.fill(self,"onMethodMoved:",{anAnnouncement:anAnnouncement},smalltalk.HLMethodsListWidget)})},
  2504. args: ["anAnnouncement"],
  2505. source: "onMethodMoved: anAnnouncement\x0a\x09self model selectedMethod = anAnnouncement method ifFalse: [ ^ self ].\x0a \x0a\x09self model selectedProtocol = self model allProtocol ifFalse: [\x0a\x09\x09self \x0a\x09\x09\x09selectedItem: nil; \x0a\x09\x09\x09selectItem: nil;\x0a\x09\x09\x09setItemsForSelectedProtocol;\x0a \x09\x09refresh ]",
  2506. messageSends: ["ifFalse:", "=", "method", "selectedMethod", "model", "selectedItem:", "selectItem:", "setItemsForSelectedProtocol", "refresh", "allProtocol", "selectedProtocol"],
  2507. referencedClasses: []
  2508. }),
  2509. smalltalk.HLMethodsListWidget);
  2510. smalltalk.addMethod(
  2511. smalltalk.method({
  2512. selector: "onMethodRemoved:",
  2513. category: 'reactions',
  2514. fn: function (anAnnouncement){
  2515. var self=this;
  2516. var method;
  2517. return smalltalk.withContext(function($ctx1) {
  2518. var $1,$2,$3,$4,$5;
  2519. var $early={};
  2520. try {
  2521. method=_st(anAnnouncement)._method();
  2522. _st(_st(self)._items())._detect_ifNone_((function(each){
  2523. return smalltalk.withContext(function($ctx2) {
  2524. return _st(each).__eq(_st(method)._selector());
  2525. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}),(function(){
  2526. return smalltalk.withContext(function($ctx2) {
  2527. $1=self;
  2528. throw $early=[$1];
  2529. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2530. $2=_st(self)._selectedItem();
  2531. if(($receiver = $2) == nil || $receiver == undefined){
  2532. $2;
  2533. } else {
  2534. $3=_st(_st(_st(method)._methodClass()).__eq(_st(_st(self)._model())._selectedClass()))._and_((function(){
  2535. return smalltalk.withContext(function($ctx2) {
  2536. return _st(_st(method)._selector()).__eq(_st(self)._selectedItem());
  2537. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2538. if(smalltalk.assert($3)){
  2539. $4=self;
  2540. _st($4)._selectedItem_(nil);
  2541. $5=_st($4)._selectItem_(nil);
  2542. $5;
  2543. };
  2544. };
  2545. _st(self)._setItemsForSelectedProtocol();
  2546. _st(self)._refresh();
  2547. return self}
  2548. catch(e) {if(e===$early)return e[0]; throw e}
  2549. }, function($ctx1) {$ctx1.fill(self,"onMethodRemoved:",{anAnnouncement:anAnnouncement,method:method},smalltalk.HLMethodsListWidget)})},
  2550. args: ["anAnnouncement"],
  2551. source: "onMethodRemoved: anAnnouncement\x0a\x09| method |\x0a\x09\x0a\x09method := anAnnouncement method.\x0a\x09\x0a\x09self items detect: [ :each | each = method selector ] ifNone: [ ^ self ].\x0a\x0a self selectedItem ifNotNil: [\x0a \x09(method methodClass = self model selectedClass and: [ method selector = self selectedItem ])\x0a \x09\x09\x09ifTrue: [ \x0a\x09\x09\x09\x09self selectedItem: nil; \x0a\x09\x09\x09\x09selectItem: nil ] ].\x0a\x0a self setItemsForSelectedProtocol.\x0a\x09self refresh",
  2552. messageSends: ["method", "detect:ifNone:", "=", "selector", "items", "ifNotNil:", "ifTrue:", "selectedItem:", "selectItem:", "and:", "selectedItem", "selectedClass", "model", "methodClass", "setItemsForSelectedProtocol", "refresh"],
  2553. referencedClasses: []
  2554. }),
  2555. smalltalk.HLMethodsListWidget);
  2556. smalltalk.addMethod(
  2557. smalltalk.method({
  2558. selector: "onMethodSelected:",
  2559. category: 'reactions',
  2560. fn: function (anAnnouncement){
  2561. var self=this;
  2562. var selector,method;
  2563. return smalltalk.withContext(function($ctx1) {
  2564. var $1,$2,$3;
  2565. method=_st(anAnnouncement)._item();
  2566. $1=_st(method)._isCompiledMethod();
  2567. if(smalltalk.assert($1)){
  2568. selector=_st(method)._selector();
  2569. } else {
  2570. selector=nil;
  2571. };
  2572. $2=self;
  2573. _st($2)._selectedItem_(selector);
  2574. $3=_st($2)._activateItem_(selector);
  2575. return self}, function($ctx1) {$ctx1.fill(self,"onMethodSelected:",{anAnnouncement:anAnnouncement,selector:selector,method:method},smalltalk.HLMethodsListWidget)})},
  2576. args: ["anAnnouncement"],
  2577. source: "onMethodSelected: anAnnouncement\x0a\x09| selector method |\x0a\x09\x0a\x09method := anAnnouncement item.\x0a\x09\x0a\x09selector := method isCompiledMethod \x0a\x09\x09ifTrue: [ method selector ]\x0a\x09\x09ifFalse: [ nil ].\x0a\x09\x09\x0a\x09self \x0a\x09\x09selectedItem: selector;\x0a\x09\x09activateItem: selector",
  2578. messageSends: ["item", "ifTrue:ifFalse:", "selector", "isCompiledMethod", "selectedItem:", "activateItem:"],
  2579. referencedClasses: []
  2580. }),
  2581. smalltalk.HLMethodsListWidget);
  2582. smalltalk.addMethod(
  2583. smalltalk.method({
  2584. selector: "onMethodsFocusRequested",
  2585. category: 'reactions',
  2586. fn: function (){
  2587. var self=this;
  2588. return smalltalk.withContext(function($ctx1) {
  2589. _st(self)._focus();
  2590. return self}, function($ctx1) {$ctx1.fill(self,"onMethodsFocusRequested",{},smalltalk.HLMethodsListWidget)})},
  2591. args: [],
  2592. source: "onMethodsFocusRequested\x0a\x09self focus",
  2593. messageSends: ["focus"],
  2594. referencedClasses: []
  2595. }),
  2596. smalltalk.HLMethodsListWidget);
  2597. smalltalk.addMethod(
  2598. smalltalk.method({
  2599. selector: "onProtocolAdded:",
  2600. category: 'reactions',
  2601. fn: function (anAnnouncement){
  2602. var self=this;
  2603. return smalltalk.withContext(function($ctx1) {
  2604. var $1,$2;
  2605. $1=_st(_st(_st(self)._model())._selectedClass()).__eq(_st(anAnnouncement)._theClass());
  2606. if(! smalltalk.assert($1)){
  2607. $2=self;
  2608. return $2;
  2609. };
  2610. _st(self)._setItemsForSelectedProtocol();
  2611. _st(self)._refresh();
  2612. _st(self)._focus();
  2613. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolAdded:",{anAnnouncement:anAnnouncement},smalltalk.HLMethodsListWidget)})},
  2614. args: ["anAnnouncement"],
  2615. source: "onProtocolAdded: anAnnouncement\x0a\x09self model selectedClass = anAnnouncement theClass ifFalse: [ ^ self ].\x0a\x09\x0a\x09self setItemsForSelectedProtocol.\x0a self refresh.\x0a\x09self focus",
  2616. messageSends: ["ifFalse:", "=", "theClass", "selectedClass", "model", "setItemsForSelectedProtocol", "refresh", "focus"],
  2617. referencedClasses: []
  2618. }),
  2619. smalltalk.HLMethodsListWidget);
  2620. smalltalk.addMethod(
  2621. smalltalk.method({
  2622. selector: "onProtocolRemoved:",
  2623. category: 'reactions',
  2624. fn: function (anAnnouncement){
  2625. var self=this;
  2626. return smalltalk.withContext(function($ctx1) {
  2627. var $1,$2;
  2628. $1=_st(_st(_st(self)._model())._selectedClass()).__eq(_st(anAnnouncement)._theClass());
  2629. if(! smalltalk.assert($1)){
  2630. $2=self;
  2631. return $2;
  2632. };
  2633. _st(self)._setItemsForSelectedProtocol();
  2634. _st(self)._refresh();
  2635. _st(self)._focus();
  2636. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolRemoved:",{anAnnouncement:anAnnouncement},smalltalk.HLMethodsListWidget)})},
  2637. args: ["anAnnouncement"],
  2638. source: "onProtocolRemoved: anAnnouncement\x0a\x09self model selectedClass = anAnnouncement theClass ifFalse: [ ^ self ].\x0a\x09\x0a\x09self setItemsForSelectedProtocol.\x0a self refresh.\x0a\x09self focus",
  2639. messageSends: ["ifFalse:", "=", "theClass", "selectedClass", "model", "setItemsForSelectedProtocol", "refresh", "focus"],
  2640. referencedClasses: []
  2641. }),
  2642. smalltalk.HLMethodsListWidget);
  2643. smalltalk.addMethod(
  2644. smalltalk.method({
  2645. selector: "onProtocolSelected:",
  2646. category: 'reactions',
  2647. fn: function (anAnnouncement){
  2648. var self=this;
  2649. return smalltalk.withContext(function($ctx1) {
  2650. _st(self)._selectedItem_(nil);
  2651. _st(self)._setItemsForSelectedProtocol();
  2652. _st(self)._refresh();
  2653. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolSelected:",{anAnnouncement:anAnnouncement},smalltalk.HLMethodsListWidget)})},
  2654. args: ["anAnnouncement"],
  2655. source: "onProtocolSelected: anAnnouncement\x0a self selectedItem: nil.\x0a \x0a\x09self setItemsForSelectedProtocol.\x0a self refresh",
  2656. messageSends: ["selectedItem:", "setItemsForSelectedProtocol", "refresh"],
  2657. referencedClasses: []
  2658. }),
  2659. smalltalk.HLMethodsListWidget);
  2660. smalltalk.addMethod(
  2661. smalltalk.method({
  2662. selector: "onShowInstanceToggled",
  2663. category: 'reactions',
  2664. fn: function (){
  2665. var self=this;
  2666. return smalltalk.withContext(function($ctx1) {
  2667. _st(self)._onProtocolSelected_(nil);
  2668. return self}, function($ctx1) {$ctx1.fill(self,"onShowInstanceToggled",{},smalltalk.HLMethodsListWidget)})},
  2669. args: [],
  2670. source: "onShowInstanceToggled\x0a\x09self onProtocolSelected: nil",
  2671. messageSends: ["onProtocolSelected:"],
  2672. referencedClasses: []
  2673. }),
  2674. smalltalk.HLMethodsListWidget);
  2675. smalltalk.addMethod(
  2676. smalltalk.method({
  2677. selector: "overrideSelectors",
  2678. category: 'accessing',
  2679. fn: function (){
  2680. var self=this;
  2681. function $Set(){return smalltalk.Set||(typeof Set=="undefined"?nil:Set)}
  2682. return smalltalk.withContext(function($ctx1) {
  2683. var $2,$3,$1;
  2684. $1=_st(_st(self)._selectorsCache())._at_ifAbsentPut_("override",(function(){
  2685. return smalltalk.withContext(function($ctx2) {
  2686. return _st(_st(_st(_st(self)._model())._selectedClass())._allSuperclasses())._inject_into_(_st($Set())._new(),(function(acc,each){
  2687. return smalltalk.withContext(function($ctx3) {
  2688. $2=acc;
  2689. _st($2)._addAll_(_st(each)._selectors());
  2690. $3=_st($2)._yourself();
  2691. return $3;
  2692. }, function($ctx3) {$ctx3.fillBlock({acc:acc,each:each},$ctx1)})}));
  2693. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2694. return $1;
  2695. }, function($ctx1) {$ctx1.fill(self,"overrideSelectors",{},smalltalk.HLMethodsListWidget)})},
  2696. args: [],
  2697. source: "overrideSelectors\x0a\x09^ self selectorsCache \x0a \x09at: 'override'\x0a ifAbsentPut: [ \x0a \x09self model selectedClass allSuperclasses\x0a\x09\x09\x09\x09inject: Set new into: [ :acc :each | acc addAll: each selectors; yourself ] ]",
  2698. messageSends: ["at:ifAbsentPut:", "inject:into:", "new", "addAll:", "selectors", "yourself", "allSuperclasses", "selectedClass", "model", "selectorsCache"],
  2699. referencedClasses: ["Set"]
  2700. }),
  2701. smalltalk.HLMethodsListWidget);
  2702. smalltalk.addMethod(
  2703. smalltalk.method({
  2704. selector: "overridenSelectors",
  2705. category: 'accessing',
  2706. fn: function (){
  2707. var self=this;
  2708. function $Set(){return smalltalk.Set||(typeof Set=="undefined"?nil:Set)}
  2709. return smalltalk.withContext(function($ctx1) {
  2710. var $2,$3,$1;
  2711. $1=_st(_st(self)._selectorsCache())._at_ifAbsentPut_("overriden",(function(){
  2712. return smalltalk.withContext(function($ctx2) {
  2713. return _st(_st(_st(_st(self)._model())._selectedClass())._allSubclasses())._inject_into_(_st($Set())._new(),(function(acc,each){
  2714. return smalltalk.withContext(function($ctx3) {
  2715. $2=acc;
  2716. _st($2)._addAll_(_st(each)._selectors());
  2717. $3=_st($2)._yourself();
  2718. return $3;
  2719. }, function($ctx3) {$ctx3.fillBlock({acc:acc,each:each},$ctx1)})}));
  2720. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2721. return $1;
  2722. }, function($ctx1) {$ctx1.fill(self,"overridenSelectors",{},smalltalk.HLMethodsListWidget)})},
  2723. args: [],
  2724. source: "overridenSelectors\x0a\x09^ self selectorsCache \x0a \x09at: 'overriden'\x0a ifAbsentPut: [ \x0a \x09self model selectedClass allSubclasses\x0a\x09\x09\x09\x09inject: Set new into: [ :acc :each | acc addAll: each selectors; yourself ] ]",
  2725. messageSends: ["at:ifAbsentPut:", "inject:into:", "new", "addAll:", "selectors", "yourself", "allSubclasses", "selectedClass", "model", "selectorsCache"],
  2726. referencedClasses: ["Set"]
  2727. }),
  2728. smalltalk.HLMethodsListWidget);
  2729. smalltalk.addMethod(
  2730. smalltalk.method({
  2731. selector: "renderContentOn:",
  2732. category: 'rendering',
  2733. fn: function (html){
  2734. var self=this;
  2735. return smalltalk.withContext(function($ctx1) {
  2736. var $1,$2,$3;
  2737. $1=_st(_st(self)._model())._showInstance();
  2738. if(smalltalk.assert($1)){
  2739. smalltalk.HLToolListWidget.fn.prototype._renderContentOn_.apply(_st(self), [html]);
  2740. } else {
  2741. $2=_st(html)._div();
  2742. _st($2)._class_("class_side");
  2743. $3=_st($2)._with_((function(){
  2744. return smalltalk.withContext(function($ctx2) {
  2745. return smalltalk.HLToolListWidget.fn.prototype._renderContentOn_.apply(_st(self), [html]);
  2746. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2747. $3;
  2748. };
  2749. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLMethodsListWidget)})},
  2750. args: ["html"],
  2751. source: "renderContentOn: html\x0a\x09self model showInstance\x0a \x09ifFalse: [ html div \x0a \x09class: 'class_side'; \x0a with: [ super renderContentOn: html ] ]\x0a \x09ifTrue: [ super renderContentOn: html ]",
  2752. messageSends: ["ifFalse:ifTrue:", "class:", "div", "with:", "renderContentOn:", "showInstance", "model"],
  2753. referencedClasses: []
  2754. }),
  2755. smalltalk.HLMethodsListWidget);
  2756. smalltalk.addMethod(
  2757. smalltalk.method({
  2758. selector: "renderItemLabel:on:",
  2759. category: 'rendering',
  2760. fn: function (aSelector,html){
  2761. var self=this;
  2762. return smalltalk.withContext(function($ctx1) {
  2763. _st(html)._with_(aSelector);
  2764. return self}, function($ctx1) {$ctx1.fill(self,"renderItemLabel:on:",{aSelector:aSelector,html:html},smalltalk.HLMethodsListWidget)})},
  2765. args: ["aSelector", "html"],
  2766. source: "renderItemLabel: aSelector on: html\x0a\x09html with: aSelector",
  2767. messageSends: ["with:"],
  2768. referencedClasses: []
  2769. }),
  2770. smalltalk.HLMethodsListWidget);
  2771. smalltalk.addMethod(
  2772. smalltalk.method({
  2773. selector: "selectItem:",
  2774. category: 'actions',
  2775. fn: function (aSelector){
  2776. var self=this;
  2777. return smalltalk.withContext(function($ctx1) {
  2778. var $1,$2;
  2779. $1=aSelector;
  2780. if(($receiver = $1) == nil || $receiver == undefined){
  2781. $2=_st(_st(self)._model())._selectedMethod_(nil);
  2782. return $2;
  2783. } else {
  2784. $1;
  2785. };
  2786. _st(_st(self)._model())._selectedMethod_(_st(self)._methodForSelector_(aSelector));
  2787. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{aSelector:aSelector},smalltalk.HLMethodsListWidget)})},
  2788. args: ["aSelector"],
  2789. source: "selectItem: aSelector\x0a\x09aSelector ifNil: [ ^ self model selectedMethod: nil ].\x0a\x0a \x09self model selectedMethod: (self methodForSelector: aSelector)\x0a ",
  2790. messageSends: ["ifNil:", "selectedMethod:", "model", "methodForSelector:"],
  2791. referencedClasses: []
  2792. }),
  2793. smalltalk.HLMethodsListWidget);
  2794. smalltalk.addMethod(
  2795. smalltalk.method({
  2796. selector: "selectorsCache",
  2797. category: 'accessing',
  2798. fn: function (){
  2799. var self=this;
  2800. return smalltalk.withContext(function($ctx1) {
  2801. var $1;
  2802. $1=_st(_st(self)._class())._selectorsCache();
  2803. return $1;
  2804. }, function($ctx1) {$ctx1.fill(self,"selectorsCache",{},smalltalk.HLMethodsListWidget)})},
  2805. args: [],
  2806. source: "selectorsCache\x0a\x09^ self class selectorsCache",
  2807. messageSends: ["selectorsCache", "class"],
  2808. referencedClasses: []
  2809. }),
  2810. smalltalk.HLMethodsListWidget);
  2811. smalltalk.addMethod(
  2812. smalltalk.method({
  2813. selector: "selectorsInProtocol:",
  2814. category: 'accessing',
  2815. fn: function (aString){
  2816. var self=this;
  2817. return smalltalk.withContext(function($ctx1) {
  2818. var $1;
  2819. $1=_st(_st(_st(self)._methodsInProtocol_(aString))._collect_((function(each){
  2820. return smalltalk.withContext(function($ctx2) {
  2821. return _st(each)._selector();
  2822. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})))._sorted();
  2823. return $1;
  2824. }, function($ctx1) {$ctx1.fill(self,"selectorsInProtocol:",{aString:aString},smalltalk.HLMethodsListWidget)})},
  2825. args: ["aString"],
  2826. source: "selectorsInProtocol: aString\x0a\x09^ ((self methodsInProtocol: aString)\x0a \x09collect: [ :each | each selector ]) sorted",
  2827. messageSends: ["sorted", "collect:", "selector", "methodsInProtocol:"],
  2828. referencedClasses: []
  2829. }),
  2830. smalltalk.HLMethodsListWidget);
  2831. smalltalk.addMethod(
  2832. smalltalk.method({
  2833. selector: "setItemsForProtocol:",
  2834. category: 'private',
  2835. fn: function (aString){
  2836. var self=this;
  2837. return smalltalk.withContext(function($ctx1) {
  2838. var $2,$4,$3,$1;
  2839. $2=self;
  2840. $4=aString;
  2841. if(($receiver = $4) == nil || $receiver == undefined){
  2842. $3=[];
  2843. } else {
  2844. $3=_st(self)._selectorsInProtocol_(aString);
  2845. };
  2846. $1=_st($2)._items_($3);
  2847. return $1;
  2848. }, function($ctx1) {$ctx1.fill(self,"setItemsForProtocol:",{aString:aString},smalltalk.HLMethodsListWidget)})},
  2849. args: ["aString"],
  2850. source: "setItemsForProtocol: aString\x0a\x09^ self items: (aString\x0a \x09ifNil: [ #() ]\x0a \x09ifNotNil: [ self selectorsInProtocol: aString ])",
  2851. messageSends: ["items:", "ifNil:ifNotNil:", "selectorsInProtocol:"],
  2852. referencedClasses: []
  2853. }),
  2854. smalltalk.HLMethodsListWidget);
  2855. smalltalk.addMethod(
  2856. smalltalk.method({
  2857. selector: "setItemsForSelectedProtocol",
  2858. category: 'private',
  2859. fn: function (){
  2860. var self=this;
  2861. return smalltalk.withContext(function($ctx1) {
  2862. _st(self)._setItemsForProtocol_(_st(_st(self)._model())._selectedProtocol());
  2863. return self}, function($ctx1) {$ctx1.fill(self,"setItemsForSelectedProtocol",{},smalltalk.HLMethodsListWidget)})},
  2864. args: [],
  2865. source: "setItemsForSelectedProtocol\x0a\x09self setItemsForProtocol: self model selectedProtocol",
  2866. messageSends: ["setItemsForProtocol:", "selectedProtocol", "model"],
  2867. referencedClasses: []
  2868. }),
  2869. smalltalk.HLMethodsListWidget);
  2870. smalltalk.HLMethodsListWidget.klass.iVarNames = ['selectorsCache'];
  2871. smalltalk.addMethod(
  2872. smalltalk.method({
  2873. selector: "selectorsCache",
  2874. category: 'accessing',
  2875. fn: function (){
  2876. var self=this;
  2877. function $HLSelectorsCache(){return smalltalk.HLSelectorsCache||(typeof HLSelectorsCache=="undefined"?nil:HLSelectorsCache)}
  2878. return smalltalk.withContext(function($ctx1) {
  2879. var $1;
  2880. $1=_st($HLSelectorsCache())._current();
  2881. return $1;
  2882. }, function($ctx1) {$ctx1.fill(self,"selectorsCache",{},smalltalk.HLMethodsListWidget.klass)})},
  2883. args: [],
  2884. source: "selectorsCache\x0a\x09^ HLSelectorsCache current",
  2885. messageSends: ["current"],
  2886. referencedClasses: ["HLSelectorsCache"]
  2887. }),
  2888. smalltalk.HLMethodsListWidget.klass);
  2889. smalltalk.addClass('HLPackagesListWidget', smalltalk.HLToolListWidget, [], 'Helios-Browser');
  2890. smalltalk.addMethod(
  2891. smalltalk.method({
  2892. selector: "commitPackage",
  2893. category: 'actions',
  2894. fn: function (){
  2895. var self=this;
  2896. return smalltalk.withContext(function($ctx1) {
  2897. _st(_st(self)._model())._commitPackage();
  2898. return self}, function($ctx1) {$ctx1.fill(self,"commitPackage",{},smalltalk.HLPackagesListWidget)})},
  2899. args: [],
  2900. source: "commitPackage\x0a\x09self model commitPackage",
  2901. messageSends: ["commitPackage", "model"],
  2902. referencedClasses: []
  2903. }),
  2904. smalltalk.HLPackagesListWidget);
  2905. smalltalk.addMethod(
  2906. smalltalk.method({
  2907. selector: "cssClassForItem:",
  2908. category: 'accessing',
  2909. fn: function (anItem){
  2910. var self=this;
  2911. return smalltalk.withContext(function($ctx1) {
  2912. return "package";
  2913. }, function($ctx1) {$ctx1.fill(self,"cssClassForItem:",{anItem:anItem},smalltalk.HLPackagesListWidget)})},
  2914. args: ["anItem"],
  2915. source: "cssClassForItem: anItem\x09\x0a\x09^ 'package'",
  2916. messageSends: [],
  2917. referencedClasses: []
  2918. }),
  2919. smalltalk.HLPackagesListWidget);
  2920. smalltalk.addMethod(
  2921. smalltalk.method({
  2922. selector: "focusClassesListWidget",
  2923. category: 'actions',
  2924. fn: function (){
  2925. var self=this;
  2926. function $HLClassesListFocus(){return smalltalk.HLClassesListFocus||(typeof HLClassesListFocus=="undefined"?nil:HLClassesListFocus)}
  2927. return smalltalk.withContext(function($ctx1) {
  2928. _st(_st(_st(self)._model())._announcer())._announce_(_st($HLClassesListFocus())._new());
  2929. return self}, function($ctx1) {$ctx1.fill(self,"focusClassesListWidget",{},smalltalk.HLPackagesListWidget)})},
  2930. args: [],
  2931. source: "focusClassesListWidget\x0a\x09self model announcer announce: HLClassesListFocus new",
  2932. messageSends: ["announce:", "new", "announcer", "model"],
  2933. referencedClasses: ["HLClassesListFocus"]
  2934. }),
  2935. smalltalk.HLPackagesListWidget);
  2936. smalltalk.addMethod(
  2937. smalltalk.method({
  2938. selector: "initializeItems",
  2939. category: 'initialization',
  2940. fn: function (){
  2941. var self=this;
  2942. return smalltalk.withContext(function($ctx1) {
  2943. var $1;
  2944. self["@items"]=_st(_st(_st(self)._model())._packages())._sort_((function(a,b){
  2945. return smalltalk.withContext(function($ctx2) {
  2946. return _st(_st(a)._name()).__lt(_st(b)._name());
  2947. }, function($ctx2) {$ctx2.fillBlock({a:a,b:b},$ctx1)})}));
  2948. $1=self["@items"];
  2949. return $1;
  2950. }, function($ctx1) {$ctx1.fill(self,"initializeItems",{},smalltalk.HLPackagesListWidget)})},
  2951. args: [],
  2952. source: "initializeItems\x0a\x09^ items := self model packages \x0a\x09\x09sort: [ :a :b | a name < b name ]",
  2953. messageSends: ["sort:", "<", "name", "packages", "model"],
  2954. referencedClasses: []
  2955. }),
  2956. smalltalk.HLPackagesListWidget);
  2957. smalltalk.addMethod(
  2958. smalltalk.method({
  2959. selector: "items",
  2960. category: 'accessing',
  2961. fn: function (){
  2962. var self=this;
  2963. return smalltalk.withContext(function($ctx1) {
  2964. var $2,$1;
  2965. $2=self["@items"];
  2966. if(($receiver = $2) == nil || $receiver == undefined){
  2967. $1=_st(self)._initializeItems();
  2968. } else {
  2969. $1=$2;
  2970. };
  2971. return $1;
  2972. }, function($ctx1) {$ctx1.fill(self,"items",{},smalltalk.HLPackagesListWidget)})},
  2973. args: [],
  2974. source: "items\x0a\x09^ items ifNil: [ self initializeItems ]",
  2975. messageSends: ["ifNil:", "initializeItems"],
  2976. referencedClasses: []
  2977. }),
  2978. smalltalk.HLPackagesListWidget);
  2979. smalltalk.addMethod(
  2980. smalltalk.method({
  2981. selector: "label",
  2982. category: 'accessing',
  2983. fn: function (){
  2984. var self=this;
  2985. return smalltalk.withContext(function($ctx1) {
  2986. return "Packages";
  2987. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLPackagesListWidget)})},
  2988. args: [],
  2989. source: "label\x0a\x09^ 'Packages'",
  2990. messageSends: [],
  2991. referencedClasses: []
  2992. }),
  2993. smalltalk.HLPackagesListWidget);
  2994. smalltalk.addMethod(
  2995. smalltalk.method({
  2996. selector: "observeModel",
  2997. category: 'actions',
  2998. fn: function (){
  2999. var self=this;
  3000. function $HLPackageSelected(){return smalltalk.HLPackageSelected||(typeof HLPackageSelected=="undefined"?nil:HLPackageSelected)}
  3001. function $HLPackagesFocusRequested(){return smalltalk.HLPackagesFocusRequested||(typeof HLPackagesFocusRequested=="undefined"?nil:HLPackagesFocusRequested)}
  3002. return smalltalk.withContext(function($ctx1) {
  3003. var $1,$2;
  3004. $1=_st(_st(self)._model())._announcer();
  3005. _st($1)._on_send_to_($HLPackageSelected(),"onPackageSelected:",self);
  3006. $2=_st($1)._on_send_to_($HLPackagesFocusRequested(),"onPackagesFocusRequested",self);
  3007. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{},smalltalk.HLPackagesListWidget)})},
  3008. args: [],
  3009. source: "observeModel\x0a self model announcer \x0a\x09\x09on: HLPackageSelected\x0a\x09\x09send: #onPackageSelected:\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: HLPackagesFocusRequested \x0a\x09\x09send: #onPackagesFocusRequested\x0a\x09\x09to: self",
  3010. messageSends: ["on:send:to:", "announcer", "model"],
  3011. referencedClasses: ["HLPackageSelected", "HLPackagesFocusRequested"]
  3012. }),
  3013. smalltalk.HLPackagesListWidget);
  3014. smalltalk.addMethod(
  3015. smalltalk.method({
  3016. selector: "observeSystem",
  3017. category: 'actions',
  3018. fn: function (){
  3019. var self=this;
  3020. function $ClassAdded(){return smalltalk.ClassAdded||(typeof ClassAdded=="undefined"?nil:ClassAdded)}
  3021. return smalltalk.withContext(function($ctx1) {
  3022. _st(_st(_st(self)._model())._systemAnnouncer())._on_send_to_($ClassAdded(),"onClassAdded:",self);
  3023. return self}, function($ctx1) {$ctx1.fill(self,"observeSystem",{},smalltalk.HLPackagesListWidget)})},
  3024. args: [],
  3025. source: "observeSystem\x0a self model systemAnnouncer \x0a\x09\x09on: ClassAdded \x0a\x09\x09send: #onClassAdded:\x0a\x09\x09to: self",
  3026. messageSends: ["on:send:to:", "systemAnnouncer", "model"],
  3027. referencedClasses: ["ClassAdded"]
  3028. }),
  3029. smalltalk.HLPackagesListWidget);
  3030. smalltalk.addMethod(
  3031. smalltalk.method({
  3032. selector: "onClassAdded:",
  3033. category: 'reactions',
  3034. fn: function (anAnnouncement){
  3035. var self=this;
  3036. return smalltalk.withContext(function($ctx1) {
  3037. var $1,$2,$3;
  3038. $1=_st(_st(self)._items())._includes_(_st(_st(anAnnouncement)._theClass())._package());
  3039. if(! smalltalk.assert($1)){
  3040. $2=self;
  3041. _st($2)._initializeItems();
  3042. $3=_st($2)._refresh();
  3043. $3;
  3044. };
  3045. return self}, function($ctx1) {$ctx1.fill(self,"onClassAdded:",{anAnnouncement:anAnnouncement},smalltalk.HLPackagesListWidget)})},
  3046. args: ["anAnnouncement"],
  3047. source: "onClassAdded: anAnnouncement\x0a\x09\x22Amber doesn't have yet a global organizer for packages\x22\x0a\x09\x0a\x09(self items includes: anAnnouncement theClass package) ifFalse: [ \x0a\x09\x09self \x0a\x09\x09\x09initializeItems;\x0a\x09\x09\x09refresh ]",
  3048. messageSends: ["ifFalse:", "initializeItems", "refresh", "includes:", "package", "theClass", "items"],
  3049. referencedClasses: []
  3050. }),
  3051. smalltalk.HLPackagesListWidget);
  3052. smalltalk.addMethod(
  3053. smalltalk.method({
  3054. selector: "onPackageSelected:",
  3055. category: 'reactions',
  3056. fn: function (anAnnouncement){
  3057. var self=this;
  3058. var package_;
  3059. return smalltalk.withContext(function($ctx1) {
  3060. var $1,$2,$3;
  3061. package_=_st(anAnnouncement)._item();
  3062. _st(self)._selectedItem_(package_);
  3063. $1=_st(self)._hasFocus();
  3064. if(! smalltalk.assert($1)){
  3065. $2=self;
  3066. _st($2)._activateItem_(package_);
  3067. $3=_st($2)._focus();
  3068. $3;
  3069. };
  3070. return self}, function($ctx1) {$ctx1.fill(self,"onPackageSelected:",{anAnnouncement:anAnnouncement,package_:package_},smalltalk.HLPackagesListWidget)})},
  3071. args: ["anAnnouncement"],
  3072. source: "onPackageSelected: anAnnouncement\x0a\x09| package |\x0a\x09\x0a\x09package := anAnnouncement item.\x0a\x09\x0a\x09self selectedItem: package.\x0a\x09self hasFocus ifFalse: [\x0a\x09\x09self\x0a\x09\x09\x09activateItem: package;\x0a\x09\x09\x09focus ]",
  3073. messageSends: ["item", "selectedItem:", "ifFalse:", "activateItem:", "focus", "hasFocus"],
  3074. referencedClasses: []
  3075. }),
  3076. smalltalk.HLPackagesListWidget);
  3077. smalltalk.addMethod(
  3078. smalltalk.method({
  3079. selector: "onPackagesFocusRequested",
  3080. category: 'reactions',
  3081. fn: function (){
  3082. var self=this;
  3083. return smalltalk.withContext(function($ctx1) {
  3084. _st(self)._focus();
  3085. return self}, function($ctx1) {$ctx1.fill(self,"onPackagesFocusRequested",{},smalltalk.HLPackagesListWidget)})},
  3086. args: [],
  3087. source: "onPackagesFocusRequested\x0a\x09self focus",
  3088. messageSends: ["focus"],
  3089. referencedClasses: []
  3090. }),
  3091. smalltalk.HLPackagesListWidget);
  3092. smalltalk.addMethod(
  3093. smalltalk.method({
  3094. selector: "renderItemLabel:on:",
  3095. category: 'rendering',
  3096. fn: function (aPackage,html){
  3097. var self=this;
  3098. return smalltalk.withContext(function($ctx1) {
  3099. _st(html)._with_(_st(aPackage)._name());
  3100. return self}, function($ctx1) {$ctx1.fill(self,"renderItemLabel:on:",{aPackage:aPackage,html:html},smalltalk.HLPackagesListWidget)})},
  3101. args: ["aPackage", "html"],
  3102. source: "renderItemLabel: aPackage on: html\x0a\x09html with: aPackage name",
  3103. messageSends: ["with:", "name"],
  3104. referencedClasses: []
  3105. }),
  3106. smalltalk.HLPackagesListWidget);
  3107. smalltalk.addMethod(
  3108. smalltalk.method({
  3109. selector: "selectItem:",
  3110. category: 'actions',
  3111. fn: function (aPackage){
  3112. var self=this;
  3113. return smalltalk.withContext(function($ctx1) {
  3114. _st(_st(self)._model())._selectedPackage_(aPackage);
  3115. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{aPackage:aPackage},smalltalk.HLPackagesListWidget)})},
  3116. args: ["aPackage"],
  3117. source: "selectItem: aPackage\x0a\x09self model selectedPackage: aPackage",
  3118. messageSends: ["selectedPackage:", "model"],
  3119. referencedClasses: []
  3120. }),
  3121. smalltalk.HLPackagesListWidget);
  3122. smalltalk.addClass('HLProtocolsListWidget', smalltalk.HLToolListWidget, [], 'Helios-Browser');
  3123. smalltalk.addMethod(
  3124. smalltalk.method({
  3125. selector: "allProtocol",
  3126. category: 'accessing',
  3127. fn: function (){
  3128. var self=this;
  3129. return smalltalk.withContext(function($ctx1) {
  3130. var $1;
  3131. $1=_st(_st(self)._model())._allProtocol();
  3132. return $1;
  3133. }, function($ctx1) {$ctx1.fill(self,"allProtocol",{},smalltalk.HLProtocolsListWidget)})},
  3134. args: [],
  3135. source: "allProtocol\x0a\x09^ self model allProtocol",
  3136. messageSends: ["allProtocol", "model"],
  3137. referencedClasses: []
  3138. }),
  3139. smalltalk.HLProtocolsListWidget);
  3140. smalltalk.addMethod(
  3141. smalltalk.method({
  3142. selector: "cssClassForItem:",
  3143. category: 'accessing',
  3144. fn: function (anItem){
  3145. var self=this;
  3146. return smalltalk.withContext(function($ctx1) {
  3147. var $1,$2,$3,$4;
  3148. $1=_st(anItem).__eq(_st(self)._allProtocol());
  3149. if(smalltalk.assert($1)){
  3150. return "";
  3151. };
  3152. $2=_st(anItem).__eq("private");
  3153. if(smalltalk.assert($2)){
  3154. return "private";
  3155. };
  3156. $3=_st(anItem).__eq("initialization");
  3157. if(smalltalk.assert($3)){
  3158. return "initialization";
  3159. };
  3160. $4=_st(anItem)._match_("^\x5c*");
  3161. if(smalltalk.assert($4)){
  3162. return "extension";
  3163. };
  3164. return "";
  3165. }, function($ctx1) {$ctx1.fill(self,"cssClassForItem:",{anItem:anItem},smalltalk.HLProtocolsListWidget)})},
  3166. args: ["anItem"],
  3167. source: "cssClassForItem: anItem\x0a\x09anItem = self allProtocol ifTrue: [ ^ '' ].\x0a\x09anItem = 'private' ifTrue: [ ^ 'private' ].\x0a\x09anItem = 'initialization' ifTrue: [ ^ 'initialization' ].\x0a\x09(anItem match: '^\x5c*') ifTrue: [ ^ 'extension' ].\x0a\x09^ ''",
  3168. messageSends: ["ifTrue:", "=", "allProtocol", "match:"],
  3169. referencedClasses: []
  3170. }),
  3171. smalltalk.HLProtocolsListWidget);
  3172. smalltalk.addMethod(
  3173. smalltalk.method({
  3174. selector: "label",
  3175. category: 'accessing',
  3176. fn: function (){
  3177. var self=this;
  3178. return smalltalk.withContext(function($ctx1) {
  3179. return "Protocols";
  3180. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLProtocolsListWidget)})},
  3181. args: [],
  3182. source: "label\x0a\x09^ 'Protocols'",
  3183. messageSends: [],
  3184. referencedClasses: []
  3185. }),
  3186. smalltalk.HLProtocolsListWidget);
  3187. smalltalk.addMethod(
  3188. smalltalk.method({
  3189. selector: "observeModel",
  3190. category: 'actions',
  3191. fn: function (){
  3192. var self=this;
  3193. function $HLClassSelected(){return smalltalk.HLClassSelected||(typeof HLClassSelected=="undefined"?nil:HLClassSelected)}
  3194. function $HLShowInstanceToggled(){return smalltalk.HLShowInstanceToggled||(typeof HLShowInstanceToggled=="undefined"?nil:HLShowInstanceToggled)}
  3195. function $HLProtocolSelected(){return smalltalk.HLProtocolSelected||(typeof HLProtocolSelected=="undefined"?nil:HLProtocolSelected)}
  3196. function $HLProtocolsFocusRequested(){return smalltalk.HLProtocolsFocusRequested||(typeof HLProtocolsFocusRequested=="undefined"?nil:HLProtocolsFocusRequested)}
  3197. return smalltalk.withContext(function($ctx1) {
  3198. var $1,$2;
  3199. $1=_st(_st(self)._model())._announcer();
  3200. _st($1)._on_send_to_($HLClassSelected(),"onClassSelected:",self);
  3201. _st($1)._on_send_to_($HLShowInstanceToggled(),"onClassSelected:",self);
  3202. _st($1)._on_send_to_($HLProtocolSelected(),"onProtocolSelected:",self);
  3203. $2=_st($1)._on_send_to_($HLProtocolsFocusRequested(),"onProtocolsFocusRequested",self);
  3204. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{},smalltalk.HLProtocolsListWidget)})},
  3205. args: [],
  3206. source: "observeModel\x0a self model announcer \x0a\x09\x09on: HLClassSelected\x0a\x09\x09send: #onClassSelected:\x0a\x09\x09to: self;\x0a\x09\x09\x0a \x09on: HLShowInstanceToggled \x0a\x09\x09send: #onClassSelected:\x0a\x09\x09to: self;\x0a\x09\x09\x0a \x09on: HLProtocolSelected\x0a\x09\x09send: #onProtocolSelected:\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: HLProtocolsFocusRequested \x0a\x09\x09send: #onProtocolsFocusRequested\x0a\x09\x09to: self",
  3207. messageSends: ["on:send:to:", "announcer", "model"],
  3208. referencedClasses: ["HLClassSelected", "HLShowInstanceToggled", "HLProtocolSelected", "HLProtocolsFocusRequested"]
  3209. }),
  3210. smalltalk.HLProtocolsListWidget);
  3211. smalltalk.addMethod(
  3212. smalltalk.method({
  3213. selector: "observeSystem",
  3214. category: 'actions',
  3215. fn: function (){
  3216. var self=this;
  3217. function $ProtocolAdded(){return smalltalk.ProtocolAdded||(typeof ProtocolAdded=="undefined"?nil:ProtocolAdded)}
  3218. function $ProtocolRemoved(){return smalltalk.ProtocolRemoved||(typeof ProtocolRemoved=="undefined"?nil:ProtocolRemoved)}
  3219. return smalltalk.withContext(function($ctx1) {
  3220. var $1,$2;
  3221. $1=_st(_st(self)._model())._systemAnnouncer();
  3222. _st($1)._on_send_to_($ProtocolAdded(),"onProtocolAdded:",self);
  3223. $2=_st($1)._on_send_to_($ProtocolRemoved(),"onProtocolRemoved:",self);
  3224. return self}, function($ctx1) {$ctx1.fill(self,"observeSystem",{},smalltalk.HLProtocolsListWidget)})},
  3225. args: [],
  3226. source: "observeSystem\x0a\x09self model systemAnnouncer\x0a\x09\x09on: ProtocolAdded \x0a\x09\x09send: #onProtocolAdded:\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: ProtocolRemoved\x0a\x09\x09send: #onProtocolRemoved:\x0a\x09\x09to: self",
  3227. messageSends: ["on:send:to:", "systemAnnouncer", "model"],
  3228. referencedClasses: ["ProtocolAdded", "ProtocolRemoved"]
  3229. }),
  3230. smalltalk.HLProtocolsListWidget);
  3231. smalltalk.addMethod(
  3232. smalltalk.method({
  3233. selector: "onClassSelected:",
  3234. category: 'reactions',
  3235. fn: function (anAnnouncement){
  3236. var self=this;
  3237. return smalltalk.withContext(function($ctx1) {
  3238. _st(self)._selectedItem_(nil);
  3239. _st(self)._setItemsForSelectedClass();
  3240. _st(self)._refresh();
  3241. return self}, function($ctx1) {$ctx1.fill(self,"onClassSelected:",{anAnnouncement:anAnnouncement},smalltalk.HLProtocolsListWidget)})},
  3242. args: ["anAnnouncement"],
  3243. source: "onClassSelected: anAnnouncement\x0a self selectedItem: nil.\x0a \x0a self setItemsForSelectedClass.\x0a self refresh",
  3244. messageSends: ["selectedItem:", "setItemsForSelectedClass", "refresh"],
  3245. referencedClasses: []
  3246. }),
  3247. smalltalk.HLProtocolsListWidget);
  3248. smalltalk.addMethod(
  3249. smalltalk.method({
  3250. selector: "onProtocolAdded:",
  3251. category: 'reactions',
  3252. fn: function (anAnnouncement){
  3253. var self=this;
  3254. var class_;
  3255. return smalltalk.withContext(function($ctx1) {
  3256. var $1,$2;
  3257. class_=_st(anAnnouncement)._theClass();
  3258. $1=_st(class_).__eq(_st(_st(self)._model())._selectedClass());
  3259. if(! smalltalk.assert($1)){
  3260. $2=self;
  3261. return $2;
  3262. };
  3263. _st(self)._setItemsForSelectedClass();
  3264. _st(self)._refresh();
  3265. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolAdded:",{anAnnouncement:anAnnouncement,class_:class_},smalltalk.HLProtocolsListWidget)})},
  3266. args: ["anAnnouncement"],
  3267. source: "onProtocolAdded: anAnnouncement\x0a\x09| class |\x0a\x09\x0a\x09class := anAnnouncement theClass.\x0a\x09\x0a\x09class = self model selectedClass ifFalse: [ ^ self ].\x0a \x0a self setItemsForSelectedClass.\x0a self refresh",
  3268. messageSends: ["theClass", "ifFalse:", "=", "selectedClass", "model", "setItemsForSelectedClass", "refresh"],
  3269. referencedClasses: []
  3270. }),
  3271. smalltalk.HLProtocolsListWidget);
  3272. smalltalk.addMethod(
  3273. smalltalk.method({
  3274. selector: "onProtocolRemoved:",
  3275. category: 'reactions',
  3276. fn: function (anAnnouncement){
  3277. var self=this;
  3278. var class_,protocol;
  3279. return smalltalk.withContext(function($ctx1) {
  3280. var $1,$2,$3,$4,$5;
  3281. class_=_st(anAnnouncement)._theClass();
  3282. protocol=_st(anAnnouncement)._protocol();
  3283. $1=_st(class_).__eq(_st(_st(self)._model())._selectedClass());
  3284. if(! smalltalk.assert($1)){
  3285. $2=self;
  3286. return $2;
  3287. };
  3288. $3=_st(_st(_st(self)._model())._selectedProtocol()).__eq(protocol);
  3289. if(smalltalk.assert($3)){
  3290. $4=self;
  3291. _st($4)._selectedItem_(nil);
  3292. $5=_st($4)._selectItem_(nil);
  3293. $5;
  3294. };
  3295. _st(self)._setItemsForSelectedClass();
  3296. _st(self)._refresh();
  3297. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolRemoved:",{anAnnouncement:anAnnouncement,class_:class_,protocol:protocol},smalltalk.HLProtocolsListWidget)})},
  3298. args: ["anAnnouncement"],
  3299. source: "onProtocolRemoved: anAnnouncement\x0a\x09| class protocol |\x0a\x09\x0a\x09class := anAnnouncement theClass.\x0a\x09protocol := anAnnouncement protocol.\x0a\x09\x0a\x09class = self model selectedClass ifFalse: [ ^ self ].\x0a \x0a self model selectedProtocol = protocol \x0a \x09ifTrue: [ \x0a\x09\x09\x09self \x0a\x09\x09\x09\x09selectedItem: nil;\x0a\x09\x09\x09\x09selectItem: nil ].\x0a \x0a self setItemsForSelectedClass.\x0a self refresh",
  3300. messageSends: ["theClass", "protocol", "ifFalse:", "=", "selectedClass", "model", "ifTrue:", "selectedItem:", "selectItem:", "selectedProtocol", "setItemsForSelectedClass", "refresh"],
  3301. referencedClasses: []
  3302. }),
  3303. smalltalk.HLProtocolsListWidget);
  3304. smalltalk.addMethod(
  3305. smalltalk.method({
  3306. selector: "onProtocolSelected:",
  3307. category: 'reactions',
  3308. fn: function (anAnnouncement){
  3309. var self=this;
  3310. var protocol;
  3311. return smalltalk.withContext(function($ctx1) {
  3312. var $1,$2,$3,$4,$5;
  3313. protocol=_st(anAnnouncement)._item();
  3314. _st(self)._selectedItem_(protocol);
  3315. $1=protocol;
  3316. if(($receiver = $1) == nil || $receiver == undefined){
  3317. $2=self;
  3318. return $2;
  3319. } else {
  3320. $1;
  3321. };
  3322. $3=_st(self)._hasFocus();
  3323. if(! smalltalk.assert($3)){
  3324. $4=self;
  3325. _st($4)._activateItem_(protocol);
  3326. $5=_st($4)._focus();
  3327. $5;
  3328. };
  3329. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolSelected:",{anAnnouncement:anAnnouncement,protocol:protocol},smalltalk.HLProtocolsListWidget)})},
  3330. args: ["anAnnouncement"],
  3331. source: "onProtocolSelected: anAnnouncement\x0a\x09| protocol |\x0a\x09\x0a\x09protocol := anAnnouncement item.\x0a\x09\x0a\x09self selectedItem: protocol.\x0a\x09protocol ifNil: [ ^ self ].\x0a \x0a\x09self hasFocus ifFalse: [\x0a\x09\x09self \x0a\x09\x09\x09activateItem: protocol;\x0a\x09\x09\x09focus ]",
  3332. messageSends: ["item", "selectedItem:", "ifNil:", "ifFalse:", "activateItem:", "focus", "hasFocus"],
  3333. referencedClasses: []
  3334. }),
  3335. smalltalk.HLProtocolsListWidget);
  3336. smalltalk.addMethod(
  3337. smalltalk.method({
  3338. selector: "onProtocolsFocusRequested",
  3339. category: 'reactions',
  3340. fn: function (){
  3341. var self=this;
  3342. return smalltalk.withContext(function($ctx1) {
  3343. _st(self)._focus();
  3344. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolsFocusRequested",{},smalltalk.HLProtocolsListWidget)})},
  3345. args: [],
  3346. source: "onProtocolsFocusRequested\x0a\x09self focus",
  3347. messageSends: ["focus"],
  3348. referencedClasses: []
  3349. }),
  3350. smalltalk.HLProtocolsListWidget);
  3351. smalltalk.addMethod(
  3352. smalltalk.method({
  3353. selector: "renderContentOn:",
  3354. category: 'rendering',
  3355. fn: function (html){
  3356. var self=this;
  3357. return smalltalk.withContext(function($ctx1) {
  3358. var $1,$2,$3;
  3359. $1=_st(_st(self)._model())._showInstance();
  3360. if(smalltalk.assert($1)){
  3361. smalltalk.HLToolListWidget.fn.prototype._renderContentOn_.apply(_st(self), [html]);
  3362. } else {
  3363. $2=_st(html)._div();
  3364. _st($2)._class_("class_side");
  3365. $3=_st($2)._with_((function(){
  3366. return smalltalk.withContext(function($ctx2) {
  3367. return smalltalk.HLToolListWidget.fn.prototype._renderContentOn_.apply(_st(self), [html]);
  3368. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3369. $3;
  3370. };
  3371. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLProtocolsListWidget)})},
  3372. args: ["html"],
  3373. source: "renderContentOn: html\x0a\x09self model showInstance\x0a \x09ifFalse: [ html div \x0a \x09class: 'class_side'; \x0a with: [ super renderContentOn: html ] ]\x0a \x09ifTrue: [ super renderContentOn: html ]",
  3374. messageSends: ["ifFalse:ifTrue:", "class:", "div", "with:", "renderContentOn:", "showInstance", "model"],
  3375. referencedClasses: []
  3376. }),
  3377. smalltalk.HLProtocolsListWidget);
  3378. smalltalk.addMethod(
  3379. smalltalk.method({
  3380. selector: "selectItem:",
  3381. category: 'actions',
  3382. fn: function (aString){
  3383. var self=this;
  3384. return smalltalk.withContext(function($ctx1) {
  3385. _st(_st(self)._model())._selectedProtocol_(aString);
  3386. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{aString:aString},smalltalk.HLProtocolsListWidget)})},
  3387. args: ["aString"],
  3388. source: "selectItem: aString\x0a self model selectedProtocol: aString",
  3389. messageSends: ["selectedProtocol:", "model"],
  3390. referencedClasses: []
  3391. }),
  3392. smalltalk.HLProtocolsListWidget);
  3393. smalltalk.addMethod(
  3394. smalltalk.method({
  3395. selector: "selectedItem",
  3396. category: 'accessing',
  3397. fn: function (){
  3398. var self=this;
  3399. return smalltalk.withContext(function($ctx1) {
  3400. var $1;
  3401. $1=smalltalk.HLToolListWidget.fn.prototype._selectedItem.apply(_st(self), []);
  3402. return $1;
  3403. }, function($ctx1) {$ctx1.fill(self,"selectedItem",{},smalltalk.HLProtocolsListWidget)})},
  3404. args: [],
  3405. source: "selectedItem\x0a\x09^ super selectedItem\x22 ifNil: [ self allProtocol ]\x22",
  3406. messageSends: ["selectedItem"],
  3407. referencedClasses: []
  3408. }),
  3409. smalltalk.HLProtocolsListWidget);
  3410. smalltalk.addMethod(
  3411. smalltalk.method({
  3412. selector: "setItemsForClass:",
  3413. category: 'private',
  3414. fn: function (aClass){
  3415. var self=this;
  3416. function $Array(){return smalltalk.Array||(typeof Array=="undefined"?nil:Array)}
  3417. return smalltalk.withContext(function($ctx1) {
  3418. var $1,$3,$4,$5,$2;
  3419. $1=self;
  3420. $3=aClass;
  3421. if(($receiver = $3) == nil || $receiver == undefined){
  3422. $2=_st($Array())._with_(_st(self)._allProtocol());
  3423. } else {
  3424. $4=_st($Array())._with_(_st(self)._allProtocol());
  3425. _st($4)._addAll_(_st(aClass)._protocols());
  3426. $5=_st($4)._yourself();
  3427. $2=$5;
  3428. };
  3429. _st($1)._items_($2);
  3430. return self}, function($ctx1) {$ctx1.fill(self,"setItemsForClass:",{aClass:aClass},smalltalk.HLProtocolsListWidget)})},
  3431. args: ["aClass"],
  3432. source: "setItemsForClass: aClass\x0a\x09self items: (aClass\x0a \x09ifNil: [ Array with: self allProtocol ]\x0a \x09ifNotNil: [ \x0a \x09(Array with: self allProtocol) \x0a \x09addAll: aClass protocols; \x0a yourself ])",
  3433. messageSends: ["items:", "ifNil:ifNotNil:", "with:", "allProtocol", "addAll:", "protocols", "yourself"],
  3434. referencedClasses: ["Array"]
  3435. }),
  3436. smalltalk.HLProtocolsListWidget);
  3437. smalltalk.addMethod(
  3438. smalltalk.method({
  3439. selector: "setItemsForSelectedClass",
  3440. category: 'private',
  3441. fn: function (){
  3442. var self=this;
  3443. return smalltalk.withContext(function($ctx1) {
  3444. _st(self)._setItemsForClass_(_st(_st(self)._model())._selectedClass());
  3445. return self}, function($ctx1) {$ctx1.fill(self,"setItemsForSelectedClass",{},smalltalk.HLProtocolsListWidget)})},
  3446. args: [],
  3447. source: "setItemsForSelectedClass\x0a\x09self setItemsForClass: self model selectedClass",
  3448. messageSends: ["setItemsForClass:", "selectedClass", "model"],
  3449. referencedClasses: []
  3450. }),
  3451. smalltalk.HLProtocolsListWidget);
  3452. smalltalk.addClass('HLSelectorsCache', smalltalk.Object, ['classesCache'], 'Helios-Browser');
  3453. smalltalk.addMethod(
  3454. smalltalk.method({
  3455. selector: "cacheFor:",
  3456. category: 'accessing',
  3457. fn: function (aClass){
  3458. var self=this;
  3459. return smalltalk.withContext(function($ctx1) {
  3460. var $1,$2;
  3461. $1=aClass;
  3462. if(($receiver = $1) == nil || $receiver == undefined){
  3463. return nil;
  3464. } else {
  3465. $1;
  3466. };
  3467. $2=_st(_st(self)._classesCache())._at_ifAbsentPut_(_st(aClass)._name(),(function(){
  3468. return smalltalk.withContext(function($ctx2) {
  3469. return _st(self)._newCacheFor_(aClass);
  3470. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3471. return $2;
  3472. }, function($ctx1) {$ctx1.fill(self,"cacheFor:",{aClass:aClass},smalltalk.HLSelectorsCache)})},
  3473. args: ["aClass"],
  3474. source: "cacheFor: aClass\x0a\x09aClass ifNil: [ ^ nil ].\x0a \x0a\x09^ self classesCache\x0a \x09at: aClass name\x0a ifAbsentPut: [ self newCacheFor: aClass ]",
  3475. messageSends: ["ifNil:", "at:ifAbsentPut:", "name", "newCacheFor:", "classesCache"],
  3476. referencedClasses: []
  3477. }),
  3478. smalltalk.HLSelectorsCache);
  3479. smalltalk.addMethod(
  3480. smalltalk.method({
  3481. selector: "classesCache",
  3482. category: 'accessing',
  3483. fn: function (){
  3484. var self=this;
  3485. function $HashedCollection(){return smalltalk.HashedCollection||(typeof HashedCollection=="undefined"?nil:HashedCollection)}
  3486. return smalltalk.withContext(function($ctx1) {
  3487. var $2,$1;
  3488. $2=self["@classesCache"];
  3489. if(($receiver = $2) == nil || $receiver == undefined){
  3490. self["@classesCache"]=_st($HashedCollection())._new();
  3491. $1=self["@classesCache"];
  3492. } else {
  3493. $1=$2;
  3494. };
  3495. return $1;
  3496. }, function($ctx1) {$ctx1.fill(self,"classesCache",{},smalltalk.HLSelectorsCache)})},
  3497. args: [],
  3498. source: "classesCache\x0a\x09^ classesCache ifNil: [ classesCache := HashedCollection new ]",
  3499. messageSends: ["ifNil:", "new"],
  3500. referencedClasses: ["HashedCollection"]
  3501. }),
  3502. smalltalk.HLSelectorsCache);
  3503. smalltalk.addMethod(
  3504. smalltalk.method({
  3505. selector: "initialize",
  3506. category: 'initialization',
  3507. fn: function (){
  3508. var self=this;
  3509. return smalltalk.withContext(function($ctx1) {
  3510. smalltalk.Object.fn.prototype._initialize.apply(_st(self), []);
  3511. _st(self)._observeSystem();
  3512. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.HLSelectorsCache)})},
  3513. args: [],
  3514. source: "initialize\x0a\x09super initialize.\x0a self observeSystem",
  3515. messageSends: ["initialize", "observeSystem"],
  3516. referencedClasses: []
  3517. }),
  3518. smalltalk.HLSelectorsCache);
  3519. smalltalk.addMethod(
  3520. smalltalk.method({
  3521. selector: "invalidateCacheFor:",
  3522. category: 'private',
  3523. fn: function (aMethod){
  3524. var self=this;
  3525. return smalltalk.withContext(function($ctx1) {
  3526. _st(_st(self)._cacheFor_(_st(aMethod)._methodClass()))._invalidateSelector_(_st(aMethod)._selector());
  3527. return self}, function($ctx1) {$ctx1.fill(self,"invalidateCacheFor:",{aMethod:aMethod},smalltalk.HLSelectorsCache)})},
  3528. args: ["aMethod"],
  3529. source: "invalidateCacheFor: aMethod\x0a\x09(self cacheFor: aMethod methodClass)\x0a \x09invalidateSelector: aMethod selector",
  3530. messageSends: ["invalidateSelector:", "selector", "cacheFor:", "methodClass"],
  3531. referencedClasses: []
  3532. }),
  3533. smalltalk.HLSelectorsCache);
  3534. smalltalk.addMethod(
  3535. smalltalk.method({
  3536. selector: "isOverridden:",
  3537. category: 'testing',
  3538. fn: function (aMethod){
  3539. var self=this;
  3540. return smalltalk.withContext(function($ctx1) {
  3541. var $1;
  3542. $1=_st(_st(self)._cacheFor_(_st(aMethod)._methodClass()))._isOverridden_(aMethod);
  3543. return $1;
  3544. }, function($ctx1) {$ctx1.fill(self,"isOverridden:",{aMethod:aMethod},smalltalk.HLSelectorsCache)})},
  3545. args: ["aMethod"],
  3546. source: "isOverridden: aMethod\x0a\x09^ (self cacheFor: aMethod methodClass)\x0a \x09isOverridden: aMethod",
  3547. messageSends: ["isOverridden:", "cacheFor:", "methodClass"],
  3548. referencedClasses: []
  3549. }),
  3550. smalltalk.HLSelectorsCache);
  3551. smalltalk.addMethod(
  3552. smalltalk.method({
  3553. selector: "isOverride:",
  3554. category: 'testing',
  3555. fn: function (aMethod){
  3556. var self=this;
  3557. return smalltalk.withContext(function($ctx1) {
  3558. var $1;
  3559. $1=_st(_st(self)._cacheFor_(_st(aMethod)._methodClass()))._isOverride_(aMethod);
  3560. return $1;
  3561. }, function($ctx1) {$ctx1.fill(self,"isOverride:",{aMethod:aMethod},smalltalk.HLSelectorsCache)})},
  3562. args: ["aMethod"],
  3563. source: "isOverride: aMethod\x0a\x09^ (self cacheFor: aMethod methodClass)\x0a \x09isOverride: aMethod",
  3564. messageSends: ["isOverride:", "cacheFor:", "methodClass"],
  3565. referencedClasses: []
  3566. }),
  3567. smalltalk.HLSelectorsCache);
  3568. smalltalk.addMethod(
  3569. smalltalk.method({
  3570. selector: "newCacheFor:",
  3571. category: 'factory',
  3572. fn: function (aClass){
  3573. var self=this;
  3574. function $HLClassCache(){return smalltalk.HLClassCache||(typeof HLClassCache=="undefined"?nil:HLClassCache)}
  3575. return smalltalk.withContext(function($ctx1) {
  3576. var $1;
  3577. $1=_st($HLClassCache())._on_selectorsCache_(aClass,self);
  3578. return $1;
  3579. }, function($ctx1) {$ctx1.fill(self,"newCacheFor:",{aClass:aClass},smalltalk.HLSelectorsCache)})},
  3580. args: ["aClass"],
  3581. source: "newCacheFor: aClass\x0a\x09^ HLClassCache \x0a \x09on: aClass\x0a selectorsCache: self",
  3582. messageSends: ["on:selectorsCache:"],
  3583. referencedClasses: ["HLClassCache"]
  3584. }),
  3585. smalltalk.HLSelectorsCache);
  3586. smalltalk.addMethod(
  3587. smalltalk.method({
  3588. selector: "observeSystem",
  3589. category: 'actions',
  3590. fn: function (){
  3591. var self=this;
  3592. function $MethodAdded(){return smalltalk.MethodAdded||(typeof MethodAdded=="undefined"?nil:MethodAdded)}
  3593. function $SystemAnnouncer(){return smalltalk.SystemAnnouncer||(typeof SystemAnnouncer=="undefined"?nil:SystemAnnouncer)}
  3594. function $MethodRemoved(){return smalltalk.MethodRemoved||(typeof MethodRemoved=="undefined"?nil:MethodRemoved)}
  3595. return smalltalk.withContext(function($ctx1) {
  3596. var $1,$2;
  3597. $1=_st($SystemAnnouncer())._current();
  3598. _st($1)._on_send_to_($MethodAdded(),"onMethodAdded:",self);
  3599. $2=_st($1)._on_send_to_($MethodRemoved(),"onMethodRemoved:",self);
  3600. return self}, function($ctx1) {$ctx1.fill(self,"observeSystem",{},smalltalk.HLSelectorsCache)})},
  3601. args: [],
  3602. source: "observeSystem\x0a\x09SystemAnnouncer current\x0a\x09\x09on: MethodAdded\x0a\x09\x09send: #onMethodAdded:\x0a\x09\x09to: self;\x0a\x09\x09\x0a\x09\x09on: MethodRemoved\x0a send: #onMethodRemoved:\x0a\x09\x09to: self",
  3603. messageSends: ["on:send:to:", "current"],
  3604. referencedClasses: ["MethodAdded", "SystemAnnouncer", "MethodRemoved"]
  3605. }),
  3606. smalltalk.HLSelectorsCache);
  3607. smalltalk.addMethod(
  3608. smalltalk.method({
  3609. selector: "onMethodAdded:",
  3610. category: 'reactions',
  3611. fn: function (anAnnouncement){
  3612. var self=this;
  3613. return smalltalk.withContext(function($ctx1) {
  3614. _st(self)._invalidateCacheFor_(_st(anAnnouncement)._method());
  3615. return self}, function($ctx1) {$ctx1.fill(self,"onMethodAdded:",{anAnnouncement:anAnnouncement},smalltalk.HLSelectorsCache)})},
  3616. args: ["anAnnouncement"],
  3617. source: "onMethodAdded: anAnnouncement\x0a\x09self invalidateCacheFor: anAnnouncement method",
  3618. messageSends: ["invalidateCacheFor:", "method"],
  3619. referencedClasses: []
  3620. }),
  3621. smalltalk.HLSelectorsCache);
  3622. smalltalk.addMethod(
  3623. smalltalk.method({
  3624. selector: "onMethodRemoved:",
  3625. category: 'reactions',
  3626. fn: function (anAnnouncement){
  3627. var self=this;
  3628. return smalltalk.withContext(function($ctx1) {
  3629. _st(self)._invalidateCacheFor_(_st(anAnnouncement)._method());
  3630. return self}, function($ctx1) {$ctx1.fill(self,"onMethodRemoved:",{anAnnouncement:anAnnouncement},smalltalk.HLSelectorsCache)})},
  3631. args: ["anAnnouncement"],
  3632. source: "onMethodRemoved: anAnnouncement\x0a\x09self invalidateCacheFor: anAnnouncement method",
  3633. messageSends: ["invalidateCacheFor:", "method"],
  3634. referencedClasses: []
  3635. }),
  3636. smalltalk.HLSelectorsCache);
  3637. smalltalk.HLSelectorsCache.klass.iVarNames = ['current'];
  3638. smalltalk.addMethod(
  3639. smalltalk.method({
  3640. selector: "current",
  3641. category: 'accessing',
  3642. fn: function (){
  3643. var self=this;
  3644. return smalltalk.withContext(function($ctx1) {
  3645. var $2,$1;
  3646. $2=self["@current"];
  3647. if(($receiver = $2) == nil || $receiver == undefined){
  3648. self["@current"]=smalltalk.Object.klass.fn.prototype._new.apply(_st(self), []);
  3649. $1=self["@current"];
  3650. } else {
  3651. $1=$2;
  3652. };
  3653. return $1;
  3654. }, function($ctx1) {$ctx1.fill(self,"current",{},smalltalk.HLSelectorsCache.klass)})},
  3655. args: [],
  3656. source: "current\x0a\x09^ current ifNil: [ current := super new ]",
  3657. messageSends: ["ifNil:", "new"],
  3658. referencedClasses: []
  3659. }),
  3660. smalltalk.HLSelectorsCache.klass);
  3661. smalltalk.addMethod(
  3662. smalltalk.method({
  3663. selector: "flush",
  3664. category: 'accessing',
  3665. fn: function (){
  3666. var self=this;
  3667. return smalltalk.withContext(function($ctx1) {
  3668. self["@current"]=nil;
  3669. return self}, function($ctx1) {$ctx1.fill(self,"flush",{},smalltalk.HLSelectorsCache.klass)})},
  3670. args: [],
  3671. source: "flush\x0a\x09current := nil",
  3672. messageSends: [],
  3673. referencedClasses: []
  3674. }),
  3675. smalltalk.HLSelectorsCache.klass);
  3676. smalltalk.addMethod(
  3677. smalltalk.method({
  3678. selector: "new",
  3679. category: 'instance creation',
  3680. fn: function (){
  3681. var self=this;
  3682. return smalltalk.withContext(function($ctx1) {
  3683. _st(self)._shouldNotImplement();
  3684. return self}, function($ctx1) {$ctx1.fill(self,"new",{},smalltalk.HLSelectorsCache.klass)})},
  3685. args: [],
  3686. source: "new\x0a\x09self shouldNotImplement",
  3687. messageSends: ["shouldNotImplement"],
  3688. referencedClasses: []
  3689. }),
  3690. smalltalk.HLSelectorsCache.klass);