Helios-Browser.deploy.js 107 KB

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