Helios-Browser.deploy.js 135 KB

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