1
0

Helios-Browser.deploy.js 83 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298
  1. smalltalk.addPackage('Helios-Browser');
  2. smalltalk.addClass('HLBrowser', smalltalk.HLWidget, ['model', 'packagesListWidget', 'classesListWidget', 'protocolsListWidget', 'methodsListWidget', 'sourceWidget'], 'Helios-Browser');
  3. smalltalk.addMethod(
  4. "_announcer",
  5. smalltalk.method({
  6. selector: "announcer",
  7. fn: function (){
  8. var self=this;
  9. return smalltalk.withContext(function($ctx1) { var $1;
  10. $1=_st(_st(self)._model())._announcer();
  11. return $1;
  12. }, function($ctx1) {$ctx1.fill(self,"announcer",{}, smalltalk.HLBrowser)})},
  13. messageSends: ["announcer", "model"]}),
  14. smalltalk.HLBrowser);
  15. smalltalk.addMethod(
  16. "_classesListWidget",
  17. smalltalk.method({
  18. selector: "classesListWidget",
  19. fn: function (){
  20. var self=this;
  21. return smalltalk.withContext(function($ctx1) { var $2,$1;
  22. $2=self["@classesListWidget"];
  23. if(($receiver = $2) == nil || $receiver == undefined){
  24. self["@classesListWidget"]=_st((smalltalk.HLClassesListWidget || HLClassesListWidget))._on_(_st(self)._model());
  25. self["@classesListWidget"];
  26. $1=_st(self["@classesListWidget"])._next_(_st(self)._protocolsListWidget());
  27. } else {
  28. $1=$2;
  29. };
  30. return $1;
  31. }, function($ctx1) {$ctx1.fill(self,"classesListWidget",{}, smalltalk.HLBrowser)})},
  32. messageSends: ["ifNil:", "on:", "model", "next:", "protocolsListWidget"]}),
  33. smalltalk.HLBrowser);
  34. smalltalk.addMethod(
  35. "_environment",
  36. smalltalk.method({
  37. selector: "environment",
  38. fn: function (){
  39. var self=this;
  40. return smalltalk.withContext(function($ctx1) { var $1;
  41. $1=_st(_st(self)._model())._environment();
  42. return $1;
  43. }, function($ctx1) {$ctx1.fill(self,"environment",{}, smalltalk.HLBrowser)})},
  44. messageSends: ["environment", "model"]}),
  45. smalltalk.HLBrowser);
  46. smalltalk.addMethod(
  47. "_methodsListWidget",
  48. smalltalk.method({
  49. selector: "methodsListWidget",
  50. fn: function (){
  51. var self=this;
  52. return smalltalk.withContext(function($ctx1) { var $2,$1;
  53. $2=self["@methodsListWidget"];
  54. if(($receiver = $2) == nil || $receiver == undefined){
  55. self["@methodsListWidget"]=_st((smalltalk.HLMethodsListWidget || HLMethodsListWidget))._on_(_st(self)._model());
  56. $1=self["@methodsListWidget"];
  57. } else {
  58. $1=$2;
  59. };
  60. return $1;
  61. }, function($ctx1) {$ctx1.fill(self,"methodsListWidget",{}, smalltalk.HLBrowser)})},
  62. messageSends: ["ifNil:", "on:", "model"]}),
  63. smalltalk.HLBrowser);
  64. smalltalk.addMethod(
  65. "_model",
  66. smalltalk.method({
  67. selector: "model",
  68. fn: function (){
  69. var self=this;
  70. return smalltalk.withContext(function($ctx1) { var $2,$1;
  71. $2=self["@model"];
  72. if(($receiver = $2) == nil || $receiver == undefined){
  73. self["@model"]=_st((smalltalk.HLBrowserModel || HLBrowserModel))._new();
  74. $1=self["@model"];
  75. } else {
  76. $1=$2;
  77. };
  78. return $1;
  79. }, function($ctx1) {$ctx1.fill(self,"model",{}, smalltalk.HLBrowser)})},
  80. messageSends: ["ifNil:", "new"]}),
  81. smalltalk.HLBrowser);
  82. smalltalk.addMethod(
  83. "_model_",
  84. smalltalk.method({
  85. selector: "model:",
  86. fn: function (aModel){
  87. var self=this;
  88. return smalltalk.withContext(function($ctx1) { self["@model"]=aModel;
  89. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel}, smalltalk.HLBrowser)})},
  90. messageSends: []}),
  91. smalltalk.HLBrowser);
  92. smalltalk.addMethod(
  93. "_packagesListWidget",
  94. smalltalk.method({
  95. selector: "packagesListWidget",
  96. fn: function (){
  97. var self=this;
  98. return smalltalk.withContext(function($ctx1) { var $2,$1;
  99. $2=self["@packagesListWidget"];
  100. if(($receiver = $2) == nil || $receiver == undefined){
  101. self["@packagesListWidget"]=_st((smalltalk.HLPackagesListWidget || HLPackagesListWidget))._on_(_st(self)._model());
  102. self["@packagesListWidget"];
  103. $1=_st(self["@packagesListWidget"])._next_(_st(self)._classesListWidget());
  104. } else {
  105. $1=$2;
  106. };
  107. return $1;
  108. }, function($ctx1) {$ctx1.fill(self,"packagesListWidget",{}, smalltalk.HLBrowser)})},
  109. messageSends: ["ifNil:", "on:", "model", "next:", "classesListWidget"]}),
  110. smalltalk.HLBrowser);
  111. smalltalk.addMethod(
  112. "_protocolsListWidget",
  113. smalltalk.method({
  114. selector: "protocolsListWidget",
  115. fn: function (){
  116. var self=this;
  117. return smalltalk.withContext(function($ctx1) { var $2,$1;
  118. $2=self["@protocolsListWidget"];
  119. if(($receiver = $2) == nil || $receiver == undefined){
  120. self["@protocolsListWidget"]=_st((smalltalk.HLProtocolsListWidget || HLProtocolsListWidget))._on_(_st(self)._model());
  121. self["@protocolsListWidget"];
  122. $1=_st(self["@protocolsListWidget"])._next_(_st(self)._methodsListWidget());
  123. } else {
  124. $1=$2;
  125. };
  126. return $1;
  127. }, function($ctx1) {$ctx1.fill(self,"protocolsListWidget",{}, smalltalk.HLBrowser)})},
  128. messageSends: ["ifNil:", "on:", "model", "next:", "methodsListWidget"]}),
  129. smalltalk.HLBrowser);
  130. smalltalk.addMethod(
  131. "_registerBindingsOn_",
  132. smalltalk.method({
  133. selector: "registerBindingsOn:",
  134. fn: function (aBindingGroup){
  135. var self=this;
  136. return smalltalk.withContext(function($ctx1) { var $1,$2,$3;
  137. $1=aBindingGroup;
  138. _st($1)._addGroupKey_labelled_((66),"Browse");
  139. _st($1)._addGroupKey_labelled_((71),"Go to");
  140. $2=_st($1)._addGroupKey_labelled_((84),"Toggle");
  141. _st(_st((smalltalk.HLBrowserCommand || HLBrowserCommand))._withAllSubclasses())._do_((function(each){
  142. return smalltalk.withContext(function($ctx2) { $3=_st(each)._key();
  143. if(($receiver = $3) == nil || $receiver == undefined){
  144. return $3;
  145. } else {
  146. return _st(_st(aBindingGroup)._at_(_st(each)._bindingGroup()))._add_(_st(_st(each)._on_(_st(self)._model()))._asBinding());
  147. };
  148. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  149. return self}, function($ctx1) {$ctx1.fill(self,"registerBindingsOn:",{aBindingGroup:aBindingGroup}, smalltalk.HLBrowser)})},
  150. messageSends: ["addGroupKey:labelled:", "do:", "ifNotNil:", "add:", "asBinding", "on:", "model", "at:", "bindingGroup", "key", "withAllSubclasses"]}),
  151. smalltalk.HLBrowser);
  152. smalltalk.addMethod(
  153. "_renderContentOn_",
  154. smalltalk.method({
  155. selector: "renderContentOn:",
  156. fn: function (html){
  157. var self=this;
  158. return smalltalk.withContext(function($ctx1) { _st(html)._with_(_st((smalltalk.HLContainer || HLContainer))._with_(_st((smalltalk.HLHorizontalSplitter || HLHorizontalSplitter))._with_with_(_st((smalltalk.HLVerticalSplitter || HLVerticalSplitter))._with_with_(_st((smalltalk.HLVerticalSplitter || HLVerticalSplitter))._with_with_(_st(self)._packagesListWidget(),_st(self)._classesListWidget()),_st((smalltalk.HLVerticalSplitter || HLVerticalSplitter))._with_with_(_st(self)._protocolsListWidget(),_st(self)._methodsListWidget())),_st(self)._sourceWidget())));
  159. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html}, smalltalk.HLBrowser)})},
  160. messageSends: ["with:", "with:with:", "packagesListWidget", "classesListWidget", "protocolsListWidget", "methodsListWidget", "sourceWidget"]}),
  161. smalltalk.HLBrowser);
  162. smalltalk.addMethod(
  163. "_sourceWidget",
  164. smalltalk.method({
  165. selector: "sourceWidget",
  166. fn: function (){
  167. var self=this;
  168. return smalltalk.withContext(function($ctx1) { var $2,$1;
  169. $2=self["@sourceWidget"];
  170. if(($receiver = $2) == nil || $receiver == undefined){
  171. self["@sourceWidget"]=_st((smalltalk.HLBrowserSourceWidget || HLBrowserSourceWidget))._on_(_st(self)._model());
  172. $1=self["@sourceWidget"];
  173. } else {
  174. $1=$2;
  175. };
  176. return $1;
  177. }, function($ctx1) {$ctx1.fill(self,"sourceWidget",{}, smalltalk.HLBrowser)})},
  178. messageSends: ["ifNil:", "on:", "model"]}),
  179. smalltalk.HLBrowser);
  180. smalltalk.HLBrowser.klass.iVarNames = ['nextId'];
  181. smalltalk.addMethod(
  182. "_canBeOpenAsTab",
  183. smalltalk.method({
  184. selector: "canBeOpenAsTab",
  185. fn: function (){
  186. var self=this;
  187. return smalltalk.withContext(function($ctx1) { return true;
  188. }, function($ctx1) {$ctx1.fill(self,"canBeOpenAsTab",{}, smalltalk.HLBrowser.klass)})},
  189. messageSends: []}),
  190. smalltalk.HLBrowser.klass);
  191. smalltalk.addMethod(
  192. "_nextId",
  193. smalltalk.method({
  194. selector: "nextId",
  195. fn: function (){
  196. var self=this;
  197. return smalltalk.withContext(function($ctx1) { var $1,$2;
  198. $1=self["@nextId"];
  199. if(($receiver = $1) == nil || $receiver == undefined){
  200. self["@nextId"]=(0);
  201. self["@nextId"];
  202. } else {
  203. $1;
  204. };
  205. $2=_st("browser_").__comma(_st(_st(self["@nextId"]).__plus((1)))._asString());
  206. return $2;
  207. }, function($ctx1) {$ctx1.fill(self,"nextId",{}, smalltalk.HLBrowser.klass)})},
  208. messageSends: ["ifNil:", ",", "asString", "+"]}),
  209. smalltalk.HLBrowser.klass);
  210. smalltalk.addMethod(
  211. "_tabLabel",
  212. smalltalk.method({
  213. selector: "tabLabel",
  214. fn: function (){
  215. var self=this;
  216. return smalltalk.withContext(function($ctx1) { return "Browser";
  217. }, function($ctx1) {$ctx1.fill(self,"tabLabel",{}, smalltalk.HLBrowser.klass)})},
  218. messageSends: []}),
  219. smalltalk.HLBrowser.klass);
  220. smalltalk.addMethod(
  221. "_tabPriority",
  222. smalltalk.method({
  223. selector: "tabPriority",
  224. fn: function (){
  225. var self=this;
  226. return smalltalk.withContext(function($ctx1) { return (0);
  227. }, function($ctx1) {$ctx1.fill(self,"tabPriority",{}, smalltalk.HLBrowser.klass)})},
  228. messageSends: []}),
  229. smalltalk.HLBrowser.klass);
  230. smalltalk.addClass('HLBrowserListWidget', smalltalk.HLNavigationListWidget, ['model'], 'Helios-Browser');
  231. smalltalk.addMethod(
  232. "_initialize",
  233. smalltalk.method({
  234. selector: "initialize",
  235. fn: function (){
  236. var self=this;
  237. return smalltalk.withContext(function($ctx1) { smalltalk.HLNavigationListWidget.fn.prototype._initialize.apply(_st(self), []);
  238. _st(self)._observeSystem();
  239. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{}, smalltalk.HLBrowserListWidget)})},
  240. messageSends: ["initialize", "observeSystem"]}),
  241. smalltalk.HLBrowserListWidget);
  242. smalltalk.addMethod(
  243. "_model",
  244. smalltalk.method({
  245. selector: "model",
  246. fn: function (){
  247. var self=this;
  248. return smalltalk.withContext(function($ctx1) { var $1;
  249. $1=self["@model"];
  250. return $1;
  251. }, function($ctx1) {$ctx1.fill(self,"model",{}, smalltalk.HLBrowserListWidget)})},
  252. messageSends: []}),
  253. smalltalk.HLBrowserListWidget);
  254. smalltalk.addMethod(
  255. "_model_",
  256. smalltalk.method({
  257. selector: "model:",
  258. fn: function (aBrowserModel){
  259. var self=this;
  260. return smalltalk.withContext(function($ctx1) { self["@model"]=aBrowserModel;
  261. _st(self)._observeModel();
  262. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aBrowserModel:aBrowserModel}, smalltalk.HLBrowserListWidget)})},
  263. messageSends: ["observeModel"]}),
  264. smalltalk.HLBrowserListWidget);
  265. smalltalk.addMethod(
  266. "_observeModel",
  267. smalltalk.method({
  268. selector: "observeModel",
  269. fn: function (){
  270. var self=this;
  271. return smalltalk.withContext(function($ctx1) { return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{}, smalltalk.HLBrowserListWidget)})},
  272. messageSends: []}),
  273. smalltalk.HLBrowserListWidget);
  274. smalltalk.addMethod(
  275. "_observeSystem",
  276. smalltalk.method({
  277. selector: "observeSystem",
  278. fn: function (){
  279. var self=this;
  280. return smalltalk.withContext(function($ctx1) { return self}, function($ctx1) {$ctx1.fill(self,"observeSystem",{}, smalltalk.HLBrowserListWidget)})},
  281. messageSends: []}),
  282. smalltalk.HLBrowserListWidget);
  283. smalltalk.addMethod(
  284. "_on_",
  285. smalltalk.method({
  286. selector: "on:",
  287. fn: function (aModel){
  288. var self=this;
  289. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  290. $2=_st(self)._new();
  291. _st($2)._model_(aModel);
  292. $3=_st($2)._yourself();
  293. $1=$3;
  294. return $1;
  295. }, function($ctx1) {$ctx1.fill(self,"on:",{aModel:aModel}, smalltalk.HLBrowserListWidget.klass)})},
  296. messageSends: ["model:", "new", "yourself"]}),
  297. smalltalk.HLBrowserListWidget.klass);
  298. smalltalk.addClass('HLClassesListWidget', smalltalk.HLBrowserListWidget, [], 'Helios-Browser');
  299. smalltalk.addMethod(
  300. "_focusMethodsListWidget",
  301. smalltalk.method({
  302. selector: "focusMethodsListWidget",
  303. fn: function (){
  304. var self=this;
  305. return smalltalk.withContext(function($ctx1) { _st(_st(_st(self)._model())._announcer())._announce_(_st((smalltalk.HLMethodsListFocus || HLMethodsListFocus))._new());
  306. return self}, function($ctx1) {$ctx1.fill(self,"focusMethodsListWidget",{}, smalltalk.HLClassesListWidget)})},
  307. messageSends: ["announce:", "new", "announcer", "model"]}),
  308. smalltalk.HLClassesListWidget);
  309. smalltalk.addMethod(
  310. "_focusProtocolsListWidget",
  311. smalltalk.method({
  312. selector: "focusProtocolsListWidget",
  313. fn: function (){
  314. var self=this;
  315. return smalltalk.withContext(function($ctx1) { _st(_st(_st(self)._model())._announcer())._announce_(_st((smalltalk.HLProtocolsListFocus || HLProtocolsListFocus))._new());
  316. return self}, function($ctx1) {$ctx1.fill(self,"focusProtocolsListWidget",{}, smalltalk.HLClassesListWidget)})},
  317. messageSends: ["announce:", "new", "announcer", "model"]}),
  318. smalltalk.HLClassesListWidget);
  319. smalltalk.addMethod(
  320. "_getChildrenOf_",
  321. smalltalk.method({
  322. selector: "getChildrenOf:",
  323. fn: function (aClass){
  324. var self=this;
  325. return smalltalk.withContext(function($ctx1) { var $1;
  326. $1=_st(_st(self)._items())._select_((function(each){
  327. return smalltalk.withContext(function($ctx2) { return _st(_st(each)._superclass()).__eq(aClass);
  328. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  329. return $1;
  330. }, function($ctx1) {$ctx1.fill(self,"getChildrenOf:",{aClass:aClass}, smalltalk.HLClassesListWidget)})},
  331. messageSends: ["select:", "=", "superclass", "items"]}),
  332. smalltalk.HLClassesListWidget);
  333. smalltalk.addMethod(
  334. "_getRootClassesOf_",
  335. smalltalk.method({
  336. selector: "getRootClassesOf:",
  337. fn: function (aCollection){
  338. var self=this;
  339. return smalltalk.withContext(function($ctx1) { var $1;
  340. $1=_st(aCollection)._select_((function(each){
  341. return smalltalk.withContext(function($ctx2) { return _st(_st(aCollection)._includes_(_st(each)._superclass()))._not();
  342. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  343. return $1;
  344. }, function($ctx1) {$ctx1.fill(self,"getRootClassesOf:",{aCollection:aCollection}, smalltalk.HLClassesListWidget)})},
  345. messageSends: ["select:", "not", "includes:", "superclass"]}),
  346. smalltalk.HLClassesListWidget);
  347. smalltalk.addMethod(
  348. "_iconForItem_",
  349. smalltalk.method({
  350. selector: "iconForItem:",
  351. fn: function (aClass){
  352. var self=this;
  353. return smalltalk.withContext(function($ctx1) { var $2,$1;
  354. $2=_st(_st(_st(aClass)._theNonMetaClass())._comment())._isEmpty();
  355. if(smalltalk.assert($2)){
  356. $1="icon-question-sign";
  357. } else {
  358. $1="icon-none";
  359. };
  360. return $1;
  361. }, function($ctx1) {$ctx1.fill(self,"iconForItem:",{aClass:aClass}, smalltalk.HLClassesListWidget)})},
  362. messageSends: ["ifFalse:ifTrue:", "isEmpty", "comment", "theNonMetaClass"]}),
  363. smalltalk.HLClassesListWidget);
  364. smalltalk.addMethod(
  365. "_observeModel",
  366. smalltalk.method({
  367. selector: "observeModel",
  368. fn: function (){
  369. var self=this;
  370. return smalltalk.withContext(function($ctx1) { var $1,$2;
  371. $1=_st(_st(self)._model())._announcer();
  372. _st($1)._on_do_((smalltalk.HLPackageSelected || HLPackageSelected),(function(ann){
  373. return smalltalk.withContext(function($ctx2) { return _st(self)._onPackageSelected_(_st(ann)._item());
  374. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  375. _st($1)._on_do_((smalltalk.HLShowInstanceToggled || HLShowInstanceToggled),(function(ann){
  376. return smalltalk.withContext(function($ctx2) { return _st(self)._onShowInstanceToggled();
  377. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  378. $2=_st($1)._on_do_((smalltalk.HLClassSelected || HLClassSelected),(function(ann){
  379. return smalltalk.withContext(function($ctx2) { return _st(self)._onClassSelected_(_st(ann)._item());
  380. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  381. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{}, smalltalk.HLClassesListWidget)})},
  382. messageSends: ["on:do:", "onPackageSelected:", "item", "announcer", "model", "onShowInstanceToggled", "onClassSelected:"]}),
  383. smalltalk.HLClassesListWidget);
  384. smalltalk.addMethod(
  385. "_onClassSelected_",
  386. smalltalk.method({
  387. selector: "onClassSelected:",
  388. fn: function (aClass){
  389. var self=this;
  390. return smalltalk.withContext(function($ctx1) { var $1,$2;
  391. _st(self)._selectedItem_(aClass);
  392. $1=aClass;
  393. if(($receiver = $1) == nil || $receiver == undefined){
  394. $2=self;
  395. return $2;
  396. } else {
  397. $1;
  398. };
  399. _st(self)._focus();
  400. return self}, function($ctx1) {$ctx1.fill(self,"onClassSelected:",{aClass:aClass}, smalltalk.HLClassesListWidget)})},
  401. messageSends: ["selectedItem:", "ifNil:", "focus"]}),
  402. smalltalk.HLClassesListWidget);
  403. smalltalk.addMethod(
  404. "_onPackageSelected_",
  405. smalltalk.method({
  406. selector: "onPackageSelected:",
  407. fn: function (aPackage){
  408. var self=this;
  409. return smalltalk.withContext(function($ctx1) { var $1,$3,$2;
  410. _st(self)._selectedItem_(nil);
  411. $1=self;
  412. $3=aPackage;
  413. if(($receiver = $3) == nil || $receiver == undefined){
  414. $2=[];
  415. } else {
  416. $2=_st(_st(_st(_st(aPackage)._classes())._collect_((function(each){
  417. return smalltalk.withContext(function($ctx2) { return _st(each)._theNonMetaClass();
  418. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})))._asSet())._asArray();
  419. };
  420. _st($1)._items_($2);
  421. _st(self)._refresh();
  422. return self}, function($ctx1) {$ctx1.fill(self,"onPackageSelected:",{aPackage:aPackage}, smalltalk.HLClassesListWidget)})},
  423. messageSends: ["selectedItem:", "items:", "ifNil:ifNotNil:", "asArray", "asSet", "collect:", "theNonMetaClass", "classes", "refresh"]}),
  424. smalltalk.HLClassesListWidget);
  425. smalltalk.addMethod(
  426. "_onShowInstanceToggled",
  427. smalltalk.method({
  428. selector: "onShowInstanceToggled",
  429. fn: function (){
  430. var self=this;
  431. return smalltalk.withContext(function($ctx1) { _st(self)._refresh();
  432. return self}, function($ctx1) {$ctx1.fill(self,"onShowInstanceToggled",{}, smalltalk.HLClassesListWidget)})},
  433. messageSends: ["refresh"]}),
  434. smalltalk.HLClassesListWidget);
  435. smalltalk.addMethod(
  436. "_renderButtonsOn_",
  437. smalltalk.method({
  438. selector: "renderButtonsOn:",
  439. fn: function (html){
  440. var self=this;
  441. return smalltalk.withContext(function($ctx1) { var $1,$3,$4,$5,$6,$7,$8,$2,$9,$10;
  442. $1=_st(html)._div();
  443. _st($1)._class_("btn-group");
  444. _st($1)._at_put_("data-toggle","buttons-radio");
  445. $2=_st($1)._with_((function(){
  446. return smalltalk.withContext(function($ctx2) { $3=_st(html)._button();
  447. _st($3)._class_(_st((smalltalk.String || String))._streamContents_((function(str){
  448. return smalltalk.withContext(function($ctx3) { _st(str)._nextPutAll_("btn");
  449. $4=_st(self)._showInstance();
  450. if(smalltalk.assert($4)){
  451. return _st(str)._nextPutAll_(" active");
  452. };
  453. }, function($ctx3) {$ctx3.fillBlock({str:str},$ctx1)})})));
  454. _st($3)._with_("Instance");
  455. $5=_st($3)._onClick_((function(){
  456. return smalltalk.withContext(function($ctx3) { return _st(self)._showInstance_(true);
  457. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  458. $5;
  459. $6=_st(html)._button();
  460. _st($6)._class_(_st((smalltalk.String || String))._streamContents_((function(str){
  461. return smalltalk.withContext(function($ctx3) { _st(str)._nextPutAll_("btn");
  462. $7=_st(_st(self)._model())._showInstance();
  463. if(! smalltalk.assert($7)){
  464. return _st(str)._nextPutAll_(" active");
  465. };
  466. }, function($ctx3) {$ctx3.fillBlock({str:str},$ctx1)})})));
  467. _st($6)._with_("Class");
  468. $8=_st($6)._onClick_((function(){
  469. return smalltalk.withContext(function($ctx3) { return _st(_st(self)._model())._showInstance_(false);
  470. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  471. return $8;
  472. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  473. $9=_st(html)._button();
  474. _st($9)._class_("btn");
  475. _st($9)._at_put_("data-toggle","button");
  476. $10=_st($9)._with_("Comment");
  477. return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html}, smalltalk.HLClassesListWidget)})},
  478. messageSends: ["class:", "div", "at:put:", "with:", "streamContents:", "nextPutAll:", "ifTrue:", "showInstance", "button", "onClick:", "showInstance:", "ifFalse:", "model"]}),
  479. smalltalk.HLClassesListWidget);
  480. smalltalk.addMethod(
  481. "_renderItem_level_on_",
  482. smalltalk.method({
  483. selector: "renderItem:level:on:",
  484. fn: function (aClass,anInteger,html){
  485. var self=this;
  486. var li;
  487. return smalltalk.withContext(function($ctx1) { var $1,$3,$4,$2;
  488. li=_st(html)._li();
  489. $1=li;
  490. _st($1)._at_put_("list-data",_st(_st(self)._items())._indexOf_(aClass));
  491. _st($1)._class_(_st(self)._cssClassForItem_(aClass));
  492. $2=_st($1)._with_((function(){
  493. return smalltalk.withContext(function($ctx2) { $3=_st(html)._a();
  494. _st($3)._with_((function(){
  495. return smalltalk.withContext(function($ctx3) { _st(_st(html)._tag_("i"))._class_(_st(self)._iconForItem_(aClass));
  496. return _st(self)._renderItemLabel_level_on_(aClass,anInteger,html);
  497. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  498. $4=_st($3)._onClick_((function(){
  499. return smalltalk.withContext(function($ctx3) { return _st(self)._activateListItem_(_st(li)._asJQuery());
  500. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  501. return $4;
  502. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  503. _st(_st(self)._getChildrenOf_(aClass))._do_((function(each){
  504. return smalltalk.withContext(function($ctx2) { return _st(self)._renderItem_level_on_(each,_st(anInteger).__plus((1)),html);
  505. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  506. return self}, function($ctx1) {$ctx1.fill(self,"renderItem:level:on:",{aClass:aClass,anInteger:anInteger,html:html,li:li}, smalltalk.HLClassesListWidget)})},
  507. messageSends: ["li", "at:put:", "indexOf:", "items", "class:", "cssClassForItem:", "with:", "iconForItem:", "tag:", "renderItemLabel:level:on:", "a", "onClick:", "activateListItem:", "asJQuery", "do:", "renderItem:level:on:", "+", "getChildrenOf:"]}),
  508. smalltalk.HLClassesListWidget);
  509. smalltalk.addMethod(
  510. "_renderItem_on_",
  511. smalltalk.method({
  512. selector: "renderItem:on:",
  513. fn: function (aClass,html){
  514. var self=this;
  515. return smalltalk.withContext(function($ctx1) { smalltalk.HLBrowserListWidget.fn.prototype._renderItem_on_.apply(_st(self), [aClass,html]);
  516. _st(_st(self)._getChildrenOf_(aClass))._do_((function(each){
  517. return smalltalk.withContext(function($ctx2) { return _st(self)._renderItem_level_on_(each,(1),html);
  518. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  519. return self}, function($ctx1) {$ctx1.fill(self,"renderItem:on:",{aClass:aClass,html:html}, smalltalk.HLClassesListWidget)})},
  520. messageSends: ["renderItem:on:", "do:", "renderItem:level:on:", "getChildrenOf:"]}),
  521. smalltalk.HLClassesListWidget);
  522. smalltalk.addMethod(
  523. "_renderItemLabel_level_on_",
  524. smalltalk.method({
  525. selector: "renderItemLabel:level:on:",
  526. fn: function (aClass,anInteger,html){
  527. var self=this;
  528. return smalltalk.withContext(function($ctx1) { _st(_st(_st(html)._span())._asJQuery())._html_(_st((smalltalk.String || String))._streamContents_((function(str){
  529. return smalltalk.withContext(function($ctx2) { _st(anInteger)._timesRepeat_((function(){
  530. return smalltalk.withContext(function($ctx3) { return _st(str)._nextPutAll_("    ");
  531. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  532. return _st(str)._nextPutAll_(_st(aClass)._name());
  533. }, function($ctx2) {$ctx2.fillBlock({str:str},$ctx1)})})));
  534. return self}, function($ctx1) {$ctx1.fill(self,"renderItemLabel:level:on:",{aClass:aClass,anInteger:anInteger,html:html}, smalltalk.HLClassesListWidget)})},
  535. messageSends: ["html:", "streamContents:", "timesRepeat:", "nextPutAll:", "name", "asJQuery", "span"]}),
  536. smalltalk.HLClassesListWidget);
  537. smalltalk.addMethod(
  538. "_renderItemLabel_on_",
  539. smalltalk.method({
  540. selector: "renderItemLabel:on:",
  541. fn: function (aClass,html){
  542. var self=this;
  543. return smalltalk.withContext(function($ctx1) { _st(self)._renderItemLabel_level_on_(aClass,(0),html);
  544. return self}, function($ctx1) {$ctx1.fill(self,"renderItemLabel:on:",{aClass:aClass,html:html}, smalltalk.HLClassesListWidget)})},
  545. messageSends: ["renderItemLabel:level:on:"]}),
  546. smalltalk.HLClassesListWidget);
  547. smalltalk.addMethod(
  548. "_renderListOn_",
  549. smalltalk.method({
  550. selector: "renderListOn:",
  551. fn: function (html){
  552. var self=this;
  553. return smalltalk.withContext(function($ctx1) { _st(_st(self)._getRootClassesOf_(_st(self)._items()))._do_((function(each){
  554. return smalltalk.withContext(function($ctx2) { return _st(self)._renderItem_on_(each,html);
  555. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  556. return self}, function($ctx1) {$ctx1.fill(self,"renderListOn:",{html:html}, smalltalk.HLClassesListWidget)})},
  557. messageSends: ["do:", "renderItem:on:", "getRootClassesOf:", "items"]}),
  558. smalltalk.HLClassesListWidget);
  559. smalltalk.addMethod(
  560. "_selectItem_",
  561. smalltalk.method({
  562. selector: "selectItem:",
  563. fn: function (aClass){
  564. var self=this;
  565. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._selectedClass_(aClass);
  566. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{aClass:aClass}, smalltalk.HLClassesListWidget)})},
  567. messageSends: ["selectedClass:", "model"]}),
  568. smalltalk.HLClassesListWidget);
  569. smalltalk.addMethod(
  570. "_showInstance",
  571. smalltalk.method({
  572. selector: "showInstance",
  573. fn: function (){
  574. var self=this;
  575. return smalltalk.withContext(function($ctx1) { var $1;
  576. $1=_st(_st(self)._model())._showInstance();
  577. return $1;
  578. }, function($ctx1) {$ctx1.fill(self,"showInstance",{}, smalltalk.HLClassesListWidget)})},
  579. messageSends: ["showInstance", "model"]}),
  580. smalltalk.HLClassesListWidget);
  581. smalltalk.addMethod(
  582. "_showInstance_",
  583. smalltalk.method({
  584. selector: "showInstance:",
  585. fn: function (aBoolean){
  586. var self=this;
  587. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._showInstance_(aBoolean);
  588. return self}, function($ctx1) {$ctx1.fill(self,"showInstance:",{aBoolean:aBoolean}, smalltalk.HLClassesListWidget)})},
  589. messageSends: ["showInstance:", "model"]}),
  590. smalltalk.HLClassesListWidget);
  591. smalltalk.addClass('HLMethodsListWidget', smalltalk.HLBrowserListWidget, [], 'Helios-Browser');
  592. smalltalk.addMethod(
  593. "_allProtocol",
  594. smalltalk.method({
  595. selector: "allProtocol",
  596. fn: function (){
  597. var self=this;
  598. return smalltalk.withContext(function($ctx1) { var $1;
  599. $1=_st(_st(self)._model())._allProtocol();
  600. return $1;
  601. }, function($ctx1) {$ctx1.fill(self,"allProtocol",{}, smalltalk.HLMethodsListWidget)})},
  602. messageSends: ["allProtocol", "model"]}),
  603. smalltalk.HLMethodsListWidget);
  604. smalltalk.addMethod(
  605. "_flushSelectorsCache",
  606. smalltalk.method({
  607. selector: "flushSelectorsCache",
  608. fn: function (){
  609. var self=this;
  610. return smalltalk.withContext(function($ctx1) { self["@selectorsCache"]=_st((smalltalk.Dictionary || Dictionary))._new();
  611. return self}, function($ctx1) {$ctx1.fill(self,"flushSelectorsCache",{}, smalltalk.HLMethodsListWidget)})},
  612. messageSends: ["new"]}),
  613. smalltalk.HLMethodsListWidget);
  614. smalltalk.addMethod(
  615. "_iconForItem_",
  616. smalltalk.method({
  617. selector: "iconForItem:",
  618. fn: function (aSelector){
  619. var self=this;
  620. var override,overriden,method;
  621. return smalltalk.withContext(function($ctx1) { var $2,$3,$4,$1;
  622. method=_st(self)._methodForSelector_(aSelector);
  623. override=_st(self)._isOverride_(method);
  624. overriden=_st(self)._isOverridden_(method);
  625. $2=override;
  626. if(smalltalk.assert($2)){
  627. $3=overriden;
  628. if(smalltalk.assert($3)){
  629. $1="icon-resize-vertical";
  630. } else {
  631. $1="icon-arrow-up";
  632. };
  633. } else {
  634. $4=overriden;
  635. if(smalltalk.assert($4)){
  636. $1="icon-arrow-down";
  637. } else {
  638. $1="icon-none";
  639. };
  640. };
  641. return $1;
  642. }, function($ctx1) {$ctx1.fill(self,"iconForItem:",{aSelector:aSelector,override:override,overriden:overriden,method:method}, smalltalk.HLMethodsListWidget)})},
  643. messageSends: ["methodForSelector:", "isOverride:", "isOverridden:", "ifTrue:ifFalse:"]}),
  644. smalltalk.HLMethodsListWidget);
  645. smalltalk.addMethod(
  646. "_initialize",
  647. smalltalk.method({
  648. selector: "initialize",
  649. fn: function (){
  650. var self=this;
  651. return smalltalk.withContext(function($ctx1) { smalltalk.HLBrowserListWidget.fn.prototype._initialize.apply(_st(self), []);
  652. _st(self)._flushSelectorsCache();
  653. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{}, smalltalk.HLMethodsListWidget)})},
  654. messageSends: ["initialize", "flushSelectorsCache"]}),
  655. smalltalk.HLMethodsListWidget);
  656. smalltalk.addMethod(
  657. "_isOverridden_",
  658. smalltalk.method({
  659. selector: "isOverridden:",
  660. fn: function (aMethod){
  661. var self=this;
  662. return smalltalk.withContext(function($ctx1) { var $1;
  663. $1=_st(_st(self)._selectorsCache())._isOverridden_(aMethod);
  664. return $1;
  665. }, function($ctx1) {$ctx1.fill(self,"isOverridden:",{aMethod:aMethod}, smalltalk.HLMethodsListWidget)})},
  666. messageSends: ["isOverridden:", "selectorsCache"]}),
  667. smalltalk.HLMethodsListWidget);
  668. smalltalk.addMethod(
  669. "_isOverride_",
  670. smalltalk.method({
  671. selector: "isOverride:",
  672. fn: function (aMethod){
  673. var self=this;
  674. return smalltalk.withContext(function($ctx1) { var $1;
  675. $1=_st(_st(self)._selectorsCache())._isOverride_(aMethod);
  676. return $1;
  677. }, function($ctx1) {$ctx1.fill(self,"isOverride:",{aMethod:aMethod}, smalltalk.HLMethodsListWidget)})},
  678. messageSends: ["isOverride:", "selectorsCache"]}),
  679. smalltalk.HLMethodsListWidget);
  680. smalltalk.addMethod(
  681. "_methodForSelector_",
  682. smalltalk.method({
  683. selector: "methodForSelector:",
  684. fn: function (aSelector){
  685. var self=this;
  686. return smalltalk.withContext(function($ctx1) { var $1;
  687. $1=_st(_st(_st(_st(self)._model())._selectedClass())._methodDictionary())._at_(aSelector);
  688. return $1;
  689. }, function($ctx1) {$ctx1.fill(self,"methodForSelector:",{aSelector:aSelector}, smalltalk.HLMethodsListWidget)})},
  690. messageSends: ["at:", "methodDictionary", "selectedClass", "model"]}),
  691. smalltalk.HLMethodsListWidget);
  692. smalltalk.addMethod(
  693. "_methodsInProtocol_",
  694. smalltalk.method({
  695. selector: "methodsInProtocol:",
  696. fn: function (aString){
  697. var self=this;
  698. return smalltalk.withContext(function($ctx1) { var $2,$1;
  699. $2=_st(aString).__eq(_st(self)._allProtocol());
  700. if(smalltalk.assert($2)){
  701. $1=_st(_st(_st(self)._model())._selectedClass())._methods();
  702. } else {
  703. $1=_st(_st(_st(self)._model())._selectedClass())._methodsInProtocol_(aString);
  704. };
  705. return $1;
  706. }, function($ctx1) {$ctx1.fill(self,"methodsInProtocol:",{aString:aString}, smalltalk.HLMethodsListWidget)})},
  707. messageSends: ["ifTrue:ifFalse:", "methods", "selectedClass", "model", "methodsInProtocol:", "=", "allProtocol"]}),
  708. smalltalk.HLMethodsListWidget);
  709. smalltalk.addMethod(
  710. "_observeModel",
  711. smalltalk.method({
  712. selector: "observeModel",
  713. fn: function (){
  714. var self=this;
  715. return smalltalk.withContext(function($ctx1) { _st(_st(_st(self)._model())._announcer())._on_do_((smalltalk.HLProtocolSelected || HLProtocolSelected),(function(ann){
  716. return smalltalk.withContext(function($ctx2) { return _st(self)._onProtocolSelected_(_st(ann)._item());
  717. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  718. _st(_st(_st(self)._model())._announcer())._on_do_((smalltalk.HLShowInstanceToggled || HLShowInstanceToggled),(function(ann){
  719. return smalltalk.withContext(function($ctx2) { return _st(self)._onProtocolSelected_(nil);
  720. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  721. _st(_st(_st(self)._model())._announcer())._on_do_((smalltalk.HLMethodSelected || HLMethodSelected),(function(ann){
  722. return smalltalk.withContext(function($ctx2) { return _st(self)._onMethodSelected_(_st(ann)._item());
  723. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  724. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{}, smalltalk.HLMethodsListWidget)})},
  725. messageSends: ["on:do:", "onProtocolSelected:", "item", "announcer", "model", "onMethodSelected:"]}),
  726. smalltalk.HLMethodsListWidget);
  727. smalltalk.addMethod(
  728. "_observeSystem",
  729. smalltalk.method({
  730. selector: "observeSystem",
  731. fn: function (){
  732. var self=this;
  733. return smalltalk.withContext(function($ctx1) { var $1,$2;
  734. $1=_st((smalltalk.SystemAnnouncer || SystemAnnouncer))._current();
  735. _st($1)._on_do_((smalltalk.MethodAdded || MethodAdded),(function(ann){
  736. return smalltalk.withContext(function($ctx2) { return _st(self)._onMethodAdded_(_st(ann)._method());
  737. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  738. $2=_st($1)._on_do_((smalltalk.MethodRemoved || MethodRemoved),(function(ann){
  739. return smalltalk.withContext(function($ctx2) { return _st(self)._onMethodRemoved_(_st(ann)._method());
  740. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  741. return self}, function($ctx1) {$ctx1.fill(self,"observeSystem",{}, smalltalk.HLMethodsListWidget)})},
  742. messageSends: ["on:do:", "onMethodAdded:", "method", "current", "onMethodRemoved:"]}),
  743. smalltalk.HLMethodsListWidget);
  744. smalltalk.addMethod(
  745. "_onMethodAdded_",
  746. smalltalk.method({
  747. selector: "onMethodAdded:",
  748. fn: function (aMethod){
  749. var self=this;
  750. return smalltalk.withContext(function($ctx1) { var $1;
  751. var $early={};
  752. try {
  753. _st(_st(self)._items())._detect_ifNone_((function(each){
  754. return smalltalk.withContext(function($ctx2) { return _st(each).__eq(_st(aMethod)._selector());
  755. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}),(function(){
  756. return smalltalk.withContext(function($ctx2) { $1=self;
  757. throw $early=[$1];
  758. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  759. _st(self)._refresh();
  760. return self}
  761. catch(e) {if(e===$early)return e[0]; throw e}
  762. }, function($ctx1) {$ctx1.fill(self,"onMethodAdded:",{aMethod:aMethod}, smalltalk.HLMethodsListWidget)})},
  763. messageSends: ["detect:ifNone:", "=", "selector", "items", "refresh"]}),
  764. smalltalk.HLMethodsListWidget);
  765. smalltalk.addMethod(
  766. "_onMethodRemoved_",
  767. smalltalk.method({
  768. selector: "onMethodRemoved:",
  769. fn: function (aMethod){
  770. var self=this;
  771. return smalltalk.withContext(function($ctx1) { var $1;
  772. var $early={};
  773. try {
  774. _st(_st(self)._items())._detect_ifNone_((function(each){
  775. return smalltalk.withContext(function($ctx2) { return _st(_st(each)._selector()).__eq(_st(aMethod)._selector());
  776. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}),(function(){
  777. return smalltalk.withContext(function($ctx2) { $1=self;
  778. throw $early=[$1];
  779. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  780. _st(self)._refresh();
  781. return self}
  782. catch(e) {if(e===$early)return e[0]; throw e}
  783. }, function($ctx1) {$ctx1.fill(self,"onMethodRemoved:",{aMethod:aMethod}, smalltalk.HLMethodsListWidget)})},
  784. messageSends: ["detect:ifNone:", "=", "selector", "items", "refresh"]}),
  785. smalltalk.HLMethodsListWidget);
  786. smalltalk.addMethod(
  787. "_onMethodSelected_",
  788. smalltalk.method({
  789. selector: "onMethodSelected:",
  790. fn: function (aMethod){
  791. var self=this;
  792. return smalltalk.withContext(function($ctx1) { var $1,$2;
  793. _st(self)._selectedItem_(aMethod);
  794. $1=aMethod;
  795. if(($receiver = $1) == nil || $receiver == undefined){
  796. $2=self;
  797. return $2;
  798. } else {
  799. $1;
  800. };
  801. _st(self)._focus();
  802. return self}, function($ctx1) {$ctx1.fill(self,"onMethodSelected:",{aMethod:aMethod}, smalltalk.HLMethodsListWidget)})},
  803. messageSends: ["selectedItem:", "ifNil:", "focus"]}),
  804. smalltalk.HLMethodsListWidget);
  805. smalltalk.addMethod(
  806. "_onProtocolSelected_",
  807. smalltalk.method({
  808. selector: "onProtocolSelected:",
  809. fn: function (aString){
  810. var self=this;
  811. return smalltalk.withContext(function($ctx1) { var $1,$3,$4,$2;
  812. _st(self)._selectedItem_(nil);
  813. $1=self;
  814. $3=_st(_st(self)._model())._selectedClass();
  815. if(($receiver = $3) == nil || $receiver == undefined){
  816. $2=[];
  817. } else {
  818. $4=aString;
  819. if(($receiver = $4) == nil || $receiver == undefined){
  820. $2=[];
  821. } else {
  822. $2=_st(self)._selectorsInProtocol_(aString);
  823. };
  824. };
  825. _st($1)._items_($2);
  826. _st(self)._refresh();
  827. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolSelected:",{aString:aString}, smalltalk.HLMethodsListWidget)})},
  828. messageSends: ["selectedItem:", "items:", "ifNil:ifNotNil:", "selectorsInProtocol:", "selectedClass", "model", "refresh"]}),
  829. smalltalk.HLMethodsListWidget);
  830. smalltalk.addMethod(
  831. "_overrideSelectors",
  832. smalltalk.method({
  833. selector: "overrideSelectors",
  834. fn: function (){
  835. var self=this;
  836. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  837. $1=_st(_st(self)._selectorsCache())._at_ifAbsentPut_("override",(function(){
  838. return smalltalk.withContext(function($ctx2) { return _st(_st(_st(_st(self)._model())._selectedClass())._allSuperclasses())._inject_into_(_st((smalltalk.Set || Set))._new(),(function(acc,each){
  839. return smalltalk.withContext(function($ctx3) { $2=acc;
  840. _st($2)._addAll_(_st(each)._selectors());
  841. $3=_st($2)._yourself();
  842. return $3;
  843. }, function($ctx3) {$ctx3.fillBlock({acc:acc,each:each},$ctx1)})}));
  844. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  845. return $1;
  846. }, function($ctx1) {$ctx1.fill(self,"overrideSelectors",{}, smalltalk.HLMethodsListWidget)})},
  847. messageSends: ["at:ifAbsentPut:", "inject:into:", "new", "addAll:", "selectors", "yourself", "allSuperclasses", "selectedClass", "model", "selectorsCache"]}),
  848. smalltalk.HLMethodsListWidget);
  849. smalltalk.addMethod(
  850. "_overridenSelectors",
  851. smalltalk.method({
  852. selector: "overridenSelectors",
  853. fn: function (){
  854. var self=this;
  855. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  856. $1=_st(_st(self)._selectorsCache())._at_ifAbsentPut_("overriden",(function(){
  857. return smalltalk.withContext(function($ctx2) { return _st(_st(_st(_st(self)._model())._selectedClass())._allSubclasses())._inject_into_(_st((smalltalk.Set || Set))._new(),(function(acc,each){
  858. return smalltalk.withContext(function($ctx3) { $2=acc;
  859. _st($2)._addAll_(_st(each)._selectors());
  860. $3=_st($2)._yourself();
  861. return $3;
  862. }, function($ctx3) {$ctx3.fillBlock({acc:acc,each:each},$ctx1)})}));
  863. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  864. return $1;
  865. }, function($ctx1) {$ctx1.fill(self,"overridenSelectors",{}, smalltalk.HLMethodsListWidget)})},
  866. messageSends: ["at:ifAbsentPut:", "inject:into:", "new", "addAll:", "selectors", "yourself", "allSubclasses", "selectedClass", "model", "selectorsCache"]}),
  867. smalltalk.HLMethodsListWidget);
  868. smalltalk.addMethod(
  869. "_renderContentOn_",
  870. smalltalk.method({
  871. selector: "renderContentOn:",
  872. fn: function (html){
  873. var self=this;
  874. return smalltalk.withContext(function($ctx1) { var $1,$2,$3;
  875. $1=_st(_st(self)._model())._showInstance();
  876. if(smalltalk.assert($1)){
  877. smalltalk.HLBrowserListWidget.fn.prototype._renderContentOn_.apply(_st(self), [html]);
  878. } else {
  879. $2=_st(html)._div();
  880. _st($2)._class_("class_side");
  881. $3=_st($2)._with_((function(){
  882. return smalltalk.withContext(function($ctx2) { return smalltalk.HLBrowserListWidget.fn.prototype._renderContentOn_.apply(_st(self), [html]);
  883. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  884. $3;
  885. };
  886. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html}, smalltalk.HLMethodsListWidget)})},
  887. messageSends: ["ifFalse:ifTrue:", "class:", "div", "with:", "renderContentOn:", "showInstance", "model"]}),
  888. smalltalk.HLMethodsListWidget);
  889. smalltalk.addMethod(
  890. "_renderItemLabel_on_",
  891. smalltalk.method({
  892. selector: "renderItemLabel:on:",
  893. fn: function (aSelector,html){
  894. var self=this;
  895. return smalltalk.withContext(function($ctx1) { _st(html)._with_(aSelector);
  896. return self}, function($ctx1) {$ctx1.fill(self,"renderItemLabel:on:",{aSelector:aSelector,html:html}, smalltalk.HLMethodsListWidget)})},
  897. messageSends: ["with:"]}),
  898. smalltalk.HLMethodsListWidget);
  899. smalltalk.addMethod(
  900. "_selectItem_",
  901. smalltalk.method({
  902. selector: "selectItem:",
  903. fn: function (aSelector){
  904. var self=this;
  905. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._selectedMethod_(_st(self)._methodForSelector_(aSelector));
  906. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{aSelector:aSelector}, smalltalk.HLMethodsListWidget)})},
  907. messageSends: ["selectedMethod:", "methodForSelector:", "model"]}),
  908. smalltalk.HLMethodsListWidget);
  909. smalltalk.addMethod(
  910. "_selectorsCache",
  911. smalltalk.method({
  912. selector: "selectorsCache",
  913. fn: function (){
  914. var self=this;
  915. return smalltalk.withContext(function($ctx1) { var $1;
  916. $1=_st(_st(self)._class())._selectorsCache();
  917. return $1;
  918. }, function($ctx1) {$ctx1.fill(self,"selectorsCache",{}, smalltalk.HLMethodsListWidget)})},
  919. messageSends: ["selectorsCache", "class"]}),
  920. smalltalk.HLMethodsListWidget);
  921. smalltalk.addMethod(
  922. "_selectorsInProtocol_",
  923. smalltalk.method({
  924. selector: "selectorsInProtocol:",
  925. fn: function (aString){
  926. var self=this;
  927. return smalltalk.withContext(function($ctx1) { var $1;
  928. $1=_st(_st(self)._methodsInProtocol_(aString))._collect_((function(each){
  929. return smalltalk.withContext(function($ctx2) { return _st(each)._selector();
  930. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  931. return $1;
  932. }, function($ctx1) {$ctx1.fill(self,"selectorsInProtocol:",{aString:aString}, smalltalk.HLMethodsListWidget)})},
  933. messageSends: ["collect:", "selector", "methodsInProtocol:"]}),
  934. smalltalk.HLMethodsListWidget);
  935. smalltalk.HLMethodsListWidget.klass.iVarNames = ['selectorsCache'];
  936. smalltalk.addMethod(
  937. "_selectorsCache",
  938. smalltalk.method({
  939. selector: "selectorsCache",
  940. fn: function (){
  941. var self=this;
  942. return smalltalk.withContext(function($ctx1) { var $1;
  943. $1=_st((smalltalk.HLSelectorsCache || HLSelectorsCache))._current();
  944. return $1;
  945. }, function($ctx1) {$ctx1.fill(self,"selectorsCache",{}, smalltalk.HLMethodsListWidget.klass)})},
  946. messageSends: ["current"]}),
  947. smalltalk.HLMethodsListWidget.klass);
  948. smalltalk.addClass('HLPackagesListWidget', smalltalk.HLBrowserListWidget, [], 'Helios-Browser');
  949. smalltalk.addMethod(
  950. "_focusClassesListWidget",
  951. smalltalk.method({
  952. selector: "focusClassesListWidget",
  953. fn: function (){
  954. var self=this;
  955. return smalltalk.withContext(function($ctx1) { _st(_st(_st(self)._model())._announcer())._announce_(_st((smalltalk.HLClassesListFocus || HLClassesListFocus))._new());
  956. return self}, function($ctx1) {$ctx1.fill(self,"focusClassesListWidget",{}, smalltalk.HLPackagesListWidget)})},
  957. messageSends: ["announce:", "new", "announcer", "model"]}),
  958. smalltalk.HLPackagesListWidget);
  959. smalltalk.addMethod(
  960. "_initializeItems",
  961. smalltalk.method({
  962. selector: "initializeItems",
  963. fn: function (){
  964. var self=this;
  965. return smalltalk.withContext(function($ctx1) { var $1;
  966. self["@items"]=_st(_st(_st(self)._model())._packages())._sort_((function(a,b){
  967. return smalltalk.withContext(function($ctx2) { return _st(_st(a)._name()).__lt(_st(b)._name());
  968. }, function($ctx2) {$ctx2.fillBlock({a:a,b:b},$ctx1)})}));
  969. $1=self["@items"];
  970. return $1;
  971. }, function($ctx1) {$ctx1.fill(self,"initializeItems",{}, smalltalk.HLPackagesListWidget)})},
  972. messageSends: ["sort:", "<", "name", "packages", "model"]}),
  973. smalltalk.HLPackagesListWidget);
  974. smalltalk.addMethod(
  975. "_items",
  976. smalltalk.method({
  977. selector: "items",
  978. fn: function (){
  979. var self=this;
  980. return smalltalk.withContext(function($ctx1) { var $2,$1;
  981. $2=self["@items"];
  982. if(($receiver = $2) == nil || $receiver == undefined){
  983. $1=_st(self)._initializeItems();
  984. } else {
  985. $1=$2;
  986. };
  987. return $1;
  988. }, function($ctx1) {$ctx1.fill(self,"items",{}, smalltalk.HLPackagesListWidget)})},
  989. messageSends: ["ifNil:", "initializeItems"]}),
  990. smalltalk.HLPackagesListWidget);
  991. smalltalk.addMethod(
  992. "_observeModel",
  993. smalltalk.method({
  994. selector: "observeModel",
  995. fn: function (){
  996. var self=this;
  997. return smalltalk.withContext(function($ctx1) { _st(_st(_st(self)._model())._announcer())._on_do_((smalltalk.HLPackageSelected || HLPackageSelected),(function(ann){
  998. return smalltalk.withContext(function($ctx2) { return _st(self)._onPackageSelected_(_st(ann)._item());
  999. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  1000. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{}, smalltalk.HLPackagesListWidget)})},
  1001. messageSends: ["on:do:", "onPackageSelected:", "item", "announcer", "model"]}),
  1002. smalltalk.HLPackagesListWidget);
  1003. smalltalk.addMethod(
  1004. "_onPackageSelected_",
  1005. smalltalk.method({
  1006. selector: "onPackageSelected:",
  1007. fn: function (aPackage){
  1008. var self=this;
  1009. return smalltalk.withContext(function($ctx1) { _st(self)._selectedItem_(aPackage);
  1010. _st(self)._focus();
  1011. return self}, function($ctx1) {$ctx1.fill(self,"onPackageSelected:",{aPackage:aPackage}, smalltalk.HLPackagesListWidget)})},
  1012. messageSends: ["selectedItem:", "focus"]}),
  1013. smalltalk.HLPackagesListWidget);
  1014. smalltalk.addMethod(
  1015. "_renderButtonsOn_",
  1016. smalltalk.method({
  1017. selector: "renderButtonsOn:",
  1018. fn: function (html){
  1019. var self=this;
  1020. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$5,$6,$7,$8,$4,$9,$10;
  1021. $1=_st(html)._span();
  1022. _st($1)._class_("info");
  1023. $2=_st($1)._with_("Auto commit");
  1024. $3=_st(html)._div();
  1025. _st($3)._class_("btn-group switch");
  1026. _st($3)._at_put_("data-toggle","buttons-radio");
  1027. $4=_st($3)._with_((function(){
  1028. return smalltalk.withContext(function($ctx2) { $5=_st(html)._button();
  1029. _st($5)._class_(_st((smalltalk.String || String))._streamContents_((function(str){
  1030. return smalltalk.withContext(function($ctx3) { return _st(str)._nextPutAll_("btn");
  1031. }, function($ctx3) {$ctx3.fillBlock({str:str},$ctx1)})})));
  1032. $6=_st($5)._with_("On");
  1033. $6;
  1034. $7=_st(html)._button();
  1035. _st($7)._class_(_st((smalltalk.String || String))._streamContents_((function(str){
  1036. return smalltalk.withContext(function($ctx3) { return _st(str)._nextPutAll_("btn active");
  1037. }, function($ctx3) {$ctx3.fillBlock({str:str},$ctx1)})})));
  1038. $8=_st($7)._with_("Off");
  1039. return $8;
  1040. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1041. $9=_st(html)._a();
  1042. _st($9)._class_("btn");
  1043. $10=_st($9)._with_("Commit");
  1044. return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html}, smalltalk.HLPackagesListWidget)})},
  1045. messageSends: ["class:", "span", "with:", "div", "at:put:", "streamContents:", "nextPutAll:", "button", "a"]}),
  1046. smalltalk.HLPackagesListWidget);
  1047. smalltalk.addMethod(
  1048. "_selectItem_",
  1049. smalltalk.method({
  1050. selector: "selectItem:",
  1051. fn: function (aPackage){
  1052. var self=this;
  1053. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._selectedPackage_(aPackage);
  1054. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{aPackage:aPackage}, smalltalk.HLPackagesListWidget)})},
  1055. messageSends: ["selectedPackage:", "model"]}),
  1056. smalltalk.HLPackagesListWidget);
  1057. smalltalk.addClass('HLProtocolsListWidget', smalltalk.HLBrowserListWidget, [], 'Helios-Browser');
  1058. smalltalk.addMethod(
  1059. "_allProtocol",
  1060. smalltalk.method({
  1061. selector: "allProtocol",
  1062. fn: function (){
  1063. var self=this;
  1064. return smalltalk.withContext(function($ctx1) { var $1;
  1065. $1=_st(_st(self)._model())._allProtocol();
  1066. return $1;
  1067. }, function($ctx1) {$ctx1.fill(self,"allProtocol",{}, smalltalk.HLProtocolsListWidget)})},
  1068. messageSends: ["allProtocol", "model"]}),
  1069. smalltalk.HLProtocolsListWidget);
  1070. smalltalk.addMethod(
  1071. "_observeModel",
  1072. smalltalk.method({
  1073. selector: "observeModel",
  1074. fn: function (){
  1075. var self=this;
  1076. return smalltalk.withContext(function($ctx1) { _st(_st(_st(self)._model())._announcer())._on_do_((smalltalk.HLClassSelected || HLClassSelected),(function(ann){
  1077. return smalltalk.withContext(function($ctx2) { return _st(self)._onClassSelected_(_st(ann)._item());
  1078. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  1079. _st(_st(_st(self)._model())._announcer())._on_do_((smalltalk.HLShowInstanceToggled || HLShowInstanceToggled),(function(ann){
  1080. return smalltalk.withContext(function($ctx2) { return _st(self)._onClassSelected_(_st(_st(self)._model())._selectedClass());
  1081. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  1082. _st(_st(_st(self)._model())._announcer())._on_do_((smalltalk.HLProtocolSelected || HLProtocolSelected),(function(ann){
  1083. return smalltalk.withContext(function($ctx2) { return _st(self)._onProtocolSelected_(_st(ann)._item());
  1084. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  1085. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{}, smalltalk.HLProtocolsListWidget)})},
  1086. messageSends: ["on:do:", "onClassSelected:", "item", "announcer", "model", "selectedClass", "onProtocolSelected:"]}),
  1087. smalltalk.HLProtocolsListWidget);
  1088. smalltalk.addMethod(
  1089. "_onClassSelected_",
  1090. smalltalk.method({
  1091. selector: "onClassSelected:",
  1092. fn: function (aClass){
  1093. var self=this;
  1094. return smalltalk.withContext(function($ctx1) { var $1,$3,$4,$5,$2;
  1095. _st(self)._selectedItem_(nil);
  1096. $1=self;
  1097. $3=aClass;
  1098. if(($receiver = $3) == nil || $receiver == undefined){
  1099. $2=_st((smalltalk.Array || Array))._with_(_st(self)._allProtocol());
  1100. } else {
  1101. $4=_st((smalltalk.Array || Array))._with_(_st(self)._allProtocol());
  1102. _st($4)._addAll_(_st(aClass)._protocols());
  1103. $5=_st($4)._yourself();
  1104. $2=$5;
  1105. };
  1106. _st($1)._items_($2);
  1107. _st(self)._refresh();
  1108. return self}, function($ctx1) {$ctx1.fill(self,"onClassSelected:",{aClass:aClass}, smalltalk.HLProtocolsListWidget)})},
  1109. messageSends: ["selectedItem:", "items:", "ifNil:ifNotNil:", "with:", "allProtocol", "addAll:", "protocols", "yourself", "refresh"]}),
  1110. smalltalk.HLProtocolsListWidget);
  1111. smalltalk.addMethod(
  1112. "_onProtocolSelected_",
  1113. smalltalk.method({
  1114. selector: "onProtocolSelected:",
  1115. fn: function (aString){
  1116. var self=this;
  1117. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1118. _st(self)._selectedItem_(aString);
  1119. $1=aString;
  1120. if(($receiver = $1) == nil || $receiver == undefined){
  1121. $2=self;
  1122. return $2;
  1123. } else {
  1124. $1;
  1125. };
  1126. _st(self)._focus();
  1127. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolSelected:",{aString:aString}, smalltalk.HLProtocolsListWidget)})},
  1128. messageSends: ["selectedItem:", "ifNil:", "focus"]}),
  1129. smalltalk.HLProtocolsListWidget);
  1130. smalltalk.addMethod(
  1131. "_renderContentOn_",
  1132. smalltalk.method({
  1133. selector: "renderContentOn:",
  1134. fn: function (html){
  1135. var self=this;
  1136. return smalltalk.withContext(function($ctx1) { var $1,$2,$3;
  1137. $1=_st(_st(self)._model())._showInstance();
  1138. if(smalltalk.assert($1)){
  1139. smalltalk.HLBrowserListWidget.fn.prototype._renderContentOn_.apply(_st(self), [html]);
  1140. } else {
  1141. $2=_st(html)._div();
  1142. _st($2)._class_("class_side");
  1143. $3=_st($2)._with_((function(){
  1144. return smalltalk.withContext(function($ctx2) { return smalltalk.HLBrowserListWidget.fn.prototype._renderContentOn_.apply(_st(self), [html]);
  1145. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1146. $3;
  1147. };
  1148. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html}, smalltalk.HLProtocolsListWidget)})},
  1149. messageSends: ["ifFalse:ifTrue:", "class:", "div", "with:", "renderContentOn:", "showInstance", "model"]}),
  1150. smalltalk.HLProtocolsListWidget);
  1151. smalltalk.addMethod(
  1152. "_selectItem_",
  1153. smalltalk.method({
  1154. selector: "selectItem:",
  1155. fn: function (aString){
  1156. var self=this;
  1157. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._selectedProtocol_(aString);
  1158. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{aString:aString}, smalltalk.HLProtocolsListWidget)})},
  1159. messageSends: ["selectedProtocol:", "model"]}),
  1160. smalltalk.HLProtocolsListWidget);
  1161. smalltalk.addMethod(
  1162. "_selectedItem",
  1163. smalltalk.method({
  1164. selector: "selectedItem",
  1165. fn: function (){
  1166. var self=this;
  1167. return smalltalk.withContext(function($ctx1) { var $1;
  1168. $1=smalltalk.HLBrowserListWidget.fn.prototype._selectedItem.apply(_st(self), []);
  1169. return $1;
  1170. }, function($ctx1) {$ctx1.fill(self,"selectedItem",{}, smalltalk.HLProtocolsListWidget)})},
  1171. messageSends: ["selectedItem"]}),
  1172. smalltalk.HLProtocolsListWidget);
  1173. smalltalk.addClass('HLBrowserModel', smalltalk.Object, ['announcer', 'environment', 'selectedPackage', 'selectedClass', 'selectedProtocol', 'selectedSelector', 'showInstance', 'showComment'], 'Helios-Browser');
  1174. smalltalk.addMethod(
  1175. "_allProtocol",
  1176. smalltalk.method({
  1177. selector: "allProtocol",
  1178. fn: function (){
  1179. var self=this;
  1180. return smalltalk.withContext(function($ctx1) { return "-- All --";
  1181. }, function($ctx1) {$ctx1.fill(self,"allProtocol",{}, smalltalk.HLBrowserModel)})},
  1182. messageSends: []}),
  1183. smalltalk.HLBrowserModel);
  1184. smalltalk.addMethod(
  1185. "_announcer",
  1186. smalltalk.method({
  1187. selector: "announcer",
  1188. fn: function (){
  1189. var self=this;
  1190. return smalltalk.withContext(function($ctx1) { var $2,$1;
  1191. $2=self["@announcer"];
  1192. if(($receiver = $2) == nil || $receiver == undefined){
  1193. self["@announcer"]=_st((smalltalk.Announcer || Announcer))._new();
  1194. $1=self["@announcer"];
  1195. } else {
  1196. $1=$2;
  1197. };
  1198. return $1;
  1199. }, function($ctx1) {$ctx1.fill(self,"announcer",{}, smalltalk.HLBrowserModel)})},
  1200. messageSends: ["ifNil:", "new"]}),
  1201. smalltalk.HLBrowserModel);
  1202. smalltalk.addMethod(
  1203. "_environment",
  1204. smalltalk.method({
  1205. selector: "environment",
  1206. fn: function (){
  1207. var self=this;
  1208. return smalltalk.withContext(function($ctx1) { var $2,$1;
  1209. $2=self["@environment"];
  1210. if(($receiver = $2) == nil || $receiver == undefined){
  1211. $1=_st(_st((smalltalk.HLManager || HLManager))._current())._environment();
  1212. } else {
  1213. $1=$2;
  1214. };
  1215. return $1;
  1216. }, function($ctx1) {$ctx1.fill(self,"environment",{}, smalltalk.HLBrowserModel)})},
  1217. messageSends: ["ifNil:", "environment", "current"]}),
  1218. smalltalk.HLBrowserModel);
  1219. smalltalk.addMethod(
  1220. "_environment_",
  1221. smalltalk.method({
  1222. selector: "environment:",
  1223. fn: function (anEnvironment){
  1224. var self=this;
  1225. return smalltalk.withContext(function($ctx1) { self["@environment"]=anEnvironment;
  1226. return self}, function($ctx1) {$ctx1.fill(self,"environment:",{anEnvironment:anEnvironment}, smalltalk.HLBrowserModel)})},
  1227. messageSends: []}),
  1228. smalltalk.HLBrowserModel);
  1229. smalltalk.addMethod(
  1230. "_packages",
  1231. smalltalk.method({
  1232. selector: "packages",
  1233. fn: function (){
  1234. var self=this;
  1235. return smalltalk.withContext(function($ctx1) { var $1;
  1236. $1=_st(_st(self)._environment())._packages();
  1237. return $1;
  1238. }, function($ctx1) {$ctx1.fill(self,"packages",{}, smalltalk.HLBrowserModel)})},
  1239. messageSends: ["packages", "environment"]}),
  1240. smalltalk.HLBrowserModel);
  1241. smalltalk.addMethod(
  1242. "_selectedClass",
  1243. smalltalk.method({
  1244. selector: "selectedClass",
  1245. fn: function (){
  1246. var self=this;
  1247. return smalltalk.withContext(function($ctx1) { var $1;
  1248. $1=self["@selectedClass"];
  1249. return $1;
  1250. }, function($ctx1) {$ctx1.fill(self,"selectedClass",{}, smalltalk.HLBrowserModel)})},
  1251. messageSends: []}),
  1252. smalltalk.HLBrowserModel);
  1253. smalltalk.addMethod(
  1254. "_selectedClass_",
  1255. smalltalk.method({
  1256. selector: "selectedClass:",
  1257. fn: function (aClass){
  1258. var self=this;
  1259. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4;
  1260. $1=_st(self["@selectedClass"]).__eq(aClass);
  1261. if(smalltalk.assert($1)){
  1262. $2=self;
  1263. return $2;
  1264. };
  1265. $3=aClass;
  1266. if(($receiver = $3) == nil || $receiver == undefined){
  1267. self["@selectedClass"]=nil;
  1268. self["@selectedClass"];
  1269. } else {
  1270. $4=_st(self)._showInstance();
  1271. if(smalltalk.assert($4)){
  1272. self["@selectedClass"]=_st(aClass)._theNonMetaClass();
  1273. self["@selectedClass"];
  1274. } else {
  1275. self["@selectedClass"]=_st(aClass)._theMetaClass();
  1276. self["@selectedClass"];
  1277. };
  1278. };
  1279. _st(self)._selectedProtocol_(nil);
  1280. _st(_st(self)._announcer())._announce_(_st((smalltalk.HLClassSelected || HLClassSelected))._on_(_st(self)._selectedClass()));
  1281. return self}, function($ctx1) {$ctx1.fill(self,"selectedClass:",{aClass:aClass}, smalltalk.HLBrowserModel)})},
  1282. messageSends: ["ifTrue:", "=", "ifNil:ifNotNil:", "ifTrue:ifFalse:", "theNonMetaClass", "theMetaClass", "showInstance", "selectedProtocol:", "announce:", "on:", "selectedClass", "announcer"]}),
  1283. smalltalk.HLBrowserModel);
  1284. smalltalk.addMethod(
  1285. "_selectedMethod",
  1286. smalltalk.method({
  1287. selector: "selectedMethod",
  1288. fn: function (){
  1289. var self=this;
  1290. return smalltalk.withContext(function($ctx1) { var $2,$1;
  1291. $2=_st(self)._selectedClass();
  1292. if(($receiver = $2) == nil || $receiver == undefined){
  1293. $1=$2;
  1294. } else {
  1295. $1=_st(_st(_st(self)._selectedClass())._methodDictionary())._at_(self["@selectedSelector"]);
  1296. };
  1297. return $1;
  1298. }, function($ctx1) {$ctx1.fill(self,"selectedMethod",{}, smalltalk.HLBrowserModel)})},
  1299. messageSends: ["ifNotNil:", "at:", "methodDictionary", "selectedClass"]}),
  1300. smalltalk.HLBrowserModel);
  1301. smalltalk.addMethod(
  1302. "_selectedMethod_",
  1303. smalltalk.method({
  1304. selector: "selectedMethod:",
  1305. fn: function (aCompiledMethod){
  1306. var self=this;
  1307. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4,$5;
  1308. $1=_st(self["@selectedSelector"]).__eq(aCompiledMethod);
  1309. if(smalltalk.assert($1)){
  1310. $2=self;
  1311. return $2;
  1312. };
  1313. $3=aCompiledMethod;
  1314. if(($receiver = $3) == nil || $receiver == undefined){
  1315. self["@selectedSelector"]=nil;
  1316. self["@selectedSelector"];
  1317. } else {
  1318. $4=_st(self["@selectedSelector"]).__eq(_st(aCompiledMethod)._selector());
  1319. if(smalltalk.assert($4)){
  1320. $5=self;
  1321. return $5;
  1322. };
  1323. self["@selectedSelector"]=_st(aCompiledMethod)._selector();
  1324. self["@selectedSelector"];
  1325. };
  1326. _st(_st(self)._announcer())._announce_(_st((smalltalk.HLMethodSelected || HLMethodSelected))._on_(aCompiledMethod));
  1327. return self}, function($ctx1) {$ctx1.fill(self,"selectedMethod:",{aCompiledMethod:aCompiledMethod}, smalltalk.HLBrowserModel)})},
  1328. messageSends: ["ifTrue:", "=", "ifNil:ifNotNil:", "selector", "announce:", "on:", "announcer"]}),
  1329. smalltalk.HLBrowserModel);
  1330. smalltalk.addMethod(
  1331. "_selectedPackage",
  1332. smalltalk.method({
  1333. selector: "selectedPackage",
  1334. fn: function (){
  1335. var self=this;
  1336. return smalltalk.withContext(function($ctx1) { var $1;
  1337. $1=self["@selectedPackage"];
  1338. return $1;
  1339. }, function($ctx1) {$ctx1.fill(self,"selectedPackage",{}, smalltalk.HLBrowserModel)})},
  1340. messageSends: []}),
  1341. smalltalk.HLBrowserModel);
  1342. smalltalk.addMethod(
  1343. "_selectedPackage_",
  1344. smalltalk.method({
  1345. selector: "selectedPackage:",
  1346. fn: function (aPackage){
  1347. var self=this;
  1348. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1349. $1=_st(self["@selectedPackage"]).__eq(aPackage);
  1350. if(smalltalk.assert($1)){
  1351. $2=self;
  1352. return $2;
  1353. };
  1354. self["@selectedPackage"]=aPackage;
  1355. _st(self)._selectedClass_(nil);
  1356. _st(_st(self)._announcer())._announce_(_st((smalltalk.HLPackageSelected || HLPackageSelected))._on_(aPackage));
  1357. return self}, function($ctx1) {$ctx1.fill(self,"selectedPackage:",{aPackage:aPackage}, smalltalk.HLBrowserModel)})},
  1358. messageSends: ["ifTrue:", "=", "selectedClass:", "announce:", "on:", "announcer"]}),
  1359. smalltalk.HLBrowserModel);
  1360. smalltalk.addMethod(
  1361. "_selectedProtocol",
  1362. smalltalk.method({
  1363. selector: "selectedProtocol",
  1364. fn: function (){
  1365. var self=this;
  1366. return smalltalk.withContext(function($ctx1) { var $1;
  1367. $1=self["@selectedProtocol"];
  1368. return $1;
  1369. }, function($ctx1) {$ctx1.fill(self,"selectedProtocol",{}, smalltalk.HLBrowserModel)})},
  1370. messageSends: []}),
  1371. smalltalk.HLBrowserModel);
  1372. smalltalk.addMethod(
  1373. "_selectedProtocol_",
  1374. smalltalk.method({
  1375. selector: "selectedProtocol:",
  1376. fn: function (aString){
  1377. var self=this;
  1378. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1379. $1=_st(self["@selectedProtocol"]).__eq(aString);
  1380. if(smalltalk.assert($1)){
  1381. $2=self;
  1382. return $2;
  1383. };
  1384. self["@selectedProtocol"]=aString;
  1385. _st(self)._selectedMethod_(nil);
  1386. _st(_st(self)._announcer())._announce_(_st((smalltalk.HLProtocolSelected || HLProtocolSelected))._on_(aString));
  1387. return self}, function($ctx1) {$ctx1.fill(self,"selectedProtocol:",{aString:aString}, smalltalk.HLBrowserModel)})},
  1388. messageSends: ["ifTrue:", "=", "selectedMethod:", "announce:", "on:", "announcer"]}),
  1389. smalltalk.HLBrowserModel);
  1390. smalltalk.addMethod(
  1391. "_showComment",
  1392. smalltalk.method({
  1393. selector: "showComment",
  1394. fn: function (){
  1395. var self=this;
  1396. return smalltalk.withContext(function($ctx1) { var $2,$1;
  1397. $2=self["@showComment"];
  1398. if(($receiver = $2) == nil || $receiver == undefined){
  1399. $1=false;
  1400. } else {
  1401. $1=$2;
  1402. };
  1403. return $1;
  1404. }, function($ctx1) {$ctx1.fill(self,"showComment",{}, smalltalk.HLBrowserModel)})},
  1405. messageSends: ["ifNil:"]}),
  1406. smalltalk.HLBrowserModel);
  1407. smalltalk.addMethod(
  1408. "_showComment_",
  1409. smalltalk.method({
  1410. selector: "showComment:",
  1411. fn: function (aBoolean){
  1412. var self=this;
  1413. return smalltalk.withContext(function($ctx1) { self["@showComment"]=aBoolean;
  1414. _st(_st(self)._announcer())._announce_(_st((smalltalk.HLShowCommentToggled || HLShowCommentToggled))._new());
  1415. return self}, function($ctx1) {$ctx1.fill(self,"showComment:",{aBoolean:aBoolean}, smalltalk.HLBrowserModel)})},
  1416. messageSends: ["announce:", "new", "announcer"]}),
  1417. smalltalk.HLBrowserModel);
  1418. smalltalk.addMethod(
  1419. "_showInstance",
  1420. smalltalk.method({
  1421. selector: "showInstance",
  1422. fn: function (){
  1423. var self=this;
  1424. return smalltalk.withContext(function($ctx1) { var $2,$1;
  1425. $2=self["@showInstance"];
  1426. if(($receiver = $2) == nil || $receiver == undefined){
  1427. $1=true;
  1428. } else {
  1429. $1=$2;
  1430. };
  1431. return $1;
  1432. }, function($ctx1) {$ctx1.fill(self,"showInstance",{}, smalltalk.HLBrowserModel)})},
  1433. messageSends: ["ifNil:"]}),
  1434. smalltalk.HLBrowserModel);
  1435. smalltalk.addMethod(
  1436. "_showInstance_",
  1437. smalltalk.method({
  1438. selector: "showInstance:",
  1439. fn: function (aBoolean){
  1440. var self=this;
  1441. return smalltalk.withContext(function($ctx1) { var $1,$2,$4,$3;
  1442. self["@showInstance"]=aBoolean;
  1443. $1=_st(self)._selectedClass();
  1444. if(($receiver = $1) == nil || $receiver == undefined){
  1445. $1;
  1446. } else {
  1447. $2=self;
  1448. $4=aBoolean;
  1449. if(smalltalk.assert($4)){
  1450. $3=_st(_st(self)._selectedClass())._theNonMetaClass();
  1451. } else {
  1452. $3=_st(_st(self)._selectedClass())._theMetaClass();
  1453. };
  1454. _st($2)._selectedClass_($3);
  1455. };
  1456. _st(_st(self)._announcer())._announce_(_st((smalltalk.HLShowInstanceToggled || HLShowInstanceToggled))._new());
  1457. return self}, function($ctx1) {$ctx1.fill(self,"showInstance:",{aBoolean:aBoolean}, smalltalk.HLBrowserModel)})},
  1458. messageSends: ["ifNotNil:", "selectedClass:", "ifTrue:ifFalse:", "theNonMetaClass", "selectedClass", "theMetaClass", "announce:", "new", "announcer"]}),
  1459. smalltalk.HLBrowserModel);
  1460. smalltalk.addMethod(
  1461. "_on_",
  1462. smalltalk.method({
  1463. selector: "on:",
  1464. fn: function (anEnvironment){
  1465. var self=this;
  1466. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  1467. $2=_st(self)._new();
  1468. _st($2)._environment_(anEnvironment);
  1469. $3=_st($2)._yourself();
  1470. $1=$3;
  1471. return $1;
  1472. }, function($ctx1) {$ctx1.fill(self,"on:",{anEnvironment:anEnvironment}, smalltalk.HLBrowserModel.klass)})},
  1473. messageSends: ["environment:", "new", "yourself"]}),
  1474. smalltalk.HLBrowserModel.klass);
  1475. smalltalk.addClass('HLBrowserSourceWidget', smalltalk.HLWidget, ['model', 'methodContents', 'codeWidget'], 'Helios-Browser');
  1476. smalltalk.addMethod(
  1477. "_codeWidget",
  1478. smalltalk.method({
  1479. selector: "codeWidget",
  1480. fn: function (){
  1481. var self=this;
  1482. return smalltalk.withContext(function($ctx1) { var $2,$1;
  1483. $2=self["@codeWidget"];
  1484. if(($receiver = $2) == nil || $receiver == undefined){
  1485. self["@codeWidget"]=_st((smalltalk.HLCodeWidget || HLCodeWidget))._new();
  1486. $1=self["@codeWidget"];
  1487. } else {
  1488. $1=$2;
  1489. };
  1490. return $1;
  1491. }, function($ctx1) {$ctx1.fill(self,"codeWidget",{}, smalltalk.HLBrowserSourceWidget)})},
  1492. messageSends: ["ifNil:", "new"]}),
  1493. smalltalk.HLBrowserSourceWidget);
  1494. smalltalk.addMethod(
  1495. "_contents",
  1496. smalltalk.method({
  1497. selector: "contents",
  1498. fn: function (){
  1499. var self=this;
  1500. return smalltalk.withContext(function($ctx1) { var $1;
  1501. $1=_st(_st(self)._codeWidget())._contents();
  1502. return $1;
  1503. }, function($ctx1) {$ctx1.fill(self,"contents",{}, smalltalk.HLBrowserSourceWidget)})},
  1504. messageSends: ["contents", "codeWidget"]}),
  1505. smalltalk.HLBrowserSourceWidget);
  1506. smalltalk.addMethod(
  1507. "_contents_",
  1508. smalltalk.method({
  1509. selector: "contents:",
  1510. fn: function (aString){
  1511. var self=this;
  1512. return smalltalk.withContext(function($ctx1) { _st(self)._methodContents_(aString);
  1513. _st(_st(self)._codeWidget())._contents_(aString);
  1514. return self}, function($ctx1) {$ctx1.fill(self,"contents:",{aString:aString}, smalltalk.HLBrowserSourceWidget)})},
  1515. messageSends: ["methodContents:", "contents:", "codeWidget"]}),
  1516. smalltalk.HLBrowserSourceWidget);
  1517. smalltalk.addMethod(
  1518. "_hasModification",
  1519. smalltalk.method({
  1520. selector: "hasModification",
  1521. fn: function (){
  1522. var self=this;
  1523. return smalltalk.withContext(function($ctx1) { var $1;
  1524. $1=_st(_st(_st(self)._methodContents()).__eq(_st(self)._contents()))._not();
  1525. return $1;
  1526. }, function($ctx1) {$ctx1.fill(self,"hasModification",{}, smalltalk.HLBrowserSourceWidget)})},
  1527. messageSends: ["not", "=", "contents", "methodContents"]}),
  1528. smalltalk.HLBrowserSourceWidget);
  1529. smalltalk.addMethod(
  1530. "_initialize",
  1531. smalltalk.method({
  1532. selector: "initialize",
  1533. fn: function (){
  1534. var self=this;
  1535. return smalltalk.withContext(function($ctx1) { smalltalk.HLWidget.fn.prototype._initialize.apply(_st(self), []);
  1536. _st(self)._observeSystem();
  1537. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{}, smalltalk.HLBrowserSourceWidget)})},
  1538. messageSends: ["initialize", "observeSystem"]}),
  1539. smalltalk.HLBrowserSourceWidget);
  1540. smalltalk.addMethod(
  1541. "_methodContents",
  1542. smalltalk.method({
  1543. selector: "methodContents",
  1544. fn: function (){
  1545. var self=this;
  1546. return smalltalk.withContext(function($ctx1) { var $2,$1;
  1547. $2=self["@methodContents"];
  1548. if(($receiver = $2) == nil || $receiver == undefined){
  1549. self["@methodContents"]="";
  1550. $1=self["@methodContents"];
  1551. } else {
  1552. $1=$2;
  1553. };
  1554. return $1;
  1555. }, function($ctx1) {$ctx1.fill(self,"methodContents",{}, smalltalk.HLBrowserSourceWidget)})},
  1556. messageSends: ["ifNil:"]}),
  1557. smalltalk.HLBrowserSourceWidget);
  1558. smalltalk.addMethod(
  1559. "_methodContents_",
  1560. smalltalk.method({
  1561. selector: "methodContents:",
  1562. fn: function (aString){
  1563. var self=this;
  1564. return smalltalk.withContext(function($ctx1) { self["@methodContents"]=aString;
  1565. return self}, function($ctx1) {$ctx1.fill(self,"methodContents:",{aString:aString}, smalltalk.HLBrowserSourceWidget)})},
  1566. messageSends: []}),
  1567. smalltalk.HLBrowserSourceWidget);
  1568. smalltalk.addMethod(
  1569. "_model",
  1570. smalltalk.method({
  1571. selector: "model",
  1572. fn: function (){
  1573. var self=this;
  1574. return smalltalk.withContext(function($ctx1) { var $1;
  1575. $1=self["@model"];
  1576. return $1;
  1577. }, function($ctx1) {$ctx1.fill(self,"model",{}, smalltalk.HLBrowserSourceWidget)})},
  1578. messageSends: []}),
  1579. smalltalk.HLBrowserSourceWidget);
  1580. smalltalk.addMethod(
  1581. "_model_",
  1582. smalltalk.method({
  1583. selector: "model:",
  1584. fn: function (aBrowserModel){
  1585. var self=this;
  1586. return smalltalk.withContext(function($ctx1) { self["@model"]=aBrowserModel;
  1587. _st(self)._observeModel();
  1588. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aBrowserModel:aBrowserModel}, smalltalk.HLBrowserSourceWidget)})},
  1589. messageSends: ["observeModel"]}),
  1590. smalltalk.HLBrowserSourceWidget);
  1591. smalltalk.addMethod(
  1592. "_observeModel",
  1593. smalltalk.method({
  1594. selector: "observeModel",
  1595. fn: function (){
  1596. var self=this;
  1597. return smalltalk.withContext(function($ctx1) { _st(_st(_st(self)._model())._announcer())._on_do_((smalltalk.HLMethodSelected || HLMethodSelected),(function(ann){
  1598. return smalltalk.withContext(function($ctx2) { return _st(self)._onMethodSelected_(_st(ann)._item());
  1599. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  1600. _st(_st(_st(self)._model())._announcer())._on_do_((smalltalk.HLClassSelected || HLClassSelected),(function(ann){
  1601. return smalltalk.withContext(function($ctx2) { return _st(self)._onClassSelected_(_st(ann)._item());
  1602. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  1603. _st(_st(_st(self)._model())._announcer())._on_do_((smalltalk.HLProtocolSelected || HLProtocolSelected),(function(ann){
  1604. return smalltalk.withContext(function($ctx2) { return _st(self)._onProtocolSelected_(_st(ann)._item());
  1605. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  1606. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{}, smalltalk.HLBrowserSourceWidget)})},
  1607. messageSends: ["on:do:", "onMethodSelected:", "item", "announcer", "model", "onClassSelected:", "onProtocolSelected:"]}),
  1608. smalltalk.HLBrowserSourceWidget);
  1609. smalltalk.addMethod(
  1610. "_observeSystem",
  1611. smalltalk.method({
  1612. selector: "observeSystem",
  1613. fn: function (){
  1614. var self=this;
  1615. return smalltalk.withContext(function($ctx1) { _st(_st((smalltalk.SystemAnnouncer || SystemAnnouncer))._current())._on_do_((smalltalk.MethodModified || MethodModified),(function(ann){
  1616. return smalltalk.withContext(function($ctx2) { return _st(self)._onMethodModified_(_st(ann)._method());
  1617. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  1618. return self}, function($ctx1) {$ctx1.fill(self,"observeSystem",{}, smalltalk.HLBrowserSourceWidget)})},
  1619. messageSends: ["on:do:", "onMethodModified:", "method", "current"]}),
  1620. smalltalk.HLBrowserSourceWidget);
  1621. smalltalk.addMethod(
  1622. "_onClassSelected_",
  1623. smalltalk.method({
  1624. selector: "onClassSelected:",
  1625. fn: function (aClass){
  1626. var self=this;
  1627. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1628. $1=aClass;
  1629. if(($receiver = $1) == nil || $receiver == undefined){
  1630. $2=_st(self)._contents_("");
  1631. return $2;
  1632. } else {
  1633. $1;
  1634. };
  1635. _st(self)._contents_(_st(aClass)._definition());
  1636. return self}, function($ctx1) {$ctx1.fill(self,"onClassSelected:",{aClass:aClass}, smalltalk.HLBrowserSourceWidget)})},
  1637. messageSends: ["ifNil:", "contents:", "definition"]}),
  1638. smalltalk.HLBrowserSourceWidget);
  1639. smalltalk.addMethod(
  1640. "_onMethodModified_",
  1641. smalltalk.method({
  1642. selector: "onMethodModified:",
  1643. fn: function (aMethod){
  1644. var self=this;
  1645. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4;
  1646. $1=_st(_st(_st(self)._model())._selectedClass()).__eq(_st(aMethod)._methodClass());
  1647. if(! smalltalk.assert($1)){
  1648. $2=self;
  1649. return $2;
  1650. };
  1651. $3=_st(_st(_st(_st(self)._model())._selectedMethod())._selector()).__eq(_st(aMethod)._selector());
  1652. if(! smalltalk.assert($3)){
  1653. $4=self;
  1654. return $4;
  1655. };
  1656. _st(self)._refresh();
  1657. return self}, function($ctx1) {$ctx1.fill(self,"onMethodModified:",{aMethod:aMethod}, smalltalk.HLBrowserSourceWidget)})},
  1658. messageSends: ["ifFalse:", "=", "methodClass", "selectedClass", "model", "selector", "selectedMethod", "refresh"]}),
  1659. smalltalk.HLBrowserSourceWidget);
  1660. smalltalk.addMethod(
  1661. "_onMethodSelected_",
  1662. smalltalk.method({
  1663. selector: "onMethodSelected:",
  1664. fn: function (aCompiledMethod){
  1665. var self=this;
  1666. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1667. $1=aCompiledMethod;
  1668. if(($receiver = $1) == nil || $receiver == undefined){
  1669. $2=_st(self)._contents_("");
  1670. return $2;
  1671. } else {
  1672. $1;
  1673. };
  1674. _st(self)._contents_(_st(aCompiledMethod)._source());
  1675. return self}, function($ctx1) {$ctx1.fill(self,"onMethodSelected:",{aCompiledMethod:aCompiledMethod}, smalltalk.HLBrowserSourceWidget)})},
  1676. messageSends: ["ifNil:", "contents:", "source"]}),
  1677. smalltalk.HLBrowserSourceWidget);
  1678. smalltalk.addMethod(
  1679. "_onProtocolSelected_",
  1680. smalltalk.method({
  1681. selector: "onProtocolSelected:",
  1682. fn: function (aString){
  1683. var self=this;
  1684. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1685. $1=_st(_st(self)._model())._selectedClass();
  1686. if(($receiver = $1) == nil || $receiver == undefined){
  1687. $2=_st(self)._contents_("");
  1688. return $2;
  1689. } else {
  1690. $1;
  1691. };
  1692. _st(self)._contents_(_st(_st(_st(self)._model())._selectedClass())._definition());
  1693. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolSelected:",{aString:aString}, smalltalk.HLBrowserSourceWidget)})},
  1694. messageSends: ["ifNil:", "contents:", "selectedClass", "model", "definition"]}),
  1695. smalltalk.HLBrowserSourceWidget);
  1696. smalltalk.addMethod(
  1697. "_refresh",
  1698. smalltalk.method({
  1699. selector: "refresh",
  1700. fn: function (){
  1701. var self=this;
  1702. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1703. $1=_st(self)._hasModification();
  1704. if(smalltalk.assert($1)){
  1705. $2=self;
  1706. return $2;
  1707. };
  1708. _st(self)._contents_(_st(_st(_st(self)._model())._selectedMethod())._source());
  1709. smalltalk.HLWidget.fn.prototype._refresh.apply(_st(self), []);
  1710. return self}, function($ctx1) {$ctx1.fill(self,"refresh",{}, smalltalk.HLBrowserSourceWidget)})},
  1711. messageSends: ["ifTrue:", "hasModification", "contents:", "source", "selectedMethod", "model", "refresh"]}),
  1712. smalltalk.HLBrowserSourceWidget);
  1713. smalltalk.addMethod(
  1714. "_renderContentOn_",
  1715. smalltalk.method({
  1716. selector: "renderContentOn:",
  1717. fn: function (html){
  1718. var self=this;
  1719. return smalltalk.withContext(function($ctx1) { _st(_st(self)._codeWidget())._renderOn_(html);
  1720. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html}, smalltalk.HLBrowserSourceWidget)})},
  1721. messageSends: ["renderOn:", "codeWidget"]}),
  1722. smalltalk.HLBrowserSourceWidget);
  1723. smalltalk.addMethod(
  1724. "_on_",
  1725. smalltalk.method({
  1726. selector: "on:",
  1727. fn: function (aBrowserModel){
  1728. var self=this;
  1729. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  1730. $2=_st(self)._new();
  1731. _st($2)._model_(aBrowserModel);
  1732. $3=_st($2)._yourself();
  1733. $1=$3;
  1734. return $1;
  1735. }, function($ctx1) {$ctx1.fill(self,"on:",{aBrowserModel:aBrowserModel}, smalltalk.HLBrowserSourceWidget.klass)})},
  1736. messageSends: ["model:", "new", "yourself"]}),
  1737. smalltalk.HLBrowserSourceWidget.klass);
  1738. smalltalk.addClass('HLClassCache', smalltalk.Object, ['class', 'selectorsCache', 'overrideCache', 'overriddenCache'], 'Helios-Browser');
  1739. smalltalk.addMethod(
  1740. "_invalidateChildrenSelector_",
  1741. smalltalk.method({
  1742. selector: "invalidateChildrenSelector:",
  1743. fn: function (aSelector){
  1744. var self=this;
  1745. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1746. _st(_st(_st(self)._theClass())._subclasses())._do_((function(each){
  1747. return smalltalk.withContext(function($ctx2) { $1=_st(_st(self)._selectorsCache())._cacheFor_(each);
  1748. _st($1)._removeSelector_(aSelector);
  1749. $2=_st($1)._invalidateChildrenSelector_(aSelector);
  1750. return $2;
  1751. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  1752. return self}, function($ctx1) {$ctx1.fill(self,"invalidateChildrenSelector:",{aSelector:aSelector}, smalltalk.HLClassCache)})},
  1753. messageSends: ["do:", "removeSelector:", "cacheFor:", "selectorsCache", "invalidateChildrenSelector:", "subclasses", "theClass"]}),
  1754. smalltalk.HLClassCache);
  1755. smalltalk.addMethod(
  1756. "_invalidateParentSelector_",
  1757. smalltalk.method({
  1758. selector: "invalidateParentSelector:",
  1759. fn: function (aSelector){
  1760. var self=this;
  1761. return smalltalk.withContext(function($ctx1) { var $1,$2,$3;
  1762. $1=_st(_st(self)._theClass())._superclass();
  1763. if(($receiver = $1) == nil || $receiver == undefined){
  1764. $1;
  1765. } else {
  1766. $2=_st(_st(self)._selectorsCache())._cacheFor_(_st(_st(self)._theClass())._superclass());
  1767. _st($2)._removeSelector_(aSelector);
  1768. $3=_st($2)._invalidateParentSelector_(aSelector);
  1769. $3;
  1770. };
  1771. return self}, function($ctx1) {$ctx1.fill(self,"invalidateParentSelector:",{aSelector:aSelector}, smalltalk.HLClassCache)})},
  1772. messageSends: ["ifNotNil:", "removeSelector:", "cacheFor:", "superclass", "theClass", "selectorsCache", "invalidateParentSelector:"]}),
  1773. smalltalk.HLClassCache);
  1774. smalltalk.addMethod(
  1775. "_invalidateSelector_",
  1776. smalltalk.method({
  1777. selector: "invalidateSelector:",
  1778. fn: function (aSelector){
  1779. var self=this;
  1780. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1781. $1=self;
  1782. _st($1)._invalidateParentSelector_(aSelector);
  1783. _st($1)._invalidateChildrenSelector_(aSelector);
  1784. $2=_st($1)._removeSelector_(aSelector);
  1785. return self}, function($ctx1) {$ctx1.fill(self,"invalidateSelector:",{aSelector:aSelector}, smalltalk.HLClassCache)})},
  1786. messageSends: ["invalidateParentSelector:", "invalidateChildrenSelector:", "removeSelector:"]}),
  1787. smalltalk.HLClassCache);
  1788. smalltalk.addMethod(
  1789. "_isOverridden_",
  1790. smalltalk.method({
  1791. selector: "isOverridden:",
  1792. fn: function (aMethod){
  1793. var self=this;
  1794. return smalltalk.withContext(function($ctx1) { var $1;
  1795. $1=_st(_st(self)._overriddenCache())._at_ifAbsentPut_(_st(aMethod)._selector(),(function(){
  1796. return smalltalk.withContext(function($ctx2) { return _st(aMethod)._isOverridden();
  1797. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1798. return $1;
  1799. }, function($ctx1) {$ctx1.fill(self,"isOverridden:",{aMethod:aMethod}, smalltalk.HLClassCache)})},
  1800. messageSends: ["at:ifAbsentPut:", "selector", "isOverridden", "overriddenCache"]}),
  1801. smalltalk.HLClassCache);
  1802. smalltalk.addMethod(
  1803. "_isOverride_",
  1804. smalltalk.method({
  1805. selector: "isOverride:",
  1806. fn: function (aMethod){
  1807. var self=this;
  1808. return smalltalk.withContext(function($ctx1) { var $1;
  1809. $1=_st(_st(self)._overrideCache())._at_ifAbsentPut_(_st(aMethod)._selector(),(function(){
  1810. return smalltalk.withContext(function($ctx2) { return _st(aMethod)._isOverride();
  1811. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1812. return $1;
  1813. }, function($ctx1) {$ctx1.fill(self,"isOverride:",{aMethod:aMethod}, smalltalk.HLClassCache)})},
  1814. messageSends: ["at:ifAbsentPut:", "selector", "isOverride", "overrideCache"]}),
  1815. smalltalk.HLClassCache);
  1816. smalltalk.addMethod(
  1817. "_overriddenCache",
  1818. smalltalk.method({
  1819. selector: "overriddenCache",
  1820. fn: function (){
  1821. var self=this;
  1822. return smalltalk.withContext(function($ctx1) { var $2,$1;
  1823. $2=self["@overriddenCache"];
  1824. if(($receiver = $2) == nil || $receiver == undefined){
  1825. self["@overriddenCache"]=_st((smalltalk.HashedCollection || HashedCollection))._new();
  1826. $1=self["@overriddenCache"];
  1827. } else {
  1828. $1=$2;
  1829. };
  1830. return $1;
  1831. }, function($ctx1) {$ctx1.fill(self,"overriddenCache",{}, smalltalk.HLClassCache)})},
  1832. messageSends: ["ifNil:", "new"]}),
  1833. smalltalk.HLClassCache);
  1834. smalltalk.addMethod(
  1835. "_overrideCache",
  1836. smalltalk.method({
  1837. selector: "overrideCache",
  1838. fn: function (){
  1839. var self=this;
  1840. return smalltalk.withContext(function($ctx1) { var $2,$1;
  1841. $2=self["@overrideCache"];
  1842. if(($receiver = $2) == nil || $receiver == undefined){
  1843. self["@overrideCache"]=_st((smalltalk.HashedCollection || HashedCollection))._new();
  1844. $1=self["@overrideCache"];
  1845. } else {
  1846. $1=$2;
  1847. };
  1848. return $1;
  1849. }, function($ctx1) {$ctx1.fill(self,"overrideCache",{}, smalltalk.HLClassCache)})},
  1850. messageSends: ["ifNil:", "new"]}),
  1851. smalltalk.HLClassCache);
  1852. smalltalk.addMethod(
  1853. "_removeSelector_",
  1854. smalltalk.method({
  1855. selector: "removeSelector:",
  1856. fn: function (aSelector){
  1857. var self=this;
  1858. return smalltalk.withContext(function($ctx1) { _st(_st(self)._overriddenCache())._removeKey_ifAbsent_(aSelector,(function(){
  1859. return smalltalk.withContext(function($ctx2) { }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1860. _st(_st(self)._overrideCache())._removeKey_ifAbsent_(aSelector,(function(){
  1861. return smalltalk.withContext(function($ctx2) { }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1862. return self}, function($ctx1) {$ctx1.fill(self,"removeSelector:",{aSelector:aSelector}, smalltalk.HLClassCache)})},
  1863. messageSends: ["removeKey:ifAbsent:", "overriddenCache", "overrideCache"]}),
  1864. smalltalk.HLClassCache);
  1865. smalltalk.addMethod(
  1866. "_selectorsCache",
  1867. smalltalk.method({
  1868. selector: "selectorsCache",
  1869. fn: function (){
  1870. var self=this;
  1871. return smalltalk.withContext(function($ctx1) { var $1;
  1872. $1=self["@selectorsCache"];
  1873. return $1;
  1874. }, function($ctx1) {$ctx1.fill(self,"selectorsCache",{}, smalltalk.HLClassCache)})},
  1875. messageSends: []}),
  1876. smalltalk.HLClassCache);
  1877. smalltalk.addMethod(
  1878. "_selectorsCache_",
  1879. smalltalk.method({
  1880. selector: "selectorsCache:",
  1881. fn: function (aCache){
  1882. var self=this;
  1883. return smalltalk.withContext(function($ctx1) { self["@selectorsCache"]=aCache;
  1884. return self}, function($ctx1) {$ctx1.fill(self,"selectorsCache:",{aCache:aCache}, smalltalk.HLClassCache)})},
  1885. messageSends: []}),
  1886. smalltalk.HLClassCache);
  1887. smalltalk.addMethod(
  1888. "_theClass",
  1889. smalltalk.method({
  1890. selector: "theClass",
  1891. fn: function (){
  1892. var self=this;
  1893. return smalltalk.withContext(function($ctx1) { var $1;
  1894. $1=self["@class"];
  1895. return $1;
  1896. }, function($ctx1) {$ctx1.fill(self,"theClass",{}, smalltalk.HLClassCache)})},
  1897. messageSends: []}),
  1898. smalltalk.HLClassCache);
  1899. smalltalk.addMethod(
  1900. "_theClass_",
  1901. smalltalk.method({
  1902. selector: "theClass:",
  1903. fn: function (aClass){
  1904. var self=this;
  1905. return smalltalk.withContext(function($ctx1) { self["@class"]=aClass;
  1906. return self}, function($ctx1) {$ctx1.fill(self,"theClass:",{aClass:aClass}, smalltalk.HLClassCache)})},
  1907. messageSends: []}),
  1908. smalltalk.HLClassCache);
  1909. smalltalk.addMethod(
  1910. "_on_selectorsCache_",
  1911. smalltalk.method({
  1912. selector: "on:selectorsCache:",
  1913. fn: function (aClass,aSelectorsCache){
  1914. var self=this;
  1915. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  1916. $2=_st(self)._new();
  1917. _st($2)._theClass_(aClass);
  1918. _st($2)._selectorsCache_(aSelectorsCache);
  1919. $3=_st($2)._yourself();
  1920. $1=$3;
  1921. return $1;
  1922. }, function($ctx1) {$ctx1.fill(self,"on:selectorsCache:",{aClass:aClass,aSelectorsCache:aSelectorsCache}, smalltalk.HLClassCache.klass)})},
  1923. messageSends: ["theClass:", "new", "selectorsCache:", "yourself"]}),
  1924. smalltalk.HLClassCache.klass);
  1925. smalltalk.addClass('HLSelectorsCache', smalltalk.Object, ['classesCache'], 'Helios-Browser');
  1926. smalltalk.addMethod(
  1927. "_cacheFor_",
  1928. smalltalk.method({
  1929. selector: "cacheFor:",
  1930. fn: function (aClass){
  1931. var self=this;
  1932. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1933. $1=aClass;
  1934. if(($receiver = $1) == nil || $receiver == undefined){
  1935. return nil;
  1936. } else {
  1937. $1;
  1938. };
  1939. $2=_st(_st(self)._classesCache())._at_ifAbsentPut_(_st(aClass)._name(),(function(){
  1940. return smalltalk.withContext(function($ctx2) { return _st(self)._newCacheFor_(aClass);
  1941. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1942. return $2;
  1943. }, function($ctx1) {$ctx1.fill(self,"cacheFor:",{aClass:aClass}, smalltalk.HLSelectorsCache)})},
  1944. messageSends: ["ifNil:", "at:ifAbsentPut:", "name", "newCacheFor:", "classesCache"]}),
  1945. smalltalk.HLSelectorsCache);
  1946. smalltalk.addMethod(
  1947. "_classesCache",
  1948. smalltalk.method({
  1949. selector: "classesCache",
  1950. fn: function (){
  1951. var self=this;
  1952. return smalltalk.withContext(function($ctx1) { var $2,$1;
  1953. $2=self["@classesCache"];
  1954. if(($receiver = $2) == nil || $receiver == undefined){
  1955. self["@classesCache"]=_st((smalltalk.HashedCollection || HashedCollection))._new();
  1956. $1=self["@classesCache"];
  1957. } else {
  1958. $1=$2;
  1959. };
  1960. return $1;
  1961. }, function($ctx1) {$ctx1.fill(self,"classesCache",{}, smalltalk.HLSelectorsCache)})},
  1962. messageSends: ["ifNil:", "new"]}),
  1963. smalltalk.HLSelectorsCache);
  1964. smalltalk.addMethod(
  1965. "_initialize",
  1966. smalltalk.method({
  1967. selector: "initialize",
  1968. fn: function (){
  1969. var self=this;
  1970. return smalltalk.withContext(function($ctx1) { smalltalk.Object.fn.prototype._initialize.apply(_st(self), []);
  1971. _st(self)._observeSystem();
  1972. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{}, smalltalk.HLSelectorsCache)})},
  1973. messageSends: ["initialize", "observeSystem"]}),
  1974. smalltalk.HLSelectorsCache);
  1975. smalltalk.addMethod(
  1976. "_invalidateCacheFor_",
  1977. smalltalk.method({
  1978. selector: "invalidateCacheFor:",
  1979. fn: function (aMethod){
  1980. var self=this;
  1981. return smalltalk.withContext(function($ctx1) { _st(_st(self)._cacheFor_(_st(aMethod)._methodClass()))._invalidateSelector_(_st(aMethod)._selector());
  1982. return self}, function($ctx1) {$ctx1.fill(self,"invalidateCacheFor:",{aMethod:aMethod}, smalltalk.HLSelectorsCache)})},
  1983. messageSends: ["invalidateSelector:", "selector", "cacheFor:", "methodClass"]}),
  1984. smalltalk.HLSelectorsCache);
  1985. smalltalk.addMethod(
  1986. "_isOverridden_",
  1987. smalltalk.method({
  1988. selector: "isOverridden:",
  1989. fn: function (aMethod){
  1990. var self=this;
  1991. return smalltalk.withContext(function($ctx1) { var $1;
  1992. $1=_st(_st(self)._cacheFor_(_st(aMethod)._methodClass()))._isOverridden_(aMethod);
  1993. return $1;
  1994. }, function($ctx1) {$ctx1.fill(self,"isOverridden:",{aMethod:aMethod}, smalltalk.HLSelectorsCache)})},
  1995. messageSends: ["isOverridden:", "cacheFor:", "methodClass"]}),
  1996. smalltalk.HLSelectorsCache);
  1997. smalltalk.addMethod(
  1998. "_isOverride_",
  1999. smalltalk.method({
  2000. selector: "isOverride:",
  2001. fn: function (aMethod){
  2002. var self=this;
  2003. return smalltalk.withContext(function($ctx1) { var $1;
  2004. $1=_st(_st(self)._cacheFor_(_st(aMethod)._methodClass()))._isOverride_(aMethod);
  2005. return $1;
  2006. }, function($ctx1) {$ctx1.fill(self,"isOverride:",{aMethod:aMethod}, smalltalk.HLSelectorsCache)})},
  2007. messageSends: ["isOverride:", "cacheFor:", "methodClass"]}),
  2008. smalltalk.HLSelectorsCache);
  2009. smalltalk.addMethod(
  2010. "_newCacheFor_",
  2011. smalltalk.method({
  2012. selector: "newCacheFor:",
  2013. fn: function (aClass){
  2014. var self=this;
  2015. return smalltalk.withContext(function($ctx1) { var $1;
  2016. $1=_st((smalltalk.HLClassCache || HLClassCache))._on_selectorsCache_(aClass,self);
  2017. return $1;
  2018. }, function($ctx1) {$ctx1.fill(self,"newCacheFor:",{aClass:aClass}, smalltalk.HLSelectorsCache)})},
  2019. messageSends: ["on:selectorsCache:"]}),
  2020. smalltalk.HLSelectorsCache);
  2021. smalltalk.addMethod(
  2022. "_observeSystem",
  2023. smalltalk.method({
  2024. selector: "observeSystem",
  2025. fn: function (){
  2026. var self=this;
  2027. return smalltalk.withContext(function($ctx1) { var $1,$2;
  2028. $1=_st((smalltalk.SystemAnnouncer || SystemAnnouncer))._current();
  2029. _st($1)._on_do_((smalltalk.MethodAdded || MethodAdded),(function(ann){
  2030. return smalltalk.withContext(function($ctx2) { return _st(self)._onMethodAdded_(_st(ann)._method());
  2031. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  2032. $2=_st($1)._on_do_((smalltalk.MethodRemoved || MethodRemoved),(function(ann){
  2033. return smalltalk.withContext(function($ctx2) { return _st(self)._onMethodRemoved_(_st(ann)._method());
  2034. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  2035. return self}, function($ctx1) {$ctx1.fill(self,"observeSystem",{}, smalltalk.HLSelectorsCache)})},
  2036. messageSends: ["on:do:", "onMethodAdded:", "method", "current", "onMethodRemoved:"]}),
  2037. smalltalk.HLSelectorsCache);
  2038. smalltalk.addMethod(
  2039. "_onMethodAdded_",
  2040. smalltalk.method({
  2041. selector: "onMethodAdded:",
  2042. fn: function (aMethod){
  2043. var self=this;
  2044. return smalltalk.withContext(function($ctx1) { _st(self)._invalidateCacheFor_(aMethod);
  2045. return self}, function($ctx1) {$ctx1.fill(self,"onMethodAdded:",{aMethod:aMethod}, smalltalk.HLSelectorsCache)})},
  2046. messageSends: ["invalidateCacheFor:"]}),
  2047. smalltalk.HLSelectorsCache);
  2048. smalltalk.addMethod(
  2049. "_onMethodRemoved_",
  2050. smalltalk.method({
  2051. selector: "onMethodRemoved:",
  2052. fn: function (aMethod){
  2053. var self=this;
  2054. return smalltalk.withContext(function($ctx1) { _st(self)._invalidateCacheFor_(aMethod);
  2055. return self}, function($ctx1) {$ctx1.fill(self,"onMethodRemoved:",{aMethod:aMethod}, smalltalk.HLSelectorsCache)})},
  2056. messageSends: ["invalidateCacheFor:"]}),
  2057. smalltalk.HLSelectorsCache);
  2058. smalltalk.HLSelectorsCache.klass.iVarNames = ['current'];
  2059. smalltalk.addMethod(
  2060. "_current",
  2061. smalltalk.method({
  2062. selector: "current",
  2063. fn: function (){
  2064. var self=this;
  2065. return smalltalk.withContext(function($ctx1) { var $2,$1;
  2066. $2=self["@current"];
  2067. if(($receiver = $2) == nil || $receiver == undefined){
  2068. self["@current"]=smalltalk.Object.klass.fn.prototype._new.apply(_st(self), []);
  2069. $1=self["@current"];
  2070. } else {
  2071. $1=$2;
  2072. };
  2073. return $1;
  2074. }, function($ctx1) {$ctx1.fill(self,"current",{}, smalltalk.HLSelectorsCache.klass)})},
  2075. messageSends: ["ifNil:", "new"]}),
  2076. smalltalk.HLSelectorsCache.klass);
  2077. smalltalk.addMethod(
  2078. "_flush",
  2079. smalltalk.method({
  2080. selector: "flush",
  2081. fn: function (){
  2082. var self=this;
  2083. return smalltalk.withContext(function($ctx1) { self["@current"]=nil;
  2084. return self}, function($ctx1) {$ctx1.fill(self,"flush",{}, smalltalk.HLSelectorsCache.klass)})},
  2085. messageSends: []}),
  2086. smalltalk.HLSelectorsCache.klass);
  2087. smalltalk.addMethod(
  2088. "_new",
  2089. smalltalk.method({
  2090. selector: "new",
  2091. fn: function (){
  2092. var self=this;
  2093. return smalltalk.withContext(function($ctx1) { _st(self)._shouldNotImplement();
  2094. return self}, function($ctx1) {$ctx1.fill(self,"new",{}, smalltalk.HLSelectorsCache.klass)})},
  2095. messageSends: ["shouldNotImplement"]}),
  2096. smalltalk.HLSelectorsCache.klass);
  2097. smalltalk.addMethod(
  2098. "_isOverridden",
  2099. smalltalk.method({
  2100. selector: "isOverridden",
  2101. fn: function (){
  2102. var self=this;
  2103. var selector;
  2104. return smalltalk.withContext(function($ctx1) { var $1;
  2105. var $early={};
  2106. try {
  2107. selector=_st(self)._selector();
  2108. _st(_st(self)._methodClass())._allSubclassesDo_((function(each){
  2109. return smalltalk.withContext(function($ctx2) { $1=_st(each)._includesSelector_(selector);
  2110. if(smalltalk.assert($1)){
  2111. throw $early=[true];
  2112. };
  2113. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  2114. return false;
  2115. }
  2116. catch(e) {if(e===$early)return e[0]; throw e}
  2117. }, function($ctx1) {$ctx1.fill(self,"isOverridden",{selector:selector}, smalltalk.CompiledMethod)})},
  2118. messageSends: ["selector", "allSubclassesDo:", "ifTrue:", "includesSelector:", "methodClass"]}),
  2119. smalltalk.CompiledMethod);
  2120. smalltalk.addMethod(
  2121. "_isOverride",
  2122. smalltalk.method({
  2123. selector: "isOverride",
  2124. fn: function (){
  2125. var self=this;
  2126. var superclass;
  2127. return smalltalk.withContext(function($ctx1) { var $1,$2;
  2128. superclass=_st(_st(self)._methodClass())._superclass();
  2129. $1=superclass;
  2130. if(($receiver = $1) == nil || $receiver == undefined){
  2131. return false;
  2132. } else {
  2133. $1;
  2134. };
  2135. $2=_st(_st(_st(_st(self)._methodClass())._superclass())._lookupSelector_(_st(self)._selector()))._isNil();
  2136. return $2;
  2137. }, function($ctx1) {$ctx1.fill(self,"isOverride",{superclass:superclass}, smalltalk.CompiledMethod)})},
  2138. messageSends: ["superclass", "methodClass", "ifNil:", "isNil", "lookupSelector:", "selector"]}),
  2139. smalltalk.CompiledMethod);