Helios-Browser.js 148 KB

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