Helios-Browser.js 147 KB

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