Helios-Browser.deploy.js 104 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883
  1. smalltalk.addPackage('Helios-Browser');
  2. smalltalk.addClass('HLBrowser', smalltalk.HLWidget, ['model', 'packagesListWidget', 'classesListWidget', 'protocolsListWidget', 'methodsListWidget', 'sourceWidget', 'bottomDiv'], 'Helios-Browser');
  3. smalltalk.addMethod(
  4. smalltalk.method({
  5. selector: "canHaveFocus",
  6. fn: function (){
  7. var self=this;
  8. return smalltalk.withContext(function($ctx1) {
  9. return true;
  10. }, function($ctx1) {$ctx1.fill(self,"canHaveFocus",{},smalltalk.HLBrowser)})},
  11. messageSends: []}),
  12. smalltalk.HLBrowser);
  13. smalltalk.addMethod(
  14. smalltalk.method({
  15. selector: "classesListWidget",
  16. fn: function (){
  17. var self=this;
  18. function $HLClassesListWidget(){return smalltalk.HLClassesListWidget||(typeof HLClassesListWidget=="undefined"?nil:HLClassesListWidget)}
  19. return smalltalk.withContext(function($ctx1) {
  20. var $2,$1;
  21. $2=self["@classesListWidget"];
  22. if(($receiver = $2) == nil || $receiver == undefined){
  23. self["@classesListWidget"]=_st($HLClassesListWidget())._on_(_st(self)._model());
  24. self["@classesListWidget"];
  25. $1=_st(self["@classesListWidget"])._next_(_st(self)._protocolsListWidget());
  26. } else {
  27. $1=$2;
  28. };
  29. return $1;
  30. }, function($ctx1) {$ctx1.fill(self,"classesListWidget",{},smalltalk.HLBrowser)})},
  31. messageSends: ["ifNil:", "on:", "model", "next:", "protocolsListWidget"]}),
  32. smalltalk.HLBrowser);
  33. smalltalk.addMethod(
  34. smalltalk.method({
  35. selector: "environment",
  36. fn: function (){
  37. var self=this;
  38. return smalltalk.withContext(function($ctx1) {
  39. var $1;
  40. $1=_st(_st(self)._model())._environment();
  41. return $1;
  42. }, function($ctx1) {$ctx1.fill(self,"environment",{},smalltalk.HLBrowser)})},
  43. messageSends: ["environment", "model"]}),
  44. smalltalk.HLBrowser);
  45. smalltalk.addMethod(
  46. smalltalk.method({
  47. selector: "focus",
  48. fn: function (){
  49. var self=this;
  50. return smalltalk.withContext(function($ctx1) {
  51. var $1;
  52. $1=_st(_st(self)._packagesListWidget())._focus();
  53. return $1;
  54. }, function($ctx1) {$ctx1.fill(self,"focus",{},smalltalk.HLBrowser)})},
  55. messageSends: ["focus", "packagesListWidget"]}),
  56. smalltalk.HLBrowser);
  57. smalltalk.addMethod(
  58. smalltalk.method({
  59. selector: "methodsListWidget",
  60. fn: function (){
  61. var self=this;
  62. function $HLMethodsListWidget(){return smalltalk.HLMethodsListWidget||(typeof HLMethodsListWidget=="undefined"?nil:HLMethodsListWidget)}
  63. return smalltalk.withContext(function($ctx1) {
  64. var $2,$1;
  65. $2=self["@methodsListWidget"];
  66. if(($receiver = $2) == nil || $receiver == undefined){
  67. self["@methodsListWidget"]=_st($HLMethodsListWidget())._on_(_st(self)._model());
  68. self["@methodsListWidget"];
  69. $1=_st(self["@methodsListWidget"])._next_(_st(self)._sourceWidget());
  70. } else {
  71. $1=$2;
  72. };
  73. return $1;
  74. }, function($ctx1) {$ctx1.fill(self,"methodsListWidget",{},smalltalk.HLBrowser)})},
  75. messageSends: ["ifNil:", "on:", "model", "next:", "sourceWidget"]}),
  76. smalltalk.HLBrowser);
  77. smalltalk.addMethod(
  78. smalltalk.method({
  79. selector: "model",
  80. fn: function (){
  81. var self=this;
  82. function $HLBrowserModel(){return smalltalk.HLBrowserModel||(typeof HLBrowserModel=="undefined"?nil:HLBrowserModel)}
  83. return smalltalk.withContext(function($ctx1) {
  84. var $2,$1;
  85. $2=self["@model"];
  86. if(($receiver = $2) == nil || $receiver == undefined){
  87. self["@model"]=_st($HLBrowserModel())._new();
  88. $1=self["@model"];
  89. } else {
  90. $1=$2;
  91. };
  92. return $1;
  93. }, function($ctx1) {$ctx1.fill(self,"model",{},smalltalk.HLBrowser)})},
  94. messageSends: ["ifNil:", "new"]}),
  95. smalltalk.HLBrowser);
  96. smalltalk.addMethod(
  97. smalltalk.method({
  98. selector: "model:",
  99. fn: function (aModel){
  100. var self=this;
  101. return smalltalk.withContext(function($ctx1) {
  102. self["@model"]=aModel;
  103. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel},smalltalk.HLBrowser)})},
  104. messageSends: []}),
  105. smalltalk.HLBrowser);
  106. smalltalk.addMethod(
  107. smalltalk.method({
  108. selector: "packagesListWidget",
  109. fn: function (){
  110. var self=this;
  111. function $HLPackagesListWidget(){return smalltalk.HLPackagesListWidget||(typeof HLPackagesListWidget=="undefined"?nil:HLPackagesListWidget)}
  112. return smalltalk.withContext(function($ctx1) {
  113. var $2,$1;
  114. $2=self["@packagesListWidget"];
  115. if(($receiver = $2) == nil || $receiver == undefined){
  116. self["@packagesListWidget"]=_st($HLPackagesListWidget())._on_(_st(self)._model());
  117. self["@packagesListWidget"];
  118. $1=_st(self["@packagesListWidget"])._next_(_st(self)._classesListWidget());
  119. } else {
  120. $1=$2;
  121. };
  122. return $1;
  123. }, function($ctx1) {$ctx1.fill(self,"packagesListWidget",{},smalltalk.HLBrowser)})},
  124. messageSends: ["ifNil:", "on:", "model", "next:", "classesListWidget"]}),
  125. smalltalk.HLBrowser);
  126. smalltalk.addMethod(
  127. smalltalk.method({
  128. selector: "protocolsListWidget",
  129. fn: function (){
  130. var self=this;
  131. function $HLProtocolsListWidget(){return smalltalk.HLProtocolsListWidget||(typeof HLProtocolsListWidget=="undefined"?nil:HLProtocolsListWidget)}
  132. return smalltalk.withContext(function($ctx1) {
  133. var $2,$1;
  134. $2=self["@protocolsListWidget"];
  135. if(($receiver = $2) == nil || $receiver == undefined){
  136. self["@protocolsListWidget"]=_st($HLProtocolsListWidget())._on_(_st(self)._model());
  137. self["@protocolsListWidget"];
  138. $1=_st(self["@protocolsListWidget"])._next_(_st(self)._methodsListWidget());
  139. } else {
  140. $1=$2;
  141. };
  142. return $1;
  143. }, function($ctx1) {$ctx1.fill(self,"protocolsListWidget",{},smalltalk.HLBrowser)})},
  144. messageSends: ["ifNil:", "on:", "model", "next:", "methodsListWidget"]}),
  145. smalltalk.HLBrowser);
  146. smalltalk.addMethod(
  147. smalltalk.method({
  148. selector: "registerBindingsOn:",
  149. fn: function (aBindingGroup){
  150. var self=this;
  151. function $HLToolCommand(){return smalltalk.HLToolCommand||(typeof HLToolCommand=="undefined"?nil:HLToolCommand)}
  152. return smalltalk.withContext(function($ctx1) {
  153. _st($HLToolCommand())._registerConcreteClassesOn_for_(aBindingGroup,_st(self)._model());
  154. return self}, function($ctx1) {$ctx1.fill(self,"registerBindingsOn:",{aBindingGroup:aBindingGroup},smalltalk.HLBrowser)})},
  155. messageSends: ["registerConcreteClassesOn:for:", "model"]}),
  156. smalltalk.HLBrowser);
  157. smalltalk.addMethod(
  158. smalltalk.method({
  159. selector: "renderContentOn:",
  160. fn: function (html){
  161. var self=this;
  162. function $HLVerticalSplitter(){return smalltalk.HLVerticalSplitter||(typeof HLVerticalSplitter=="undefined"?nil:HLVerticalSplitter)}
  163. function $HLHorizontalSplitter(){return smalltalk.HLHorizontalSplitter||(typeof HLHorizontalSplitter=="undefined"?nil:HLHorizontalSplitter)}
  164. function $HLContainer(){return smalltalk.HLContainer||(typeof HLContainer=="undefined"?nil:HLContainer)}
  165. return smalltalk.withContext(function($ctx1) {
  166. _st(html)._with_(_st($HLContainer())._with_(_st($HLHorizontalSplitter())._with_with_(_st($HLVerticalSplitter())._with_with_(_st($HLVerticalSplitter())._with_with_(_st(self)._packagesListWidget(),_st(self)._classesListWidget()),_st($HLVerticalSplitter())._with_with_(_st(self)._protocolsListWidget(),_st(self)._methodsListWidget())),_st(self)._sourceWidget())));
  167. _st(_st(self)._packagesListWidget())._focus();
  168. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLBrowser)})},
  169. messageSends: ["with:", "with:with:", "packagesListWidget", "classesListWidget", "protocolsListWidget", "methodsListWidget", "sourceWidget", "focus"]}),
  170. smalltalk.HLBrowser);
  171. smalltalk.addMethod(
  172. smalltalk.method({
  173. selector: "sourceWidget",
  174. fn: function (){
  175. var self=this;
  176. function $HLBrowserBottomWidget(){return smalltalk.HLBrowserBottomWidget||(typeof HLBrowserBottomWidget=="undefined"?nil:HLBrowserBottomWidget)}
  177. return smalltalk.withContext(function($ctx1) {
  178. var $2,$3,$4,$1;
  179. $2=self["@sourceWidget"];
  180. if(($receiver = $2) == nil || $receiver == undefined){
  181. $3=_st($HLBrowserBottomWidget())._new();
  182. _st($3)._model_(_st(self)._model());
  183. $4=_st($3)._yourself();
  184. self["@sourceWidget"]=$4;
  185. $1=self["@sourceWidget"];
  186. } else {
  187. $1=$2;
  188. };
  189. return $1;
  190. }, function($ctx1) {$ctx1.fill(self,"sourceWidget",{},smalltalk.HLBrowser)})},
  191. messageSends: ["ifNil:", "model:", "model", "new", "yourself"]}),
  192. smalltalk.HLBrowser);
  193. smalltalk.addMethod(
  194. smalltalk.method({
  195. selector: "unregister",
  196. fn: function (){
  197. var self=this;
  198. return smalltalk.withContext(function($ctx1) {
  199. smalltalk.HLWidget.fn.prototype._unregister.apply(_st(self), []);
  200. _st([_st(self)._packagesListWidget(),_st(self)._classesListWidget(),_st(self)._protocolsListWidget(),_st(self)._methodsListWidget(),_st(self)._sourceWidget()])._do_((function(each){
  201. return smalltalk.withContext(function($ctx2) {
  202. return _st(each)._unregister();
  203. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  204. return self}, function($ctx1) {$ctx1.fill(self,"unregister",{},smalltalk.HLBrowser)})},
  205. messageSends: ["unregister", "do:", "packagesListWidget", "classesListWidget", "protocolsListWidget", "methodsListWidget", "sourceWidget"]}),
  206. smalltalk.HLBrowser);
  207. smalltalk.HLBrowser.klass.iVarNames = ['nextId'];
  208. smalltalk.addMethod(
  209. smalltalk.method({
  210. selector: "canBeOpenAsTab",
  211. fn: function (){
  212. var self=this;
  213. return smalltalk.withContext(function($ctx1) {
  214. return true;
  215. }, function($ctx1) {$ctx1.fill(self,"canBeOpenAsTab",{},smalltalk.HLBrowser.klass)})},
  216. messageSends: []}),
  217. smalltalk.HLBrowser.klass);
  218. smalltalk.addMethod(
  219. smalltalk.method({
  220. selector: "nextId",
  221. fn: function (){
  222. var self=this;
  223. return smalltalk.withContext(function($ctx1) {
  224. var $1,$2;
  225. $1=self["@nextId"];
  226. if(($receiver = $1) == nil || $receiver == undefined){
  227. self["@nextId"]=(0);
  228. self["@nextId"];
  229. } else {
  230. $1;
  231. };
  232. $2=_st("browser_").__comma(_st(_st(self["@nextId"]).__plus((1)))._asString());
  233. return $2;
  234. }, function($ctx1) {$ctx1.fill(self,"nextId",{},smalltalk.HLBrowser.klass)})},
  235. messageSends: ["ifNil:", ",", "asString", "+"]}),
  236. smalltalk.HLBrowser.klass);
  237. smalltalk.addMethod(
  238. smalltalk.method({
  239. selector: "tabLabel",
  240. fn: function (){
  241. var self=this;
  242. return smalltalk.withContext(function($ctx1) {
  243. return "Browser";
  244. }, function($ctx1) {$ctx1.fill(self,"tabLabel",{},smalltalk.HLBrowser.klass)})},
  245. messageSends: []}),
  246. smalltalk.HLBrowser.klass);
  247. smalltalk.addMethod(
  248. smalltalk.method({
  249. selector: "tabPriority",
  250. fn: function (){
  251. var self=this;
  252. return smalltalk.withContext(function($ctx1) {
  253. var $1;
  254. $1=(0);
  255. return $1;
  256. }, function($ctx1) {$ctx1.fill(self,"tabPriority",{},smalltalk.HLBrowser.klass)})},
  257. messageSends: []}),
  258. smalltalk.HLBrowser.klass);
  259. smalltalk.addClass('HLBrowserBottomWidget', smalltalk.HLWidget, ['model', 'codeWidget', 'documentationWidget', 'selectedWidget'], 'Helios-Browser');
  260. smalltalk.addMethod(
  261. smalltalk.method({
  262. selector: "canHaveFocus",
  263. fn: function (){
  264. var self=this;
  265. return smalltalk.withContext(function($ctx1) {
  266. return true;
  267. }, function($ctx1) {$ctx1.fill(self,"canHaveFocus",{},smalltalk.HLBrowserBottomWidget)})},
  268. messageSends: []}),
  269. smalltalk.HLBrowserBottomWidget);
  270. smalltalk.addMethod(
  271. smalltalk.method({
  272. selector: "codeWidget",
  273. fn: function (){
  274. var self=this;
  275. function $HLBrowserCodeWidget(){return smalltalk.HLBrowserCodeWidget||(typeof HLBrowserCodeWidget=="undefined"?nil:HLBrowserCodeWidget)}
  276. return smalltalk.withContext(function($ctx1) {
  277. var $2,$3,$4,$1;
  278. $2=self["@codeWidget"];
  279. if(($receiver = $2) == nil || $receiver == undefined){
  280. $3=_st($HLBrowserCodeWidget())._new();
  281. _st($3)._browserModel_(_st(self)._model());
  282. $4=_st($3)._yourself();
  283. self["@codeWidget"]=$4;
  284. $1=self["@codeWidget"];
  285. } else {
  286. $1=$2;
  287. };
  288. return $1;
  289. }, function($ctx1) {$ctx1.fill(self,"codeWidget",{},smalltalk.HLBrowserBottomWidget)})},
  290. messageSends: ["ifNil:", "browserModel:", "model", "new", "yourself"]}),
  291. smalltalk.HLBrowserBottomWidget);
  292. smalltalk.addMethod(
  293. smalltalk.method({
  294. selector: "documentationWidget",
  295. fn: function (){
  296. var self=this;
  297. function $HLDocumentationWidget(){return smalltalk.HLDocumentationWidget||(typeof HLDocumentationWidget=="undefined"?nil:HLDocumentationWidget)}
  298. return smalltalk.withContext(function($ctx1) {
  299. var $2,$3,$4,$1;
  300. $2=self["@documentationWidget"];
  301. if(($receiver = $2) == nil || $receiver == undefined){
  302. $3=_st($HLDocumentationWidget())._new();
  303. _st($3)._model_(_st(self)._model());
  304. $4=_st($3)._yourself();
  305. self["@documentationWidget"]=$4;
  306. $1=self["@documentationWidget"];
  307. } else {
  308. $1=$2;
  309. };
  310. return $1;
  311. }, function($ctx1) {$ctx1.fill(self,"documentationWidget",{},smalltalk.HLBrowserBottomWidget)})},
  312. messageSends: ["ifNil:", "model:", "model", "new", "yourself"]}),
  313. smalltalk.HLBrowserBottomWidget);
  314. smalltalk.addMethod(
  315. smalltalk.method({
  316. selector: "focus",
  317. fn: function (){
  318. var self=this;
  319. return smalltalk.withContext(function($ctx1) {
  320. _st(_st(self)._selectedWidget())._focus();
  321. return self}, function($ctx1) {$ctx1.fill(self,"focus",{},smalltalk.HLBrowserBottomWidget)})},
  322. messageSends: ["focus", "selectedWidget"]}),
  323. smalltalk.HLBrowserBottomWidget);
  324. smalltalk.addMethod(
  325. smalltalk.method({
  326. selector: "model",
  327. fn: function (){
  328. var self=this;
  329. return smalltalk.withContext(function($ctx1) {
  330. var $1;
  331. $1=self["@model"];
  332. return $1;
  333. }, function($ctx1) {$ctx1.fill(self,"model",{},smalltalk.HLBrowserBottomWidget)})},
  334. messageSends: []}),
  335. smalltalk.HLBrowserBottomWidget);
  336. smalltalk.addMethod(
  337. smalltalk.method({
  338. selector: "model:",
  339. fn: function (aModel){
  340. var self=this;
  341. return smalltalk.withContext(function($ctx1) {
  342. self["@model"]=aModel;
  343. _st(self)._observeModel();
  344. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel},smalltalk.HLBrowserBottomWidget)})},
  345. messageSends: ["observeModel"]}),
  346. smalltalk.HLBrowserBottomWidget);
  347. smalltalk.addMethod(
  348. smalltalk.method({
  349. selector: "observeModel",
  350. fn: function (){
  351. var self=this;
  352. function $HLShowInstanceToggled(){return smalltalk.HLShowInstanceToggled||(typeof HLShowInstanceToggled=="undefined"?nil:HLShowInstanceToggled)}
  353. function $HLShowCommentToggled(){return smalltalk.HLShowCommentToggled||(typeof HLShowCommentToggled=="undefined"?nil:HLShowCommentToggled)}
  354. return smalltalk.withContext(function($ctx1) {
  355. var $1,$2;
  356. $1=_st(_st(self)._model())._announcer();
  357. _st($1)._on_send_to_($HLShowInstanceToggled(),"onShowInstanceToggled",self);
  358. $2=_st($1)._on_send_to_($HLShowCommentToggled(),"onShowCommentToggled",self);
  359. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{},smalltalk.HLBrowserBottomWidget)})},
  360. messageSends: ["on:send:to:", "announcer", "model"]}),
  361. smalltalk.HLBrowserBottomWidget);
  362. smalltalk.addMethod(
  363. smalltalk.method({
  364. selector: "onShowCommentToggled",
  365. fn: function (){
  366. var self=this;
  367. return smalltalk.withContext(function($ctx1) {
  368. _st(self)._selectWidget_(_st(self)._documentationWidget());
  369. return self}, function($ctx1) {$ctx1.fill(self,"onShowCommentToggled",{},smalltalk.HLBrowserBottomWidget)})},
  370. messageSends: ["selectWidget:", "documentationWidget"]}),
  371. smalltalk.HLBrowserBottomWidget);
  372. smalltalk.addMethod(
  373. smalltalk.method({
  374. selector: "onShowInstanceToggled",
  375. fn: function (){
  376. var self=this;
  377. return smalltalk.withContext(function($ctx1) {
  378. _st(self)._selectWidget_(_st(self)._codeWidget());
  379. return self}, function($ctx1) {$ctx1.fill(self,"onShowInstanceToggled",{},smalltalk.HLBrowserBottomWidget)})},
  380. messageSends: ["selectWidget:", "codeWidget"]}),
  381. smalltalk.HLBrowserBottomWidget);
  382. smalltalk.addMethod(
  383. smalltalk.method({
  384. selector: "previous",
  385. fn: function (){
  386. var self=this;
  387. return smalltalk.withContext(function($ctx1) {
  388. return self}, function($ctx1) {$ctx1.fill(self,"previous",{},smalltalk.HLBrowserBottomWidget)})},
  389. messageSends: []}),
  390. smalltalk.HLBrowserBottomWidget);
  391. smalltalk.addMethod(
  392. smalltalk.method({
  393. selector: "previous:",
  394. fn: function (aWidget){
  395. var self=this;
  396. return smalltalk.withContext(function($ctx1) {
  397. return self}, function($ctx1) {$ctx1.fill(self,"previous:",{aWidget:aWidget},smalltalk.HLBrowserBottomWidget)})},
  398. messageSends: []}),
  399. smalltalk.HLBrowserBottomWidget);
  400. smalltalk.addMethod(
  401. smalltalk.method({
  402. selector: "renderContentOn:",
  403. fn: function (html){
  404. var self=this;
  405. return smalltalk.withContext(function($ctx1) {
  406. _st(html)._with_(_st(self)._selectedWidget());
  407. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLBrowserBottomWidget)})},
  408. messageSends: ["with:", "selectedWidget"]}),
  409. smalltalk.HLBrowserBottomWidget);
  410. smalltalk.addMethod(
  411. smalltalk.method({
  412. selector: "selectWidget:",
  413. fn: function (aWidget){
  414. var self=this;
  415. return smalltalk.withContext(function($ctx1) {
  416. self["@selectedWidget"]=aWidget;
  417. _st(self)._refresh();
  418. return self}, function($ctx1) {$ctx1.fill(self,"selectWidget:",{aWidget:aWidget},smalltalk.HLBrowserBottomWidget)})},
  419. messageSends: ["refresh"]}),
  420. smalltalk.HLBrowserBottomWidget);
  421. smalltalk.addMethod(
  422. smalltalk.method({
  423. selector: "selectedWidget",
  424. fn: function (){
  425. var self=this;
  426. return smalltalk.withContext(function($ctx1) {
  427. var $2,$1;
  428. $2=self["@selectedWidget"];
  429. if(($receiver = $2) == nil || $receiver == undefined){
  430. self["@selectedWidget"]=_st(self)._codeWidget();
  431. $1=self["@selectedWidget"];
  432. } else {
  433. $1=$2;
  434. };
  435. return $1;
  436. }, function($ctx1) {$ctx1.fill(self,"selectedWidget",{},smalltalk.HLBrowserBottomWidget)})},
  437. messageSends: ["ifNil:", "codeWidget"]}),
  438. smalltalk.HLBrowserBottomWidget);
  439. smalltalk.addClass('HLBrowserModel', smalltalk.HLToolModel, ['showInstance', 'showComment'], 'Helios-Browser');
  440. smalltalk.addMethod(
  441. smalltalk.method({
  442. selector: "focusOnClasses",
  443. fn: function (){
  444. var self=this;
  445. function $HLClassesFocusRequested(){return smalltalk.HLClassesFocusRequested||(typeof HLClassesFocusRequested=="undefined"?nil:HLClassesFocusRequested)}
  446. return smalltalk.withContext(function($ctx1) {
  447. _st(_st(self)._announcer())._announce_(_st($HLClassesFocusRequested())._new());
  448. return self}, function($ctx1) {$ctx1.fill(self,"focusOnClasses",{},smalltalk.HLBrowserModel)})},
  449. messageSends: ["announce:", "new", "announcer"]}),
  450. smalltalk.HLBrowserModel);
  451. smalltalk.addMethod(
  452. smalltalk.method({
  453. selector: "focusOnMethods",
  454. fn: function (){
  455. var self=this;
  456. function $HLMethodsFocusRequested(){return smalltalk.HLMethodsFocusRequested||(typeof HLMethodsFocusRequested=="undefined"?nil:HLMethodsFocusRequested)}
  457. return smalltalk.withContext(function($ctx1) {
  458. _st(_st(self)._announcer())._announce_(_st($HLMethodsFocusRequested())._new());
  459. return self}, function($ctx1) {$ctx1.fill(self,"focusOnMethods",{},smalltalk.HLBrowserModel)})},
  460. messageSends: ["announce:", "new", "announcer"]}),
  461. smalltalk.HLBrowserModel);
  462. smalltalk.addMethod(
  463. smalltalk.method({
  464. selector: "focusOnPackages",
  465. fn: function (){
  466. var self=this;
  467. function $HLPackagesFocusRequested(){return smalltalk.HLPackagesFocusRequested||(typeof HLPackagesFocusRequested=="undefined"?nil:HLPackagesFocusRequested)}
  468. return smalltalk.withContext(function($ctx1) {
  469. _st(_st(self)._announcer())._announce_(_st($HLPackagesFocusRequested())._new());
  470. return self}, function($ctx1) {$ctx1.fill(self,"focusOnPackages",{},smalltalk.HLBrowserModel)})},
  471. messageSends: ["announce:", "new", "announcer"]}),
  472. smalltalk.HLBrowserModel);
  473. smalltalk.addMethod(
  474. smalltalk.method({
  475. selector: "focusOnProtocols",
  476. fn: function (){
  477. var self=this;
  478. function $HLProtocolsFocusRequested(){return smalltalk.HLProtocolsFocusRequested||(typeof HLProtocolsFocusRequested=="undefined"?nil:HLProtocolsFocusRequested)}
  479. return smalltalk.withContext(function($ctx1) {
  480. _st(_st(self)._announcer())._announce_(_st($HLProtocolsFocusRequested())._new());
  481. return self}, function($ctx1) {$ctx1.fill(self,"focusOnProtocols",{},smalltalk.HLBrowserModel)})},
  482. messageSends: ["announce:", "new", "announcer"]}),
  483. smalltalk.HLBrowserModel);
  484. smalltalk.addMethod(
  485. smalltalk.method({
  486. selector: "focusOnSourceCode",
  487. fn: function (){
  488. var self=this;
  489. function $HLSourceCodeFocusRequested(){return smalltalk.HLSourceCodeFocusRequested||(typeof HLSourceCodeFocusRequested=="undefined"?nil:HLSourceCodeFocusRequested)}
  490. return smalltalk.withContext(function($ctx1) {
  491. _st(_st(self)._announcer())._announce_(_st($HLSourceCodeFocusRequested())._new());
  492. return self}, function($ctx1) {$ctx1.fill(self,"focusOnSourceCode",{},smalltalk.HLBrowserModel)})},
  493. messageSends: ["announce:", "new", "announcer"]}),
  494. smalltalk.HLBrowserModel);
  495. smalltalk.addMethod(
  496. smalltalk.method({
  497. selector: "isBrowserModel",
  498. fn: function (){
  499. var self=this;
  500. return smalltalk.withContext(function($ctx1) {
  501. return true;
  502. }, function($ctx1) {$ctx1.fill(self,"isBrowserModel",{},smalltalk.HLBrowserModel)})},
  503. messageSends: []}),
  504. smalltalk.HLBrowserModel);
  505. smalltalk.addMethod(
  506. smalltalk.method({
  507. selector: "showComment",
  508. fn: function (){
  509. var self=this;
  510. return smalltalk.withContext(function($ctx1) {
  511. var $2,$1;
  512. $2=self["@showComment"];
  513. if(($receiver = $2) == nil || $receiver == undefined){
  514. $1=false;
  515. } else {
  516. $1=$2;
  517. };
  518. return $1;
  519. }, function($ctx1) {$ctx1.fill(self,"showComment",{},smalltalk.HLBrowserModel)})},
  520. messageSends: ["ifNil:"]}),
  521. smalltalk.HLBrowserModel);
  522. smalltalk.addMethod(
  523. smalltalk.method({
  524. selector: "showComment:",
  525. fn: function (aBoolean){
  526. var self=this;
  527. function $HLShowCommentToggled(){return smalltalk.HLShowCommentToggled||(typeof HLShowCommentToggled=="undefined"?nil:HLShowCommentToggled)}
  528. return smalltalk.withContext(function($ctx1) {
  529. _st(self)._withChangesDo_((function(){
  530. return smalltalk.withContext(function($ctx2) {
  531. self["@showComment"]=aBoolean;
  532. self["@showComment"];
  533. return _st(_st(self)._announcer())._announce_(_st($HLShowCommentToggled())._new());
  534. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  535. return self}, function($ctx1) {$ctx1.fill(self,"showComment:",{aBoolean:aBoolean},smalltalk.HLBrowserModel)})},
  536. messageSends: ["withChangesDo:", "announce:", "new", "announcer"]}),
  537. smalltalk.HLBrowserModel);
  538. smalltalk.addMethod(
  539. smalltalk.method({
  540. selector: "showInstance",
  541. fn: function (){
  542. var self=this;
  543. return smalltalk.withContext(function($ctx1) {
  544. var $2,$1;
  545. $2=self["@showInstance"];
  546. if(($receiver = $2) == nil || $receiver == undefined){
  547. $1=true;
  548. } else {
  549. $1=$2;
  550. };
  551. return $1;
  552. }, function($ctx1) {$ctx1.fill(self,"showInstance",{},smalltalk.HLBrowserModel)})},
  553. messageSends: ["ifNil:"]}),
  554. smalltalk.HLBrowserModel);
  555. smalltalk.addMethod(
  556. smalltalk.method({
  557. selector: "showInstance:",
  558. fn: function (aBoolean){
  559. var self=this;
  560. function $HLShowInstanceToggled(){return smalltalk.HLShowInstanceToggled||(typeof HLShowInstanceToggled=="undefined"?nil:HLShowInstanceToggled)}
  561. return smalltalk.withContext(function($ctx1) {
  562. var $1,$2,$4,$3;
  563. _st(self)._withChangesDo_((function(){
  564. return smalltalk.withContext(function($ctx2) {
  565. self["@showInstance"]=aBoolean;
  566. self["@showInstance"];
  567. self["@showComment"]=false;
  568. self["@showComment"];
  569. $1=_st(self)._selectedClass();
  570. if(($receiver = $1) == nil || $receiver == undefined){
  571. $1;
  572. } else {
  573. $2=self;
  574. $4=aBoolean;
  575. if(smalltalk.assert($4)){
  576. $3=_st(_st(self)._selectedClass())._theNonMetaClass();
  577. } else {
  578. $3=_st(_st(self)._selectedClass())._theMetaClass();
  579. };
  580. _st($2)._selectedClass_($3);
  581. };
  582. return _st(_st(self)._announcer())._announce_(_st($HLShowInstanceToggled())._new());
  583. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  584. return self}, function($ctx1) {$ctx1.fill(self,"showInstance:",{aBoolean:aBoolean},smalltalk.HLBrowserModel)})},
  585. messageSends: ["withChangesDo:", "ifNotNil:", "selectedClass:", "ifTrue:ifFalse:", "theNonMetaClass", "selectedClass", "theMetaClass", "announce:", "new", "announcer"]}),
  586. smalltalk.HLBrowserModel);
  587. smalltalk.addMethod(
  588. smalltalk.method({
  589. selector: "on:",
  590. fn: function (anEnvironment){
  591. var self=this;
  592. return smalltalk.withContext(function($ctx1) {
  593. var $2,$3,$1;
  594. $2=_st(self)._new();
  595. _st($2)._environment_(anEnvironment);
  596. $3=_st($2)._yourself();
  597. $1=$3;
  598. return $1;
  599. }, function($ctx1) {$ctx1.fill(self,"on:",{anEnvironment:anEnvironment},smalltalk.HLBrowserModel.klass)})},
  600. messageSends: ["environment:", "new", "yourself"]}),
  601. smalltalk.HLBrowserModel.klass);
  602. smalltalk.addClass('HLClassCache', smalltalk.Object, ['class', 'selectorsCache', 'overrideCache', 'overriddenCache'], 'Helios-Browser');
  603. smalltalk.addMethod(
  604. smalltalk.method({
  605. selector: "invalidateChildrenSelector:",
  606. fn: function (aSelector){
  607. var self=this;
  608. return smalltalk.withContext(function($ctx1) {
  609. var $1,$2;
  610. _st(_st(_st(self)._theClass())._subclasses())._do_((function(each){
  611. return smalltalk.withContext(function($ctx2) {
  612. $1=_st(_st(self)._selectorsCache())._cacheFor_(each);
  613. _st($1)._removeSelector_(aSelector);
  614. $2=_st($1)._invalidateChildrenSelector_(aSelector);
  615. return $2;
  616. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  617. return self}, function($ctx1) {$ctx1.fill(self,"invalidateChildrenSelector:",{aSelector:aSelector},smalltalk.HLClassCache)})},
  618. messageSends: ["do:", "removeSelector:", "cacheFor:", "selectorsCache", "invalidateChildrenSelector:", "subclasses", "theClass"]}),
  619. smalltalk.HLClassCache);
  620. smalltalk.addMethod(
  621. smalltalk.method({
  622. selector: "invalidateParentSelector:",
  623. fn: function (aSelector){
  624. var self=this;
  625. return smalltalk.withContext(function($ctx1) {
  626. var $1,$2,$3;
  627. $1=_st(_st(self)._theClass())._superclass();
  628. if(($receiver = $1) == nil || $receiver == undefined){
  629. $1;
  630. } else {
  631. $2=_st(_st(self)._selectorsCache())._cacheFor_(_st(_st(self)._theClass())._superclass());
  632. _st($2)._removeSelector_(aSelector);
  633. $3=_st($2)._invalidateParentSelector_(aSelector);
  634. $3;
  635. };
  636. return self}, function($ctx1) {$ctx1.fill(self,"invalidateParentSelector:",{aSelector:aSelector},smalltalk.HLClassCache)})},
  637. messageSends: ["ifNotNil:", "removeSelector:", "cacheFor:", "superclass", "theClass", "selectorsCache", "invalidateParentSelector:"]}),
  638. smalltalk.HLClassCache);
  639. smalltalk.addMethod(
  640. smalltalk.method({
  641. selector: "invalidateSelector:",
  642. fn: function (aSelector){
  643. var self=this;
  644. return smalltalk.withContext(function($ctx1) {
  645. var $1,$2;
  646. $1=self;
  647. _st($1)._invalidateParentSelector_(aSelector);
  648. _st($1)._invalidateChildrenSelector_(aSelector);
  649. $2=_st($1)._removeSelector_(aSelector);
  650. return self}, function($ctx1) {$ctx1.fill(self,"invalidateSelector:",{aSelector:aSelector},smalltalk.HLClassCache)})},
  651. messageSends: ["invalidateParentSelector:", "invalidateChildrenSelector:", "removeSelector:"]}),
  652. smalltalk.HLClassCache);
  653. smalltalk.addMethod(
  654. smalltalk.method({
  655. selector: "isOverridden:",
  656. fn: function (aMethod){
  657. var self=this;
  658. return smalltalk.withContext(function($ctx1) {
  659. var $1;
  660. $1=_st(_st(self)._overriddenCache())._at_ifAbsentPut_(_st(aMethod)._selector(),(function(){
  661. return smalltalk.withContext(function($ctx2) {
  662. return _st(aMethod)._isOverridden();
  663. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  664. return $1;
  665. }, function($ctx1) {$ctx1.fill(self,"isOverridden:",{aMethod:aMethod},smalltalk.HLClassCache)})},
  666. messageSends: ["at:ifAbsentPut:", "selector", "isOverridden", "overriddenCache"]}),
  667. smalltalk.HLClassCache);
  668. smalltalk.addMethod(
  669. smalltalk.method({
  670. selector: "isOverride:",
  671. fn: function (aMethod){
  672. var self=this;
  673. return smalltalk.withContext(function($ctx1) {
  674. var $1;
  675. $1=_st(_st(self)._overrideCache())._at_ifAbsentPut_(_st(aMethod)._selector(),(function(){
  676. return smalltalk.withContext(function($ctx2) {
  677. return _st(aMethod)._isOverride();
  678. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  679. return $1;
  680. }, function($ctx1) {$ctx1.fill(self,"isOverride:",{aMethod:aMethod},smalltalk.HLClassCache)})},
  681. messageSends: ["at:ifAbsentPut:", "selector", "isOverride", "overrideCache"]}),
  682. smalltalk.HLClassCache);
  683. smalltalk.addMethod(
  684. smalltalk.method({
  685. selector: "overriddenCache",
  686. fn: function (){
  687. var self=this;
  688. function $HashedCollection(){return smalltalk.HashedCollection||(typeof HashedCollection=="undefined"?nil:HashedCollection)}
  689. return smalltalk.withContext(function($ctx1) {
  690. var $2,$1;
  691. $2=self["@overriddenCache"];
  692. if(($receiver = $2) == nil || $receiver == undefined){
  693. self["@overriddenCache"]=_st($HashedCollection())._new();
  694. $1=self["@overriddenCache"];
  695. } else {
  696. $1=$2;
  697. };
  698. return $1;
  699. }, function($ctx1) {$ctx1.fill(self,"overriddenCache",{},smalltalk.HLClassCache)})},
  700. messageSends: ["ifNil:", "new"]}),
  701. smalltalk.HLClassCache);
  702. smalltalk.addMethod(
  703. smalltalk.method({
  704. selector: "overrideCache",
  705. fn: function (){
  706. var self=this;
  707. function $HashedCollection(){return smalltalk.HashedCollection||(typeof HashedCollection=="undefined"?nil:HashedCollection)}
  708. return smalltalk.withContext(function($ctx1) {
  709. var $2,$1;
  710. $2=self["@overrideCache"];
  711. if(($receiver = $2) == nil || $receiver == undefined){
  712. self["@overrideCache"]=_st($HashedCollection())._new();
  713. $1=self["@overrideCache"];
  714. } else {
  715. $1=$2;
  716. };
  717. return $1;
  718. }, function($ctx1) {$ctx1.fill(self,"overrideCache",{},smalltalk.HLClassCache)})},
  719. messageSends: ["ifNil:", "new"]}),
  720. smalltalk.HLClassCache);
  721. smalltalk.addMethod(
  722. smalltalk.method({
  723. selector: "removeSelector:",
  724. fn: function (aSelector){
  725. var self=this;
  726. return smalltalk.withContext(function($ctx1) {
  727. _st(_st(self)._overriddenCache())._removeKey_ifAbsent_(aSelector,(function(){
  728. return smalltalk.withContext(function($ctx2) {
  729. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  730. _st(_st(self)._overrideCache())._removeKey_ifAbsent_(aSelector,(function(){
  731. return smalltalk.withContext(function($ctx2) {
  732. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  733. return self}, function($ctx1) {$ctx1.fill(self,"removeSelector:",{aSelector:aSelector},smalltalk.HLClassCache)})},
  734. messageSends: ["removeKey:ifAbsent:", "overriddenCache", "overrideCache"]}),
  735. smalltalk.HLClassCache);
  736. smalltalk.addMethod(
  737. smalltalk.method({
  738. selector: "selectorsCache",
  739. fn: function (){
  740. var self=this;
  741. return smalltalk.withContext(function($ctx1) {
  742. var $1;
  743. $1=self["@selectorsCache"];
  744. return $1;
  745. }, function($ctx1) {$ctx1.fill(self,"selectorsCache",{},smalltalk.HLClassCache)})},
  746. messageSends: []}),
  747. smalltalk.HLClassCache);
  748. smalltalk.addMethod(
  749. smalltalk.method({
  750. selector: "selectorsCache:",
  751. fn: function (aCache){
  752. var self=this;
  753. return smalltalk.withContext(function($ctx1) {
  754. self["@selectorsCache"]=aCache;
  755. return self}, function($ctx1) {$ctx1.fill(self,"selectorsCache:",{aCache:aCache},smalltalk.HLClassCache)})},
  756. messageSends: []}),
  757. smalltalk.HLClassCache);
  758. smalltalk.addMethod(
  759. smalltalk.method({
  760. selector: "theClass",
  761. fn: function (){
  762. var self=this;
  763. return smalltalk.withContext(function($ctx1) {
  764. var $1;
  765. $1=self["@class"];
  766. return $1;
  767. }, function($ctx1) {$ctx1.fill(self,"theClass",{},smalltalk.HLClassCache)})},
  768. messageSends: []}),
  769. smalltalk.HLClassCache);
  770. smalltalk.addMethod(
  771. smalltalk.method({
  772. selector: "theClass:",
  773. fn: function (aClass){
  774. var self=this;
  775. return smalltalk.withContext(function($ctx1) {
  776. self["@class"]=aClass;
  777. return self}, function($ctx1) {$ctx1.fill(self,"theClass:",{aClass:aClass},smalltalk.HLClassCache)})},
  778. messageSends: []}),
  779. smalltalk.HLClassCache);
  780. smalltalk.addMethod(
  781. smalltalk.method({
  782. selector: "on:selectorsCache:",
  783. fn: function (aClass,aSelectorsCache){
  784. var self=this;
  785. return smalltalk.withContext(function($ctx1) {
  786. var $2,$3,$1;
  787. $2=_st(self)._new();
  788. _st($2)._theClass_(aClass);
  789. _st($2)._selectorsCache_(aSelectorsCache);
  790. $3=_st($2)._yourself();
  791. $1=$3;
  792. return $1;
  793. }, function($ctx1) {$ctx1.fill(self,"on:selectorsCache:",{aClass:aClass,aSelectorsCache:aSelectorsCache},smalltalk.HLClassCache.klass)})},
  794. messageSends: ["theClass:", "new", "selectorsCache:", "yourself"]}),
  795. smalltalk.HLClassCache.klass);
  796. smalltalk.addClass('HLClassesListWidget', smalltalk.HLToolListWidget, [], 'Helios-Browser');
  797. smalltalk.addMethod(
  798. smalltalk.method({
  799. selector: "focusMethodsListWidget",
  800. fn: function (){
  801. var self=this;
  802. function $HLMethodsListFocus(){return smalltalk.HLMethodsListFocus||(typeof HLMethodsListFocus=="undefined"?nil:HLMethodsListFocus)}
  803. return smalltalk.withContext(function($ctx1) {
  804. _st(_st(_st(self)._model())._announcer())._announce_(_st($HLMethodsListFocus())._new());
  805. return self}, function($ctx1) {$ctx1.fill(self,"focusMethodsListWidget",{},smalltalk.HLClassesListWidget)})},
  806. messageSends: ["announce:", "new", "announcer", "model"]}),
  807. smalltalk.HLClassesListWidget);
  808. smalltalk.addMethod(
  809. smalltalk.method({
  810. selector: "focusProtocolsListWidget",
  811. fn: function (){
  812. var self=this;
  813. function $HLProtocolsListFocus(){return smalltalk.HLProtocolsListFocus||(typeof HLProtocolsListFocus=="undefined"?nil:HLProtocolsListFocus)}
  814. return smalltalk.withContext(function($ctx1) {
  815. _st(_st(_st(self)._model())._announcer())._announce_(_st($HLProtocolsListFocus())._new());
  816. return self}, function($ctx1) {$ctx1.fill(self,"focusProtocolsListWidget",{},smalltalk.HLClassesListWidget)})},
  817. messageSends: ["announce:", "new", "announcer", "model"]}),
  818. smalltalk.HLClassesListWidget);
  819. smalltalk.addMethod(
  820. smalltalk.method({
  821. selector: "getChildrenOf:",
  822. fn: function (aClass){
  823. var self=this;
  824. return smalltalk.withContext(function($ctx1) {
  825. var $1;
  826. $1=_st(_st(self)._items())._select_((function(each){
  827. return smalltalk.withContext(function($ctx2) {
  828. return _st(_st(each)._superclass()).__eq(aClass);
  829. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  830. return $1;
  831. }, function($ctx1) {$ctx1.fill(self,"getChildrenOf:",{aClass:aClass},smalltalk.HLClassesListWidget)})},
  832. messageSends: ["select:", "=", "superclass", "items"]}),
  833. smalltalk.HLClassesListWidget);
  834. smalltalk.addMethod(
  835. smalltalk.method({
  836. selector: "getRootClassesOf:",
  837. fn: function (aCollection){
  838. var self=this;
  839. return smalltalk.withContext(function($ctx1) {
  840. var $1;
  841. $1=_st(aCollection)._select_((function(each){
  842. return smalltalk.withContext(function($ctx2) {
  843. return _st(_st(aCollection)._includes_(_st(each)._superclass()))._not();
  844. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  845. return $1;
  846. }, function($ctx1) {$ctx1.fill(self,"getRootClassesOf:",{aCollection:aCollection},smalltalk.HLClassesListWidget)})},
  847. messageSends: ["select:", "not", "includes:", "superclass"]}),
  848. smalltalk.HLClassesListWidget);
  849. smalltalk.addMethod(
  850. smalltalk.method({
  851. selector: "iconForItem:",
  852. fn: function (aClass){
  853. var self=this;
  854. return smalltalk.withContext(function($ctx1) {
  855. var $2,$1;
  856. $2=_st(_st(_st(aClass)._theNonMetaClass())._comment())._isEmpty();
  857. if(smalltalk.assert($2)){
  858. $1="icon-question-sign";
  859. } else {
  860. $1="icon-none";
  861. };
  862. return $1;
  863. }, function($ctx1) {$ctx1.fill(self,"iconForItem:",{aClass:aClass},smalltalk.HLClassesListWidget)})},
  864. messageSends: ["ifFalse:ifTrue:", "isEmpty", "comment", "theNonMetaClass"]}),
  865. smalltalk.HLClassesListWidget);
  866. smalltalk.addMethod(
  867. smalltalk.method({
  868. selector: "label",
  869. fn: function (){
  870. var self=this;
  871. return smalltalk.withContext(function($ctx1) {
  872. return "Classes";
  873. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLClassesListWidget)})},
  874. messageSends: []}),
  875. smalltalk.HLClassesListWidget);
  876. smalltalk.addMethod(
  877. smalltalk.method({
  878. selector: "observeModel",
  879. fn: function (){
  880. var self=this;
  881. function $HLPackageSelected(){return smalltalk.HLPackageSelected||(typeof HLPackageSelected=="undefined"?nil:HLPackageSelected)}
  882. function $HLShowInstanceToggled(){return smalltalk.HLShowInstanceToggled||(typeof HLShowInstanceToggled=="undefined"?nil:HLShowInstanceToggled)}
  883. function $HLShowCommentToggled(){return smalltalk.HLShowCommentToggled||(typeof HLShowCommentToggled=="undefined"?nil:HLShowCommentToggled)}
  884. function $HLClassSelected(){return smalltalk.HLClassSelected||(typeof HLClassSelected=="undefined"?nil:HLClassSelected)}
  885. function $HLClassesFocusRequested(){return smalltalk.HLClassesFocusRequested||(typeof HLClassesFocusRequested=="undefined"?nil:HLClassesFocusRequested)}
  886. return smalltalk.withContext(function($ctx1) {
  887. var $1,$2;
  888. $1=_st(_st(self)._model())._announcer();
  889. _st($1)._on_send_to_($HLPackageSelected(),"onPackageSelected:",self);
  890. _st($1)._on_send_to_($HLShowInstanceToggled(),"onShowInstanceToggled",self);
  891. _st($1)._on_send_to_($HLShowCommentToggled(),"onShowCommentToggled",self);
  892. _st($1)._on_send_to_($HLClassSelected(),"onClassSelected:",self);
  893. $2=_st($1)._on_send_to_($HLClassesFocusRequested(),"onClassesFocusRequested",self);
  894. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{},smalltalk.HLClassesListWidget)})},
  895. messageSends: ["on:send:to:", "announcer", "model"]}),
  896. smalltalk.HLClassesListWidget);
  897. smalltalk.addMethod(
  898. smalltalk.method({
  899. selector: "observeSystem",
  900. fn: function (){
  901. var self=this;
  902. function $ClassAdded(){return smalltalk.ClassAdded||(typeof ClassAdded=="undefined"?nil:ClassAdded)}
  903. function $ClassRemoved(){return smalltalk.ClassRemoved||(typeof ClassRemoved=="undefined"?nil:ClassRemoved)}
  904. function $ClassMoved(){return smalltalk.ClassMoved||(typeof ClassMoved=="undefined"?nil:ClassMoved)}
  905. function $ClassRenamed(){return smalltalk.ClassRenamed||(typeof ClassRenamed=="undefined"?nil:ClassRenamed)}
  906. function $ClassMigrated(){return smalltalk.ClassMigrated||(typeof ClassMigrated=="undefined"?nil:ClassMigrated)}
  907. return smalltalk.withContext(function($ctx1) {
  908. var $1,$2;
  909. $1=_st(_st(self)._model())._systemAnnouncer();
  910. _st($1)._on_send_to_($ClassAdded(),"onClassAdded:",self);
  911. _st($1)._on_send_to_($ClassRemoved(),"onClassRemoved:",self);
  912. _st($1)._on_send_to_($ClassMoved(),"onClassMoved:",self);
  913. _st($1)._on_send_to_($ClassRenamed(),"onClassRenamed:",self);
  914. $2=_st($1)._on_send_to_($ClassMigrated(),"onClassMigrated:",self);
  915. return self}, function($ctx1) {$ctx1.fill(self,"observeSystem",{},smalltalk.HLClassesListWidget)})},
  916. messageSends: ["on:send:to:", "systemAnnouncer", "model"]}),
  917. smalltalk.HLClassesListWidget);
  918. smalltalk.addMethod(
  919. smalltalk.method({
  920. selector: "onClassAdded:",
  921. fn: function (anAnnouncement){
  922. var self=this;
  923. var class_;
  924. return smalltalk.withContext(function($ctx1) {
  925. var $1,$2;
  926. class_=_st(anAnnouncement)._theClass();
  927. $1=_st(_st(_st(class_)._package()).__eq(_st(_st(self)._model())._selectedPackage()))._or_((function(){
  928. return smalltalk.withContext(function($ctx2) {
  929. return _st(_st(self)._items())._includes_(class_);
  930. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  931. if(! smalltalk.assert($1)){
  932. $2=self;
  933. return $2;
  934. };
  935. _st(self)._setItemsForSelectedPackage();
  936. _st(self)._refresh();
  937. return self}, function($ctx1) {$ctx1.fill(self,"onClassAdded:",{anAnnouncement:anAnnouncement,class_:class_},smalltalk.HLClassesListWidget)})},
  938. messageSends: ["theClass", "ifFalse:", "or:", "includes:", "items", "=", "selectedPackage", "model", "package", "setItemsForSelectedPackage", "refresh"]}),
  939. smalltalk.HLClassesListWidget);
  940. smalltalk.addMethod(
  941. smalltalk.method({
  942. selector: "onClassMigrated:",
  943. fn: function (anAnnouncement){
  944. var self=this;
  945. var class_,oldClass;
  946. return smalltalk.withContext(function($ctx1) {
  947. var $1,$2,$3;
  948. class_=_st(anAnnouncement)._theClass();
  949. oldClass=_st(anAnnouncement)._oldClass();
  950. $1=_st(_st(self)._items())._includes_(oldClass);
  951. if(! smalltalk.assert($1)){
  952. $2=self;
  953. return $2;
  954. };
  955. $3=_st(_st(_st(self)._model())._selectedClass()).__eq(oldClass);
  956. if(smalltalk.assert($3)){
  957. _st(_st(self)._model())._selectedClass_(class_);
  958. };
  959. _st(self)._setItemsForSelectedPackage();
  960. _st(self)._refresh();
  961. return self}, function($ctx1) {$ctx1.fill(self,"onClassMigrated:",{anAnnouncement:anAnnouncement,class_:class_,oldClass:oldClass},smalltalk.HLClassesListWidget)})},
  962. messageSends: ["theClass", "oldClass", "ifFalse:", "includes:", "items", "ifTrue:", "selectedClass:", "model", "=", "selectedClass", "setItemsForSelectedPackage", "refresh"]}),
  963. smalltalk.HLClassesListWidget);
  964. smalltalk.addMethod(
  965. smalltalk.method({
  966. selector: "onClassMoved:",
  967. fn: function (anAnnouncement){
  968. var self=this;
  969. var class_,oldPackage;
  970. return smalltalk.withContext(function($ctx1) {
  971. var $1,$2,$3,$4,$5;
  972. class_=_st(anAnnouncement)._theClass();
  973. oldPackage=_st(anAnnouncement)._oldPackage();
  974. $1=_st(_st(oldPackage).__eq(_st(_st(self)._model())._selectedPackage()))._or_((function(){
  975. return smalltalk.withContext(function($ctx2) {
  976. return _st(_st(class_)._package()).__eq(_st(_st(self)._model())._selectedPackage());
  977. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  978. if(! smalltalk.assert($1)){
  979. $2=self;
  980. return $2;
  981. };
  982. $3=_st(oldPackage).__eq(_st(_st(self)._model())._selectedPackage());
  983. if(smalltalk.assert($3)){
  984. $4=self;
  985. _st($4)._selectedItem_(nil);
  986. $5=_st($4)._selectItem_(nil);
  987. $5;
  988. };
  989. _st(self)._setItemsForSelectedPackage();
  990. _st(self)._refresh();
  991. return self}, function($ctx1) {$ctx1.fill(self,"onClassMoved:",{anAnnouncement:anAnnouncement,class_:class_,oldPackage:oldPackage},smalltalk.HLClassesListWidget)})},
  992. messageSends: ["theClass", "oldPackage", "ifFalse:", "or:", "=", "selectedPackage", "model", "package", "ifTrue:", "selectedItem:", "selectItem:", "setItemsForSelectedPackage", "refresh"]}),
  993. smalltalk.HLClassesListWidget);
  994. smalltalk.addMethod(
  995. smalltalk.method({
  996. selector: "onClassRemoved:",
  997. fn: function (anAnnouncement){
  998. var self=this;
  999. var class_;
  1000. return smalltalk.withContext(function($ctx1) {
  1001. var $1,$2,$3;
  1002. class_=_st(anAnnouncement)._theClass();
  1003. $1=_st(_st(class_)._package()).__eq(_st(_st(self)._model())._selectedPackage());
  1004. if(! smalltalk.assert($1)){
  1005. $2=self;
  1006. return $2;
  1007. };
  1008. $3=_st(class_).__eq(_st(_st(self)._model())._selectedClass());
  1009. if(smalltalk.assert($3)){
  1010. _st(self)._selectItem_(nil);
  1011. };
  1012. _st(self)._setItemsForSelectedPackage();
  1013. _st(self)._refresh();
  1014. return self}, function($ctx1) {$ctx1.fill(self,"onClassRemoved:",{anAnnouncement:anAnnouncement,class_:class_},smalltalk.HLClassesListWidget)})},
  1015. messageSends: ["theClass", "ifFalse:", "=", "selectedPackage", "model", "package", "ifTrue:", "selectItem:", "selectedClass", "setItemsForSelectedPackage", "refresh"]}),
  1016. smalltalk.HLClassesListWidget);
  1017. smalltalk.addMethod(
  1018. smalltalk.method({
  1019. selector: "onClassRenamed:",
  1020. fn: function (anAnnouncement){
  1021. var self=this;
  1022. return smalltalk.withContext(function($ctx1) {
  1023. var $1,$2;
  1024. $1=_st(_st(_st(anAnnouncement)._theClass())._package()).__eq(_st(_st(self)._model())._selectedPackage());
  1025. if(! smalltalk.assert($1)){
  1026. $2=self;
  1027. return $2;
  1028. };
  1029. _st(self)._setItemsForSelectedPackage();
  1030. _st(self)._refresh();
  1031. return self}, function($ctx1) {$ctx1.fill(self,"onClassRenamed:",{anAnnouncement:anAnnouncement},smalltalk.HLClassesListWidget)})},
  1032. messageSends: ["ifFalse:", "=", "selectedPackage", "model", "package", "theClass", "setItemsForSelectedPackage", "refresh"]}),
  1033. smalltalk.HLClassesListWidget);
  1034. smalltalk.addMethod(
  1035. smalltalk.method({
  1036. selector: "onClassSelected:",
  1037. fn: function (anAnnouncement){
  1038. var self=this;
  1039. var selectedClass;
  1040. return smalltalk.withContext(function($ctx1) {
  1041. var $1,$2,$3,$4,$5;
  1042. $1=_st(anAnnouncement)._item();
  1043. if(($receiver = $1) == nil || $receiver == undefined){
  1044. $2=self;
  1045. return $2;
  1046. } else {
  1047. $1;
  1048. };
  1049. selectedClass=_st(_st(anAnnouncement)._item())._theNonMetaClass();
  1050. _st(self)._selectedItem_(selectedClass);
  1051. $3=_st(self)._hasFocus();
  1052. if(! smalltalk.assert($3)){
  1053. $4=self;
  1054. _st($4)._activateItem_(selectedClass);
  1055. $5=_st($4)._focus();
  1056. $5;
  1057. };
  1058. return self}, function($ctx1) {$ctx1.fill(self,"onClassSelected:",{anAnnouncement:anAnnouncement,selectedClass:selectedClass},smalltalk.HLClassesListWidget)})},
  1059. messageSends: ["ifNil:", "item", "theNonMetaClass", "selectedItem:", "ifFalse:", "activateItem:", "focus", "hasFocus"]}),
  1060. smalltalk.HLClassesListWidget);
  1061. smalltalk.addMethod(
  1062. smalltalk.method({
  1063. selector: "onClassesFocusRequested",
  1064. fn: function (){
  1065. var self=this;
  1066. return smalltalk.withContext(function($ctx1) {
  1067. _st(self)._focus();
  1068. return self}, function($ctx1) {$ctx1.fill(self,"onClassesFocusRequested",{},smalltalk.HLClassesListWidget)})},
  1069. messageSends: ["focus"]}),
  1070. smalltalk.HLClassesListWidget);
  1071. smalltalk.addMethod(
  1072. smalltalk.method({
  1073. selector: "onPackageSelected:",
  1074. fn: function (anAnnouncement){
  1075. var self=this;
  1076. return smalltalk.withContext(function($ctx1) {
  1077. _st(self)._selectedItem_(nil);
  1078. _st(self)._setItemsForSelectedPackage();
  1079. _st(self)._refresh();
  1080. return self}, function($ctx1) {$ctx1.fill(self,"onPackageSelected:",{anAnnouncement:anAnnouncement},smalltalk.HLClassesListWidget)})},
  1081. messageSends: ["selectedItem:", "setItemsForSelectedPackage", "refresh"]}),
  1082. smalltalk.HLClassesListWidget);
  1083. smalltalk.addMethod(
  1084. smalltalk.method({
  1085. selector: "onShowCommentToggled",
  1086. fn: function (){
  1087. var self=this;
  1088. return smalltalk.withContext(function($ctx1) {
  1089. _st(self)._refresh();
  1090. return self}, function($ctx1) {$ctx1.fill(self,"onShowCommentToggled",{},smalltalk.HLClassesListWidget)})},
  1091. messageSends: ["refresh"]}),
  1092. smalltalk.HLClassesListWidget);
  1093. smalltalk.addMethod(
  1094. smalltalk.method({
  1095. selector: "onShowInstanceToggled",
  1096. fn: function (){
  1097. var self=this;
  1098. return smalltalk.withContext(function($ctx1) {
  1099. _st(self)._refresh();
  1100. return self}, function($ctx1) {$ctx1.fill(self,"onShowInstanceToggled",{},smalltalk.HLClassesListWidget)})},
  1101. messageSends: ["refresh"]}),
  1102. smalltalk.HLClassesListWidget);
  1103. smalltalk.addMethod(
  1104. smalltalk.method({
  1105. selector: "renderButtonsOn:",
  1106. fn: function (html){
  1107. var self=this;
  1108. function $String(){return smalltalk.String||(typeof String=="undefined"?nil:String)}
  1109. return smalltalk.withContext(function($ctx1) {
  1110. var $1,$3,$4,$5,$6,$7,$8,$9,$10,$11,$2;
  1111. $1=_st(html)._div();
  1112. _st($1)._class_("btn-group");
  1113. $2=_st($1)._with_((function(){
  1114. return smalltalk.withContext(function($ctx2) {
  1115. $3=_st(html)._button();
  1116. _st($3)._class_(_st($String())._streamContents_((function(str){
  1117. return smalltalk.withContext(function($ctx3) {
  1118. _st(str)._nextPutAll_("btn");
  1119. $4=_st(self)._showInstance();
  1120. if(smalltalk.assert($4)){
  1121. return _st(str)._nextPutAll_(" active");
  1122. };
  1123. }, function($ctx3) {$ctx3.fillBlock({str:str},$ctx1)})})));
  1124. _st($3)._with_("Instance");
  1125. $5=_st($3)._onClick_((function(){
  1126. return smalltalk.withContext(function($ctx3) {
  1127. return _st(self)._showInstance_(true);
  1128. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1129. $5;
  1130. $6=_st(html)._button();
  1131. _st($6)._class_(_st($String())._streamContents_((function(str){
  1132. return smalltalk.withContext(function($ctx3) {
  1133. _st(str)._nextPutAll_("btn");
  1134. $7=_st(self)._showClass();
  1135. if(smalltalk.assert($7)){
  1136. return _st(str)._nextPutAll_(" active");
  1137. };
  1138. }, function($ctx3) {$ctx3.fillBlock({str:str},$ctx1)})})));
  1139. _st($6)._with_("Class");
  1140. $8=_st($6)._onClick_((function(){
  1141. return smalltalk.withContext(function($ctx3) {
  1142. return _st(self)._showInstance_(false);
  1143. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1144. $8;
  1145. $9=_st(html)._button();
  1146. _st($9)._class_(_st($String())._streamContents_((function(str){
  1147. return smalltalk.withContext(function($ctx3) {
  1148. _st(str)._nextPutAll_("btn");
  1149. $10=_st(self)._showComment();
  1150. if(smalltalk.assert($10)){
  1151. return _st(str)._nextPutAll_(" active");
  1152. };
  1153. }, function($ctx3) {$ctx3.fillBlock({str:str},$ctx1)})})));
  1154. _st($9)._with_("Doc");
  1155. $11=_st($9)._onClick_((function(){
  1156. return smalltalk.withContext(function($ctx3) {
  1157. return _st(self)._showComment_(true);
  1158. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1159. return $11;
  1160. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1161. return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html},smalltalk.HLClassesListWidget)})},
  1162. messageSends: ["class:", "div", "with:", "streamContents:", "nextPutAll:", "ifTrue:", "showInstance", "button", "onClick:", "showInstance:", "showClass", "showComment", "showComment:"]}),
  1163. smalltalk.HLClassesListWidget);
  1164. smalltalk.addMethod(
  1165. smalltalk.method({
  1166. selector: "renderItem:level:on:",
  1167. fn: function (aClass,anInteger,html){
  1168. var self=this;
  1169. var li;
  1170. return smalltalk.withContext(function($ctx1) {
  1171. var $1,$3,$4,$2;
  1172. li=_st(html)._li();
  1173. _st(self)._registerMappingFrom_to_(aClass,li);
  1174. $1=li;
  1175. _st($1)._at_put_("list-data",_st(_st(self)._items())._indexOf_(aClass));
  1176. _st($1)._class_(_st(self)._cssClassForItem_(aClass));
  1177. $2=_st($1)._with_((function(){
  1178. return smalltalk.withContext(function($ctx2) {
  1179. $3=_st(html)._a();
  1180. _st($3)._with_((function(){
  1181. return smalltalk.withContext(function($ctx3) {
  1182. _st(_st(html)._tag_("i"))._class_(_st(self)._iconForItem_(aClass));
  1183. return _st(self)._renderItemLabel_level_on_(aClass,anInteger,html);
  1184. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1185. $4=_st($3)._onClick_((function(){
  1186. return smalltalk.withContext(function($ctx3) {
  1187. return _st(self)._activateListItem_(_st(li)._asJQuery());
  1188. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1189. return $4;
  1190. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1191. _st(_st(self)._getChildrenOf_(aClass))._do_((function(each){
  1192. return smalltalk.withContext(function($ctx2) {
  1193. return _st(self)._renderItem_level_on_(each,_st(anInteger).__plus((1)),html);
  1194. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  1195. return self}, function($ctx1) {$ctx1.fill(self,"renderItem:level:on:",{aClass:aClass,anInteger:anInteger,html:html,li:li},smalltalk.HLClassesListWidget)})},
  1196. messageSends: ["li", "registerMappingFrom:to:", "at:put:", "indexOf:", "items", "class:", "cssClassForItem:", "with:", "iconForItem:", "tag:", "renderItemLabel:level:on:", "a", "onClick:", "activateListItem:", "asJQuery", "do:", "renderItem:level:on:", "+", "getChildrenOf:"]}),
  1197. smalltalk.HLClassesListWidget);
  1198. smalltalk.addMethod(
  1199. smalltalk.method({
  1200. selector: "renderItem:on:",
  1201. fn: function (aClass,html){
  1202. var self=this;
  1203. return smalltalk.withContext(function($ctx1) {
  1204. smalltalk.HLToolListWidget.fn.prototype._renderItem_on_.apply(_st(self), [aClass,html]);
  1205. _st(_st(self)._getChildrenOf_(aClass))._do_((function(each){
  1206. return smalltalk.withContext(function($ctx2) {
  1207. return _st(self)._renderItem_level_on_(each,(1),html);
  1208. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  1209. return self}, function($ctx1) {$ctx1.fill(self,"renderItem:on:",{aClass:aClass,html:html},smalltalk.HLClassesListWidget)})},
  1210. messageSends: ["renderItem:on:", "do:", "renderItem:level:on:", "getChildrenOf:"]}),
  1211. smalltalk.HLClassesListWidget);
  1212. smalltalk.addMethod(
  1213. smalltalk.method({
  1214. selector: "renderItemLabel:level:on:",
  1215. fn: function (aClass,anInteger,html){
  1216. var self=this;
  1217. function $String(){return smalltalk.String||(typeof String=="undefined"?nil:String)}
  1218. return smalltalk.withContext(function($ctx1) {
  1219. _st(_st(_st(html)._span())._asJQuery())._html_(_st($String())._streamContents_((function(str){
  1220. return smalltalk.withContext(function($ctx2) {
  1221. _st(anInteger)._timesRepeat_((function(){
  1222. return smalltalk.withContext(function($ctx3) {
  1223. return _st(str)._nextPutAll_("    ");
  1224. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1225. return _st(str)._nextPutAll_(_st(aClass)._name());
  1226. }, function($ctx2) {$ctx2.fillBlock({str:str},$ctx1)})})));
  1227. return self}, function($ctx1) {$ctx1.fill(self,"renderItemLabel:level:on:",{aClass:aClass,anInteger:anInteger,html:html},smalltalk.HLClassesListWidget)})},
  1228. messageSends: ["html:", "streamContents:", "timesRepeat:", "nextPutAll:", "name", "asJQuery", "span"]}),
  1229. smalltalk.HLClassesListWidget);
  1230. smalltalk.addMethod(
  1231. smalltalk.method({
  1232. selector: "renderItemLabel:on:",
  1233. fn: function (aClass,html){
  1234. var self=this;
  1235. return smalltalk.withContext(function($ctx1) {
  1236. _st(self)._renderItemLabel_level_on_(aClass,(0),html);
  1237. return self}, function($ctx1) {$ctx1.fill(self,"renderItemLabel:on:",{aClass:aClass,html:html},smalltalk.HLClassesListWidget)})},
  1238. messageSends: ["renderItemLabel:level:on:"]}),
  1239. smalltalk.HLClassesListWidget);
  1240. smalltalk.addMethod(
  1241. smalltalk.method({
  1242. selector: "renderListOn:",
  1243. fn: function (html){
  1244. var self=this;
  1245. return smalltalk.withContext(function($ctx1) {
  1246. _st(_st(self)._getRootClassesOf_(_st(self)._items()))._do_((function(each){
  1247. return smalltalk.withContext(function($ctx2) {
  1248. return _st(self)._renderItem_on_(each,html);
  1249. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  1250. return self}, function($ctx1) {$ctx1.fill(self,"renderListOn:",{html:html},smalltalk.HLClassesListWidget)})},
  1251. messageSends: ["do:", "renderItem:on:", "getRootClassesOf:", "items"]}),
  1252. smalltalk.HLClassesListWidget);
  1253. smalltalk.addMethod(
  1254. smalltalk.method({
  1255. selector: "selectItem:",
  1256. fn: function (aClass){
  1257. var self=this;
  1258. return smalltalk.withContext(function($ctx1) {
  1259. _st(_st(self)._model())._selectedClass_(aClass);
  1260. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{aClass:aClass},smalltalk.HLClassesListWidget)})},
  1261. messageSends: ["selectedClass:", "model"]}),
  1262. smalltalk.HLClassesListWidget);
  1263. smalltalk.addMethod(
  1264. smalltalk.method({
  1265. selector: "setItemsForPackage:",
  1266. fn: function (aPackage){
  1267. var self=this;
  1268. return smalltalk.withContext(function($ctx1) {
  1269. var $1,$3,$2;
  1270. $1=self;
  1271. $3=aPackage;
  1272. if(($receiver = $3) == nil || $receiver == undefined){
  1273. $2=[];
  1274. } else {
  1275. $2=_st(_st(_st(_st(_st(aPackage)._classes())._collect_((function(each){
  1276. return smalltalk.withContext(function($ctx2) {
  1277. return _st(each)._theNonMetaClass();
  1278. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})))._asSet())._asArray())._sort_((function(a,b){
  1279. return smalltalk.withContext(function($ctx2) {
  1280. return _st(_st(a)._name()).__lt(_st(b)._name());
  1281. }, function($ctx2) {$ctx2.fillBlock({a:a,b:b},$ctx1)})}));
  1282. };
  1283. _st($1)._items_($2);
  1284. return self}, function($ctx1) {$ctx1.fill(self,"setItemsForPackage:",{aPackage:aPackage},smalltalk.HLClassesListWidget)})},
  1285. messageSends: ["items:", "ifNil:ifNotNil:", "sort:", "<", "name", "asArray", "asSet", "collect:", "theNonMetaClass", "classes"]}),
  1286. smalltalk.HLClassesListWidget);
  1287. smalltalk.addMethod(
  1288. smalltalk.method({
  1289. selector: "setItemsForSelectedPackage",
  1290. fn: function (){
  1291. var self=this;
  1292. return smalltalk.withContext(function($ctx1) {
  1293. _st(self)._setItemsForPackage_(_st(_st(self)._model())._selectedPackage());
  1294. return self}, function($ctx1) {$ctx1.fill(self,"setItemsForSelectedPackage",{},smalltalk.HLClassesListWidget)})},
  1295. messageSends: ["setItemsForPackage:", "selectedPackage", "model"]}),
  1296. smalltalk.HLClassesListWidget);
  1297. smalltalk.addMethod(
  1298. smalltalk.method({
  1299. selector: "showClass",
  1300. fn: function (){
  1301. var self=this;
  1302. return smalltalk.withContext(function($ctx1) {
  1303. var $1;
  1304. $1=_st(_st(_st(_st(self)._model())._showInstance())._not())._and_((function(){
  1305. return smalltalk.withContext(function($ctx2) {
  1306. return _st(_st(_st(self)._model())._showComment())._not();
  1307. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1308. return $1;
  1309. }, function($ctx1) {$ctx1.fill(self,"showClass",{},smalltalk.HLClassesListWidget)})},
  1310. messageSends: ["and:", "not", "showComment", "model", "showInstance"]}),
  1311. smalltalk.HLClassesListWidget);
  1312. smalltalk.addMethod(
  1313. smalltalk.method({
  1314. selector: "showComment",
  1315. fn: function (){
  1316. var self=this;
  1317. return smalltalk.withContext(function($ctx1) {
  1318. var $1;
  1319. $1=_st(_st(self)._model())._showComment();
  1320. return $1;
  1321. }, function($ctx1) {$ctx1.fill(self,"showComment",{},smalltalk.HLClassesListWidget)})},
  1322. messageSends: ["showComment", "model"]}),
  1323. smalltalk.HLClassesListWidget);
  1324. smalltalk.addMethod(
  1325. smalltalk.method({
  1326. selector: "showComment:",
  1327. fn: function (aBoolean){
  1328. var self=this;
  1329. return smalltalk.withContext(function($ctx1) {
  1330. _st(_st(self)._model())._showComment_(aBoolean);
  1331. return self}, function($ctx1) {$ctx1.fill(self,"showComment:",{aBoolean:aBoolean},smalltalk.HLClassesListWidget)})},
  1332. messageSends: ["showComment:", "model"]}),
  1333. smalltalk.HLClassesListWidget);
  1334. smalltalk.addMethod(
  1335. smalltalk.method({
  1336. selector: "showInstance",
  1337. fn: function (){
  1338. var self=this;
  1339. return smalltalk.withContext(function($ctx1) {
  1340. var $1;
  1341. $1=_st(_st(_st(self)._model())._showInstance())._and_((function(){
  1342. return smalltalk.withContext(function($ctx2) {
  1343. return _st(_st(_st(self)._model())._showComment())._not();
  1344. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1345. return $1;
  1346. }, function($ctx1) {$ctx1.fill(self,"showInstance",{},smalltalk.HLClassesListWidget)})},
  1347. messageSends: ["and:", "not", "showComment", "model", "showInstance"]}),
  1348. smalltalk.HLClassesListWidget);
  1349. smalltalk.addMethod(
  1350. smalltalk.method({
  1351. selector: "showInstance:",
  1352. fn: function (aBoolean){
  1353. var self=this;
  1354. return smalltalk.withContext(function($ctx1) {
  1355. _st(_st(self)._model())._showInstance_(aBoolean);
  1356. return self}, function($ctx1) {$ctx1.fill(self,"showInstance:",{aBoolean:aBoolean},smalltalk.HLClassesListWidget)})},
  1357. messageSends: ["showInstance:", "model"]}),
  1358. smalltalk.HLClassesListWidget);
  1359. smalltalk.addClass('HLDocumentationWidget', smalltalk.HLFocusableWidget, ['model'], 'Helios-Browser');
  1360. smalltalk.addMethod(
  1361. smalltalk.method({
  1362. selector: "defaultDocumentation",
  1363. fn: function (){
  1364. var self=this;
  1365. return smalltalk.withContext(function($ctx1) {
  1366. return "No documentation available. \x0a**That's bad. Seriously.**";
  1367. }, function($ctx1) {$ctx1.fill(self,"defaultDocumentation",{},smalltalk.HLDocumentationWidget)})},
  1368. messageSends: []}),
  1369. smalltalk.HLDocumentationWidget);
  1370. smalltalk.addMethod(
  1371. smalltalk.method({
  1372. selector: "defaultHead",
  1373. fn: function (){
  1374. var self=this;
  1375. return smalltalk.withContext(function($ctx1) {
  1376. return "No class selected";
  1377. }, function($ctx1) {$ctx1.fill(self,"defaultHead",{},smalltalk.HLDocumentationWidget)})},
  1378. messageSends: []}),
  1379. smalltalk.HLDocumentationWidget);
  1380. smalltalk.addMethod(
  1381. smalltalk.method({
  1382. selector: "documentation",
  1383. fn: function (){
  1384. var self=this;
  1385. return smalltalk.withContext(function($ctx1) {
  1386. var $2,$1;
  1387. $2=_st(self)._selectedItem();
  1388. if(($receiver = $2) == nil || $receiver == undefined){
  1389. $1="";
  1390. } else {
  1391. var item;
  1392. item=$receiver;
  1393. $1=_st(_st(item)._comment())._ifEmpty_((function(){
  1394. return smalltalk.withContext(function($ctx2) {
  1395. return _st(self)._defaultDocumentation();
  1396. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1397. };
  1398. return $1;
  1399. }, function($ctx1) {$ctx1.fill(self,"documentation",{},smalltalk.HLDocumentationWidget)})},
  1400. messageSends: ["ifNil:ifNotNil:", "ifEmpty:", "defaultDocumentation", "comment", "selectedItem"]}),
  1401. smalltalk.HLDocumentationWidget);
  1402. smalltalk.addMethod(
  1403. smalltalk.method({
  1404. selector: "head",
  1405. fn: function (){
  1406. var self=this;
  1407. return smalltalk.withContext(function($ctx1) {
  1408. var $2,$1;
  1409. $2=_st(self)._selectedItem();
  1410. if(($receiver = $2) == nil || $receiver == undefined){
  1411. $1=_st(self)._defaultHead();
  1412. } else {
  1413. var item;
  1414. item=$receiver;
  1415. $1=_st(item)._name();
  1416. };
  1417. return $1;
  1418. }, function($ctx1) {$ctx1.fill(self,"head",{},smalltalk.HLDocumentationWidget)})},
  1419. messageSends: ["ifNil:ifNotNil:", "defaultHead", "name", "selectedItem"]}),
  1420. smalltalk.HLDocumentationWidget);
  1421. smalltalk.addMethod(
  1422. smalltalk.method({
  1423. selector: "model",
  1424. fn: function (){
  1425. var self=this;
  1426. return smalltalk.withContext(function($ctx1) {
  1427. var $1;
  1428. $1=self["@model"];
  1429. return $1;
  1430. }, function($ctx1) {$ctx1.fill(self,"model",{},smalltalk.HLDocumentationWidget)})},
  1431. messageSends: []}),
  1432. smalltalk.HLDocumentationWidget);
  1433. smalltalk.addMethod(
  1434. smalltalk.method({
  1435. selector: "model:",
  1436. fn: function (aModel){
  1437. var self=this;
  1438. return smalltalk.withContext(function($ctx1) {
  1439. self["@model"]=aModel;
  1440. _st(self)._observeModel();
  1441. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel},smalltalk.HLDocumentationWidget)})},
  1442. messageSends: ["observeModel"]}),
  1443. smalltalk.HLDocumentationWidget);
  1444. smalltalk.addMethod(
  1445. smalltalk.method({
  1446. selector: "observeModel",
  1447. fn: function (){
  1448. var self=this;
  1449. function $HLClassSelected(){return smalltalk.HLClassSelected||(typeof HLClassSelected=="undefined"?nil:HLClassSelected)}
  1450. return smalltalk.withContext(function($ctx1) {
  1451. _st(_st(_st(self)._model())._announcer())._on_send_to_($HLClassSelected(),"onClassSelected:",self);
  1452. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{},smalltalk.HLDocumentationWidget)})},
  1453. messageSends: ["on:send:to:", "announcer", "model"]}),
  1454. smalltalk.HLDocumentationWidget);
  1455. smalltalk.addMethod(
  1456. smalltalk.method({
  1457. selector: "onClassSelected:",
  1458. fn: function (anAnnouncement){
  1459. var self=this;
  1460. return smalltalk.withContext(function($ctx1) {
  1461. _st(self)._refresh();
  1462. return self}, function($ctx1) {$ctx1.fill(self,"onClassSelected:",{anAnnouncement:anAnnouncement},smalltalk.HLDocumentationWidget)})},
  1463. messageSends: ["refresh"]}),
  1464. smalltalk.HLDocumentationWidget);
  1465. smalltalk.addMethod(
  1466. smalltalk.method({
  1467. selector: "renderContentOn:",
  1468. fn: function (html){
  1469. var self=this;
  1470. return smalltalk.withContext(function($ctx1) {
  1471. var $1,$3,$4,$2;
  1472. $1=_st(html)._div();
  1473. _st($1)._class_("doc");
  1474. $2=_st($1)._with_((function(){
  1475. return smalltalk.withContext(function($ctx2) {
  1476. $3=self;
  1477. _st($3)._renderHeadOn_(html);
  1478. $4=_st($3)._renderDocOn_(html);
  1479. return $4;
  1480. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1481. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLDocumentationWidget)})},
  1482. messageSends: ["class:", "div", "with:", "renderHeadOn:", "renderDocOn:"]}),
  1483. smalltalk.HLDocumentationWidget);
  1484. smalltalk.addMethod(
  1485. smalltalk.method({
  1486. selector: "renderDocOn:",
  1487. fn: function (html){
  1488. var self=this;
  1489. function $Showdown(){return smalltalk.Showdown||(typeof Showdown=="undefined"?nil:Showdown)}
  1490. return smalltalk.withContext(function($ctx1) {
  1491. var $1,$2,$3;
  1492. $1=_st(self)._selectedItem();
  1493. if(($receiver = $1) == nil || $receiver == undefined){
  1494. $1;
  1495. } else {
  1496. _st(self)._renderInheritanceOn_(html);
  1497. _st(_st(html)._h1())._with_("Overview");
  1498. $2=_st(html)._div();
  1499. _st($2)._class_("markdown");
  1500. $3=_st($2)._asJQuery();
  1501. _st($3)._html_(_st(_st(_st($Showdown())._at_("converter"))._new())._makeHtml_(_st(self)._documentation()));
  1502. };
  1503. return self}, function($ctx1) {$ctx1.fill(self,"renderDocOn:",{html:html},smalltalk.HLDocumentationWidget)})},
  1504. messageSends: ["ifNotNil:", "renderInheritanceOn:", "with:", "h1", "html:", "makeHtml:", "documentation", "new", "at:", "class:", "div", "asJQuery", "selectedItem"]}),
  1505. smalltalk.HLDocumentationWidget);
  1506. smalltalk.addMethod(
  1507. smalltalk.method({
  1508. selector: "renderHeadOn:",
  1509. fn: function (html){
  1510. var self=this;
  1511. return smalltalk.withContext(function($ctx1) {
  1512. var $1,$2;
  1513. $1=_st(html)._div();
  1514. _st($1)._class_("head");
  1515. $2=_st($1)._with_(_st(self)._head());
  1516. return self}, function($ctx1) {$ctx1.fill(self,"renderHeadOn:",{html:html},smalltalk.HLDocumentationWidget)})},
  1517. messageSends: ["class:", "div", "with:", "head"]}),
  1518. smalltalk.HLDocumentationWidget);
  1519. smalltalk.addMethod(
  1520. smalltalk.method({
  1521. selector: "renderInheritanceOn:",
  1522. fn: function (html){
  1523. var self=this;
  1524. return smalltalk.withContext(function($ctx1) {
  1525. var $1,$3,$4,$5,$2;
  1526. $1=_st(html)._div();
  1527. _st($1)._class_("inheritance");
  1528. $2=_st($1)._with_((function(){
  1529. return smalltalk.withContext(function($ctx2) {
  1530. _st(html)._with_("Subclass of ");
  1531. $3=_st(_st(self)._selectedItem())._superclass();
  1532. if(($receiver = $3) == nil || $receiver == undefined){
  1533. return _st(_st(html)._em())._with_("nil");
  1534. } else {
  1535. $4=_st(html)._a();
  1536. _st($4)._with_(_st(_st(_st(self)._selectedItem())._superclass())._name());
  1537. $5=_st($4)._onClick_((function(){
  1538. return smalltalk.withContext(function($ctx3) {
  1539. return _st(self)._selectClass_(_st(_st(self)._selectedItem())._superclass());
  1540. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1541. return $5;
  1542. };
  1543. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1544. return self}, function($ctx1) {$ctx1.fill(self,"renderInheritanceOn:",{html:html},smalltalk.HLDocumentationWidget)})},
  1545. messageSends: ["class:", "div", "with:", "ifNil:ifNotNil:", "em", "name", "superclass", "selectedItem", "a", "onClick:", "selectClass:"]}),
  1546. smalltalk.HLDocumentationWidget);
  1547. smalltalk.addMethod(
  1548. smalltalk.method({
  1549. selector: "selectClass:",
  1550. fn: function (aClass){
  1551. var self=this;
  1552. return smalltalk.withContext(function($ctx1) {
  1553. _st(_st(self)._model())._selectedClass_(aClass);
  1554. return self}, function($ctx1) {$ctx1.fill(self,"selectClass:",{aClass:aClass},smalltalk.HLDocumentationWidget)})},
  1555. messageSends: ["selectedClass:", "model"]}),
  1556. smalltalk.HLDocumentationWidget);
  1557. smalltalk.addMethod(
  1558. smalltalk.method({
  1559. selector: "selectedItem",
  1560. fn: function (){
  1561. var self=this;
  1562. return smalltalk.withContext(function($ctx1) {
  1563. var $2,$1;
  1564. $2=_st(_st(self)._model())._selectedClass();
  1565. if(($receiver = $2) == nil || $receiver == undefined){
  1566. $1=$2;
  1567. } else {
  1568. var class_;
  1569. class_=$receiver;
  1570. $1=_st(class_)._theNonMetaClass();
  1571. };
  1572. return $1;
  1573. }, function($ctx1) {$ctx1.fill(self,"selectedItem",{},smalltalk.HLDocumentationWidget)})},
  1574. messageSends: ["ifNotNil:", "theNonMetaClass", "selectedClass", "model"]}),
  1575. smalltalk.HLDocumentationWidget);
  1576. smalltalk.addMethod(
  1577. smalltalk.method({
  1578. selector: "unregister",
  1579. fn: function (){
  1580. var self=this;
  1581. return smalltalk.withContext(function($ctx1) {
  1582. smalltalk.HLFocusableWidget.fn.prototype._unregister.apply(_st(self), []);
  1583. _st(_st(_st(self)._model())._announcer())._unregister_(self);
  1584. return self}, function($ctx1) {$ctx1.fill(self,"unregister",{},smalltalk.HLDocumentationWidget)})},
  1585. messageSends: ["unregister", "unregister:", "announcer", "model"]}),
  1586. smalltalk.HLDocumentationWidget);
  1587. smalltalk.addClass('HLMethodsListWidget', smalltalk.HLToolListWidget, ['selectorsCache'], 'Helios-Browser');
  1588. smalltalk.addMethod(
  1589. smalltalk.method({
  1590. selector: "allProtocol",
  1591. fn: function (){
  1592. var self=this;
  1593. return smalltalk.withContext(function($ctx1) {
  1594. var $1;
  1595. $1=_st(_st(self)._model())._allProtocol();
  1596. return $1;
  1597. }, function($ctx1) {$ctx1.fill(self,"allProtocol",{},smalltalk.HLMethodsListWidget)})},
  1598. messageSends: ["allProtocol", "model"]}),
  1599. smalltalk.HLMethodsListWidget);
  1600. smalltalk.addMethod(
  1601. smalltalk.method({
  1602. selector: "iconForItem:",
  1603. fn: function (aSelector){
  1604. var self=this;
  1605. var override,overriden,method;
  1606. return smalltalk.withContext(function($ctx1) {
  1607. var $2,$3,$4,$1;
  1608. method=_st(self)._methodForSelector_(aSelector);
  1609. override=_st(self)._isOverride_(method);
  1610. overriden=_st(self)._isOverridden_(method);
  1611. $2=override;
  1612. if(smalltalk.assert($2)){
  1613. $3=overriden;
  1614. if(smalltalk.assert($3)){
  1615. $1="icon-resize-vertical";
  1616. } else {
  1617. $1="icon-arrow-up";
  1618. };
  1619. } else {
  1620. $4=overriden;
  1621. if(smalltalk.assert($4)){
  1622. $1="icon-arrow-down";
  1623. } else {
  1624. $1="icon-none";
  1625. };
  1626. };
  1627. return $1;
  1628. }, function($ctx1) {$ctx1.fill(self,"iconForItem:",{aSelector:aSelector,override:override,overriden:overriden,method:method},smalltalk.HLMethodsListWidget)})},
  1629. messageSends: ["methodForSelector:", "isOverride:", "isOverridden:", "ifTrue:ifFalse:"]}),
  1630. smalltalk.HLMethodsListWidget);
  1631. smalltalk.addMethod(
  1632. smalltalk.method({
  1633. selector: "isOverridden:",
  1634. fn: function (aMethod){
  1635. var self=this;
  1636. return smalltalk.withContext(function($ctx1) {
  1637. var $1;
  1638. $1=_st(_st(self)._selectorsCache())._isOverridden_(aMethod);
  1639. return $1;
  1640. }, function($ctx1) {$ctx1.fill(self,"isOverridden:",{aMethod:aMethod},smalltalk.HLMethodsListWidget)})},
  1641. messageSends: ["isOverridden:", "selectorsCache"]}),
  1642. smalltalk.HLMethodsListWidget);
  1643. smalltalk.addMethod(
  1644. smalltalk.method({
  1645. selector: "isOverride:",
  1646. fn: function (aMethod){
  1647. var self=this;
  1648. return smalltalk.withContext(function($ctx1) {
  1649. var $1;
  1650. $1=_st(_st(self)._selectorsCache())._isOverride_(aMethod);
  1651. return $1;
  1652. }, function($ctx1) {$ctx1.fill(self,"isOverride:",{aMethod:aMethod},smalltalk.HLMethodsListWidget)})},
  1653. messageSends: ["isOverride:", "selectorsCache"]}),
  1654. smalltalk.HLMethodsListWidget);
  1655. smalltalk.addMethod(
  1656. smalltalk.method({
  1657. selector: "label",
  1658. fn: function (){
  1659. var self=this;
  1660. return smalltalk.withContext(function($ctx1) {
  1661. return "Methods";
  1662. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLMethodsListWidget)})},
  1663. messageSends: []}),
  1664. smalltalk.HLMethodsListWidget);
  1665. smalltalk.addMethod(
  1666. smalltalk.method({
  1667. selector: "methodForSelector:",
  1668. fn: function (aSelector){
  1669. var self=this;
  1670. return smalltalk.withContext(function($ctx1) {
  1671. var $1;
  1672. $1=_st(_st(_st(_st(self)._model())._selectedClass())._methodDictionary())._at_(aSelector);
  1673. return $1;
  1674. }, function($ctx1) {$ctx1.fill(self,"methodForSelector:",{aSelector:aSelector},smalltalk.HLMethodsListWidget)})},
  1675. messageSends: ["at:", "methodDictionary", "selectedClass", "model"]}),
  1676. smalltalk.HLMethodsListWidget);
  1677. smalltalk.addMethod(
  1678. smalltalk.method({
  1679. selector: "methodsInProtocol:",
  1680. fn: function (aString){
  1681. var self=this;
  1682. return smalltalk.withContext(function($ctx1) {
  1683. var $1,$2,$4,$3;
  1684. $1=_st(_st(self)._model())._selectedClass();
  1685. if(($receiver = $1) == nil || $receiver == undefined){
  1686. $2=[];
  1687. return $2;
  1688. } else {
  1689. $1;
  1690. };
  1691. $4=_st(aString).__eq(_st(self)._allProtocol());
  1692. if(smalltalk.assert($4)){
  1693. $3=_st(_st(_st(self)._model())._selectedClass())._methods();
  1694. } else {
  1695. $3=_st(_st(_st(self)._model())._selectedClass())._methodsInProtocol_(aString);
  1696. };
  1697. return $3;
  1698. }, function($ctx1) {$ctx1.fill(self,"methodsInProtocol:",{aString:aString},smalltalk.HLMethodsListWidget)})},
  1699. messageSends: ["ifNil:", "selectedClass", "model", "ifTrue:ifFalse:", "methods", "methodsInProtocol:", "=", "allProtocol"]}),
  1700. smalltalk.HLMethodsListWidget);
  1701. smalltalk.addMethod(
  1702. smalltalk.method({
  1703. selector: "observeModel",
  1704. fn: function (){
  1705. var self=this;
  1706. function $HLProtocolSelected(){return smalltalk.HLProtocolSelected||(typeof HLProtocolSelected=="undefined"?nil:HLProtocolSelected)}
  1707. function $HLShowInstanceToggled(){return smalltalk.HLShowInstanceToggled||(typeof HLShowInstanceToggled=="undefined"?nil:HLShowInstanceToggled)}
  1708. function $HLShowCommentToggled(){return smalltalk.HLShowCommentToggled||(typeof HLShowCommentToggled=="undefined"?nil:HLShowCommentToggled)}
  1709. function $HLMethodSelected(){return smalltalk.HLMethodSelected||(typeof HLMethodSelected=="undefined"?nil:HLMethodSelected)}
  1710. function $HLMethodsFocusRequested(){return smalltalk.HLMethodsFocusRequested||(typeof HLMethodsFocusRequested=="undefined"?nil:HLMethodsFocusRequested)}
  1711. return smalltalk.withContext(function($ctx1) {
  1712. var $1,$2;
  1713. $1=_st(_st(self)._model())._announcer();
  1714. _st($1)._on_send_to_($HLProtocolSelected(),"onProtocolSelected:",self);
  1715. _st($1)._on_send_to_($HLShowInstanceToggled(),"onShowInstanceToggled",self);
  1716. _st($1)._on_send_to_($HLShowCommentToggled(),"onShowCommentToggled",self);
  1717. _st($1)._on_send_to_($HLMethodSelected(),"onMethodSelected:",self);
  1718. $2=_st($1)._on_send_to_($HLMethodsFocusRequested(),"onMethodsFocusRequested",self);
  1719. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{},smalltalk.HLMethodsListWidget)})},
  1720. messageSends: ["on:send:to:", "announcer", "model"]}),
  1721. smalltalk.HLMethodsListWidget);
  1722. smalltalk.addMethod(
  1723. smalltalk.method({
  1724. selector: "observeSystem",
  1725. fn: function (){
  1726. var self=this;
  1727. function $ProtocolAdded(){return smalltalk.ProtocolAdded||(typeof ProtocolAdded=="undefined"?nil:ProtocolAdded)}
  1728. function $ProtocolRemoved(){return smalltalk.ProtocolRemoved||(typeof ProtocolRemoved=="undefined"?nil:ProtocolRemoved)}
  1729. function $MethodAdded(){return smalltalk.MethodAdded||(typeof MethodAdded=="undefined"?nil:MethodAdded)}
  1730. function $MethodRemoved(){return smalltalk.MethodRemoved||(typeof MethodRemoved=="undefined"?nil:MethodRemoved)}
  1731. function $MethodMoved(){return smalltalk.MethodMoved||(typeof MethodMoved=="undefined"?nil:MethodMoved)}
  1732. return smalltalk.withContext(function($ctx1) {
  1733. var $1,$2;
  1734. $1=_st(_st(self)._model())._systemAnnouncer();
  1735. _st($1)._on_send_to_($ProtocolAdded(),"onProtocolAdded:",self);
  1736. _st($1)._on_send_to_($ProtocolRemoved(),"onProtocolRemoved:",self);
  1737. _st($1)._on_send_to_($MethodAdded(),"onMethodAdded:",self);
  1738. _st($1)._on_send_to_($MethodRemoved(),"onMethodRemoved:",self);
  1739. $2=_st($1)._on_send_to_($MethodMoved(),"onMethodMoved:",self);
  1740. return self}, function($ctx1) {$ctx1.fill(self,"observeSystem",{},smalltalk.HLMethodsListWidget)})},
  1741. messageSends: ["on:send:to:", "systemAnnouncer", "model"]}),
  1742. smalltalk.HLMethodsListWidget);
  1743. smalltalk.addMethod(
  1744. smalltalk.method({
  1745. selector: "onMethodAdded:",
  1746. fn: function (anAnnouncement){
  1747. var self=this;
  1748. return smalltalk.withContext(function($ctx1) {
  1749. var $1,$2;
  1750. $1=_st(_st(_st(self)._model())._selectedClass()).__eq(_st(_st(anAnnouncement)._method())._methodClass());
  1751. if(! smalltalk.assert($1)){
  1752. $2=self;
  1753. return $2;
  1754. };
  1755. _st(self)._setItemsForSelectedProtocol();
  1756. _st(self)._refresh();
  1757. return self}, function($ctx1) {$ctx1.fill(self,"onMethodAdded:",{anAnnouncement:anAnnouncement},smalltalk.HLMethodsListWidget)})},
  1758. messageSends: ["ifFalse:", "=", "methodClass", "method", "selectedClass", "model", "setItemsForSelectedProtocol", "refresh"]}),
  1759. smalltalk.HLMethodsListWidget);
  1760. smalltalk.addMethod(
  1761. smalltalk.method({
  1762. selector: "onMethodMoved:",
  1763. fn: function (anAnnouncement){
  1764. var self=this;
  1765. return smalltalk.withContext(function($ctx1) {
  1766. var $1,$2,$3,$4,$5;
  1767. $1=_st(_st(_st(self)._model())._selectedMethod()).__eq(_st(anAnnouncement)._method());
  1768. if(! smalltalk.assert($1)){
  1769. $2=self;
  1770. return $2;
  1771. };
  1772. $3=_st(_st(_st(self)._model())._selectedProtocol()).__eq(_st(_st(self)._model())._allProtocol());
  1773. if(! smalltalk.assert($3)){
  1774. $4=self;
  1775. _st($4)._selectedItem_(nil);
  1776. _st($4)._selectItem_(nil);
  1777. _st($4)._setItemsForSelectedProtocol();
  1778. $5=_st($4)._refresh();
  1779. $5;
  1780. };
  1781. return self}, function($ctx1) {$ctx1.fill(self,"onMethodMoved:",{anAnnouncement:anAnnouncement},smalltalk.HLMethodsListWidget)})},
  1782. messageSends: ["ifFalse:", "=", "method", "selectedMethod", "model", "selectedItem:", "selectItem:", "setItemsForSelectedProtocol", "refresh", "allProtocol", "selectedProtocol"]}),
  1783. smalltalk.HLMethodsListWidget);
  1784. smalltalk.addMethod(
  1785. smalltalk.method({
  1786. selector: "onMethodRemoved:",
  1787. fn: function (anAnnouncement){
  1788. var self=this;
  1789. var method;
  1790. return smalltalk.withContext(function($ctx1) {
  1791. var $1,$2,$3,$4,$5;
  1792. var $early={};
  1793. try {
  1794. method=_st(anAnnouncement)._method();
  1795. _st(_st(self)._items())._detect_ifNone_((function(each){
  1796. return smalltalk.withContext(function($ctx2) {
  1797. return _st(each).__eq(_st(method)._selector());
  1798. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}),(function(){
  1799. return smalltalk.withContext(function($ctx2) {
  1800. $1=self;
  1801. throw $early=[$1];
  1802. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1803. $2=_st(self)._selectedItem();
  1804. if(($receiver = $2) == nil || $receiver == undefined){
  1805. $2;
  1806. } else {
  1807. $3=_st(_st(_st(method)._methodClass()).__eq(_st(_st(self)._model())._selectedClass()))._and_((function(){
  1808. return smalltalk.withContext(function($ctx2) {
  1809. return _st(_st(method)._selector()).__eq(_st(self)._selectedItem());
  1810. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1811. if(smalltalk.assert($3)){
  1812. $4=self;
  1813. _st($4)._selectedItem_(nil);
  1814. $5=_st($4)._selectItem_(nil);
  1815. $5;
  1816. };
  1817. };
  1818. _st(self)._setItemsForSelectedProtocol();
  1819. _st(self)._refresh();
  1820. return self}
  1821. catch(e) {if(e===$early)return e[0]; throw e}
  1822. }, function($ctx1) {$ctx1.fill(self,"onMethodRemoved:",{anAnnouncement:anAnnouncement,method:method},smalltalk.HLMethodsListWidget)})},
  1823. messageSends: ["method", "detect:ifNone:", "=", "selector", "items", "ifNotNil:", "ifTrue:", "selectedItem:", "selectItem:", "and:", "selectedItem", "selectedClass", "model", "methodClass", "setItemsForSelectedProtocol", "refresh"]}),
  1824. smalltalk.HLMethodsListWidget);
  1825. smalltalk.addMethod(
  1826. smalltalk.method({
  1827. selector: "onMethodSelected:",
  1828. fn: function (anAnnouncement){
  1829. var self=this;
  1830. var selector,method;
  1831. return smalltalk.withContext(function($ctx1) {
  1832. var $1,$2,$3;
  1833. method=_st(anAnnouncement)._item();
  1834. $1=_st(method)._isCompiledMethod();
  1835. if(smalltalk.assert($1)){
  1836. selector=_st(method)._selector();
  1837. } else {
  1838. selector=nil;
  1839. };
  1840. $2=self;
  1841. _st($2)._selectedItem_(selector);
  1842. $3=_st($2)._activateItem_(selector);
  1843. return self}, function($ctx1) {$ctx1.fill(self,"onMethodSelected:",{anAnnouncement:anAnnouncement,selector:selector,method:method},smalltalk.HLMethodsListWidget)})},
  1844. messageSends: ["item", "ifTrue:ifFalse:", "selector", "isCompiledMethod", "selectedItem:", "activateItem:"]}),
  1845. smalltalk.HLMethodsListWidget);
  1846. smalltalk.addMethod(
  1847. smalltalk.method({
  1848. selector: "onMethodsFocusRequested",
  1849. fn: function (){
  1850. var self=this;
  1851. return smalltalk.withContext(function($ctx1) {
  1852. _st(self)._focus();
  1853. return self}, function($ctx1) {$ctx1.fill(self,"onMethodsFocusRequested",{},smalltalk.HLMethodsListWidget)})},
  1854. messageSends: ["focus"]}),
  1855. smalltalk.HLMethodsListWidget);
  1856. smalltalk.addMethod(
  1857. smalltalk.method({
  1858. selector: "onProtocolAdded:",
  1859. fn: function (anAnnouncement){
  1860. var self=this;
  1861. return smalltalk.withContext(function($ctx1) {
  1862. var $1,$2;
  1863. $1=_st(_st(_st(self)._model())._selectedClass()).__eq(_st(anAnnouncement)._theClass());
  1864. if(! smalltalk.assert($1)){
  1865. $2=self;
  1866. return $2;
  1867. };
  1868. _st(self)._setItemsForSelectedProtocol();
  1869. _st(self)._refresh();
  1870. _st(self)._focus();
  1871. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolAdded:",{anAnnouncement:anAnnouncement},smalltalk.HLMethodsListWidget)})},
  1872. messageSends: ["ifFalse:", "=", "theClass", "selectedClass", "model", "setItemsForSelectedProtocol", "refresh", "focus"]}),
  1873. smalltalk.HLMethodsListWidget);
  1874. smalltalk.addMethod(
  1875. smalltalk.method({
  1876. selector: "onProtocolRemoved:",
  1877. fn: function (anAnnouncement){
  1878. var self=this;
  1879. return smalltalk.withContext(function($ctx1) {
  1880. var $1,$2;
  1881. $1=_st(_st(_st(self)._model())._selectedClass()).__eq(_st(anAnnouncement)._theClass());
  1882. if(! smalltalk.assert($1)){
  1883. $2=self;
  1884. return $2;
  1885. };
  1886. _st(self)._setItemsForSelectedProtocol();
  1887. _st(self)._refresh();
  1888. _st(self)._focus();
  1889. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolRemoved:",{anAnnouncement:anAnnouncement},smalltalk.HLMethodsListWidget)})},
  1890. messageSends: ["ifFalse:", "=", "theClass", "selectedClass", "model", "setItemsForSelectedProtocol", "refresh", "focus"]}),
  1891. smalltalk.HLMethodsListWidget);
  1892. smalltalk.addMethod(
  1893. smalltalk.method({
  1894. selector: "onProtocolSelected:",
  1895. fn: function (anAnnouncement){
  1896. var self=this;
  1897. return smalltalk.withContext(function($ctx1) {
  1898. _st(self)._selectedItem_(nil);
  1899. _st(self)._setItemsForSelectedProtocol();
  1900. _st(self)._refresh();
  1901. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolSelected:",{anAnnouncement:anAnnouncement},smalltalk.HLMethodsListWidget)})},
  1902. messageSends: ["selectedItem:", "setItemsForSelectedProtocol", "refresh"]}),
  1903. smalltalk.HLMethodsListWidget);
  1904. smalltalk.addMethod(
  1905. smalltalk.method({
  1906. selector: "onShowCommentToggled",
  1907. fn: function (){
  1908. var self=this;
  1909. return smalltalk.withContext(function($ctx1) {
  1910. _st(self)._onProtocolSelected_(nil);
  1911. return self}, function($ctx1) {$ctx1.fill(self,"onShowCommentToggled",{},smalltalk.HLMethodsListWidget)})},
  1912. messageSends: ["onProtocolSelected:"]}),
  1913. smalltalk.HLMethodsListWidget);
  1914. smalltalk.addMethod(
  1915. smalltalk.method({
  1916. selector: "onShowInstanceToggled",
  1917. fn: function (){
  1918. var self=this;
  1919. return smalltalk.withContext(function($ctx1) {
  1920. _st(self)._onProtocolSelected_(nil);
  1921. return self}, function($ctx1) {$ctx1.fill(self,"onShowInstanceToggled",{},smalltalk.HLMethodsListWidget)})},
  1922. messageSends: ["onProtocolSelected:"]}),
  1923. smalltalk.HLMethodsListWidget);
  1924. smalltalk.addMethod(
  1925. smalltalk.method({
  1926. selector: "overrideSelectors",
  1927. fn: function (){
  1928. var self=this;
  1929. function $Set(){return smalltalk.Set||(typeof Set=="undefined"?nil:Set)}
  1930. return smalltalk.withContext(function($ctx1) {
  1931. var $2,$3,$1;
  1932. $1=_st(_st(self)._selectorsCache())._at_ifAbsentPut_("override",(function(){
  1933. return smalltalk.withContext(function($ctx2) {
  1934. return _st(_st(_st(_st(self)._model())._selectedClass())._allSuperclasses())._inject_into_(_st($Set())._new(),(function(acc,each){
  1935. return smalltalk.withContext(function($ctx3) {
  1936. $2=acc;
  1937. _st($2)._addAll_(_st(each)._selectors());
  1938. $3=_st($2)._yourself();
  1939. return $3;
  1940. }, function($ctx3) {$ctx3.fillBlock({acc:acc,each:each},$ctx1)})}));
  1941. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1942. return $1;
  1943. }, function($ctx1) {$ctx1.fill(self,"overrideSelectors",{},smalltalk.HLMethodsListWidget)})},
  1944. messageSends: ["at:ifAbsentPut:", "inject:into:", "new", "addAll:", "selectors", "yourself", "allSuperclasses", "selectedClass", "model", "selectorsCache"]}),
  1945. smalltalk.HLMethodsListWidget);
  1946. smalltalk.addMethod(
  1947. smalltalk.method({
  1948. selector: "overridenSelectors",
  1949. fn: function (){
  1950. var self=this;
  1951. function $Set(){return smalltalk.Set||(typeof Set=="undefined"?nil:Set)}
  1952. return smalltalk.withContext(function($ctx1) {
  1953. var $2,$3,$1;
  1954. $1=_st(_st(self)._selectorsCache())._at_ifAbsentPut_("overriden",(function(){
  1955. return smalltalk.withContext(function($ctx2) {
  1956. return _st(_st(_st(_st(self)._model())._selectedClass())._allSubclasses())._inject_into_(_st($Set())._new(),(function(acc,each){
  1957. return smalltalk.withContext(function($ctx3) {
  1958. $2=acc;
  1959. _st($2)._addAll_(_st(each)._selectors());
  1960. $3=_st($2)._yourself();
  1961. return $3;
  1962. }, function($ctx3) {$ctx3.fillBlock({acc:acc,each:each},$ctx1)})}));
  1963. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1964. return $1;
  1965. }, function($ctx1) {$ctx1.fill(self,"overridenSelectors",{},smalltalk.HLMethodsListWidget)})},
  1966. messageSends: ["at:ifAbsentPut:", "inject:into:", "new", "addAll:", "selectors", "yourself", "allSubclasses", "selectedClass", "model", "selectorsCache"]}),
  1967. smalltalk.HLMethodsListWidget);
  1968. smalltalk.addMethod(
  1969. smalltalk.method({
  1970. selector: "renderContentOn:",
  1971. fn: function (html){
  1972. var self=this;
  1973. return smalltalk.withContext(function($ctx1) {
  1974. var $1,$2,$3;
  1975. $1=_st(_st(self)._model())._showInstance();
  1976. if(smalltalk.assert($1)){
  1977. smalltalk.HLToolListWidget.fn.prototype._renderContentOn_.apply(_st(self), [html]);
  1978. } else {
  1979. $2=_st(html)._div();
  1980. _st($2)._class_("class_side");
  1981. $3=_st($2)._with_((function(){
  1982. return smalltalk.withContext(function($ctx2) {
  1983. return smalltalk.HLToolListWidget.fn.prototype._renderContentOn_.apply(_st(self), [html]);
  1984. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1985. $3;
  1986. };
  1987. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLMethodsListWidget)})},
  1988. messageSends: ["ifFalse:ifTrue:", "class:", "div", "with:", "renderContentOn:", "showInstance", "model"]}),
  1989. smalltalk.HLMethodsListWidget);
  1990. smalltalk.addMethod(
  1991. smalltalk.method({
  1992. selector: "renderItemLabel:on:",
  1993. fn: function (aSelector,html){
  1994. var self=this;
  1995. return smalltalk.withContext(function($ctx1) {
  1996. _st(html)._with_(aSelector);
  1997. return self}, function($ctx1) {$ctx1.fill(self,"renderItemLabel:on:",{aSelector:aSelector,html:html},smalltalk.HLMethodsListWidget)})},
  1998. messageSends: ["with:"]}),
  1999. smalltalk.HLMethodsListWidget);
  2000. smalltalk.addMethod(
  2001. smalltalk.method({
  2002. selector: "selectItem:",
  2003. fn: function (aSelector){
  2004. var self=this;
  2005. return smalltalk.withContext(function($ctx1) {
  2006. var $1,$2;
  2007. $1=aSelector;
  2008. if(($receiver = $1) == nil || $receiver == undefined){
  2009. $2=_st(_st(self)._model())._selectedMethod_(nil);
  2010. return $2;
  2011. } else {
  2012. $1;
  2013. };
  2014. _st(_st(self)._model())._selectedMethod_(_st(self)._methodForSelector_(aSelector));
  2015. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{aSelector:aSelector},smalltalk.HLMethodsListWidget)})},
  2016. messageSends: ["ifNil:", "selectedMethod:", "model", "methodForSelector:"]}),
  2017. smalltalk.HLMethodsListWidget);
  2018. smalltalk.addMethod(
  2019. smalltalk.method({
  2020. selector: "selectorsCache",
  2021. fn: function (){
  2022. var self=this;
  2023. return smalltalk.withContext(function($ctx1) {
  2024. var $1;
  2025. $1=_st(_st(self)._class())._selectorsCache();
  2026. return $1;
  2027. }, function($ctx1) {$ctx1.fill(self,"selectorsCache",{},smalltalk.HLMethodsListWidget)})},
  2028. messageSends: ["selectorsCache", "class"]}),
  2029. smalltalk.HLMethodsListWidget);
  2030. smalltalk.addMethod(
  2031. smalltalk.method({
  2032. selector: "selectorsInProtocol:",
  2033. fn: function (aString){
  2034. var self=this;
  2035. return smalltalk.withContext(function($ctx1) {
  2036. var $1;
  2037. $1=_st(_st(_st(self)._methodsInProtocol_(aString))._collect_((function(each){
  2038. return smalltalk.withContext(function($ctx2) {
  2039. return _st(each)._selector();
  2040. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})))._sorted();
  2041. return $1;
  2042. }, function($ctx1) {$ctx1.fill(self,"selectorsInProtocol:",{aString:aString},smalltalk.HLMethodsListWidget)})},
  2043. messageSends: ["sorted", "collect:", "selector", "methodsInProtocol:"]}),
  2044. smalltalk.HLMethodsListWidget);
  2045. smalltalk.addMethod(
  2046. smalltalk.method({
  2047. selector: "setItemsForProtocol:",
  2048. fn: function (aString){
  2049. var self=this;
  2050. return smalltalk.withContext(function($ctx1) {
  2051. var $2,$4,$3,$1;
  2052. $2=self;
  2053. $4=aString;
  2054. if(($receiver = $4) == nil || $receiver == undefined){
  2055. $3=[];
  2056. } else {
  2057. $3=_st(self)._selectorsInProtocol_(aString);
  2058. };
  2059. $1=_st($2)._items_($3);
  2060. return $1;
  2061. }, function($ctx1) {$ctx1.fill(self,"setItemsForProtocol:",{aString:aString},smalltalk.HLMethodsListWidget)})},
  2062. messageSends: ["items:", "ifNil:ifNotNil:", "selectorsInProtocol:"]}),
  2063. smalltalk.HLMethodsListWidget);
  2064. smalltalk.addMethod(
  2065. smalltalk.method({
  2066. selector: "setItemsForSelectedProtocol",
  2067. fn: function (){
  2068. var self=this;
  2069. return smalltalk.withContext(function($ctx1) {
  2070. _st(self)._setItemsForProtocol_(_st(_st(self)._model())._selectedProtocol());
  2071. return self}, function($ctx1) {$ctx1.fill(self,"setItemsForSelectedProtocol",{},smalltalk.HLMethodsListWidget)})},
  2072. messageSends: ["setItemsForProtocol:", "selectedProtocol", "model"]}),
  2073. smalltalk.HLMethodsListWidget);
  2074. smalltalk.HLMethodsListWidget.klass.iVarNames = ['selectorsCache'];
  2075. smalltalk.addMethod(
  2076. smalltalk.method({
  2077. selector: "selectorsCache",
  2078. fn: function (){
  2079. var self=this;
  2080. function $HLSelectorsCache(){return smalltalk.HLSelectorsCache||(typeof HLSelectorsCache=="undefined"?nil:HLSelectorsCache)}
  2081. return smalltalk.withContext(function($ctx1) {
  2082. var $1;
  2083. $1=_st($HLSelectorsCache())._current();
  2084. return $1;
  2085. }, function($ctx1) {$ctx1.fill(self,"selectorsCache",{},smalltalk.HLMethodsListWidget.klass)})},
  2086. messageSends: ["current"]}),
  2087. smalltalk.HLMethodsListWidget.klass);
  2088. smalltalk.addClass('HLPackagesListWidget', smalltalk.HLToolListWidget, [], 'Helios-Browser');
  2089. smalltalk.addMethod(
  2090. smalltalk.method({
  2091. selector: "commitPackage",
  2092. fn: function (){
  2093. var self=this;
  2094. return smalltalk.withContext(function($ctx1) {
  2095. _st(_st(self)._model())._commitPackage();
  2096. return self}, function($ctx1) {$ctx1.fill(self,"commitPackage",{},smalltalk.HLPackagesListWidget)})},
  2097. messageSends: ["commitPackage", "model"]}),
  2098. smalltalk.HLPackagesListWidget);
  2099. smalltalk.addMethod(
  2100. smalltalk.method({
  2101. selector: "focusClassesListWidget",
  2102. fn: function (){
  2103. var self=this;
  2104. function $HLClassesListFocus(){return smalltalk.HLClassesListFocus||(typeof HLClassesListFocus=="undefined"?nil:HLClassesListFocus)}
  2105. return smalltalk.withContext(function($ctx1) {
  2106. _st(_st(_st(self)._model())._announcer())._announce_(_st($HLClassesListFocus())._new());
  2107. return self}, function($ctx1) {$ctx1.fill(self,"focusClassesListWidget",{},smalltalk.HLPackagesListWidget)})},
  2108. messageSends: ["announce:", "new", "announcer", "model"]}),
  2109. smalltalk.HLPackagesListWidget);
  2110. smalltalk.addMethod(
  2111. smalltalk.method({
  2112. selector: "initializeItems",
  2113. fn: function (){
  2114. var self=this;
  2115. return smalltalk.withContext(function($ctx1) {
  2116. var $1;
  2117. self["@items"]=_st(_st(_st(self)._model())._packages())._sort_((function(a,b){
  2118. return smalltalk.withContext(function($ctx2) {
  2119. return _st(_st(a)._name()).__lt(_st(b)._name());
  2120. }, function($ctx2) {$ctx2.fillBlock({a:a,b:b},$ctx1)})}));
  2121. $1=self["@items"];
  2122. return $1;
  2123. }, function($ctx1) {$ctx1.fill(self,"initializeItems",{},smalltalk.HLPackagesListWidget)})},
  2124. messageSends: ["sort:", "<", "name", "packages", "model"]}),
  2125. smalltalk.HLPackagesListWidget);
  2126. smalltalk.addMethod(
  2127. smalltalk.method({
  2128. selector: "items",
  2129. fn: function (){
  2130. var self=this;
  2131. return smalltalk.withContext(function($ctx1) {
  2132. var $2,$1;
  2133. $2=self["@items"];
  2134. if(($receiver = $2) == nil || $receiver == undefined){
  2135. $1=_st(self)._initializeItems();
  2136. } else {
  2137. $1=$2;
  2138. };
  2139. return $1;
  2140. }, function($ctx1) {$ctx1.fill(self,"items",{},smalltalk.HLPackagesListWidget)})},
  2141. messageSends: ["ifNil:", "initializeItems"]}),
  2142. smalltalk.HLPackagesListWidget);
  2143. smalltalk.addMethod(
  2144. smalltalk.method({
  2145. selector: "label",
  2146. fn: function (){
  2147. var self=this;
  2148. return smalltalk.withContext(function($ctx1) {
  2149. return "Packages";
  2150. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLPackagesListWidget)})},
  2151. messageSends: []}),
  2152. smalltalk.HLPackagesListWidget);
  2153. smalltalk.addMethod(
  2154. smalltalk.method({
  2155. selector: "observeModel",
  2156. fn: function (){
  2157. var self=this;
  2158. function $HLPackageSelected(){return smalltalk.HLPackageSelected||(typeof HLPackageSelected=="undefined"?nil:HLPackageSelected)}
  2159. function $HLPackagesFocusRequested(){return smalltalk.HLPackagesFocusRequested||(typeof HLPackagesFocusRequested=="undefined"?nil:HLPackagesFocusRequested)}
  2160. return smalltalk.withContext(function($ctx1) {
  2161. var $1,$2;
  2162. $1=_st(_st(self)._model())._announcer();
  2163. _st($1)._on_send_to_($HLPackageSelected(),"onPackageSelected:",self);
  2164. $2=_st($1)._on_send_to_($HLPackagesFocusRequested(),"onPackagesFocusRequested",self);
  2165. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{},smalltalk.HLPackagesListWidget)})},
  2166. messageSends: ["on:send:to:", "announcer", "model"]}),
  2167. smalltalk.HLPackagesListWidget);
  2168. smalltalk.addMethod(
  2169. smalltalk.method({
  2170. selector: "observeSystem",
  2171. fn: function (){
  2172. var self=this;
  2173. function $ClassAdded(){return smalltalk.ClassAdded||(typeof ClassAdded=="undefined"?nil:ClassAdded)}
  2174. return smalltalk.withContext(function($ctx1) {
  2175. _st(_st(_st(self)._model())._systemAnnouncer())._on_send_to_($ClassAdded(),"onClassAdded:",self);
  2176. return self}, function($ctx1) {$ctx1.fill(self,"observeSystem",{},smalltalk.HLPackagesListWidget)})},
  2177. messageSends: ["on:send:to:", "systemAnnouncer", "model"]}),
  2178. smalltalk.HLPackagesListWidget);
  2179. smalltalk.addMethod(
  2180. smalltalk.method({
  2181. selector: "onClassAdded:",
  2182. fn: function (anAnnouncement){
  2183. var self=this;
  2184. return smalltalk.withContext(function($ctx1) {
  2185. var $1,$2,$3;
  2186. $1=_st(_st(self)._items())._includes_(_st(_st(anAnnouncement)._theClass())._package());
  2187. if(! smalltalk.assert($1)){
  2188. $2=self;
  2189. _st($2)._initializeItems();
  2190. $3=_st($2)._refresh();
  2191. $3;
  2192. };
  2193. return self}, function($ctx1) {$ctx1.fill(self,"onClassAdded:",{anAnnouncement:anAnnouncement},smalltalk.HLPackagesListWidget)})},
  2194. messageSends: ["ifFalse:", "initializeItems", "refresh", "includes:", "package", "theClass", "items"]}),
  2195. smalltalk.HLPackagesListWidget);
  2196. smalltalk.addMethod(
  2197. smalltalk.method({
  2198. selector: "onPackageSelected:",
  2199. fn: function (anAnnouncement){
  2200. var self=this;
  2201. var package_;
  2202. return smalltalk.withContext(function($ctx1) {
  2203. var $1,$2,$3;
  2204. package_=_st(anAnnouncement)._item();
  2205. _st(self)._selectedItem_(package_);
  2206. $1=_st(self)._hasFocus();
  2207. if(! smalltalk.assert($1)){
  2208. $2=self;
  2209. _st($2)._activateItem_(package_);
  2210. $3=_st($2)._focus();
  2211. $3;
  2212. };
  2213. return self}, function($ctx1) {$ctx1.fill(self,"onPackageSelected:",{anAnnouncement:anAnnouncement,package_:package_},smalltalk.HLPackagesListWidget)})},
  2214. messageSends: ["item", "selectedItem:", "ifFalse:", "activateItem:", "focus", "hasFocus"]}),
  2215. smalltalk.HLPackagesListWidget);
  2216. smalltalk.addMethod(
  2217. smalltalk.method({
  2218. selector: "onPackagesFocusRequested",
  2219. fn: function (){
  2220. var self=this;
  2221. return smalltalk.withContext(function($ctx1) {
  2222. _st(self)._focus();
  2223. return self}, function($ctx1) {$ctx1.fill(self,"onPackagesFocusRequested",{},smalltalk.HLPackagesListWidget)})},
  2224. messageSends: ["focus"]}),
  2225. smalltalk.HLPackagesListWidget);
  2226. smalltalk.addMethod(
  2227. smalltalk.method({
  2228. selector: "renderButtonsOn:",
  2229. fn: function (html){
  2230. var self=this;
  2231. return smalltalk.withContext(function($ctx1) {
  2232. var $1,$3,$4,$2;
  2233. $1=_st(html)._div();
  2234. _st($1)._class_("buttons");
  2235. $2=_st($1)._with_((function(){
  2236. return smalltalk.withContext(function($ctx2) {
  2237. $3=_st(html)._button();
  2238. _st($3)._class_("btn");
  2239. _st($3)._with_("Commit");
  2240. $4=_st($3)._onClick_((function(){
  2241. return smalltalk.withContext(function($ctx3) {
  2242. return _st(self)._commitPackage();
  2243. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  2244. return $4;
  2245. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2246. return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html},smalltalk.HLPackagesListWidget)})},
  2247. messageSends: ["class:", "div", "with:", "button", "onClick:", "commitPackage"]}),
  2248. smalltalk.HLPackagesListWidget);
  2249. smalltalk.addMethod(
  2250. smalltalk.method({
  2251. selector: "renderItemLabel:on:",
  2252. fn: function (aPackage,html){
  2253. var self=this;
  2254. return smalltalk.withContext(function($ctx1) {
  2255. _st(html)._with_(_st(aPackage)._name());
  2256. return self}, function($ctx1) {$ctx1.fill(self,"renderItemLabel:on:",{aPackage:aPackage,html:html},smalltalk.HLPackagesListWidget)})},
  2257. messageSends: ["with:", "name"]}),
  2258. smalltalk.HLPackagesListWidget);
  2259. smalltalk.addMethod(
  2260. smalltalk.method({
  2261. selector: "selectItem:",
  2262. fn: function (aPackage){
  2263. var self=this;
  2264. return smalltalk.withContext(function($ctx1) {
  2265. _st(_st(self)._model())._selectedPackage_(aPackage);
  2266. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{aPackage:aPackage},smalltalk.HLPackagesListWidget)})},
  2267. messageSends: ["selectedPackage:", "model"]}),
  2268. smalltalk.HLPackagesListWidget);
  2269. smalltalk.addClass('HLProtocolsListWidget', smalltalk.HLToolListWidget, [], 'Helios-Browser');
  2270. smalltalk.addMethod(
  2271. smalltalk.method({
  2272. selector: "allProtocol",
  2273. fn: function (){
  2274. var self=this;
  2275. return smalltalk.withContext(function($ctx1) {
  2276. var $1;
  2277. $1=_st(_st(self)._model())._allProtocol();
  2278. return $1;
  2279. }, function($ctx1) {$ctx1.fill(self,"allProtocol",{},smalltalk.HLProtocolsListWidget)})},
  2280. messageSends: ["allProtocol", "model"]}),
  2281. smalltalk.HLProtocolsListWidget);
  2282. smalltalk.addMethod(
  2283. smalltalk.method({
  2284. selector: "label",
  2285. fn: function (){
  2286. var self=this;
  2287. return smalltalk.withContext(function($ctx1) {
  2288. return "Protocols";
  2289. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLProtocolsListWidget)})},
  2290. messageSends: []}),
  2291. smalltalk.HLProtocolsListWidget);
  2292. smalltalk.addMethod(
  2293. smalltalk.method({
  2294. selector: "observeModel",
  2295. fn: function (){
  2296. var self=this;
  2297. function $HLClassSelected(){return smalltalk.HLClassSelected||(typeof HLClassSelected=="undefined"?nil:HLClassSelected)}
  2298. function $HLShowInstanceToggled(){return smalltalk.HLShowInstanceToggled||(typeof HLShowInstanceToggled=="undefined"?nil:HLShowInstanceToggled)}
  2299. function $HLShowCommentToggled(){return smalltalk.HLShowCommentToggled||(typeof HLShowCommentToggled=="undefined"?nil:HLShowCommentToggled)}
  2300. function $HLProtocolSelected(){return smalltalk.HLProtocolSelected||(typeof HLProtocolSelected=="undefined"?nil:HLProtocolSelected)}
  2301. function $HLProtocolsFocusRequested(){return smalltalk.HLProtocolsFocusRequested||(typeof HLProtocolsFocusRequested=="undefined"?nil:HLProtocolsFocusRequested)}
  2302. return smalltalk.withContext(function($ctx1) {
  2303. var $1,$2;
  2304. $1=_st(_st(self)._model())._announcer();
  2305. _st($1)._on_send_to_($HLClassSelected(),"onClassSelected:",self);
  2306. _st($1)._on_send_to_($HLShowInstanceToggled(),"onClassSelected:",self);
  2307. _st($1)._on_send_to_($HLShowCommentToggled(),"onShowCommentToggled",self);
  2308. _st($1)._on_send_to_($HLProtocolSelected(),"onProtocolSelected:",self);
  2309. $2=_st($1)._on_send_to_($HLProtocolsFocusRequested(),"onProtocolsFocusRequested",self);
  2310. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{},smalltalk.HLProtocolsListWidget)})},
  2311. messageSends: ["on:send:to:", "announcer", "model"]}),
  2312. smalltalk.HLProtocolsListWidget);
  2313. smalltalk.addMethod(
  2314. smalltalk.method({
  2315. selector: "observeSystem",
  2316. fn: function (){
  2317. var self=this;
  2318. function $ProtocolAdded(){return smalltalk.ProtocolAdded||(typeof ProtocolAdded=="undefined"?nil:ProtocolAdded)}
  2319. function $ProtocolRemoved(){return smalltalk.ProtocolRemoved||(typeof ProtocolRemoved=="undefined"?nil:ProtocolRemoved)}
  2320. return smalltalk.withContext(function($ctx1) {
  2321. var $1,$2;
  2322. $1=_st(_st(self)._model())._systemAnnouncer();
  2323. _st($1)._on_send_to_($ProtocolAdded(),"onProtocolAdded:",self);
  2324. $2=_st($1)._on_send_to_($ProtocolRemoved(),"onProtocolRemoved:",self);
  2325. return self}, function($ctx1) {$ctx1.fill(self,"observeSystem",{},smalltalk.HLProtocolsListWidget)})},
  2326. messageSends: ["on:send:to:", "systemAnnouncer", "model"]}),
  2327. smalltalk.HLProtocolsListWidget);
  2328. smalltalk.addMethod(
  2329. smalltalk.method({
  2330. selector: "onClassSelected:",
  2331. fn: function (anAnnouncement){
  2332. var self=this;
  2333. return smalltalk.withContext(function($ctx1) {
  2334. _st(self)._selectedItem_(nil);
  2335. _st(self)._setItemsForSelectedClass();
  2336. _st(self)._refresh();
  2337. return self}, function($ctx1) {$ctx1.fill(self,"onClassSelected:",{anAnnouncement:anAnnouncement},smalltalk.HLProtocolsListWidget)})},
  2338. messageSends: ["selectedItem:", "setItemsForSelectedClass", "refresh"]}),
  2339. smalltalk.HLProtocolsListWidget);
  2340. smalltalk.addMethod(
  2341. smalltalk.method({
  2342. selector: "onProtocolAdded:",
  2343. fn: function (anAnnouncement){
  2344. var self=this;
  2345. var class_;
  2346. return smalltalk.withContext(function($ctx1) {
  2347. var $1,$2;
  2348. class_=_st(anAnnouncement)._theClass();
  2349. $1=_st(class_).__eq(_st(_st(self)._model())._selectedClass());
  2350. if(! smalltalk.assert($1)){
  2351. $2=self;
  2352. return $2;
  2353. };
  2354. _st(self)._setItemsForSelectedClass();
  2355. _st(self)._refresh();
  2356. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolAdded:",{anAnnouncement:anAnnouncement,class_:class_},smalltalk.HLProtocolsListWidget)})},
  2357. messageSends: ["theClass", "ifFalse:", "=", "selectedClass", "model", "setItemsForSelectedClass", "refresh"]}),
  2358. smalltalk.HLProtocolsListWidget);
  2359. smalltalk.addMethod(
  2360. smalltalk.method({
  2361. selector: "onProtocolRemoved:",
  2362. fn: function (anAnnouncement){
  2363. var self=this;
  2364. var class_,protocol;
  2365. return smalltalk.withContext(function($ctx1) {
  2366. var $1,$2,$3,$4,$5;
  2367. class_=_st(anAnnouncement)._theClass();
  2368. protocol=_st(anAnnouncement)._protocol();
  2369. $1=_st(class_).__eq(_st(_st(self)._model())._selectedClass());
  2370. if(! smalltalk.assert($1)){
  2371. $2=self;
  2372. return $2;
  2373. };
  2374. $3=_st(_st(_st(self)._model())._selectedProtocol()).__eq(protocol);
  2375. if(smalltalk.assert($3)){
  2376. $4=self;
  2377. _st($4)._selectedItem_(nil);
  2378. $5=_st($4)._selectItem_(nil);
  2379. $5;
  2380. };
  2381. _st(self)._setItemsForSelectedClass();
  2382. _st(self)._refresh();
  2383. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolRemoved:",{anAnnouncement:anAnnouncement,class_:class_,protocol:protocol},smalltalk.HLProtocolsListWidget)})},
  2384. messageSends: ["theClass", "protocol", "ifFalse:", "=", "selectedClass", "model", "ifTrue:", "selectedItem:", "selectItem:", "selectedProtocol", "setItemsForSelectedClass", "refresh"]}),
  2385. smalltalk.HLProtocolsListWidget);
  2386. smalltalk.addMethod(
  2387. smalltalk.method({
  2388. selector: "onProtocolSelected:",
  2389. fn: function (anAnnouncement){
  2390. var self=this;
  2391. var protocol;
  2392. return smalltalk.withContext(function($ctx1) {
  2393. var $1,$2,$3,$4,$5;
  2394. protocol=_st(anAnnouncement)._item();
  2395. _st(self)._selectedItem_(protocol);
  2396. $1=protocol;
  2397. if(($receiver = $1) == nil || $receiver == undefined){
  2398. $2=self;
  2399. return $2;
  2400. } else {
  2401. $1;
  2402. };
  2403. $3=_st(self)._hasFocus();
  2404. if(! smalltalk.assert($3)){
  2405. $4=self;
  2406. _st($4)._activateItem_(protocol);
  2407. $5=_st($4)._focus();
  2408. $5;
  2409. };
  2410. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolSelected:",{anAnnouncement:anAnnouncement,protocol:protocol},smalltalk.HLProtocolsListWidget)})},
  2411. messageSends: ["item", "selectedItem:", "ifNil:", "ifFalse:", "activateItem:", "focus", "hasFocus"]}),
  2412. smalltalk.HLProtocolsListWidget);
  2413. smalltalk.addMethod(
  2414. smalltalk.method({
  2415. selector: "onProtocolsFocusRequested",
  2416. fn: function (){
  2417. var self=this;
  2418. return smalltalk.withContext(function($ctx1) {
  2419. _st(self)._focus();
  2420. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolsFocusRequested",{},smalltalk.HLProtocolsListWidget)})},
  2421. messageSends: ["focus"]}),
  2422. smalltalk.HLProtocolsListWidget);
  2423. smalltalk.addMethod(
  2424. smalltalk.method({
  2425. selector: "onShowCommentToggled",
  2426. fn: function (){
  2427. var self=this;
  2428. return smalltalk.withContext(function($ctx1) {
  2429. var $1,$2;
  2430. $1=self;
  2431. _st($1)._selectItem_(nil);
  2432. _st($1)._setItemsForSelectedClass();
  2433. $2=_st($1)._refresh();
  2434. return self}, function($ctx1) {$ctx1.fill(self,"onShowCommentToggled",{},smalltalk.HLProtocolsListWidget)})},
  2435. messageSends: ["selectItem:", "setItemsForSelectedClass", "refresh"]}),
  2436. smalltalk.HLProtocolsListWidget);
  2437. smalltalk.addMethod(
  2438. smalltalk.method({
  2439. selector: "renderContentOn:",
  2440. fn: function (html){
  2441. var self=this;
  2442. return smalltalk.withContext(function($ctx1) {
  2443. var $1,$2,$3;
  2444. $1=_st(_st(self)._model())._showInstance();
  2445. if(smalltalk.assert($1)){
  2446. smalltalk.HLToolListWidget.fn.prototype._renderContentOn_.apply(_st(self), [html]);
  2447. } else {
  2448. $2=_st(html)._div();
  2449. _st($2)._class_("class_side");
  2450. $3=_st($2)._with_((function(){
  2451. return smalltalk.withContext(function($ctx2) {
  2452. return smalltalk.HLToolListWidget.fn.prototype._renderContentOn_.apply(_st(self), [html]);
  2453. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2454. $3;
  2455. };
  2456. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLProtocolsListWidget)})},
  2457. messageSends: ["ifFalse:ifTrue:", "class:", "div", "with:", "renderContentOn:", "showInstance", "model"]}),
  2458. smalltalk.HLProtocolsListWidget);
  2459. smalltalk.addMethod(
  2460. smalltalk.method({
  2461. selector: "selectItem:",
  2462. fn: function (aString){
  2463. var self=this;
  2464. return smalltalk.withContext(function($ctx1) {
  2465. _st(_st(self)._model())._selectedProtocol_(aString);
  2466. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{aString:aString},smalltalk.HLProtocolsListWidget)})},
  2467. messageSends: ["selectedProtocol:", "model"]}),
  2468. smalltalk.HLProtocolsListWidget);
  2469. smalltalk.addMethod(
  2470. smalltalk.method({
  2471. selector: "selectedItem",
  2472. fn: function (){
  2473. var self=this;
  2474. return smalltalk.withContext(function($ctx1) {
  2475. var $1;
  2476. $1=smalltalk.HLToolListWidget.fn.prototype._selectedItem.apply(_st(self), []);
  2477. return $1;
  2478. }, function($ctx1) {$ctx1.fill(self,"selectedItem",{},smalltalk.HLProtocolsListWidget)})},
  2479. messageSends: ["selectedItem"]}),
  2480. smalltalk.HLProtocolsListWidget);
  2481. smalltalk.addMethod(
  2482. smalltalk.method({
  2483. selector: "setItemsForClass:",
  2484. fn: function (aClass){
  2485. var self=this;
  2486. function $Array(){return smalltalk.Array||(typeof Array=="undefined"?nil:Array)}
  2487. return smalltalk.withContext(function($ctx1) {
  2488. var $1,$2,$3,$5,$6,$7,$4;
  2489. $1=_st(_st(self)._model())._showComment();
  2490. if(smalltalk.assert($1)){
  2491. $2=_st(self)._items_([]);
  2492. return $2;
  2493. };
  2494. $3=self;
  2495. $5=aClass;
  2496. if(($receiver = $5) == nil || $receiver == undefined){
  2497. $4=_st($Array())._with_(_st(self)._allProtocol());
  2498. } else {
  2499. $6=_st($Array())._with_(_st(self)._allProtocol());
  2500. _st($6)._addAll_(_st(aClass)._protocols());
  2501. $7=_st($6)._yourself();
  2502. $4=$7;
  2503. };
  2504. _st($3)._items_($4);
  2505. return self}, function($ctx1) {$ctx1.fill(self,"setItemsForClass:",{aClass:aClass},smalltalk.HLProtocolsListWidget)})},
  2506. messageSends: ["ifTrue:", "items:", "showComment", "model", "ifNil:ifNotNil:", "with:", "allProtocol", "addAll:", "protocols", "yourself"]}),
  2507. smalltalk.HLProtocolsListWidget);
  2508. smalltalk.addMethod(
  2509. smalltalk.method({
  2510. selector: "setItemsForSelectedClass",
  2511. fn: function (){
  2512. var self=this;
  2513. return smalltalk.withContext(function($ctx1) {
  2514. _st(self)._setItemsForClass_(_st(_st(self)._model())._selectedClass());
  2515. return self}, function($ctx1) {$ctx1.fill(self,"setItemsForSelectedClass",{},smalltalk.HLProtocolsListWidget)})},
  2516. messageSends: ["setItemsForClass:", "selectedClass", "model"]}),
  2517. smalltalk.HLProtocolsListWidget);
  2518. smalltalk.addClass('HLSelectorsCache', smalltalk.Object, ['classesCache'], 'Helios-Browser');
  2519. smalltalk.addMethod(
  2520. smalltalk.method({
  2521. selector: "cacheFor:",
  2522. fn: function (aClass){
  2523. var self=this;
  2524. return smalltalk.withContext(function($ctx1) {
  2525. var $1,$2;
  2526. $1=aClass;
  2527. if(($receiver = $1) == nil || $receiver == undefined){
  2528. return nil;
  2529. } else {
  2530. $1;
  2531. };
  2532. $2=_st(_st(self)._classesCache())._at_ifAbsentPut_(_st(aClass)._name(),(function(){
  2533. return smalltalk.withContext(function($ctx2) {
  2534. return _st(self)._newCacheFor_(aClass);
  2535. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2536. return $2;
  2537. }, function($ctx1) {$ctx1.fill(self,"cacheFor:",{aClass:aClass},smalltalk.HLSelectorsCache)})},
  2538. messageSends: ["ifNil:", "at:ifAbsentPut:", "name", "newCacheFor:", "classesCache"]}),
  2539. smalltalk.HLSelectorsCache);
  2540. smalltalk.addMethod(
  2541. smalltalk.method({
  2542. selector: "classesCache",
  2543. fn: function (){
  2544. var self=this;
  2545. function $HashedCollection(){return smalltalk.HashedCollection||(typeof HashedCollection=="undefined"?nil:HashedCollection)}
  2546. return smalltalk.withContext(function($ctx1) {
  2547. var $2,$1;
  2548. $2=self["@classesCache"];
  2549. if(($receiver = $2) == nil || $receiver == undefined){
  2550. self["@classesCache"]=_st($HashedCollection())._new();
  2551. $1=self["@classesCache"];
  2552. } else {
  2553. $1=$2;
  2554. };
  2555. return $1;
  2556. }, function($ctx1) {$ctx1.fill(self,"classesCache",{},smalltalk.HLSelectorsCache)})},
  2557. messageSends: ["ifNil:", "new"]}),
  2558. smalltalk.HLSelectorsCache);
  2559. smalltalk.addMethod(
  2560. smalltalk.method({
  2561. selector: "initialize",
  2562. fn: function (){
  2563. var self=this;
  2564. return smalltalk.withContext(function($ctx1) {
  2565. smalltalk.Object.fn.prototype._initialize.apply(_st(self), []);
  2566. _st(self)._observeSystem();
  2567. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.HLSelectorsCache)})},
  2568. messageSends: ["initialize", "observeSystem"]}),
  2569. smalltalk.HLSelectorsCache);
  2570. smalltalk.addMethod(
  2571. smalltalk.method({
  2572. selector: "invalidateCacheFor:",
  2573. fn: function (aMethod){
  2574. var self=this;
  2575. return smalltalk.withContext(function($ctx1) {
  2576. _st(_st(self)._cacheFor_(_st(aMethod)._methodClass()))._invalidateSelector_(_st(aMethod)._selector());
  2577. return self}, function($ctx1) {$ctx1.fill(self,"invalidateCacheFor:",{aMethod:aMethod},smalltalk.HLSelectorsCache)})},
  2578. messageSends: ["invalidateSelector:", "selector", "cacheFor:", "methodClass"]}),
  2579. smalltalk.HLSelectorsCache);
  2580. smalltalk.addMethod(
  2581. smalltalk.method({
  2582. selector: "isOverridden:",
  2583. fn: function (aMethod){
  2584. var self=this;
  2585. return smalltalk.withContext(function($ctx1) {
  2586. var $1;
  2587. $1=_st(_st(self)._cacheFor_(_st(aMethod)._methodClass()))._isOverridden_(aMethod);
  2588. return $1;
  2589. }, function($ctx1) {$ctx1.fill(self,"isOverridden:",{aMethod:aMethod},smalltalk.HLSelectorsCache)})},
  2590. messageSends: ["isOverridden:", "cacheFor:", "methodClass"]}),
  2591. smalltalk.HLSelectorsCache);
  2592. smalltalk.addMethod(
  2593. smalltalk.method({
  2594. selector: "isOverride:",
  2595. fn: function (aMethod){
  2596. var self=this;
  2597. return smalltalk.withContext(function($ctx1) {
  2598. var $1;
  2599. $1=_st(_st(self)._cacheFor_(_st(aMethod)._methodClass()))._isOverride_(aMethod);
  2600. return $1;
  2601. }, function($ctx1) {$ctx1.fill(self,"isOverride:",{aMethod:aMethod},smalltalk.HLSelectorsCache)})},
  2602. messageSends: ["isOverride:", "cacheFor:", "methodClass"]}),
  2603. smalltalk.HLSelectorsCache);
  2604. smalltalk.addMethod(
  2605. smalltalk.method({
  2606. selector: "newCacheFor:",
  2607. fn: function (aClass){
  2608. var self=this;
  2609. function $HLClassCache(){return smalltalk.HLClassCache||(typeof HLClassCache=="undefined"?nil:HLClassCache)}
  2610. return smalltalk.withContext(function($ctx1) {
  2611. var $1;
  2612. $1=_st($HLClassCache())._on_selectorsCache_(aClass,self);
  2613. return $1;
  2614. }, function($ctx1) {$ctx1.fill(self,"newCacheFor:",{aClass:aClass},smalltalk.HLSelectorsCache)})},
  2615. messageSends: ["on:selectorsCache:"]}),
  2616. smalltalk.HLSelectorsCache);
  2617. smalltalk.addMethod(
  2618. smalltalk.method({
  2619. selector: "observeSystem",
  2620. fn: function (){
  2621. var self=this;
  2622. function $MethodAdded(){return smalltalk.MethodAdded||(typeof MethodAdded=="undefined"?nil:MethodAdded)}
  2623. function $SystemAnnouncer(){return smalltalk.SystemAnnouncer||(typeof SystemAnnouncer=="undefined"?nil:SystemAnnouncer)}
  2624. function $MethodRemoved(){return smalltalk.MethodRemoved||(typeof MethodRemoved=="undefined"?nil:MethodRemoved)}
  2625. return smalltalk.withContext(function($ctx1) {
  2626. var $1,$2;
  2627. $1=_st($SystemAnnouncer())._current();
  2628. _st($1)._on_send_to_($MethodAdded(),"onMethodAdded:",self);
  2629. $2=_st($1)._on_send_to_($MethodRemoved(),"onMethodRemoved:",self);
  2630. return self}, function($ctx1) {$ctx1.fill(self,"observeSystem",{},smalltalk.HLSelectorsCache)})},
  2631. messageSends: ["on:send:to:", "current"]}),
  2632. smalltalk.HLSelectorsCache);
  2633. smalltalk.addMethod(
  2634. smalltalk.method({
  2635. selector: "onMethodAdded:",
  2636. fn: function (anAnnouncement){
  2637. var self=this;
  2638. return smalltalk.withContext(function($ctx1) {
  2639. _st(self)._invalidateCacheFor_(_st(anAnnouncement)._method());
  2640. return self}, function($ctx1) {$ctx1.fill(self,"onMethodAdded:",{anAnnouncement:anAnnouncement},smalltalk.HLSelectorsCache)})},
  2641. messageSends: ["invalidateCacheFor:", "method"]}),
  2642. smalltalk.HLSelectorsCache);
  2643. smalltalk.addMethod(
  2644. smalltalk.method({
  2645. selector: "onMethodRemoved:",
  2646. fn: function (anAnnouncement){
  2647. var self=this;
  2648. return smalltalk.withContext(function($ctx1) {
  2649. _st(self)._invalidateCacheFor_(_st(anAnnouncement)._method());
  2650. return self}, function($ctx1) {$ctx1.fill(self,"onMethodRemoved:",{anAnnouncement:anAnnouncement},smalltalk.HLSelectorsCache)})},
  2651. messageSends: ["invalidateCacheFor:", "method"]}),
  2652. smalltalk.HLSelectorsCache);
  2653. smalltalk.HLSelectorsCache.klass.iVarNames = ['current'];
  2654. smalltalk.addMethod(
  2655. smalltalk.method({
  2656. selector: "current",
  2657. fn: function (){
  2658. var self=this;
  2659. return smalltalk.withContext(function($ctx1) {
  2660. var $2,$1;
  2661. $2=self["@current"];
  2662. if(($receiver = $2) == nil || $receiver == undefined){
  2663. self["@current"]=smalltalk.Object.klass.fn.prototype._new.apply(_st(self), []);
  2664. $1=self["@current"];
  2665. } else {
  2666. $1=$2;
  2667. };
  2668. return $1;
  2669. }, function($ctx1) {$ctx1.fill(self,"current",{},smalltalk.HLSelectorsCache.klass)})},
  2670. messageSends: ["ifNil:", "new"]}),
  2671. smalltalk.HLSelectorsCache.klass);
  2672. smalltalk.addMethod(
  2673. smalltalk.method({
  2674. selector: "flush",
  2675. fn: function (){
  2676. var self=this;
  2677. return smalltalk.withContext(function($ctx1) {
  2678. self["@current"]=nil;
  2679. return self}, function($ctx1) {$ctx1.fill(self,"flush",{},smalltalk.HLSelectorsCache.klass)})},
  2680. messageSends: []}),
  2681. smalltalk.HLSelectorsCache.klass);
  2682. smalltalk.addMethod(
  2683. smalltalk.method({
  2684. selector: "new",
  2685. fn: function (){
  2686. var self=this;
  2687. return smalltalk.withContext(function($ctx1) {
  2688. _st(self)._shouldNotImplement();
  2689. return self}, function($ctx1) {$ctx1.fill(self,"new",{},smalltalk.HLSelectorsCache.klass)})},
  2690. messageSends: ["shouldNotImplement"]}),
  2691. smalltalk.HLSelectorsCache.klass);