2
0

Helios-Browser.deploy.js 114 KB

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