1
0

Helios-Browser.js 163 KB

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