Helios-Browser.js 151 KB

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