Helios-Browser.deploy.js 113 KB

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