IDE.js 144 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538
  1. smalltalk.addClass('TabManager', smalltalk.Widget, ['selectedTab', 'tabs', 'opened'], 'IDE');
  2. smalltalk.addMethod(
  3. '_initialize',
  4. smalltalk.method({
  5. selector: 'initialize',
  6. category: 'initialization',
  7. fn: function (){
  8. var self=this;
  9. smalltalk.send(self, "_initialize", [], smalltalk.Widget);
  10. self['@opened']=true;
  11. (function($rec){smalltalk.send($rec, "_append_", [self]);smalltalk.send($rec, "_append_", [(function(html){return smalltalk.send(smalltalk.send(html, "_div", []), "_id_", ["jtalk"]);})]);return smalltalk.send($rec, "_addClass_", ["jtalkBody"]);})(smalltalk.send("body", "_asJQuery", []));
  12. (function($rec){smalltalk.send($rec, "_addTab_", [smalltalk.send(smalltalk.Transcript, "_current", [])]);return smalltalk.send($rec, "_addTab_", [smalltalk.send(smalltalk.Workspace, "_new", [])]);})(self);
  13. smalltalk.send(self, "_selectTab_", [smalltalk.send(smalltalk.send(self, "_tabs", []), "_last", [])]);
  14. (function($rec){smalltalk.send($rec, "_onResize_", [(function(){return (function($rec){smalltalk.send($rec, "_updateBodyMargin", []);return smalltalk.send($rec, "_updatePosition", []);})(self);})]);return smalltalk.send($rec, "_onWindowResize_", [(function(){return smalltalk.send(self, "_updatePosition", []);})]);})(self);
  15. return self;},
  16. source: unescape('initialize%0A%20%20%20%20super%20initialize.%0A%20%20%20%20opened%20%3A%3D%20true.%0A%20%20%20%20%27body%27%20asJQuery%20%0A%09append%3A%20self%3B%0A%09append%3A%20%5B%3Ahtml%20%7C%20html%20div%20id%3A%20%27jtalk%27%5D%3B%0A%09addClass%3A%20%27jtalkBody%27.%0A%20%20%20%20self%20%0A%09addTab%3A%20Transcript%20current%3B%0A%09addTab%3A%20Workspace%20new.%0A%20%20%20%20self%20selectTab%3A%20self%20tabs%20last.%0A%20%20%20%20self%20%0A%09onResize%3A%20%5Bself%20updateBodyMargin%3B%20updatePosition%5D%3B%0A%09onWindowResize%3A%20%5Bself%20updatePosition%5D%0A'),
  17. messageSends: ["initialize", "append:", "id:", "div", "addClass:", "asJQuery", "addTab:", "current", "new", "selectTab:", "last", "tabs", "onResize:", "updateBodyMargin", "updatePosition", "onWindowResize:"],
  18. referencedClasses: [smalltalk.nil,smalltalk.nil]
  19. }),
  20. smalltalk.TabManager);
  21. smalltalk.addMethod(
  22. '_tabs',
  23. smalltalk.method({
  24. selector: 'tabs',
  25. category: 'accessing',
  26. fn: function (){
  27. var self=this;
  28. return smalltalk.send(self['@tabs'], "_ifNil_", [(function(){return self['@tabs']=smalltalk.send(smalltalk.Array, "_new", []);})]);
  29. return self;},
  30. source: unescape('tabs%0A%20%20%20%20%5Etabs%20ifNil%3A%20%5Btabs%20%3A%3D%20Array%20new%5D%0A'),
  31. messageSends: ["ifNil:", "new"],
  32. referencedClasses: [smalltalk.Array]
  33. }),
  34. smalltalk.TabManager);
  35. smalltalk.addMethod(
  36. '_addTab_',
  37. smalltalk.method({
  38. selector: 'addTab:',
  39. category: 'adding/Removing',
  40. fn: function (aWidget){
  41. var self=this;
  42. smalltalk.send(smalltalk.send(self, "_tabs", []), "_add_", [aWidget]);
  43. smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_append_", [aWidget]);
  44. smalltalk.send(smalltalk.send(smalltalk.send(aWidget, "_root", []), "_asJQuery", []), "_hide", []);
  45. return self;},
  46. source: unescape('addTab%3A%20aWidget%0A%20%20%20%20self%20tabs%20add%3A%20aWidget.%0A%20%20%20%20%27%23jtalk%27%20asJQuery%20append%3A%20aWidget.%0A%20%20%20%20aWidget%20root%20asJQuery%20hide%0A'),
  47. messageSends: ["add:", "tabs", "append:", "asJQuery", "hide", "root"],
  48. referencedClasses: []
  49. }),
  50. smalltalk.TabManager);
  51. smalltalk.addMethod(
  52. '_removeTab_',
  53. smalltalk.method({
  54. selector: 'removeTab:',
  55. category: 'adding/Removing',
  56. fn: function (aWidget){
  57. var self=this;
  58. smalltalk.send(smalltalk.send(self, "_tabs", []), "_remove_", [aWidget]);
  59. smalltalk.send(self, "_update", []);
  60. return self;},
  61. source: unescape('removeTab%3A%20aWidget%0A%20%20%20%20self%20tabs%20remove%3A%20aWidget.%0A%20%20%20%20self%20update%0A'),
  62. messageSends: ["remove:", "tabs", "update"],
  63. referencedClasses: []
  64. }),
  65. smalltalk.TabManager);
  66. smalltalk.addMethod(
  67. '_updateBodyMargin',
  68. smalltalk.method({
  69. selector: 'updateBodyMargin',
  70. category: 'actions',
  71. fn: function (){
  72. var self=this;
  73. smalltalk.send(self, "_setBodyMargin_", [smalltalk.send(smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_height", []), "__plus", [(27)])]);
  74. return self;},
  75. source: unescape('updateBodyMargin%0A%20%20%20%20self%20setBodyMargin%3A%20%27%23jtalk%27%20asJQuery%20height%20+%2027%0A'),
  76. messageSends: ["setBodyMargin:", unescape("+"), "height", "asJQuery"],
  77. referencedClasses: []
  78. }),
  79. smalltalk.TabManager);
  80. smalltalk.addMethod(
  81. '_updatePosition',
  82. smalltalk.method({
  83. selector: 'updatePosition',
  84. category: 'actions',
  85. fn: function (){
  86. var self=this;
  87. jQuery('#jtalk').css('top', '').css('bottom', '27px');;
  88. return self;},
  89. source: unescape('updatePosition%0A%20%20%20%20%7B%27jQuery%28%27%27%23jtalk%27%27%29.css%28%27%27top%27%27%2C%20%27%27%27%27%27%27%29.css%28%27%27bottom%27%27%2C%20%27%2727px%27%27%29%3B%27%7D%0A'),
  90. messageSends: [],
  91. referencedClasses: []
  92. }),
  93. smalltalk.TabManager);
  94. smalltalk.addMethod(
  95. '_removeBodyMargin',
  96. smalltalk.method({
  97. selector: 'removeBodyMargin',
  98. category: 'actions',
  99. fn: function (){
  100. var self=this;
  101. smalltalk.send(self, "_setBodyMargin_", [(0)]);
  102. return self;},
  103. source: unescape('removeBodyMargin%0A%20%20%20%20self%20setBodyMargin%3A%200%0A'),
  104. messageSends: ["setBodyMargin:"],
  105. referencedClasses: []
  106. }),
  107. smalltalk.TabManager);
  108. smalltalk.addMethod(
  109. '_setBodyMargin_',
  110. smalltalk.method({
  111. selector: 'setBodyMargin:',
  112. category: 'actions',
  113. fn: function (anInteger){
  114. var self=this;
  115. smalltalk.send(smalltalk.send(".jtalkBody", "_asJQuery", []), "_cssAt_put_", [unescape("margin-bottom"), smalltalk.send(smalltalk.send(anInteger, "_asString", []), "__comma", ["px"])]);
  116. return self;},
  117. source: unescape('setBodyMargin%3A%20anInteger%0A%20%20%20%20%27.jtalkBody%27%20asJQuery%20cssAt%3A%20%27margin-bottom%27%20put%3A%20anInteger%20asString%2C%20%27px%27%0A'),
  118. messageSends: ["cssAt:put:", "asJQuery", unescape("%2C"), "asString"],
  119. referencedClasses: []
  120. }),
  121. smalltalk.TabManager);
  122. smalltalk.addMethod(
  123. '_onResize_',
  124. smalltalk.method({
  125. selector: 'onResize:',
  126. category: 'actions',
  127. fn: function (aBlock){
  128. var self=this;
  129. jQuery('#jtalk').resizable({
  130. handles: 'n',
  131. resize: aBlock,
  132. minHeight: 230
  133. });;
  134. return self;},
  135. source: unescape('onResize%3A%20aBlock%0A%20%20%20%20%7B%27jQuery%28%27%27%23jtalk%27%27%29.resizable%28%7B%0A%09handles%3A%20%27%27n%27%27%2C%20%0A%09resize%3A%20aBlock%2C%0A%09minHeight%3A%20230%0A%7D%29%3B%27%7D%0A'),
  136. messageSends: [],
  137. referencedClasses: []
  138. }),
  139. smalltalk.TabManager);
  140. smalltalk.addMethod(
  141. '_onWindowResize_',
  142. smalltalk.method({
  143. selector: 'onWindowResize:',
  144. category: 'actions',
  145. fn: function (aBlock){
  146. var self=this;
  147. jQuery(window).resize(aBlock);
  148. return self;},
  149. source: unescape('onWindowResize%3A%20aBlock%0A%20%20%20%20%7B%27jQuery%28window%29.resize%28aBlock%29%27%7D%0A'),
  150. messageSends: [],
  151. referencedClasses: []
  152. }),
  153. smalltalk.TabManager);
  154. smalltalk.addMethod(
  155. '_open',
  156. smalltalk.method({
  157. selector: 'open',
  158. category: 'actions',
  159. fn: function (){
  160. var self=this;
  161. smalltalk.send(self['@opened'], "_ifFalse_", [(function(){smalltalk.send(smalltalk.send(smalltalk.send(self, "_root", []), "_asJQuery", []), "_show", []);smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_addClass_", ["jtalkBody"]);smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_show", []);smalltalk.send(self, "_updateBodyMargin", []);smalltalk.send(smalltalk.send(smalltalk.send(self['@selectedTab'], "_root", []), "_asJQuery", []), "_show", []);return self['@opened']=true;})]);
  162. return self;},
  163. source: unescape('open%0A%20%20%20%20opened%20ifFalse%3A%20%5B%0A%09self%20root%20asJQuery%20show.%0A%09%27body%27%20asJQuery%20addClass%3A%20%27jtalkBody%27.%0A%09%27%23jtalk%27%20asJQuery%20show.%0A%09self%20updateBodyMargin.%0A%09selectedTab%20root%20asJQuery%20show.%0A%09opened%20%3A%3D%20true%5D%0A'),
  164. messageSends: ["ifFalse:", "show", "asJQuery", "root", "addClass:", "updateBodyMargin"],
  165. referencedClasses: []
  166. }),
  167. smalltalk.TabManager);
  168. smalltalk.addMethod(
  169. '_close',
  170. smalltalk.method({
  171. selector: 'close',
  172. category: 'actions',
  173. fn: function (){
  174. var self=this;
  175. smalltalk.send(self['@opened'], "_ifTrue_", [(function(){smalltalk.send(smalltalk.send(smalltalk.send(self, "_root", []), "_asJQuery", []), "_hide", []);smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_hide", []);smalltalk.send(self, "_removeBodyMargin", []);smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_removeClass_", ["jtalkBody"]);return self['@opened']=false;})]);
  176. return self;},
  177. source: unescape('close%0A%20%20%20%20opened%20ifTrue%3A%20%5B%0A%09self%20root%20asJQuery%20hide.%0A%09%27%23jtalk%27%20asJQuery%20hide.%0A%09self%20removeBodyMargin.%0A%09%27body%27%20asJQuery%20removeClass%3A%20%27jtalkBody%27.%0A%09opened%20%3A%3D%20false%5D%0A'),
  178. messageSends: ["ifTrue:", "hide", "asJQuery", "root", "removeBodyMargin", "removeClass:"],
  179. referencedClasses: []
  180. }),
  181. smalltalk.TabManager);
  182. smalltalk.addMethod(
  183. '_newBrowserTab',
  184. smalltalk.method({
  185. selector: 'newBrowserTab',
  186. category: 'actions',
  187. fn: function (){
  188. var self=this;
  189. smalltalk.send(smalltalk.Browser, "_open", []);
  190. return self;},
  191. source: unescape('newBrowserTab%0A%20%20%20%20Browser%20open%0A'),
  192. messageSends: ["open"],
  193. referencedClasses: [smalltalk.nil]
  194. }),
  195. smalltalk.TabManager);
  196. smalltalk.addMethod(
  197. '_selectTab_',
  198. smalltalk.method({
  199. selector: 'selectTab:',
  200. category: 'actions',
  201. fn: function (aWidget){
  202. var self=this;
  203. smalltalk.send(self, "_open", []);
  204. self['@selectedTab']=aWidget;
  205. smalltalk.send(smalltalk.send(self, "_tabs", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(smalltalk.send(each, "_root", []), "_asJQuery", []), "_hide", []);})]);
  206. smalltalk.send(smalltalk.send(smalltalk.send(aWidget, "_root", []), "_asJQuery", []), "_show", []);
  207. smalltalk.send(self, "_update", []);
  208. return self;},
  209. source: unescape('selectTab%3A%20aWidget%0A%20%20%20%20self%20open.%0A%20%20%20%20selectedTab%20%3A%3D%20aWidget.%0A%20%20%20%20self%20tabs%20do%3A%20%5B%3Aeach%20%7C%0A%09each%20root%20asJQuery%20hide%5D.%0A%20%20%20%20aWidget%20root%20asJQuery%20show.%0A%20%20%20%20self%20update%0A'),
  210. messageSends: ["open", "do:", "tabs", "hide", "asJQuery", "root", "show", "update"],
  211. referencedClasses: []
  212. }),
  213. smalltalk.TabManager);
  214. smalltalk.addMethod(
  215. '_closeTab_',
  216. smalltalk.method({
  217. selector: 'closeTab:',
  218. category: 'actions',
  219. fn: function (aWidget){
  220. var self=this;
  221. smalltalk.send(self, "_removeTab_", [aWidget]);
  222. smalltalk.send(self, "_selectTab_", [smalltalk.send(smalltalk.send(self, "_tabs", []), "_last", [])]);
  223. smalltalk.send(smalltalk.send(smalltalk.send(aWidget, "_root", []), "_asJQuery", []), "_remove", []);
  224. smalltalk.send(self, "_update", []);
  225. return self;},
  226. source: unescape('closeTab%3A%20aWidget%0A%20%20%20%20self%20removeTab%3A%20aWidget.%0A%20%20%20%20self%20selectTab%3A%20self%20tabs%20last.%0A%20%20%20%20aWidget%20root%20asJQuery%20remove.%0A%20%20%20%20self%20update%0A'),
  227. messageSends: ["removeTab:", "selectTab:", "last", "tabs", "remove", "asJQuery", "root", "update"],
  228. referencedClasses: []
  229. }),
  230. smalltalk.TabManager);
  231. smalltalk.addMethod(
  232. '_renderOn_',
  233. smalltalk.method({
  234. selector: 'renderOn:',
  235. category: 'rendering',
  236. fn: function (html){
  237. var self=this;
  238. (function($rec){smalltalk.send($rec, "_id_", ["jtalkTabs"]);return smalltalk.send($rec, "_with_", [(function(){(function($rec){smalltalk.send($rec, "_class_", ["closeAll"]);smalltalk.send($rec, "_with_", ["x"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_close", []);})]);})(smalltalk.send(html, "_li", []));smalltalk.send(smalltalk.send(self, "_tabs", []), "_do_", [(function(each){return smalltalk.send(self, "_renderTabFor_on_", [each, html]);})]);return (function($rec){smalltalk.send($rec, "_class_", ["newtab"]);smalltalk.send($rec, "_with_", [unescape("%20+%20")]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_newBrowserTab", []);})]);})(smalltalk.send(html, "_li", []));})]);})(smalltalk.send(html, "_ul", []));
  239. return self;},
  240. source: unescape('renderOn%3A%20html%0A%20%20%20%20html%20ul%0A%09id%3A%20%27jtalkTabs%27%3B%0A%09with%3A%20%5B%0A%09%20%20%20%20html%20li%20%0A%09%09class%3A%20%27closeAll%27%3B%0A%09%09with%3A%20%27x%27%3B%0A%09%09onClick%3A%20%5Bself%20close%5D.%0A%09%20%20%20%20self%20tabs%20do%3A%20%5B%3Aeach%20%7C%0A%09%09self%20renderTabFor%3A%20each%20on%3A%20html%5D.%0A%09%20%20%20%20html%20li%0A%09%09class%3A%20%27newtab%27%3B%0A%09%09with%3A%20%27%20+%20%27%3B%0A%09%09onClick%3A%20%5Bself%20newBrowserTab%5D%5D%0A'),
  241. messageSends: ["id:", "with:", "class:", "onClick:", "close", "li", "do:", "tabs", "renderTabFor:on:", "newBrowserTab", "ul"],
  242. referencedClasses: []
  243. }),
  244. smalltalk.TabManager);
  245. smalltalk.addMethod(
  246. '_renderTabFor_on_',
  247. smalltalk.method({
  248. selector: 'renderTabFor:on:',
  249. category: 'rendering',
  250. fn: function (aWidget, html){
  251. var self=this;
  252. var li=nil;
  253. li=smalltalk.send(html, "_li", []);
  254. smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", [aWidget]), "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);
  255. smalltalk.send(li, "_with_", [(function(){(function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(aWidget, "_label", [])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectTab_", [aWidget]);})]);})(smalltalk.send(html, "_span", []));return smalltalk.send(smalltalk.send(aWidget, "_canBeClosed", []), "_ifTrue_", [(function(){return (function($rec){smalltalk.send($rec, "_class_", ["close"]);smalltalk.send($rec, "_with_", ["x"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_closeTab_", [aWidget]);})]);})(smalltalk.send(html, "_span", []));})]);})]);
  256. return self;},
  257. source: unescape('renderTabFor%3A%20aWidget%20on%3A%20html%0A%20%20%20%20%7C%20li%20%7C%0A%20%20%20%20li%20%3A%3D%20html%20li.%0A%20%20%20%20selectedTab%20%3D%20aWidget%20ifTrue%3A%20%5B%0A%09li%20class%3A%20%27selected%27%5D.%0A%20%20%20%20li%20with%3A%20%5B%0A%09html%20span%0A%09%20%20%20%20with%3A%20aWidget%20label%3B%0A%09%20%20%20%20onClick%3A%20%5Bself%20selectTab%3A%20aWidget%5D.%0A%09aWidget%20canBeClosed%20ifTrue%3A%20%5B%0A%09%20%20%20%20html%20span%20%0A%09%09class%3A%20%27close%27%3B%0A%09%09with%3A%20%27x%27%3B%0A%09%09onClick%3A%20%5Bself%20closeTab%3A%20aWidget%5D%5D%5D%0A'),
  258. messageSends: ["li", "ifTrue:", unescape("%3D"), "class:", "with:", "label", "onClick:", "selectTab:", "span", "canBeClosed", "closeTab:"],
  259. referencedClasses: []
  260. }),
  261. smalltalk.TabManager);
  262. smalltalk.TabManager.klass.iVarNames = ['current'];
  263. smalltalk.addMethod(
  264. '_current',
  265. smalltalk.method({
  266. selector: 'current',
  267. category: 'instance creation',
  268. fn: function (){
  269. var self=this;
  270. return smalltalk.send(self['@current'], "_ifNil_", [(function(){return self['@current']=smalltalk.send(self, "_new", [], smalltalk.Widget.klass);})]);
  271. return self;},
  272. source: unescape('current%0A%20%20%20%20%5Ecurrent%20ifNil%3A%20%5Bcurrent%20%3A%3D%20super%20new%5D%0A'),
  273. messageSends: ["ifNil:", "new"],
  274. referencedClasses: []
  275. }),
  276. smalltalk.TabManager.klass);
  277. smalltalk.addMethod(
  278. '_new',
  279. smalltalk.method({
  280. selector: 'new',
  281. category: 'instance creation',
  282. fn: function (){
  283. var self=this;
  284. smalltalk.send(self, "_shouldNotImplement", []);
  285. return self;},
  286. source: unescape('new%0A%20%20%20%20self%20shouldNotImplement%0A'),
  287. messageSends: ["shouldNotImplement"],
  288. referencedClasses: []
  289. }),
  290. smalltalk.TabManager.klass);
  291. smalltalk.addClass('TabWidget', smalltalk.Widget, [], 'IDE');
  292. smalltalk.addMethod(
  293. '_label',
  294. smalltalk.method({
  295. selector: 'label',
  296. category: 'accessing',
  297. fn: function (){
  298. var self=this;
  299. smalltalk.send(self, "_subclassResponsibility", []);
  300. return self;},
  301. source: unescape('label%0A%20%20%20%20self%20subclassResponsibility%0A'),
  302. messageSends: ["subclassResponsibility"],
  303. referencedClasses: []
  304. }),
  305. smalltalk.TabWidget);
  306. smalltalk.addMethod(
  307. '_open',
  308. smalltalk.method({
  309. selector: 'open',
  310. category: 'actions',
  311. fn: function (){
  312. var self=this;
  313. (function($rec){smalltalk.send($rec, "_addTab_", [self]);return smalltalk.send($rec, "_selectTab_", [self]);})(smalltalk.send(smalltalk.TabManager, "_current", []));
  314. return self;},
  315. source: unescape('open%0A%20%20%20%20TabManager%20current%0A%09addTab%3A%20self%3B%0A%09selectTab%3A%20self%0A'),
  316. messageSends: ["addTab:", "selectTab:", "current"],
  317. referencedClasses: [smalltalk.TabManager]
  318. }),
  319. smalltalk.TabWidget);
  320. smalltalk.addMethod(
  321. '_canBeClosed',
  322. smalltalk.method({
  323. selector: 'canBeClosed',
  324. category: 'testing',
  325. fn: function (){
  326. var self=this;
  327. return false;
  328. return self;},
  329. source: unescape('canBeClosed%0A%20%20%20%20%5Efalse%0A'),
  330. messageSends: [],
  331. referencedClasses: []
  332. }),
  333. smalltalk.TabWidget);
  334. smalltalk.addMethod(
  335. '_renderOn_',
  336. smalltalk.method({
  337. selector: 'renderOn:',
  338. category: 'rendering',
  339. fn: function (html){
  340. var self=this;
  341. (function($rec){smalltalk.send($rec, "_class_", ["jtalkTool"]);return smalltalk.send($rec, "_with_", [(function(){(function($rec){smalltalk.send($rec, "_class_", ["jt_box"]);return smalltalk.send($rec, "_with_", [(function(){return smalltalk.send(self, "_renderBoxOn_", [html]);})]);})(smalltalk.send(html, "_div", []));return (function($rec){smalltalk.send($rec, "_class_", ["jt_buttons"]);return smalltalk.send($rec, "_with_", [(function(){return smalltalk.send(self, "_renderButtonsOn_", [html]);})]);})(smalltalk.send(html, "_div", []));})]);})(smalltalk.send(html, "_root", []));
  342. return self;},
  343. source: unescape('renderOn%3A%20html%0A%20%20%20%20html%20root%0A%09class%3A%20%27jtalkTool%27%3B%0A%09with%3A%20%5B%0A%09%20%20%20%20html%20div%0A%09%09class%3A%20%27jt_box%27%3B%0A%09%09with%3A%20%5Bself%20renderBoxOn%3A%20html%5D.%0A%09%20%20%20%20html%20div%0A%09%09class%3A%20%27jt_buttons%27%3B%0A%09%09with%3A%20%5Bself%20renderButtonsOn%3A%20html%5D%5D%0A'),
  344. messageSends: ["class:", "with:", "renderBoxOn:", "div", "renderButtonsOn:", "root"],
  345. referencedClasses: []
  346. }),
  347. smalltalk.TabWidget);
  348. smalltalk.addMethod(
  349. '_renderBoxOn_',
  350. smalltalk.method({
  351. selector: 'renderBoxOn:',
  352. category: 'rendering',
  353. fn: function (html){
  354. var self=this;
  355. return self;},
  356. source: unescape('renderBoxOn%3A%20html%0A'),
  357. messageSends: [],
  358. referencedClasses: []
  359. }),
  360. smalltalk.TabWidget);
  361. smalltalk.addMethod(
  362. '_renderButtonsOn_',
  363. smalltalk.method({
  364. selector: 'renderButtonsOn:',
  365. category: 'rendering',
  366. fn: function (html){
  367. var self=this;
  368. return self;},
  369. source: unescape('renderButtonsOn%3A%20html%0A'),
  370. messageSends: [],
  371. referencedClasses: []
  372. }),
  373. smalltalk.TabWidget);
  374. smalltalk.addMethod(
  375. '_open',
  376. smalltalk.method({
  377. selector: 'open',
  378. category: 'instance creation',
  379. fn: function (){
  380. var self=this;
  381. return smalltalk.send(smalltalk.send(self, "_new", []), "_open", []);
  382. return self;},
  383. source: unescape('open%0A%20%20%20%20%5Eself%20new%20open%0A'),
  384. messageSends: ["open", "new"],
  385. referencedClasses: []
  386. }),
  387. smalltalk.TabWidget.klass);
  388. smalltalk.addClass('Workspace', smalltalk.TabWidget, ['textarea'], 'IDE');
  389. smalltalk.addMethod(
  390. '_label',
  391. smalltalk.method({
  392. selector: 'label',
  393. category: 'accessing',
  394. fn: function (){
  395. var self=this;
  396. return unescape("%5BWorkspace%5D");
  397. return self;},
  398. source: unescape('label%0A%20%20%20%20%5E%27%5BWorkspace%5D%27%0A'),
  399. messageSends: [],
  400. referencedClasses: []
  401. }),
  402. smalltalk.Workspace);
  403. smalltalk.addMethod(
  404. '_selection',
  405. smalltalk.method({
  406. selector: 'selection',
  407. category: 'accessing',
  408. fn: function (){
  409. var self=this;
  410. return document.selection;
  411. return self;},
  412. source: unescape('selection%0A%20%20%20%20%7B%27return%20document.selection%27%7D%0A'),
  413. messageSends: [],
  414. referencedClasses: []
  415. }),
  416. smalltalk.Workspace);
  417. smalltalk.addMethod(
  418. '_selectionStart',
  419. smalltalk.method({
  420. selector: 'selectionStart',
  421. category: 'accessing',
  422. fn: function (){
  423. var self=this;
  424. return jQuery('.jt_workspace')[0].selectionStart;
  425. return self;},
  426. source: unescape('selectionStart%0A%20%20%20%20%7B%27return%20jQuery%28%27%27.jt_workspace%27%27%29%5B0%5D.selectionStart%27%7D%0A'),
  427. messageSends: [],
  428. referencedClasses: []
  429. }),
  430. smalltalk.Workspace);
  431. smalltalk.addMethod(
  432. '_selectionEnd',
  433. smalltalk.method({
  434. selector: 'selectionEnd',
  435. category: 'accessing',
  436. fn: function (){
  437. var self=this;
  438. return jQuery('.jt_workspace')[0].selectionEnd;
  439. return self;},
  440. source: unescape('selectionEnd%0A%20%20%20%20%7B%27return%20jQuery%28%27%27.jt_workspace%27%27%29%5B0%5D.selectionEnd%27%7D%0A'),
  441. messageSends: [],
  442. referencedClasses: []
  443. }),
  444. smalltalk.Workspace);
  445. smalltalk.addMethod(
  446. '_selectionStart_',
  447. smalltalk.method({
  448. selector: 'selectionStart:',
  449. category: 'accessing',
  450. fn: function (anInteger){
  451. var self=this;
  452. jQuery('.jt_workspace')[0].selectionStart = anInteger;
  453. return self;},
  454. source: unescape('selectionStart%3A%20anInteger%0A%20%20%20%20%7B%27jQuery%28%27%27.jt_workspace%27%27%29%5B0%5D.selectionStart%20%3D%20anInteger%27%7D%0A'),
  455. messageSends: [],
  456. referencedClasses: []
  457. }),
  458. smalltalk.Workspace);
  459. smalltalk.addMethod(
  460. '_selectionEnd_',
  461. smalltalk.method({
  462. selector: 'selectionEnd:',
  463. category: 'accessing',
  464. fn: function (anInteger){
  465. var self=this;
  466. jQuery('.jt_workspace')[0].selectionEnd = anInteger;
  467. return self;},
  468. source: unescape('selectionEnd%3A%20anInteger%0A%20%20%20%20%7B%27jQuery%28%27%27.jt_workspace%27%27%29%5B0%5D.selectionEnd%20%3D%20anInteger%27%7D%0A'),
  469. messageSends: [],
  470. referencedClasses: []
  471. }),
  472. smalltalk.Workspace);
  473. smalltalk.addMethod(
  474. '_currentLine',
  475. smalltalk.method({
  476. selector: 'currentLine',
  477. category: 'accessing',
  478. fn: function (){
  479. var self=this;
  480. try{var lines=nil;
  481. var startLine=nil;
  482. var endLine=nil;
  483. lines=smalltalk.send(smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val", []), "_tokenize_", [smalltalk.send(smalltalk.String, "_cr", [])]);
  484. startLine=endLine=(0);
  485. smalltalk.send(lines, "_do_", [(function(each){endLine=smalltalk.send(startLine, "__plus", [smalltalk.send(each, "_size", [])]);startLine=smalltalk.send(endLine, "__plus", [(1)]);return smalltalk.send(smalltalk.send(endLine, "__gt_eq", [smalltalk.send(self, "_selectionStart", [])]), "_ifTrue_", [(function(){smalltalk.send(self, "_selectionEnd_", [endLine]);return (function(){throw({name: 'stReturn', selector: '_currentLine', fn: function(){return each}})})();})]);})]);
  486. return self;
  487. } catch(e) {if(e.name === 'stReturn' && e.selector === '_currentLine'){return e.fn()} throw(e)}},
  488. source: unescape('currentLine%0A%20%20%20%20%7C%20lines%20startLine%20endLine%7C%0A%20%20%20%20lines%20%3A%3D%20textarea%20asJQuery%20val%20tokenize%3A%20String%20cr.%0A%20%20%20%20startLine%20%3A%3D%20endLine%20%3A%3D%200.%0A%20%20%20%20lines%20do%3A%20%5B%3Aeach%20%7C%0A%09endLine%20%3A%3D%20startLine%20+%20each%20size.%0A%09startLine%20%3A%3D%20endLine%20+%201.%0A%09endLine%20%3E%3D%20self%20selectionStart%20ifTrue%3A%20%5B%0A%09%20%20%20%20self%20selectionEnd%3A%20endLine.%0A%09%20%20%20%20%5Eeach%5D%5D%0A'),
  489. messageSends: ["tokenize:", "val", "asJQuery", "cr", "do:", unescape("+"), "size", "ifTrue:", unescape("%3E%3D"), "selectionStart", "selectionEnd:"],
  490. referencedClasses: [smalltalk.String]
  491. }),
  492. smalltalk.Workspace);
  493. smalltalk.addMethod(
  494. '_handleKeyDown_',
  495. smalltalk.method({
  496. selector: 'handleKeyDown:',
  497. category: 'actions',
  498. fn: function (anEvent){
  499. var self=this;
  500. if(anEvent.ctrlKey) {
  501. if(anEvent.keyCode === 80) { //ctrl+p
  502. self._printIt();
  503. anEvent.preventDefault();
  504. return false;
  505. }
  506. if(anEvent.keyCode === 68) { //ctrl+d
  507. self._doIt();
  508. anEvent.preventDefault();
  509. return false;
  510. }
  511. if(anEvent.keyCode === 73) { //ctrl+i
  512. self._inspectIt();
  513. anEvent.preventDefault();
  514. return false;
  515. }
  516. };
  517. return self;},
  518. source: unescape('handleKeyDown%3A%20anEvent%0A%20%20%20%20%7B%27if%28anEvent.ctrlKey%29%20%7B%0A%09%09if%28anEvent.keyCode%20%3D%3D%3D%2080%29%20%7B%20//ctrl+p%0A%09%09%09self._printIt%28%29%3B%0A%09%09%09anEvent.preventDefault%28%29%3B%0A%09%09%09return%20false%3B%0A%09%09%7D%0A%09%09if%28anEvent.keyCode%20%3D%3D%3D%2068%29%20%7B%20//ctrl+d%0A%09%09%09self._doIt%28%29%3B%0A%09%09%09anEvent.preventDefault%28%29%3B%0A%09%09%09return%20false%3B%0A%09%09%7D%0A%09%09if%28anEvent.keyCode%20%3D%3D%3D%2073%29%20%7B%20//ctrl+i%0A%09%09%09self._inspectIt%28%29%3B%0A%09%09%09anEvent.preventDefault%28%29%3B%0A%09%09%09return%20false%3B%0A%09%09%7D%0A%09%7D%27%7D%0A'),
  519. messageSends: [],
  520. referencedClasses: []
  521. }),
  522. smalltalk.Workspace);
  523. smalltalk.addMethod(
  524. '_clearWorkspace',
  525. smalltalk.method({
  526. selector: 'clearWorkspace',
  527. category: 'actions',
  528. fn: function (){
  529. var self=this;
  530. smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val_", [""]);
  531. return self;},
  532. source: unescape('clearWorkspace%0A%20%20%20%20textarea%20asJQuery%20val%3A%20%27%27%0A'),
  533. messageSends: ["val:", "asJQuery"],
  534. referencedClasses: []
  535. }),
  536. smalltalk.Workspace);
  537. smalltalk.addMethod(
  538. '_doIt',
  539. smalltalk.method({
  540. selector: 'doIt',
  541. category: 'actions',
  542. fn: function (){
  543. var self=this;
  544. var selection=nil;
  545. smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_focus", []);
  546. smalltalk.send(smalltalk.send(smalltalk.send(self, "_selectionStart", []), "__eq", [smalltalk.send(self, "_selectionEnd", [])]), "_ifTrue_ifFalse_", [(function(){return selection=smalltalk.send(self, "_currentLine", []);}), (function(){return selection=smalltalk.send(smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val", []), "_copyFrom_to_", [smalltalk.send(smalltalk.send(self, "_selectionStart", []), "__plus", [(1)]), smalltalk.send(smalltalk.send(self, "_selectionEnd", []), "__plus", [(1)])]);})]);
  547. return smalltalk.send(self, "_eval_", [selection]);
  548. return self;},
  549. source: unescape('doIt%0A%20%20%20%20%7C%20selection%20%7C%0A%20%20%20%20textarea%20asJQuery%20focus.%0A%20%20%20%20self%20selectionStart%20%3D%20self%20selectionEnd%0A%09ifTrue%3A%20%5Bselection%20%3A%3D%20self%20currentLine%5D%0A%09ifFalse%3A%20%5B%0A%09%20%20%20%20selection%20%3A%3D%20textarea%20asJQuery%20val%20copyFrom%3A%20self%20selectionStart%20+%201%20to%3A%20self%20selectionEnd%20+%201%5D.%0A%20%20%20%20%5Eself%20eval%3A%20selection'),
  550. messageSends: ["focus", "asJQuery", "ifTrue:ifFalse:", unescape("%3D"), "selectionStart", "selectionEnd", "currentLine", "copyFrom:to:", "val", unescape("+"), "eval:"],
  551. referencedClasses: []
  552. }),
  553. smalltalk.Workspace);
  554. smalltalk.addMethod(
  555. '_printIt',
  556. smalltalk.method({
  557. selector: 'printIt',
  558. category: 'actions',
  559. fn: function (){
  560. var self=this;
  561. smalltalk.send(self, "_print_", [smalltalk.send(smalltalk.send(self, "_doIt", []), "_printString", [])]);
  562. return self;},
  563. source: unescape('printIt%0A%20%20%20%20self%20print%3A%20self%20doIt%20printString%0A'),
  564. messageSends: ["print:", "printString", "doIt"],
  565. referencedClasses: []
  566. }),
  567. smalltalk.Workspace);
  568. smalltalk.addMethod(
  569. '_print_',
  570. smalltalk.method({
  571. selector: 'print:',
  572. category: 'actions',
  573. fn: function (aString){
  574. var self=this;
  575. var start=nil;
  576. start=smalltalk.send(self, "_selectionEnd", []);
  577. smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val", []), "_copyFrom_to_", [(1), start]), "__comma", [" "]), "__comma", [aString]), "__comma", [" "]), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val", []), "_copyFrom_to_", [smalltalk.send(start, "__plus", [(1)]), smalltalk.send(smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val", []), "_size", [])])])]);
  578. smalltalk.send(self, "_selectionStart_", [start]);
  579. smalltalk.send(self, "_selectionEnd_", [smalltalk.send(smalltalk.send(start, "__plus", [smalltalk.send(aString, "_size", [])]), "__plus", [(2)])]);
  580. return self;},
  581. source: unescape('print%3A%20aString%0A%20%20%20%20%7C%20start%20%7C%0A%20%20%20%20start%20%3A%3D%20self%20selectionEnd.%0A%20%20%20%20textarea%20asJQuery%20val%3A%20%28%0A%09%28textarea%20asJQuery%20val%20copyFrom%3A%201%20to%3A%20start%29%2C%0A%09%27%20%27%2C%20aString%2C%20%27%20%27%2C%0A%09%28textarea%20asJQuery%20val%20copyFrom%3A%20start%20+%201%20to%3A%20textarea%20asJQuery%20val%20size%29%29.%0A%20%20%20%20self%20selectionStart%3A%20start.%0A%20%20%20%20self%20selectionEnd%3A%20start%20+%20aString%20size%20+%202%0A'),
  582. messageSends: ["selectionEnd", "val:", "asJQuery", unescape("%2C"), "copyFrom:to:", "val", unescape("+"), "size", "selectionStart:", "selectionEnd:"],
  583. referencedClasses: []
  584. }),
  585. smalltalk.Workspace);
  586. smalltalk.addMethod(
  587. '_eval_',
  588. smalltalk.method({
  589. selector: 'eval:',
  590. category: 'actions',
  591. fn: function (aString){
  592. var self=this;
  593. try{var compiler=nil;
  594. var node=nil;
  595. compiler=smalltalk.send(smalltalk.Compiler, "_new", []);
  596. node=smalltalk.send(compiler, "_parseExpression_", [aString]);
  597. smalltalk.send(smalltalk.send(node, "_isParseFailure", []), "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_eval_', fn: function(){return smalltalk.send(self, "_alert_", [smalltalk.send(smalltalk.send(smalltalk.send(node, "_reason", []), "__comma", [unescape("%2C%20position%3A%20")]), "__comma", [smalltalk.send(node, "_position", [])])])}})})();})]);
  598. (function(){throw({name: 'stReturn', selector: '_eval_', fn: function(){return smalltalk.send(compiler, "_loadExpression_", [aString])}})})();
  599. return self;
  600. } catch(e) {if(e.name === 'stReturn' && e.selector === '_eval_'){return e.fn()} throw(e)}},
  601. source: unescape('eval%3A%20aString%0A%20%20%20%20%7C%20compiler%20node%20%7C%0A%20%20%20%20compiler%20%3A%3D%20Compiler%20new.%0A%20%20%20%20node%20%3A%3D%20compiler%20parseExpression%3A%20aString.%0A%20%20%20%20node%20isParseFailure%20ifTrue%3A%20%5B%0A%09%5Eself%20alert%3A%20node%20reason%2C%20%27%2C%20position%3A%20%27%2C%20node%20position%5D.%0A%20%20%20%20%5Ecompiler%20loadExpression%3A%20aString%0A'),
  602. messageSends: ["new", "parseExpression:", "ifTrue:", "isParseFailure", "alert:", unescape("%2C"), "reason", "position", "loadExpression:"],
  603. referencedClasses: [smalltalk.Compiler]
  604. }),
  605. smalltalk.Workspace);
  606. smalltalk.addMethod(
  607. '_renderBoxOn_',
  608. smalltalk.method({
  609. selector: 'renderBoxOn:',
  610. category: 'rendering',
  611. fn: function (html){
  612. var self=this;
  613. self['@textarea']=smalltalk.send(html, "_textarea", []);
  614. smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_call_", ["tabby"]);
  615. smalltalk.send(self['@textarea'], "_onKeyDown_", [(function(e){return smalltalk.send(self, "_handleKeyDown_", [e]);})]);
  616. (function($rec){smalltalk.send($rec, "_class_", ["jt_workspace"]);return smalltalk.send($rec, "_at_put_", ["spellcheck", "false"]);})(self['@textarea']);
  617. return self;},
  618. source: unescape('renderBoxOn%3A%20html%0A%20%20%20%20textarea%20%3A%3D%20html%20textarea.%0A%20%20%20%20textarea%20asJQuery%20call%3A%20%27tabby%27.%0A%20%20%20%20textarea%20onKeyDown%3A%20%5B%3Ae%20%7C%20self%20handleKeyDown%3A%20e%5D.%0A%20%20%20%20textarea%20%0A%09class%3A%20%27jt_workspace%27%3B%0A%09at%3A%20%27spellcheck%27%20put%3A%20%27false%27%0A'),
  619. messageSends: ["textarea", "call:", "asJQuery", "onKeyDown:", "handleKeyDown:", "class:", "at:put:"],
  620. referencedClasses: []
  621. }),
  622. smalltalk.Workspace);
  623. smalltalk.addMethod(
  624. '_renderButtonsOn_',
  625. smalltalk.method({
  626. selector: 'renderButtonsOn:',
  627. category: 'rendering',
  628. fn: function (html){
  629. var self=this;
  630. (function($rec){smalltalk.send($rec, "_with_", ["DoIt"]);smalltalk.send($rec, "_title_", [unescape("ctrl+d")]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_doIt", []);})]);})(smalltalk.send(html, "_button", []));
  631. (function($rec){smalltalk.send($rec, "_with_", ["PrintIt"]);smalltalk.send($rec, "_title_", [unescape("ctrl+p")]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_printIt", []);})]);})(smalltalk.send(html, "_button", []));
  632. (function($rec){smalltalk.send($rec, "_with_", ["InspectIt"]);smalltalk.send($rec, "_title_", [unescape("ctrl+i")]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_inspectIt", []);})]);})(smalltalk.send(html, "_button", []));
  633. (function($rec){smalltalk.send($rec, "_with_", ["Clear workspace"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_clearWorkspace", []);})]);})(smalltalk.send(html, "_button", []));
  634. return self;},
  635. source: unescape('renderButtonsOn%3A%20html%0A%20%20%20%20html%20button%0A%09with%3A%20%27DoIt%27%3B%0A%09title%3A%20%27ctrl+d%27%3B%0A%09onClick%3A%20%5Bself%20doIt%5D.%0A%20%20%20%20html%20button%0A%09with%3A%20%27PrintIt%27%3B%0A%09title%3A%20%27ctrl+p%27%3B%0A%09onClick%3A%20%5Bself%20printIt%5D.%0A%20%20%20%20html%20button%0A%09with%3A%20%27InspectIt%27%3B%0A%09title%3A%20%27ctrl+i%27%3B%0A%09onClick%3A%20%5Bself%20inspectIt%5D.%0A%20%20%20%20html%20button%0A%09with%3A%20%27Clear%20workspace%27%3B%0A%09onClick%3A%20%5Bself%20clearWorkspace%5D%0A'),
  636. messageSends: ["with:", "title:", "onClick:", "doIt", "button", "printIt", "inspectIt", "clearWorkspace"],
  637. referencedClasses: []
  638. }),
  639. smalltalk.Workspace);
  640. smalltalk.addMethod(
  641. '_inspectIt',
  642. smalltalk.method({
  643. selector: 'inspectIt',
  644. category: 'actions',
  645. fn: function (){
  646. var self=this;
  647. smalltalk.send(smalltalk.send(self, "_doIt", []), "_inspect", []);
  648. return self;},
  649. source: unescape('inspectIt%0A%20%20%20%20self%20doIt%20inspect%0A'),
  650. messageSends: ["inspect", "doIt"],
  651. referencedClasses: []
  652. }),
  653. smalltalk.Workspace);
  654. smalltalk.addClass('Transcript', smalltalk.TabWidget, ['textarea'], 'IDE');
  655. smalltalk.addMethod(
  656. '_label',
  657. smalltalk.method({
  658. selector: 'label',
  659. category: 'accessing',
  660. fn: function (){
  661. var self=this;
  662. return unescape("%5BTranscript%5D");
  663. return self;},
  664. source: unescape('label%0A%20%20%20%20%5E%27%5BTranscript%5D%27%0A'),
  665. messageSends: [],
  666. referencedClasses: []
  667. }),
  668. smalltalk.Transcript);
  669. smalltalk.addMethod(
  670. '_show_',
  671. smalltalk.method({
  672. selector: 'show:',
  673. category: 'actions',
  674. fn: function (anObject){
  675. var self=this;
  676. smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val_", [smalltalk.send(smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val", []), "__comma", [smalltalk.send(anObject, "_asString", [])])]);
  677. return self;},
  678. source: unescape('show%3A%20anObject%0A%20%20%20%20textarea%20asJQuery%20val%3A%20textarea%20asJQuery%20val%2C%20anObject%20asString.%0A%0A'),
  679. messageSends: ["val:", "asJQuery", unescape("%2C"), "val", "asString"],
  680. referencedClasses: []
  681. }),
  682. smalltalk.Transcript);
  683. smalltalk.addMethod(
  684. '_cr',
  685. smalltalk.method({
  686. selector: 'cr',
  687. category: 'actions',
  688. fn: function (){
  689. var self=this;
  690. smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val_", [smalltalk.send(smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val", []), "__comma", [smalltalk.send(smalltalk.String, "_cr", [])])]);
  691. return self;},
  692. source: unescape('cr%0A%20%20%20%20textarea%20asJQuery%20val%3A%20textarea%20asJQuery%20val%2C%20String%20cr.%0A'),
  693. messageSends: ["val:", "asJQuery", unescape("%2C"), "val", "cr"],
  694. referencedClasses: [smalltalk.String]
  695. }),
  696. smalltalk.Transcript);
  697. smalltalk.addMethod(
  698. '_clear',
  699. smalltalk.method({
  700. selector: 'clear',
  701. category: 'actions',
  702. fn: function (){
  703. var self=this;
  704. smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val_", [""]);
  705. return self;},
  706. source: unescape('clear%0A%20%20%20%20textarea%20asJQuery%20val%3A%20%27%27%0A'),
  707. messageSends: ["val:", "asJQuery"],
  708. referencedClasses: []
  709. }),
  710. smalltalk.Transcript);
  711. smalltalk.addMethod(
  712. '_renderBoxOn_',
  713. smalltalk.method({
  714. selector: 'renderBoxOn:',
  715. category: 'rendering',
  716. fn: function (html){
  717. var self=this;
  718. self['@textarea']=smalltalk.send(html, "_textarea", []);
  719. smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_call_", ["tabby"]);
  720. (function($rec){smalltalk.send($rec, "_class_", ["jt_transcript"]);return smalltalk.send($rec, "_at_put_", ["spellcheck", "false"]);})(self['@textarea']);
  721. return self;},
  722. source: unescape('renderBoxOn%3A%20html%0A%20%20%20%20textarea%20%3A%3D%20html%20textarea.%0A%20%20%20%20textarea%20asJQuery%20call%3A%20%27tabby%27.%0A%20%20%20%20textarea%20%0A%09class%3A%20%27jt_transcript%27%3B%0A%09at%3A%20%27spellcheck%27%20put%3A%20%27false%27%0A'),
  723. messageSends: ["textarea", "call:", "asJQuery", "class:", "at:put:"],
  724. referencedClasses: []
  725. }),
  726. smalltalk.Transcript);
  727. smalltalk.addMethod(
  728. '_renderButtonsOn_',
  729. smalltalk.method({
  730. selector: 'renderButtonsOn:',
  731. category: 'rendering',
  732. fn: function (html){
  733. var self=this;
  734. (function($rec){smalltalk.send($rec, "_with_", ["Clear transcript"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_clear", []);})]);})(smalltalk.send(html, "_button", []));
  735. return self;},
  736. source: unescape('renderButtonsOn%3A%20html%0A%20%20%20%20html%20button%0A%09with%3A%20%27Clear%20transcript%27%3B%0A%09onClick%3A%20%5Bself%20clear%5D%0A'),
  737. messageSends: ["with:", "onClick:", "clear", "button"],
  738. referencedClasses: []
  739. }),
  740. smalltalk.Transcript);
  741. smalltalk.Transcript.klass.iVarNames = ['current'];
  742. smalltalk.addMethod(
  743. '_open',
  744. smalltalk.method({
  745. selector: 'open',
  746. category: 'instance creation',
  747. fn: function (){
  748. var self=this;
  749. smalltalk.send(smalltalk.send(self, "_current", []), "_open", []);
  750. return self;},
  751. source: unescape('open%0A%20%20%20%20self%20current%20open%0A'),
  752. messageSends: ["open", "current"],
  753. referencedClasses: []
  754. }),
  755. smalltalk.Transcript.klass);
  756. smalltalk.addMethod(
  757. '_new',
  758. smalltalk.method({
  759. selector: 'new',
  760. category: 'instance creation',
  761. fn: function (){
  762. var self=this;
  763. smalltalk.send(self, "_shouldNotImplement", []);
  764. return self;},
  765. source: unescape('new%0A%20%20%20%20self%20shouldNotImplement%0A'),
  766. messageSends: ["shouldNotImplement"],
  767. referencedClasses: []
  768. }),
  769. smalltalk.Transcript.klass);
  770. smalltalk.addMethod(
  771. '_current',
  772. smalltalk.method({
  773. selector: 'current',
  774. category: 'instance creation',
  775. fn: function (){
  776. var self=this;
  777. return smalltalk.send(self['@current'], "_ifNil_", [(function(){return self['@current']=smalltalk.send(self, "_new", [], smalltalk.TabWidget.klass);})]);
  778. return self;},
  779. source: unescape('current%0A%20%20%20%20%5Ecurrent%20ifNil%3A%20%5Bcurrent%20%3A%3D%20super%20new%5D%0A'),
  780. messageSends: ["ifNil:", "new"],
  781. referencedClasses: []
  782. }),
  783. smalltalk.Transcript.klass);
  784. smalltalk.addMethod(
  785. '_show_',
  786. smalltalk.method({
  787. selector: 'show:',
  788. category: 'printing',
  789. fn: function (anObject){
  790. var self=this;
  791. smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [anObject]);
  792. return self;},
  793. source: unescape('show%3A%20anObject%0A%20%20%20%20self%20current%20show%3A%20anObject%0A'),
  794. messageSends: ["show:", "current"],
  795. referencedClasses: []
  796. }),
  797. smalltalk.Transcript.klass);
  798. smalltalk.addMethod(
  799. '_cr',
  800. smalltalk.method({
  801. selector: 'cr',
  802. category: 'printing',
  803. fn: function (){
  804. var self=this;
  805. smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [smalltalk.send(smalltalk.String, "_cr", [])]);
  806. return self;},
  807. source: unescape('cr%0A%20%20%20%20self%20current%20show%3A%20String%20cr%0A'),
  808. messageSends: ["show:", "current", "cr"],
  809. referencedClasses: [smalltalk.String]
  810. }),
  811. smalltalk.Transcript.klass);
  812. smalltalk.addMethod(
  813. '_clear',
  814. smalltalk.method({
  815. selector: 'clear',
  816. category: 'printing',
  817. fn: function (){
  818. var self=this;
  819. smalltalk.send(smalltalk.send(self, "_current", []), "_clear", []);
  820. return self;},
  821. source: unescape('clear%0A%20%20%20%20self%20current%20clear%0A'),
  822. messageSends: ["clear", "current"],
  823. referencedClasses: []
  824. }),
  825. smalltalk.Transcript.klass);
  826. smalltalk.addClass('Browser', smalltalk.TabWidget, ['selectedCategory', 'selectedClass', 'selectedProtocol', 'selectedMethod', 'commitButton', 'categoriesList', 'classesList', 'protocolsList', 'methodsList', 'sourceTextarea', 'tabsList', 'selectedTab', 'saveButton', 'classButtons', 'methodButtons', 'unsavedChanges'], 'IDE');
  827. smalltalk.addMethod(
  828. '_initialize',
  829. smalltalk.method({
  830. selector: 'initialize',
  831. category: 'initialization',
  832. fn: function (){
  833. var self=this;
  834. smalltalk.send(self, "_initialize", [], smalltalk.TabWidget);
  835. self['@selectedTab']="instance";
  836. self['@unsavedChanges']=false;
  837. return self;},
  838. source: unescape('initialize%0A%20%20%20%20super%20initialize.%0A%20%20%20%20selectedTab%20%3A%3D%20%23instance.%0A%20%20%20%20unsavedChanges%20%3A%3D%20false%0A'),
  839. messageSends: ["initialize"],
  840. referencedClasses: []
  841. }),
  842. smalltalk.Browser);
  843. smalltalk.addMethod(
  844. '_label',
  845. smalltalk.method({
  846. selector: 'label',
  847. category: 'accessing',
  848. fn: function (){
  849. var self=this;
  850. return smalltalk.send(self['@selectedClass'], "_ifNil_ifNotNil_", [(function(){return unescape("Browser%20%28nil%29");}), (function(){return smalltalk.send(self['@selectedClass'], "_name", []);})]);
  851. return self;},
  852. source: unescape('label%0A%20%20%20%20%5EselectedClass%20%0A%09ifNil%3A%20%5B%27Browser%20%28nil%29%27%5D%0A%09ifNotNil%3A%20%5BselectedClass%20name%5D%0A'),
  853. messageSends: ["ifNil:ifNotNil:", "name"],
  854. referencedClasses: []
  855. }),
  856. smalltalk.Browser);
  857. smalltalk.addMethod(
  858. '_categories',
  859. smalltalk.method({
  860. selector: 'categories',
  861. category: 'accessing',
  862. fn: function (){
  863. var self=this;
  864. var categories=nil;
  865. categories=smalltalk.send(smalltalk.Array, "_new", []);
  866. smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.Smalltalk, "_current", []), "_classes", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(categories, "_includes_", [smalltalk.send(each, "_category", [])]), "_ifFalse_", [(function(){return smalltalk.send(categories, "_add_", [smalltalk.send(each, "_category", [])]);})]);})]);
  867. return smalltalk.send(categories, "_sort", []);
  868. return self;},
  869. source: unescape('categories%0A%20%20%20%20%7C%20categories%20%7C%0A%20%20%20%20categories%20%3A%3D%20Array%20new.%0A%20%20%20%20Smalltalk%20current%20classes%20do%3A%20%5B%3Aeach%20%7C%0A%09%28categories%20includes%3A%20each%20category%29%20ifFalse%3A%20%5B%0A%09%20%20%20%20categories%20add%3A%20each%20category%5D%5D.%0A%20%20%20%20%5Ecategories%20sort%0A'),
  870. messageSends: ["new", "do:", "classes", "current", "ifFalse:", "includes:", "category", "add:", "sort"],
  871. referencedClasses: [smalltalk.Array,smalltalk.Smalltalk]
  872. }),
  873. smalltalk.Browser);
  874. smalltalk.addMethod(
  875. '_classes',
  876. smalltalk.method({
  877. selector: 'classes',
  878. category: 'accessing',
  879. fn: function (){
  880. var self=this;
  881. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.Smalltalk, "_current", []), "_classes", []), "_select_", [(function(each){return smalltalk.send(smalltalk.send(each, "_category", []), "__eq", [self['@selectedCategory']]);})]), "_sort_", [(function(a, b){return smalltalk.send(smalltalk.send(a, "_name", []), "__gt", [smalltalk.send(b, "_name", [])]);})]);
  882. return self;},
  883. source: unescape('classes%0A%20%20%20%20%5E%28Smalltalk%20current%20classes%20%0A%09select%3A%20%5B%3Aeach%20%7C%20each%20category%20%3D%20selectedCategory%5D%29%0A%09sort%3A%20%5B%3Aa%20%3Ab%20%7C%20a%20name%20%3E%20b%20name%5D%0A'),
  884. messageSends: ["sort:", "select:", "classes", "current", unescape("%3D"), "category", unescape("%3E"), "name"],
  885. referencedClasses: [smalltalk.Smalltalk]
  886. }),
  887. smalltalk.Browser);
  888. smalltalk.addMethod(
  889. '_protocols',
  890. smalltalk.method({
  891. selector: 'protocols',
  892. category: 'accessing',
  893. fn: function (){
  894. var self=this;
  895. try{var klass=nil;
  896. var protocols=nil;
  897. protocols=smalltalk.send(smalltalk.Array, "_new", []);
  898. smalltalk.send(self['@selectedClass'], "_ifNotNil_", [(function(){smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["comment"]), "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return []}})})();})]);klass=smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["instance"]), "_ifTrue_ifFalse_", [(function(){return self['@selectedClass'];}), (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})]);smalltalk.send(smalltalk.send(smalltalk.send(klass, "_methodDictionary", []), "_isEmpty", []), "_ifTrue_", [(function(){return smalltalk.send(protocols, "_add_", ["not yet classified"]);})]);return smalltalk.send(smalltalk.send(klass, "_methodDictionary", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(protocols, "_includes_", [smalltalk.send(each, "_category", [])]), "_ifFalse_", [(function(){return smalltalk.send(protocols, "_add_", [smalltalk.send(each, "_category", [])]);})]);})]);})]);
  899. (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send(protocols, "_sort", [])}})})();
  900. return self;
  901. } catch(e) {if(e.name === 'stReturn' && e.selector === '_protocols'){return e.fn()} throw(e)}},
  902. source: unescape('protocols%0A%20%20%20%20%7C%20klass%20protocols%20%7C%0A%20%20%20%20protocols%20%3A%3D%20Array%20new.%0A%20%20%20%20selectedClass%20ifNotNil%3A%20%5B%0A%09selectedTab%20%3D%20%23comment%20ifTrue%3A%20%5B%5E%23%28%29%5D.%0A%09klass%20%3A%3D%20selectedTab%20%3D%20%23instance%0A%09%20%20%20%20ifTrue%3A%20%5BselectedClass%5D%0A%09%20%20%20%20ifFalse%3A%20%5BselectedClass%20class%5D.%0A%09klass%20methodDictionary%20isEmpty%20ifTrue%3A%20%5B%0A%09%20%20%20%20protocols%20add%3A%20%27not%20yet%20classified%27%5D.%0A%09klass%20methodDictionary%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20%28protocols%20includes%3A%20each%20category%29%20ifFalse%3A%20%5B%0A%09%09protocols%20add%3A%20each%20category%5D%5D%5D.%0A%20%20%20%20%5Eprotocols%20sort%0A'),
  903. messageSends: ["new", "ifNotNil:", "ifTrue:", unescape("%3D"), "ifTrue:ifFalse:", "class", "isEmpty", "methodDictionary", "add:", "do:", "ifFalse:", "includes:", "category", "sort"],
  904. referencedClasses: [smalltalk.Array]
  905. }),
  906. smalltalk.Browser);
  907. smalltalk.addMethod(
  908. '_methods',
  909. smalltalk.method({
  910. selector: 'methods',
  911. category: 'accessing',
  912. fn: function (){
  913. var self=this;
  914. try{var klass=nil;
  915. smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["comment"]), "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_methods', fn: function(){return []}})})();})]);
  916. smalltalk.send(self['@selectedClass'], "_ifNotNil_", [(function(){return klass=smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["instance"]), "_ifTrue_ifFalse_", [(function(){return self['@selectedClass'];}), (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})]);})]);
  917. (function(){throw({name: 'stReturn', selector: '_methods', fn: function(){return smalltalk.send(smalltalk.send(self['@selectedProtocol'], "_ifNil_ifNotNil_", [(function(){return smalltalk.send(klass, "_ifNil_ifNotNil_", [(function(){return [];}), (function(){return smalltalk.send(smalltalk.send(klass, "_methodDictionary", []), "_values", []);})]);}), (function(){return smalltalk.send(smalltalk.send(smalltalk.send(klass, "_methodDictionary", []), "_values", []), "_select_", [(function(each){return smalltalk.send(smalltalk.send(each, "_category", []), "__eq", [self['@selectedProtocol']]);})]);})]), "_sort_", [(function(a, b){return smalltalk.send(smalltalk.send(a, "_selector", []), "__gt", [smalltalk.send(b, "_selector", [])]);})])}})})();
  918. return self;
  919. } catch(e) {if(e.name === 'stReturn' && e.selector === '_methods'){return e.fn()} throw(e)}},
  920. source: unescape('methods%0A%20%20%20%20%7C%20klass%20%7C%0A%20%20%20%20selectedTab%20%3D%20%23comment%20ifTrue%3A%20%5B%5E%23%28%29%5D.%0A%20%20%20%20selectedClass%20ifNotNil%3A%20%5B%0A%09klass%20%3A%3D%20selectedTab%20%3D%20%23instance%0A%09%20%20%20%20ifTrue%3A%20%5BselectedClass%5D%0A%09%20%20%20%20ifFalse%3A%20%5BselectedClass%20class%5D%5D.%0A%20%20%20%20%5E%28selectedProtocol%20%0A%09ifNil%3A%20%5B%0A%09%20%20%20%20klass%20%0A%09%09ifNil%3A%20%5B%23%28%29%5D%20%0A%09%09ifNotNil%3A%20%5Bklass%20methodDictionary%20values%5D%5D%0A%09ifNotNil%3A%20%5B%0A%09%20%20%20%20klass%20methodDictionary%20values%20select%3A%20%5B%3Aeach%20%7C%0A%09%09each%20category%20%3D%20selectedProtocol%5D%5D%29%20sort%3A%20%5B%3Aa%20%3Ab%20%7C%20a%20selector%20%3E%20b%20selector%5D%0A'),
  921. messageSends: ["ifTrue:", unescape("%3D"), "ifNotNil:", "ifTrue:ifFalse:", "class", "sort:", "ifNil:ifNotNil:", "values", "methodDictionary", "select:", "category", unescape("%3E"), "selector"],
  922. referencedClasses: []
  923. }),
  924. smalltalk.Browser);
  925. smalltalk.addMethod(
  926. '_source',
  927. smalltalk.method({
  928. selector: 'source',
  929. category: 'accessing',
  930. fn: function (){
  931. var self=this;
  932. try{smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["comment"]), "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '_source', fn: function(){return smalltalk.send(smalltalk.send(smalltalk.send(self['@selectedProtocol'], "_notNil", []), "_or_", [(function(){return smalltalk.send(self['@selectedMethod'], "_notNil", []);})]), "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self, "_declarationSource", []);}), (function(){return smalltalk.send(self, "_methodSource", []);})])}})})();})]);
  933. (function(){throw({name: 'stReturn', selector: '_source', fn: function(){return smalltalk.send(self['@selectedClass'], "_ifNil_ifNotNil_", [(function(){return "";}), (function(){return smalltalk.send(self, "_classCommentSource", []);})])}})})();
  934. return self;
  935. } catch(e) {if(e.name === 'stReturn' && e.selector === '_source'){return e.fn()} throw(e)}},
  936. source: unescape('source%0A%20%20%20%20selectedTab%20%3D%20%23comment%20ifFalse%3A%20%5B%0A%09%5E%28selectedProtocol%20notNil%20or%3A%20%5BselectedMethod%20notNil%5D%29%0A%09%20%20%20%20ifFalse%3A%20%5Bself%20declarationSource%5D%0A%09%20%20%20%20ifTrue%3A%20%5Bself%20methodSource%5D%5D.%0A%20%20%20%20%5EselectedClass%0A%09ifNil%3A%20%5B%27%27%5D%0A%09ifNotNil%3A%20%5Bself%20classCommentSource%5D%0A'),
  937. messageSends: ["ifFalse:", unescape("%3D"), "ifFalse:ifTrue:", "or:", "notNil", "declarationSource", "methodSource", "ifNil:ifNotNil:", "classCommentSource"],
  938. referencedClasses: []
  939. }),
  940. smalltalk.Browser);
  941. smalltalk.addMethod(
  942. '_methodSource',
  943. smalltalk.method({
  944. selector: 'methodSource',
  945. category: 'accessing',
  946. fn: function (){
  947. var self=this;
  948. return smalltalk.send(self['@selectedMethod'], "_ifNil_ifNotNil_", [(function(){return smalltalk.send(self, "_dummyMethodSource", []);}), (function(){return smalltalk.send(self['@selectedMethod'], "_source", []);})]);
  949. return self;},
  950. source: unescape('methodSource%0A%20%20%20%20%5EselectedMethod%0A%09ifNil%3A%20%5Bself%20dummyMethodSource%5D%0A%09ifNotNil%3A%20%5BselectedMethod%20source%5D%0A'),
  951. messageSends: ["ifNil:ifNotNil:", "dummyMethodSource", "source"],
  952. referencedClasses: []
  953. }),
  954. smalltalk.Browser);
  955. smalltalk.addMethod(
  956. '_dummyMethodSource',
  957. smalltalk.method({
  958. selector: 'dummyMethodSource',
  959. category: 'accessing',
  960. fn: function (){
  961. var self=this;
  962. return unescape("messageSelectorAndArgumentNames%0A%09%22comment%20stating%20purpose%20of%20message%22%0A%0A%09%7C%20temporary%20variable%20names%20%7C%0A%09statements");
  963. return self;},
  964. source: unescape('dummyMethodSource%0A%20%20%20%20%5E%27messageSelectorAndArgumentNames%0A%09%22comment%20stating%20purpose%20of%20message%22%0A%0A%09%7C%20temporary%20variable%20names%20%7C%0A%09statements%27%0A'),
  965. messageSends: [],
  966. referencedClasses: []
  967. }),
  968. smalltalk.Browser);
  969. smalltalk.addMethod(
  970. '_declarationSource',
  971. smalltalk.method({
  972. selector: 'declarationSource',
  973. category: 'accessing',
  974. fn: function (){
  975. var self=this;
  976. return smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["instance"]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_classDeclarationSource", []);}), (function(){return smalltalk.send(self, "_metaclassDeclarationSource", []);})]);
  977. return self;},
  978. source: unescape('declarationSource%0A%20%20%20%20%5EselectedTab%20%3D%20%23instance%0A%09ifTrue%3A%20%5Bself%20classDeclarationSource%5D%0A%09ifFalse%3A%20%5Bself%20metaclassDeclarationSource%5D%0A'),
  979. messageSends: ["ifTrue:ifFalse:", unescape("%3D"), "classDeclarationSource", "metaclassDeclarationSource"],
  980. referencedClasses: []
  981. }),
  982. smalltalk.Browser);
  983. smalltalk.addMethod(
  984. '_classDeclarationSource',
  985. smalltalk.method({
  986. selector: 'classDeclarationSource',
  987. category: 'accessing',
  988. fn: function (){
  989. var self=this;
  990. var stream=nil;
  991. stream=smalltalk.send("", "_writeStream", []);
  992. smalltalk.send(self['@selectedClass'], "_ifNotNil_", [(function(){(function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(self['@selectedClass'], "_superclass", []), "_asString", [])]);smalltalk.send($rec, "_nextPutAll_", [unescape("%20subclass%3A%20%23")]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self['@selectedClass'], "_name", [])]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.String, "_cr", []), "__comma", [smalltalk.send(smalltalk.String, "_tab", [])])]);return smalltalk.send($rec, "_nextPutAll_", [unescape("instanceVariableNames%3A%20%27")]);})(stream);smalltalk.send(smalltalk.send(self['@selectedClass'], "_instanceVariableNames", []), "_do_separatedBy_", [(function(each){return smalltalk.send(stream, "_nextPutAll_", [each]);}), (function(){return smalltalk.send(stream, "_nextPutAll_", [" "]);})]);return (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("%27"), "__comma", [smalltalk.send(smalltalk.String, "_cr", [])]), "__comma", [smalltalk.send(smalltalk.String, "_tab", [])])]);smalltalk.send($rec, "_nextPutAll_", [unescape("category%3A%20%27")]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self['@selectedClass'], "_category", [])]);return smalltalk.send($rec, "_nextPutAll_", [unescape("%27")]);})(stream);})]);
  993. return smalltalk.send(stream, "_contents", []);
  994. return self;},
  995. source: unescape('classDeclarationSource%0A%20%20%20%20%7C%20stream%20%7C%0A%20%20%20%20stream%20%3A%3D%20%27%27%20writeStream.%0A%20%20%20%20selectedClass%20ifNotNil%3A%20%5B%0A%09stream%20%0A%09%20%20%20%20nextPutAll%3A%20selectedClass%20superclass%20asString%3B%0A%09%20%20%20%20nextPutAll%3A%20%27%20subclass%3A%20%23%27%3B%0A%09%20%20%20%20nextPutAll%3A%20selectedClass%20name%3B%0A%09%20%20%20%20nextPutAll%3A%20String%20cr%2C%20String%20tab%3B%0A%09%20%20%20%20nextPutAll%3A%20%27instanceVariableNames%3A%20%27%27%27.%0A%09selectedClass%20instanceVariableNames%20%0A%09%20%20%20%20do%3A%20%5B%3Aeach%20%7C%20stream%20nextPutAll%3A%20each%5D%20%0A%09%20%20%20%20separatedBy%3A%20%5Bstream%20nextPutAll%3A%20%27%20%27%5D.%0A%09stream%0A%09%20%20%20%20nextPutAll%3A%20%27%27%27%27%2C%20String%20cr%2C%20String%20tab%3B%0A%09%20%20%20%20nextPutAll%3A%20%27category%3A%20%27%27%27%3B%0A%09%20%20%20%20nextPutAll%3A%20selectedClass%20category%3B%0A%09%20%20%20%20nextPutAll%3A%20%27%27%27%27%5D.%0A%20%20%20%20%5Estream%20contents%0A'),
  996. messageSends: ["writeStream", "ifNotNil:", "nextPutAll:", "asString", "superclass", "name", unescape("%2C"), "cr", "tab", "do:separatedBy:", "instanceVariableNames", "category", "contents"],
  997. referencedClasses: [smalltalk.String]
  998. }),
  999. smalltalk.Browser);
  1000. smalltalk.addMethod(
  1001. '_metaclassDeclarationSource',
  1002. smalltalk.method({
  1003. selector: 'metaclassDeclarationSource',
  1004. category: 'accessing',
  1005. fn: function (){
  1006. var self=this;
  1007. var stream=nil;
  1008. stream=smalltalk.send("", "_writeStream", []);
  1009. smalltalk.send(self['@selectedClass'], "_ifNotNil_", [(function(){(function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self['@selectedClass'], "_asString", [])]);smalltalk.send($rec, "_nextPutAll_", [" class "]);return smalltalk.send($rec, "_nextPutAll_", [unescape("instanceVariableNames%3A%20%27")]);})(stream);smalltalk.send(smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_instanceVariableNames", []), "_do_separatedBy_", [(function(each){return smalltalk.send(stream, "_nextPutAll_", [each]);}), (function(){return smalltalk.send(stream, "_nextPutAll_", [" "]);})]);return smalltalk.send(stream, "_nextPutAll_", [unescape("%27")]);})]);
  1010. return smalltalk.send(stream, "_contents", []);
  1011. return self;},
  1012. source: unescape('metaclassDeclarationSource%0A%20%20%20%20%7C%20stream%20%7C%0A%20%20%20%20stream%20%3A%3D%20%27%27%20writeStream.%0A%20%20%20%20selectedClass%20ifNotNil%3A%20%5B%0A%09stream%20%0A%09%20%20%20%20nextPutAll%3A%20selectedClass%20asString%3B%0A%09%20%20%20%20nextPutAll%3A%20%27%20class%20%27%3B%0A%09%20%20%20%20nextPutAll%3A%20%27instanceVariableNames%3A%20%27%27%27.%0A%09selectedClass%20class%20instanceVariableNames%0A%09%20%20%20%20do%3A%20%5B%3Aeach%20%7C%20stream%20nextPutAll%3A%20each%5D%0A%09%20%20%20%20separatedBy%3A%20%5Bstream%20nextPutAll%3A%20%27%20%27%5D.%0A%09stream%20nextPutAll%3A%20%27%27%27%27%5D.%0A%20%20%20%20%5Estream%20contents%0A'),
  1013. messageSends: ["writeStream", "ifNotNil:", "nextPutAll:", "asString", "do:separatedBy:", "instanceVariableNames", "class", "contents"],
  1014. referencedClasses: []
  1015. }),
  1016. smalltalk.Browser);
  1017. smalltalk.addMethod(
  1018. '_classCommentSource',
  1019. smalltalk.method({
  1020. selector: 'classCommentSource',
  1021. category: 'accessing',
  1022. fn: function (){
  1023. var self=this;
  1024. return smalltalk.send(self['@selectedClass'], "_comment", []);
  1025. return self;},
  1026. source: unescape('classCommentSource%0A%20%20%20%20%5EselectedClass%20comment%0A'),
  1027. messageSends: ["comment"],
  1028. referencedClasses: []
  1029. }),
  1030. smalltalk.Browser);
  1031. smalltalk.addMethod(
  1032. '_enableSaveButton',
  1033. smalltalk.method({
  1034. selector: 'enableSaveButton',
  1035. category: 'actions',
  1036. fn: function (){
  1037. var self=this;
  1038. smalltalk.send(self['@saveButton'], "_removeAt_", ["disabled"]);
  1039. self['@unsavedChanges']=true;
  1040. return self;},
  1041. source: unescape('enableSaveButton%0A%20%20%20%20saveButton%20removeAt%3A%20%27disabled%27.%0A%20%20%20%20unsavedChanges%20%3A%3D%20true%0A'),
  1042. messageSends: ["removeAt:"],
  1043. referencedClasses: []
  1044. }),
  1045. smalltalk.Browser);
  1046. smalltalk.addMethod(
  1047. '_disableSaveButton',
  1048. smalltalk.method({
  1049. selector: 'disableSaveButton',
  1050. category: 'actions',
  1051. fn: function (){
  1052. var self=this;
  1053. smalltalk.send(self['@saveButton'], "_ifNotNil_", [(function(){return smalltalk.send(self['@saveButton'], "_at_put_", ["disabled", true]);})]);
  1054. self['@unsavedChanges']=false;
  1055. return self;},
  1056. source: unescape('disableSaveButton%0A%20%20%20%20saveButton%20ifNotNil%3A%20%5B%0A%09saveButton%20at%3A%20%27disabled%27%20put%3A%20true%5D.%0A%20%20%20%20unsavedChanges%20%3A%3D%20false%0A'),
  1057. messageSends: ["ifNotNil:", "at:put:"],
  1058. referencedClasses: []
  1059. }),
  1060. smalltalk.Browser);
  1061. smalltalk.addMethod(
  1062. '_hideClassButtons',
  1063. smalltalk.method({
  1064. selector: 'hideClassButtons',
  1065. category: 'actions',
  1066. fn: function (){
  1067. var self=this;
  1068. smalltalk.send(smalltalk.send(self['@classButtons'], "_asJQuery", []), "_hide", []);
  1069. return self;},
  1070. source: unescape('hideClassButtons%0A%20%20%20%20classButtons%20asJQuery%20hide%0A'),
  1071. messageSends: ["hide", "asJQuery"],
  1072. referencedClasses: []
  1073. }),
  1074. smalltalk.Browser);
  1075. smalltalk.addMethod(
  1076. '_showClassButtons',
  1077. smalltalk.method({
  1078. selector: 'showClassButtons',
  1079. category: 'actions',
  1080. fn: function (){
  1081. var self=this;
  1082. smalltalk.send(smalltalk.send(self['@classButtons'], "_asJQuery", []), "_show", []);
  1083. return self;},
  1084. source: unescape('showClassButtons%0A%20%20%20%20classButtons%20asJQuery%20show%0A'),
  1085. messageSends: ["show", "asJQuery"],
  1086. referencedClasses: []
  1087. }),
  1088. smalltalk.Browser);
  1089. smalltalk.addMethod(
  1090. '_hideMethodButtons',
  1091. smalltalk.method({
  1092. selector: 'hideMethodButtons',
  1093. category: 'actions',
  1094. fn: function (){
  1095. var self=this;
  1096. smalltalk.send(smalltalk.send(self['@methodButtons'], "_asJQuery", []), "_hide", []);
  1097. return self;},
  1098. source: unescape('hideMethodButtons%0A%20%20%20%20methodButtons%20asJQuery%20hide%0A'),
  1099. messageSends: ["hide", "asJQuery"],
  1100. referencedClasses: []
  1101. }),
  1102. smalltalk.Browser);
  1103. smalltalk.addMethod(
  1104. '_showMethodButtons',
  1105. smalltalk.method({
  1106. selector: 'showMethodButtons',
  1107. category: 'actions',
  1108. fn: function (){
  1109. var self=this;
  1110. smalltalk.send(smalltalk.send(self['@methodButtons'], "_asJQuery", []), "_show", []);
  1111. return self;},
  1112. source: unescape('showMethodButtons%0A%20%20%20%20methodButtons%20asJQuery%20show%0A'),
  1113. messageSends: ["show", "asJQuery"],
  1114. referencedClasses: []
  1115. }),
  1116. smalltalk.Browser);
  1117. smalltalk.addMethod(
  1118. '_compile',
  1119. smalltalk.method({
  1120. selector: 'compile',
  1121. category: 'actions',
  1122. fn: function (){
  1123. var self=this;
  1124. smalltalk.send(self, "_disableSaveButton", []);
  1125. smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["comment"]), "_ifTrue_", [(function(){return smalltalk.send(self['@selectedClass'], "_ifNotNil_", [(function(){return smalltalk.send(self, "_compileClassComment", []);})]);})]);
  1126. smalltalk.send(smalltalk.send(smalltalk.send(self['@selectedProtocol'], "_notNil", []), "_or_", [(function(){return smalltalk.send(self['@selectedMethod'], "_notNil", []);})]), "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self, "_compileDefinition", []);}), (function(){return smalltalk.send(self, "_compileMethodDefinition", []);})]);
  1127. return self;},
  1128. source: unescape('compile%0A%20%20%20%20self%20disableSaveButton.%0A%20%20%20%20selectedTab%20%3D%20%23comment%20ifTrue%3A%20%5B%0A%09selectedClass%20ifNotNil%3A%20%5B%0A%09%20%20%20%20self%20compileClassComment%5D%5D.%0A%20%20%20%20%28selectedProtocol%20notNil%20or%3A%20%5BselectedMethod%20notNil%5D%29%0A%09ifFalse%3A%20%5Bself%20compileDefinition%5D%0A%09ifTrue%3A%20%5Bself%20compileMethodDefinition%5D%0A'),
  1129. messageSends: ["disableSaveButton", "ifTrue:", unescape("%3D"), "ifNotNil:", "compileClassComment", "ifFalse:ifTrue:", "or:", "notNil", "compileDefinition", "compileMethodDefinition"],
  1130. referencedClasses: []
  1131. }),
  1132. smalltalk.Browser);
  1133. smalltalk.addMethod(
  1134. '_compileClassComment',
  1135. smalltalk.method({
  1136. selector: 'compileClassComment',
  1137. category: 'actions',
  1138. fn: function (){
  1139. var self=this;
  1140. smalltalk.send(self['@selectedClass'], "_comment_", [smalltalk.send(smalltalk.send(self['@sourceTextarea'], "_asJQuery", []), "_val", [])]);
  1141. return self;},
  1142. source: unescape('compileClassComment%0A%20%20%20%20selectedClass%20comment%3A%20sourceTextarea%20asJQuery%20val%0A'),
  1143. messageSends: ["comment:", "val", "asJQuery"],
  1144. referencedClasses: []
  1145. }),
  1146. smalltalk.Browser);
  1147. smalltalk.addMethod(
  1148. '_compileMethodDefinition',
  1149. smalltalk.method({
  1150. selector: 'compileMethodDefinition',
  1151. category: 'actions',
  1152. fn: function (){
  1153. var self=this;
  1154. smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["instance"]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_compileMethodDefinitionFor_", [self['@selectedClass']]);}), (function(){return smalltalk.send(self, "_compileMethodDefinitionFor_", [smalltalk.send(self['@selectedClass'], "_class", [])]);})]);
  1155. return self;},
  1156. source: unescape('compileMethodDefinition%0A%20%20%20%20selectedTab%20%3D%20%23instance%0A%09ifTrue%3A%20%5Bself%20compileMethodDefinitionFor%3A%20selectedClass%5D%0A%09ifFalse%3A%20%5Bself%20compileMethodDefinitionFor%3A%20selectedClass%20class%5D%0A'),
  1157. messageSends: ["ifTrue:ifFalse:", unescape("%3D"), "compileMethodDefinitionFor:", "class"],
  1158. referencedClasses: []
  1159. }),
  1160. smalltalk.Browser);
  1161. smalltalk.addMethod(
  1162. '_compileMethodDefinitionFor_',
  1163. smalltalk.method({
  1164. selector: 'compileMethodDefinitionFor:',
  1165. category: 'actions',
  1166. fn: function (aClass){
  1167. var self=this;
  1168. try{var compiler=nil;
  1169. var method=nil;
  1170. var source=nil;
  1171. var node=nil;
  1172. source=smalltalk.send(smalltalk.send(self['@sourceTextarea'], "_asJQuery", []), "_val", []);
  1173. smalltalk.send(self['@selectedProtocol'], "_ifNil_", [(function(){return self['@selectedProtocol']=smalltalk.send(self['@selectedMethod'], "_category", []);})]);
  1174. compiler=smalltalk.send(smalltalk.Compiler, "_new", []);
  1175. node=smalltalk.send(compiler, "_parse_", [source]);
  1176. smalltalk.send(smalltalk.send(node, "_isParseFailure", []), "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_compileMethodDefinitionFor_', fn: function(){return smalltalk.send(self, "_alert_", [smalltalk.send(smalltalk.send(smalltalk.send("PARSE ERROR: ", "__comma", [smalltalk.send(node, "_reason", [])]), "__comma", [unescape("%2C%20position%3A%20")]), "__comma", [smalltalk.send(smalltalk.send(node, "_position", []), "_asString", [])])])}})})();})]);
  1177. smalltalk.send(compiler, "_currentClass_", [self['@selectedClass']]);
  1178. method=smalltalk.send(compiler, "_eval_", [smalltalk.send(compiler, "_compileNode_", [node])]);
  1179. smalltalk.send(method, "_category_", [self['@selectedProtocol']]);
  1180. smalltalk.send(smalltalk.send(compiler, "_unknownVariables", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(self, "_confirm_", [smalltalk.send(smalltalk.send(unescape("Declare%20%27"), "__comma", [each]), "__comma", [unescape("%27%20as%20instance%20variable%3F")])]), "_ifTrue_", [(function(){smalltalk.send(self, "_addInstanceVariableNamed_toClass_", [each, aClass]);return (function(){throw({name: 'stReturn', selector: '_compileMethodDefinitionFor_', fn: function(){return smalltalk.send(self, "_compileMethodDefinitionFor_", [aClass])}})})();})]);})]);
  1181. smalltalk.send(aClass, "_addCompiledMethod_", [method]);
  1182. smalltalk.send(self, "_updateMethodsList", []);
  1183. smalltalk.send(self, "_selectMethod_", [method]);
  1184. return self;
  1185. } catch(e) {if(e.name === 'stReturn' && e.selector === '_compileMethodDefinitionFor_'){return e.fn()} throw(e)}},
  1186. source: unescape('compileMethodDefinitionFor%3A%20aClass%0A%20%20%20%20%7C%20compiler%20method%20source%20node%20%7C%0A%20%20%20%20source%20%3A%3D%20sourceTextarea%20asJQuery%20val.%0A%20%20%20%20selectedProtocol%20ifNil%3A%20%5BselectedProtocol%20%3A%3D%20selectedMethod%20category%5D.%0A%20%20%20%20compiler%20%3A%3D%20Compiler%20new.%0A%20%20%20%20node%20%3A%3D%20compiler%20parse%3A%20source.%0A%20%20%20%20node%20isParseFailure%20ifTrue%3A%20%5B%0A%09%5Eself%20alert%3A%20%27PARSE%20ERROR%3A%20%27%2C%20node%20reason%2C%20%27%2C%20position%3A%20%27%2C%20node%20position%20asString%5D.%0A%20%20%20%20compiler%20currentClass%3A%20selectedClass.%0A%20%20%20%20method%20%3A%3D%20compiler%20eval%3A%20%28compiler%20compileNode%3A%20node%29.%0A%20%20%20%20method%20category%3A%20selectedProtocol.%0A%20%20%20%20compiler%20unknownVariables%20do%3A%20%5B%3Aeach%20%7C%0A%09%28self%20confirm%3A%20%27Declare%20%27%27%27%2C%20each%2C%20%27%27%27%20as%20instance%20variable%3F%27%29%20ifTrue%3A%20%5B%0A%09%09self%20addInstanceVariableNamed%3A%20each%20toClass%3A%20aClass.%0A%09%09%5Eself%20compileMethodDefinitionFor%3A%20aClass%5D%5D.%0A%20%20%20%20aClass%20addCompiledMethod%3A%20method.%0A%20%20%20%20self%20updateMethodsList.%0A%20%20%20%20self%20selectMethod%3A%20method%0A'),
  1187. messageSends: ["val", "asJQuery", "ifNil:", "category", "new", "parse:", "ifTrue:", "isParseFailure", "alert:", unescape("%2C"), "reason", "asString", "position", "currentClass:", "eval:", "compileNode:", "category:", "do:", "unknownVariables", "confirm:", "addInstanceVariableNamed:toClass:", "compileMethodDefinitionFor:", "addCompiledMethod:", "updateMethodsList", "selectMethod:"],
  1188. referencedClasses: [smalltalk.Compiler]
  1189. }),
  1190. smalltalk.Browser);
  1191. smalltalk.addMethod(
  1192. '_compileDefinition',
  1193. smalltalk.method({
  1194. selector: 'compileDefinition',
  1195. category: 'actions',
  1196. fn: function (){
  1197. var self=this;
  1198. var newClass=nil;
  1199. newClass=smalltalk.send(smalltalk.send(smalltalk.Compiler, "_new", []), "_loadExpression_", [smalltalk.send(smalltalk.send(self['@sourceTextarea'], "_asJQuery", []), "_val", [])]);
  1200. (function($rec){smalltalk.send($rec, "_updateCategoriesList", []);return smalltalk.send($rec, "_updateClassesList", []);})(self);
  1201. return self;},
  1202. source: unescape('compileDefinition%0A%20%20%20%20%7C%20newClass%20%7C%0A%20%20%20%20newClass%20%3A%3D%20Compiler%20new%20loadExpression%3A%20sourceTextarea%20asJQuery%20val.%0A%20%20%20%20self%20%0A%09updateCategoriesList%3B%0A%09updateClassesList%0A'),
  1203. messageSends: ["loadExpression:", "new", "val", "asJQuery", "updateCategoriesList", "updateClassesList"],
  1204. referencedClasses: [smalltalk.Compiler]
  1205. }),
  1206. smalltalk.Browser);
  1207. smalltalk.addMethod(
  1208. '_commitCategory',
  1209. smalltalk.method({
  1210. selector: 'commitCategory',
  1211. category: 'actions',
  1212. fn: function (){
  1213. var self=this;
  1214. smalltalk.send(self['@selectedCategory'], "_ifNotNil_", [(function(){return (function($rec){smalltalk.send($rec, "_at_put_", ["type", "PUT"]);smalltalk.send($rec, "_at_put_", ["data", smalltalk.send(smalltalk.send(smalltalk.Exporter, "_new", []), "_exportCategory_", [self['@selectedCategory']])]);smalltalk.send($rec, "_at_put_", ["error", (function(){return smalltalk.send(self, "_alert_", [unescape("Commit%20failed%21")]);})]);return smalltalk.send($rec, "_send", []);})(smalltalk.send(smalltalk.Ajax, "_url_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_commitPath", []), "__comma", [unescape("/")]), "__comma", [self['@selectedCategory']]), "__comma", [".js"])]));})]);
  1215. return self;},
  1216. source: unescape('commitCategory%0A%20%20%20%20selectedCategory%20ifNotNil%3A%20%5B%0A%09%28Ajax%20url%3A%20self%20class%20commitPath%2C%20%27/%27%2C%20selectedCategory%2C%20%27.js%27%29%0A%09%20%20%20%20at%3A%20%27type%27%20put%3A%20%27PUT%27%3B%0A%09%20%20%20%20at%3A%20%27data%27%20put%3A%20%28Exporter%20new%20exportCategory%3A%20selectedCategory%29%3B%0A%09%20%20%20%20at%3A%20%27error%27%20put%3A%20%5Bself%20alert%3A%20%27Commit%20failed%21%27%5D%3B%0A%09%20%20%20%20send%5D%0A'),
  1217. messageSends: ["ifNotNil:", "at:put:", "exportCategory:", "new", "alert:", "send", "url:", unescape("%2C"), "commitPath", "class"],
  1218. referencedClasses: [smalltalk.Exporter,smalltalk.Ajax]
  1219. }),
  1220. smalltalk.Browser);
  1221. smalltalk.addMethod(
  1222. '_cancelChanges',
  1223. smalltalk.method({
  1224. selector: 'cancelChanges',
  1225. category: 'actions',
  1226. fn: function (){
  1227. var self=this;
  1228. return smalltalk.send(self['@unsavedChanges'], "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_confirm_", [unescape("Cancel%20changes%3F")]);}), (function(){return true;})]);
  1229. return self;},
  1230. source: unescape('cancelChanges%0A%20%20%20%20%5EunsavedChanges%20%0A%09ifTrue%3A%20%5Bself%20confirm%3A%20%27Cancel%20changes%3F%27%5D%0A%09ifFalse%3A%20%5Btrue%5D%0A'),
  1231. messageSends: ["ifTrue:ifFalse:", "confirm:"],
  1232. referencedClasses: []
  1233. }),
  1234. smalltalk.Browser);
  1235. smalltalk.addMethod(
  1236. '_removeClass',
  1237. smalltalk.method({
  1238. selector: 'removeClass',
  1239. category: 'actions',
  1240. fn: function (){
  1241. var self=this;
  1242. smalltalk.send(smalltalk.send(self, "_confirm_", [smalltalk.send(smalltalk.send("Do you really want to remove ", "__comma", [smalltalk.send(self['@selectedClass'], "_name", [])]), "__comma", [unescape("%3F")])]), "_ifTrue_", [(function(){smalltalk.send(smalltalk.send(smalltalk.Smalltalk, "_current", []), "_basicDelete_", [smalltalk.send(self['@selectedClass'], "_name", [])]);return smalltalk.send(self, "_selectClass_", [nil]);})]);
  1243. return self;},
  1244. source: unescape('removeClass%0A%20%20%20%20%28self%20confirm%3A%20%27Do%20you%20really%20want%20to%20remove%20%27%2C%20selectedClass%20name%2C%20%27%3F%27%29%0A%09ifTrue%3A%20%5B%0A%09%20%20%20%20Smalltalk%20current%20basicDelete%3A%20selectedClass%20name.%0A%09%20%20%20%20self%20selectClass%3A%20nil%5D%0A'),
  1245. messageSends: ["ifTrue:", "confirm:", unescape("%2C"), "name", "basicDelete:", "current", "selectClass:"],
  1246. referencedClasses: [smalltalk.Smalltalk]
  1247. }),
  1248. smalltalk.Browser);
  1249. smalltalk.addMethod(
  1250. '_removeMethod',
  1251. smalltalk.method({
  1252. selector: 'removeMethod',
  1253. category: 'actions',
  1254. fn: function (){
  1255. var self=this;
  1256. smalltalk.send(smalltalk.send(self, "_cancelChanges", []), "_ifTrue_", [(function(){return smalltalk.send(smalltalk.send(self, "_confirm_", [smalltalk.send(smalltalk.send(unescape("Do%20you%20really%20want%20to%20remove%20%23"), "__comma", [smalltalk.send(self['@selectedMethod'], "_selector", [])]), "__comma", [unescape("%3F")])]), "_ifTrue_", [(function(){smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["instance"]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);}), (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})]);return smalltalk.send(self, "_selectMethod_", [nil]);})]);})]);
  1257. return self;},
  1258. source: unescape('removeMethod%0A%20%20%20%20self%20cancelChanges%20ifTrue%3A%20%5B%0A%09%28self%20confirm%3A%20%27Do%20you%20really%20want%20to%20remove%20%23%27%2C%20selectedMethod%20selector%2C%20%27%3F%27%29%0A%09%20%20%20%20ifTrue%3A%20%5B%0A%09%09selectedTab%20%3D%20%23instance%20%0A%09%09%09ifTrue%3A%20%5BselectedClass%20removeCompiledMethod%3A%20selectedMethod%5D%0A%09%09%09ifFalse%3A%20%5BselectedClass%20class%20removeCompiledMethod%3A%20selectedMethod%5D.%0A%09%09self%20selectMethod%3A%20nil%5D%5D%0A'),
  1259. messageSends: ["ifTrue:", "cancelChanges", "confirm:", unescape("%2C"), "selector", "ifTrue:ifFalse:", unescape("%3D"), "removeCompiledMethod:", "class", "selectMethod:"],
  1260. referencedClasses: []
  1261. }),
  1262. smalltalk.Browser);
  1263. smalltalk.addMethod(
  1264. '_setMethodProtocol_',
  1265. smalltalk.method({
  1266. selector: 'setMethodProtocol:',
  1267. category: 'actions',
  1268. fn: function (aString){
  1269. var self=this;
  1270. smalltalk.send(smalltalk.send(self, "_cancelChanges", []), "_ifTrue_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_protocols", []), "_includes_", [aString]), "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self, "_addNewProtocol", []);}), (function(){smalltalk.send(self['@selectedMethod'], "_category_", [aString]);self['@selectedProtocol']=aString;self['@selectedMethod']=self['@selectedMethod'];return (function($rec){smalltalk.send($rec, "_updateProtocolsList", []);smalltalk.send($rec, "_updateMethodsList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})]);})]);
  1271. return self;},
  1272. source: unescape('setMethodProtocol%3A%20aString%0A%20%20%20%20self%20cancelChanges%20ifTrue%3A%20%5B%0A%09%28self%20protocols%20includes%3A%20aString%29%0A%09%20%20%20%20ifFalse%3A%20%5Bself%20addNewProtocol%5D%0A%09%20%20%20%20ifTrue%3A%20%5B%0A%09%09selectedMethod%20category%3A%20aString.%0A%09%09selectedProtocol%20%3A%3D%20aString.%0A%09%09selectedMethod%20%3A%3D%20selectedMethod.%0A%09%09self%20%0A%09%09%20%20%20%20updateProtocolsList%3B%0A%09%09%20%20%20%20updateMethodsList%3B%0A%09%09%20%20%20%20updateSourceAndButtons%5D%5D%0A'),
  1273. messageSends: ["ifTrue:", "cancelChanges", "ifFalse:ifTrue:", "includes:", "protocols", "addNewProtocol", "category:", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1274. referencedClasses: []
  1275. }),
  1276. smalltalk.Browser);
  1277. smalltalk.addMethod(
  1278. '_addNewProtocol',
  1279. smalltalk.method({
  1280. selector: 'addNewProtocol',
  1281. category: 'actions',
  1282. fn: function (){
  1283. var self=this;
  1284. var newProtocol=nil;
  1285. newProtocol=smalltalk.send(self, "_prompt_", ["New method protocol"]);
  1286. smalltalk.send(smalltalk.send(newProtocol, "_notEmpty", []), "_ifTrue_", [(function(){smalltalk.send(self['@selectedMethod'], "_category_", [newProtocol]);return smalltalk.send(self, "_setMethodProtocol_", [newProtocol]);})]);
  1287. return self;},
  1288. source: unescape('addNewProtocol%0A%20%20%20%20%7C%20newProtocol%20%7C%0A%20%20%20%20newProtocol%20%3A%3D%20self%20prompt%3A%20%27New%20method%20protocol%27.%0A%20%20%20%20newProtocol%20notEmpty%20ifTrue%3A%20%5B%0A%09selectedMethod%20category%3A%20newProtocol.%0A%09self%20setMethodProtocol%3A%20newProtocol%5D%0A'),
  1289. messageSends: ["prompt:", "ifTrue:", "notEmpty", "category:", "setMethodProtocol:"],
  1290. referencedClasses: []
  1291. }),
  1292. smalltalk.Browser);
  1293. smalltalk.addMethod(
  1294. '_selectCategory_',
  1295. smalltalk.method({
  1296. selector: 'selectCategory:',
  1297. category: 'actions',
  1298. fn: function (aCategory){
  1299. var self=this;
  1300. smalltalk.send(smalltalk.send(self, "_cancelChanges", []), "_ifTrue_", [(function(){self['@selectedCategory']=aCategory;self['@selectedClass']=self['@selectedProtocol']=self['@selectedMethod']=nil;return (function($rec){smalltalk.send($rec, "_updateCategoriesList", []);smalltalk.send($rec, "_updateClassesList", []);smalltalk.send($rec, "_updateProtocolsList", []);smalltalk.send($rec, "_updateMethodsList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})]);
  1301. return self;},
  1302. source: unescape('selectCategory%3A%20aCategory%0A%20%20%20%20self%20cancelChanges%20ifTrue%3A%20%5B%0A%09selectedCategory%20%3A%3D%20aCategory.%0A%09selectedClass%20%3A%3D%20selectedProtocol%20%3A%3D%20selectedMethod%20%3A%3D%20%20nil.%0A%09self%20%0A%09%20%20%20%20updateCategoriesList%3B%0A%09%20%20%20%20updateClassesList%3B%0A%09%20%20%20%20updateProtocolsList%3B%0A%09%20%20%20%20updateMethodsList%3B%0A%09%20%20%20%20updateSourceAndButtons%5D%0A'),
  1303. messageSends: ["ifTrue:", "cancelChanges", "updateCategoriesList", "updateClassesList", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1304. referencedClasses: []
  1305. }),
  1306. smalltalk.Browser);
  1307. smalltalk.addMethod(
  1308. '_selectClass_',
  1309. smalltalk.method({
  1310. selector: 'selectClass:',
  1311. category: 'actions',
  1312. fn: function (aClass){
  1313. var self=this;
  1314. smalltalk.send(smalltalk.send(self, "_cancelChanges", []), "_ifTrue_", [(function(){self['@selectedClass']=aClass;self['@selectedProtocol']=self['@selectedMethod']=nil;return (function($rec){smalltalk.send($rec, "_updateClassesList", []);smalltalk.send($rec, "_updateProtocolsList", []);smalltalk.send($rec, "_updateMethodsList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})]);
  1315. return self;},
  1316. source: unescape('selectClass%3A%20aClass%0A%20%20%20%20self%20cancelChanges%20ifTrue%3A%20%5B%0A%09selectedClass%20%3A%3D%20aClass.%0A%09selectedProtocol%20%3A%3D%20selectedMethod%20%3A%3D%20nil.%0A%09self%20%0A%09%20%20%20%20updateClassesList%3B%0A%09%20%20%20%20updateProtocolsList%3B%0A%09%20%20%20%20updateMethodsList%3B%0A%09%20%20%20%20updateSourceAndButtons%5D%0A'),
  1317. messageSends: ["ifTrue:", "cancelChanges", "updateClassesList", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1318. referencedClasses: []
  1319. }),
  1320. smalltalk.Browser);
  1321. smalltalk.addMethod(
  1322. '_selectProtocol_',
  1323. smalltalk.method({
  1324. selector: 'selectProtocol:',
  1325. category: 'actions',
  1326. fn: function (aString){
  1327. var self=this;
  1328. smalltalk.send(smalltalk.send(self, "_cancelChanges", []), "_ifTrue_", [(function(){self['@selectedProtocol']=aString;self['@selectedMethod']=nil;return (function($rec){smalltalk.send($rec, "_updateProtocolsList", []);smalltalk.send($rec, "_updateMethodsList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})]);
  1329. return self;},
  1330. source: unescape('selectProtocol%3A%20aString%0A%20%20%20%20self%20cancelChanges%20ifTrue%3A%20%5B%0A%09selectedProtocol%20%3A%3D%20aString.%0A%09selectedMethod%20%3A%3D%20nil.%0A%09self%20%0A%09%20%20%20%20updateProtocolsList%3B%0A%09%20%20%20%20updateMethodsList%3B%0A%09%20%20%20%20updateSourceAndButtons%5D%0A'),
  1331. messageSends: ["ifTrue:", "cancelChanges", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1332. referencedClasses: []
  1333. }),
  1334. smalltalk.Browser);
  1335. smalltalk.addMethod(
  1336. '_selectMethod_',
  1337. smalltalk.method({
  1338. selector: 'selectMethod:',
  1339. category: 'actions',
  1340. fn: function (aMethod){
  1341. var self=this;
  1342. smalltalk.send(smalltalk.send(self, "_cancelChanges", []), "_ifTrue_", [(function(){self['@selectedMethod']=aMethod;return (function($rec){smalltalk.send($rec, "_updateProtocolsList", []);smalltalk.send($rec, "_updateMethodsList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})]);
  1343. return self;},
  1344. source: unescape('selectMethod%3A%20aMethod%0A%20%20%20%20self%20cancelChanges%20ifTrue%3A%20%5B%0A%09selectedMethod%20%3A%3D%20aMethod.%0A%09self%20%0A%09%20%20%20%20updateProtocolsList%3B%0A%09%20%20%20%20updateMethodsList%3B%0A%09%20%20%20%20updateSourceAndButtons%5D%0A'),
  1345. messageSends: ["ifTrue:", "cancelChanges", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1346. referencedClasses: []
  1347. }),
  1348. smalltalk.Browser);
  1349. smalltalk.addMethod(
  1350. '_selectTab_',
  1351. smalltalk.method({
  1352. selector: 'selectTab:',
  1353. category: 'actions',
  1354. fn: function (aString){
  1355. var self=this;
  1356. smalltalk.send(smalltalk.send(self, "_cancelChanges", []), "_ifTrue_", [(function(){self['@selectedTab']=aString;smalltalk.send(self, "_selectProtocol_", [nil]);return smalltalk.send(self, "_updateTabsList", []);})]);
  1357. return self;},
  1358. source: unescape('selectTab%3A%20aString%0A%20%20%20%20self%20cancelChanges%20ifTrue%3A%20%5B%0A%09selectedTab%20%3A%3D%20aString.%0A%09self%20selectProtocol%3A%20nil.%0A%09self%20updateTabsList%5D%0A'),
  1359. messageSends: ["ifTrue:", "cancelChanges", "selectProtocol:", "updateTabsList"],
  1360. referencedClasses: []
  1361. }),
  1362. smalltalk.Browser);
  1363. smalltalk.addMethod(
  1364. '_renderBoxOn_',
  1365. smalltalk.method({
  1366. selector: 'renderBoxOn:',
  1367. category: 'rendering',
  1368. fn: function (html){
  1369. var self=this;
  1370. (function($rec){smalltalk.send($rec, "_renderTopPanelOn_", [html]);smalltalk.send($rec, "_renderTabsOn_", [html]);return smalltalk.send($rec, "_renderBottomPanelOn_", [html]);})(self);
  1371. return self;},
  1372. source: unescape('renderBoxOn%3A%20html%0A%20%20%20%20self%20%0A%09renderTopPanelOn%3A%20html%3B%0A%09renderTabsOn%3A%20html%3B%0A%09renderBottomPanelOn%3A%20html%0A'),
  1373. messageSends: ["renderTopPanelOn:", "renderTabsOn:", "renderBottomPanelOn:"],
  1374. referencedClasses: []
  1375. }),
  1376. smalltalk.Browser);
  1377. smalltalk.addMethod(
  1378. '_renderTopPanelOn_',
  1379. smalltalk.method({
  1380. selector: 'renderTopPanelOn:',
  1381. category: 'rendering',
  1382. fn: function (html){
  1383. var self=this;
  1384. (function($rec){smalltalk.send($rec, "_class_", ["top"]);return smalltalk.send($rec, "_with_", [(function(){self['@categoriesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column categories"]);self['@commitButton']=(function($rec){smalltalk.send($rec, "_class_", ["jt_commit"]);smalltalk.send($rec, "_title_", ["Commit classes in this category to disk"]);smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_commitCategory", []);})]);return smalltalk.send($rec, "_with_", ["Commit category"]);})(smalltalk.send(html, "_button", []));self['@classesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column classes"]);self['@protocolsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column protocols"]);self['@methodsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column methods"]);(function($rec){smalltalk.send($rec, "_updateCategoriesList", []);smalltalk.send($rec, "_updateClassesList", []);smalltalk.send($rec, "_updateProtocolsList", []);return smalltalk.send($rec, "_updateMethodsList", []);})(self);return smalltalk.send(smalltalk.send(html, "_div", []), "_class_", ["jt_clear"]);})]);})(smalltalk.send(html, "_div", []));
  1385. return self;},
  1386. source: unescape('renderTopPanelOn%3A%20html%0A%20%20%20%20html%20div%20%0A%09class%3A%20%27top%27%3B%20%0A%09with%3A%20%5B%0A%09%20%20%20%20categoriesList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20categories%27.%0A%09%20%20%20%20commitButton%20%3A%3D%20html%20button%20%0A%09%09class%3A%20%27jt_commit%27%3B%0A%09%09title%3A%20%27Commit%20classes%20in%20this%20category%20to%20disk%27%3B%0A%09%09onClick%3A%20%5Bself%20commitCategory%5D%3B%0A%09%09with%3A%20%27Commit%20category%27.%0A%09%20%20%20%20classesList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20classes%27.%0A%09%20%20%20%20protocolsList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20protocols%27.%0A%09%20%20%20%20methodsList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20methods%27.%0A%09%20%20%20%20self%0A%09%09updateCategoriesList%3B%0A%09%09updateClassesList%3B%0A%09%09updateProtocolsList%3B%0A%09%09updateMethodsList.%0A%09%20%20%20%20html%20div%20class%3A%20%27jt_clear%27%5D%0A'),
  1387. messageSends: ["class:", "with:", "ul", "title:", "onClick:", "commitCategory", "button", "updateCategoriesList", "updateClassesList", "updateProtocolsList", "updateMethodsList", "div"],
  1388. referencedClasses: []
  1389. }),
  1390. smalltalk.Browser);
  1391. smalltalk.addMethod(
  1392. '_renderTabsOn_',
  1393. smalltalk.method({
  1394. selector: 'renderTabsOn:',
  1395. category: 'rendering',
  1396. fn: function (html){
  1397. var self=this;
  1398. self['@tabsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_tabs"]);
  1399. smalltalk.send(self, "_updateTabsList", []);
  1400. return self;},
  1401. source: unescape('renderTabsOn%3A%20html%0A%20%20%20%20tabsList%20%3A%3D%20html%20ul%20class%3A%20%27jt_tabs%27.%0A%20%20%20%20self%20updateTabsList.%0A'),
  1402. messageSends: ["class:", "ul", "updateTabsList"],
  1403. referencedClasses: []
  1404. }),
  1405. smalltalk.Browser);
  1406. smalltalk.addMethod(
  1407. '_renderBottomPanelOn_',
  1408. smalltalk.method({
  1409. selector: 'renderBottomPanelOn:',
  1410. category: 'rendering',
  1411. fn: function (html){
  1412. var self=this;
  1413. (function($rec){smalltalk.send($rec, "_class_", ["jt_sourceCode"]);return smalltalk.send($rec, "_with_", [(function(){self['@sourceTextarea']=(function($rec){smalltalk.send($rec, "_onKeyPress_", [(function(){return smalltalk.send(self, "_enableSaveButton", []);})]);smalltalk.send($rec, "_class_", ["source"]);return smalltalk.send($rec, "_at_put_", ["spellcheck", "false"]);})(smalltalk.send(html, "_textarea", []));return smalltalk.send(smalltalk.send(self['@sourceTextarea'], "_asJQuery", []), "_call_", ["tabby"]);})]);})(smalltalk.send(html, "_div", []));
  1414. return self;},
  1415. source: unescape('renderBottomPanelOn%3A%20html%0A%20%20%20%20html%20div%0A%09class%3A%20%27jt_sourceCode%27%3B%0A%09with%3A%20%5B%0A%09%20%20%20%20sourceTextarea%20%3A%3D%20html%20textarea%20%0A%09%09onKeyPress%3A%20%5Bself%20enableSaveButton%5D%3B%0A%09%09class%3A%20%27source%27%3B%0A%09%09at%3A%20%27spellcheck%27%20put%3A%20%27false%27.%0A%09%20%20%20%20sourceTextarea%20asJQuery%20call%3A%20%27tabby%27%5D%0A'),
  1416. messageSends: ["class:", "with:", "onKeyPress:", "enableSaveButton", "at:put:", "textarea", "call:", "asJQuery", "div"],
  1417. referencedClasses: []
  1418. }),
  1419. smalltalk.Browser);
  1420. smalltalk.addMethod(
  1421. '_renderButtonsOn_',
  1422. smalltalk.method({
  1423. selector: 'renderButtonsOn:',
  1424. category: 'rendering',
  1425. fn: function (html){
  1426. var self=this;
  1427. self['@saveButton']=smalltalk.send(html, "_button", []);
  1428. (function($rec){smalltalk.send($rec, "_with_", ["Save"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_compile", []);})]);})(self['@saveButton']);
  1429. self['@methodButtons']=smalltalk.send(html, "_span", []);
  1430. self['@classButtons']=smalltalk.send(html, "_span", []);
  1431. smalltalk.send(self, "_updateSourceAndButtons", []);
  1432. return self;},
  1433. source: unescape('renderButtonsOn%3A%20html%0A%20%20%20%20saveButton%20%3A%3D%20html%20button.%0A%20%20%20%20saveButton%20%0A%09with%3A%20%27Save%27%3B%0A%09onClick%3A%20%5Bself%20compile%5D.%0A%20%20%20%20methodButtons%20%3A%3D%20html%20span.%0A%20%20%20%20classButtons%20%3A%3D%20html%20span.%0A%20%20%20%20self%20updateSourceAndButtons%0A'),
  1434. messageSends: ["button", "with:", "onClick:", "compile", "span", "updateSourceAndButtons"],
  1435. referencedClasses: []
  1436. }),
  1437. smalltalk.Browser);
  1438. smalltalk.addMethod(
  1439. '_updateCategoriesList',
  1440. smalltalk.method({
  1441. selector: 'updateCategoriesList',
  1442. category: 'updating',
  1443. fn: function (){
  1444. var self=this;
  1445. smalltalk.send(self['@categoriesList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_categories", []), "_do_", [(function(each){var li=nil;
  1446. var label=nil;
  1447. smalltalk.send(smalltalk.send(each, "_isEmpty", []), "_ifTrue_ifFalse_", [(function(){return label="Unclassified";}), (function(){return label=each;})]);li=smalltalk.send(html, "_li", []);smalltalk.send(smalltalk.send(self['@selectedCategory'], "__eq", [each]), "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);return (function($rec){smalltalk.send($rec, "_with_", [label]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectCategory_", [each]);})]);})(li);})]);})]);
  1448. return self;},
  1449. source: unescape('updateCategoriesList%0A%20%20%20%20categoriesList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09self%20categories%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20label%20%7C%0A%09%20%20%20%20each%20isEmpty%20%0A%09%09ifTrue%3A%20%5Blabel%20%3A%3D%20%27Unclassified%27%5D%0A%09%09ifFalse%3A%20%5Blabel%20%3A%3D%20each%5D.%0A%09%20%20%20%20li%20%3A%3D%20html%20li.%0A%09%20%20%20%20selectedCategory%20%3D%20each%20ifTrue%3A%20%5B%0A%09%09li%20class%3A%20%27selected%27%5D.%0A%09%20%20%20%20li%0A%09%09with%3A%20label%3B%0A%09%09onClick%3A%20%5Bself%20selectCategory%3A%20each%5D%5D%5D%0A'),
  1450. messageSends: ["contents:", "do:", "categories", "ifTrue:ifFalse:", "isEmpty", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "onClick:", "selectCategory:"],
  1451. referencedClasses: []
  1452. }),
  1453. smalltalk.Browser);
  1454. smalltalk.addMethod(
  1455. '_updateClassesList',
  1456. smalltalk.method({
  1457. selector: 'updateClassesList',
  1458. category: 'updating',
  1459. fn: function (){
  1460. var self=this;
  1461. smalltalk.send(smalltalk.send(smalltalk.TabManager, "_current", []), "_update", []);
  1462. smalltalk.send(self['@classesList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_classes", []), "_do_", [(function(each){var li=nil;
  1463. li=smalltalk.send(html, "_li", []);smalltalk.send(smalltalk.send(self['@selectedClass'], "__eq", [each]), "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);return (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(each, "_name", [])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectClass_", [each]);})]);})(li);})]);})]);
  1464. return self;},
  1465. source: unescape('updateClassesList%0A%20%20%20%20TabManager%20current%20update.%0A%20%20%20%20classesList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09self%20classes%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20%7C%0A%09%20%20%20%20li%20%3A%3D%20html%20li.%0A%09%20%20%20%20selectedClass%20%3D%20each%20ifTrue%3A%20%5B%0A%09%09li%20class%3A%20%27selected%27%5D.%0A%09%20%20%20%20li%0A%09%09with%3A%20each%20name%3B%0A%09%09onClick%3A%20%5Bself%20selectClass%3A%20each%5D%5D%5D%0A'),
  1466. messageSends: ["update", "current", "contents:", "do:", "classes", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "name", "onClick:", "selectClass:"],
  1467. referencedClasses: [smalltalk.TabManager]
  1468. }),
  1469. smalltalk.Browser);
  1470. smalltalk.addMethod(
  1471. '_updateProtocolsList',
  1472. smalltalk.method({
  1473. selector: 'updateProtocolsList',
  1474. category: 'updating',
  1475. fn: function (){
  1476. var self=this;
  1477. smalltalk.send(self['@protocolsList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_protocols", []), "_do_", [(function(each){var li=nil;
  1478. li=smalltalk.send(html, "_li", []);smalltalk.send(smalltalk.send(self['@selectedProtocol'], "__eq", [each]), "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);return (function($rec){smalltalk.send($rec, "_with_", [each]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectProtocol_", [each]);})]);})(li);})]);})]);
  1479. return self;},
  1480. source: unescape('updateProtocolsList%0A%20%20%20%20protocolsList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09self%20protocols%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20%7C%0A%09%20%20%20%20li%20%3A%3D%20html%20li.%0A%09%20%20%20%20selectedProtocol%20%3D%20each%20ifTrue%3A%20%5B%0A%09%09li%20class%3A%20%27selected%27%5D.%0A%09%20%20%20%20li%20%0A%09%09with%3A%20each%3B%0A%09%09onClick%3A%20%5Bself%20selectProtocol%3A%20each%5D%5D%5D%0A'),
  1481. messageSends: ["contents:", "do:", "protocols", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "onClick:", "selectProtocol:"],
  1482. referencedClasses: []
  1483. }),
  1484. smalltalk.Browser);
  1485. smalltalk.addMethod(
  1486. '_updateMethodsList',
  1487. smalltalk.method({
  1488. selector: 'updateMethodsList',
  1489. category: 'updating',
  1490. fn: function (){
  1491. var self=this;
  1492. smalltalk.send(self['@methodsList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_methods", []), "_do_", [(function(each){var li=nil;
  1493. li=smalltalk.send(html, "_li", []);smalltalk.send(smalltalk.send(self['@selectedMethod'], "__eq", [each]), "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);return (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(each, "_selector", [])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectMethod_", [each]);})]);})(li);})]);})]);
  1494. return self;},
  1495. source: unescape('updateMethodsList%0A%20%20%20%20methodsList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09self%20methods%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20%7C%0A%09%20%20%20%20li%20%3A%3D%20html%20li.%0A%09%20%20%20%20selectedMethod%20%3D%20each%20ifTrue%3A%20%5B%0A%09%09li%20class%3A%20%27selected%27%5D.%0A%09%20%20%20%20li%0A%09%09with%3A%20each%20selector%3B%0A%09%09onClick%3A%20%5Bself%20selectMethod%3A%20each%5D%5D%5D%0A'),
  1496. messageSends: ["contents:", "do:", "methods", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "selector", "onClick:", "selectMethod:"],
  1497. referencedClasses: []
  1498. }),
  1499. smalltalk.Browser);
  1500. smalltalk.addMethod(
  1501. '_updateTabsList',
  1502. smalltalk.method({
  1503. selector: 'updateTabsList',
  1504. category: 'updating',
  1505. fn: function (){
  1506. var self=this;
  1507. smalltalk.send(self['@tabsList'], "_contents_", [(function(html){var li=nil;
  1508. li=smalltalk.send(html, "_li", []);smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["instance"]), "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);(function($rec){smalltalk.send($rec, "_with_", ["Instance"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectTab_", ["instance"]);})]);})(li);li=smalltalk.send(html, "_li", []);smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["class"]), "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);(function($rec){smalltalk.send($rec, "_with_", ["Class"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectTab_", ["class"]);})]);})(li);li=smalltalk.send(html, "_li", []);smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["comment"]), "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);return (function($rec){smalltalk.send($rec, "_with_", ["Comment"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectTab_", ["comment"]);})]);})(li);})]);
  1509. return self;},
  1510. source: unescape('updateTabsList%0A%20%20%20%20tabsList%20contents%3A%20%5B%3Ahtml%20%7C%7C%20li%20%7C%0A%09li%20%3A%3D%20html%20li.%0A%09selectedTab%20%3D%20%23instance%20ifTrue%3A%20%5Bli%20class%3A%20%27selected%27%5D.%0A%09li%0A%09%20%20%20%20with%3A%20%27Instance%27%3B%0A%09%20%20%20%20onClick%3A%20%5Bself%20selectTab%3A%20%23instance%5D.%0A%09li%20%3A%3D%20html%20li.%0A%09selectedTab%20%3D%20%23class%20ifTrue%3A%20%5Bli%20class%3A%20%27selected%27%5D.%0A%09li%0A%09%20%20%20%20with%3A%20%27Class%27%3B%0A%09%20%20%20%20onClick%3A%20%5Bself%20selectTab%3A%20%23class%5D.%0A%09li%20%3A%3D%20html%20li.%0A%09selectedTab%20%3D%20%23comment%20ifTrue%3A%20%5Bli%20class%3A%20%27selected%27%5D.%0A%09li%0A%09%20%20%20%20with%3A%20%27Comment%27%3B%0A%09%20%20%20%20onClick%3A%20%5Bself%20selectTab%3A%20%23comment%5D%5D%0A'),
  1511. messageSends: ["contents:", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "onClick:", "selectTab:"],
  1512. referencedClasses: []
  1513. }),
  1514. smalltalk.Browser);
  1515. smalltalk.addMethod(
  1516. '_updateSourceAndButtons',
  1517. smalltalk.method({
  1518. selector: 'updateSourceAndButtons',
  1519. category: 'updating',
  1520. fn: function (){
  1521. var self=this;
  1522. smalltalk.send(self, "_disableSaveButton", []);
  1523. smalltalk.send(self['@classButtons'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_with_", ["Rename class"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_renameClass", []);})]);})(smalltalk.send(html, "_button", []));(function($rec){smalltalk.send($rec, "_with_", ["Remove class"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_removeClass", []);})]);})(smalltalk.send(html, "_button", []));return (function($rec){smalltalk.send($rec, "_with_", ["References"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_searchClassReferences", []);})]);})(smalltalk.send(html, "_button", []));})]);
  1524. smalltalk.send(self['@methodButtons'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_with_", ["Remove method"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_removeMethod", []);})]);})(smalltalk.send(html, "_button", []));(function($rec){smalltalk.send($rec, "_onChange_", [(function(e, select){return smalltalk.send(self, "_setMethodProtocol_", [smalltalk.send(select, "_val", [])]);})]);return smalltalk.send($rec, "_with_", [(function(){(function($rec){smalltalk.send($rec, "_with_", ["Method protocol"]);return smalltalk.send($rec, "_at_put_", ["disabled", "disabled"]);})(smalltalk.send(html, "_option", []));(function($rec){smalltalk.send($rec, "_class_", ["important"]);return smalltalk.send($rec, "_with_", ["New..."]);})(smalltalk.send(html, "_option", []));return smalltalk.send(smalltalk.send(self, "_protocols", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(html, "_option", []), "_with_", [each]);})]);})]);})(smalltalk.send(html, "_select", []));return smalltalk.send(smalltalk.send(self['@selectedMethod'], "_isNil", []), "_ifFalse_", [(function(){return (function($rec){smalltalk.send($rec, "_onChange_", [(function(e, select){return smalltalk.send(self, "_searchReferencesOf_", [smalltalk.send(select, "_val", [])]);})]);return smalltalk.send($rec, "_with_", [(function(){(function($rec){smalltalk.send($rec, "_with_", ["References"]);return smalltalk.send($rec, "_at_put_", ["disabled", "disabled"]);})(smalltalk.send(html, "_option", []));(function($rec){smalltalk.send($rec, "_class_", ["important"]);return smalltalk.send($rec, "_with_", [smalltalk.send(self['@selectedMethod'], "_selector", [])]);})(smalltalk.send(html, "_option", []));return smalltalk.send(smalltalk.send(smalltalk.send(self['@selectedMethod'], "_messageSends", []), "_sorted", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(html, "_option", []), "_with_", [each]);})]);})]);})(smalltalk.send(html, "_select", []));})]);})]);
  1525. smalltalk.send(smalltalk.send(self['@selectedMethod'], "_isNil", []), "_ifTrue_ifFalse_", [(function(){smalltalk.send(self, "_hideMethodButtons", []);return smalltalk.send(smalltalk.send(smalltalk.send(self['@selectedClass'], "_isNil", []), "_or_", [(function(){return smalltalk.send(self['@selectedProtocol'], "_notNil", []);})]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_hideClassButtons", []);}), (function(){return smalltalk.send(self, "_showClassButtons", []);})]);}), (function(){smalltalk.send(self, "_hideClassButtons", []);return smalltalk.send(self, "_showMethodButtons", []);})]);
  1526. smalltalk.send(smalltalk.send(self['@sourceTextarea'], "_asJQuery", []), "_val_", [smalltalk.send(self, "_source", [])]);
  1527. return self;},
  1528. source: unescape('updateSourceAndButtons%0A%09self%20disableSaveButton.%0A%09classButtons%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09html%20button%0A%09%09%09with%3A%20%27Rename%20class%27%3B%0A%09%09%09onClick%3A%20%5Bself%20renameClass%5D.%0A%09%09html%20button%0A%09%09%09with%3A%20%27Remove%20class%27%3B%0A%09%09%09onClick%3A%20%5Bself%20removeClass%5D.%0A%09%09html%20button%0A%09%09%09with%3A%20%27References%27%3B%0A%09%09%09onClick%3A%20%5Bself%20searchClassReferences%5D%5D.%0A%09methodButtons%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09html%20button%0A%09%09%09with%3A%20%27Remove%20method%27%3B%0A%09%09%09onClick%3A%20%5Bself%20removeMethod%5D.%0A%09%09html%20select%20%0A%09%20%20%20%20%09%09onChange%3A%20%5B%3Ae%20%3Aselect%20%7C%20self%20setMethodProtocol%3A%20select%20val%5D%3B%0A%09%20%20%20%20%09%09with%3A%20%5B%0A%09%09%09%09html%20option%0A%09%09%20%20%20%20%09%09%09with%3A%20%27Method%20protocol%27%3B%0A%09%09%09%09%09at%3A%20%27disabled%27%20put%3A%20%27disabled%27.%0A%09%09%09%09html%20option%0A%09%09%20%20%20%20%09%09%09class%3A%20%27important%27%3B%0A%09%09%20%20%20%20%09%09%09with%3A%20%27New...%27.%0A%09%09%09%09self%20protocols%20do%3A%20%5B%3Aeach%20%7C%0A%09%09%20%20%20%20%09%09%09html%20option%20with%3A%20each%5D%5D.%0A%09%09selectedMethod%20isNil%20ifFalse%3A%20%5B%0A%09%09%09html%20select%20%0A%09%20%20%20%20%09%09%09onChange%3A%20%5B%3Ae%20%3Aselect%20%7C%20self%20searchReferencesOf%3A%20select%20val%5D%3B%0A%09%20%20%20%20%09%09%09with%3A%20%5B%0A%09%09%09%09%09html%20option%0A%09%09%20%20%20%20%09%09%09%09with%3A%20%27References%27%3B%0A%09%09%09%09%09%09at%3A%20%27disabled%27%20put%3A%20%27disabled%27.%0A%09%09%09%09%09html%20option%0A%09%09%20%20%20%20%09%09%09%09class%3A%20%27important%27%3B%0A%09%09%20%20%20%20%09%09%09%09with%3A%20selectedMethod%20selector.%0A%09%09%09%09%09selectedMethod%20messageSends%20sorted%20do%3A%20%5B%3Aeach%20%7C%0A%09%09%20%20%20%20%09%09%09%09html%20option%20with%3A%20each%5D%5D%5D%5D.%0A%20%20%20%20%09selectedMethod%20isNil%0A%09%09ifTrue%3A%20%5B%0A%09%20%20%20%20%09%09self%20hideMethodButtons.%0A%09%20%20%20%20%09%09%09%28selectedClass%20isNil%20or%3A%20%5BselectedProtocol%20notNil%5D%29%0A%09%09%09%09%09ifTrue%3A%20%5Bself%20hideClassButtons%5D%0A%09%20%20%20%20%09%09%09%09ifFalse%3A%20%5Bself%20showClassButtons%5D%5D%0A%09%09ifFalse%3A%20%5B%0A%09%20%20%20%20%09%09self%20hideClassButtons.%0A%09%20%20%20%20%09%09self%20showMethodButtons%5D.%0A%20%20%20%20%09sourceTextarea%20asJQuery%20val%3A%20self%20source%0A'),
  1529. messageSends: ["disableSaveButton", "contents:", "with:", "onClick:", "renameClass", "button", "removeClass", "searchClassReferences", "removeMethod", "onChange:", "setMethodProtocol:", "val", "at:put:", "option", "class:", "do:", "protocols", "select", "ifFalse:", "isNil", "searchReferencesOf:", "selector", "sorted", "messageSends", "ifTrue:ifFalse:", "hideMethodButtons", "or:", "notNil", "hideClassButtons", "showClassButtons", "showMethodButtons", "val:", "asJQuery", "source"],
  1530. referencedClasses: []
  1531. }),
  1532. smalltalk.Browser);
  1533. smalltalk.addMethod(
  1534. '_canBeClosed',
  1535. smalltalk.method({
  1536. selector: 'canBeClosed',
  1537. category: 'testing',
  1538. fn: function (){
  1539. var self=this;
  1540. return true;
  1541. return self;},
  1542. source: unescape('canBeClosed%0A%20%20%20%20%5Etrue%0A'),
  1543. messageSends: [],
  1544. referencedClasses: []
  1545. }),
  1546. smalltalk.Browser);
  1547. smalltalk.addMethod(
  1548. '_renameClass',
  1549. smalltalk.method({
  1550. selector: 'renameClass',
  1551. category: 'actions',
  1552. fn: function (){
  1553. var self=this;
  1554. var newName=nil;
  1555. newName=smalltalk.send(self, "_prompt_", [smalltalk.send("Rename class ", "__comma", [smalltalk.send(self['@selectedClass'], "_name", [])])]);
  1556. smalltalk.send(smalltalk.send(newName, "_notEmpty", []), "_ifTrue_", [(function(){smalltalk.send(self['@selectedClass'], "_rename_", [newName]);return (function($rec){smalltalk.send($rec, "_updateClassesList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})]);
  1557. return self;},
  1558. source: unescape('renameClass%0A%20%20%20%20%7C%20newName%20%7C%0A%20%20%20%20newName%20%3A%3D%20self%20prompt%3A%20%27Rename%20class%20%27%2C%20selectedClass%20name.%0A%20%20%20%20newName%20notEmpty%20ifTrue%3A%20%5B%0A%09selectedClass%20rename%3A%20newName.%0A%09self%20%0A%09%09updateClassesList%3B%0A%09%09updateSourceAndButtons%5D%0A'),
  1559. messageSends: ["prompt:", unescape("%2C"), "name", "ifTrue:", "notEmpty", "rename:", "updateClassesList", "updateSourceAndButtons"],
  1560. referencedClasses: []
  1561. }),
  1562. smalltalk.Browser);
  1563. smalltalk.addMethod(
  1564. '_addInstanceVariableNamed_toClass_',
  1565. smalltalk.method({
  1566. selector: 'addInstanceVariableNamed:toClass:',
  1567. category: 'actions',
  1568. fn: function (aString, aClass){
  1569. var self=this;
  1570. smalltalk.send(smalltalk.send(smalltalk.ClassBuilder, "_new", []), "_addSubclassOf_named_instanceVariableNames_", [smalltalk.send(aClass, "_superclass", []), smalltalk.send(aClass, "_name", []), (function($rec){smalltalk.send($rec, "_add_", [aString]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(smalltalk.send(aClass, "_instanceVariableNames", []), "_copy", []))]);
  1571. return self;},
  1572. source: unescape('addInstanceVariableNamed%3A%20aString%20toClass%3A%20aClass%0A%09ClassBuilder%20new%0A%09%09addSubclassOf%3A%20aClass%20superclass%20named%3A%20aClass%20name%20instanceVariableNames%3A%20%28aClass%20instanceVariableNames%20copy%20add%3A%20aString%3B%20yourself%29'),
  1573. messageSends: ["addSubclassOf:named:instanceVariableNames:", "new", "superclass", "name", "add:", "yourself", "copy", "instanceVariableNames"],
  1574. referencedClasses: [smalltalk.ClassBuilder]
  1575. }),
  1576. smalltalk.Browser);
  1577. smalltalk.addMethod(
  1578. '_searchReferencesOf_',
  1579. smalltalk.method({
  1580. selector: 'searchReferencesOf:',
  1581. category: 'actions',
  1582. fn: function (aString){
  1583. var self=this;
  1584. smalltalk.send(smalltalk.ReferencesBrowser, "_search_", [aString]);
  1585. return self;},
  1586. source: unescape('searchReferencesOf%3A%20aString%0A%09ReferencesBrowser%20search%3A%20aString'),
  1587. messageSends: ["search:"],
  1588. referencedClasses: [smalltalk.nil]
  1589. }),
  1590. smalltalk.Browser);
  1591. smalltalk.addMethod(
  1592. '_searchClassReferences',
  1593. smalltalk.method({
  1594. selector: 'searchClassReferences',
  1595. category: 'actions',
  1596. fn: function (){
  1597. var self=this;
  1598. smalltalk.send(smalltalk.ReferencesBrowser, "_search_", [smalltalk.send(self['@selectedClass'], "_name", [])]);
  1599. return self;},
  1600. source: unescape('searchClassReferences%0A%09ReferencesBrowser%20search%3A%20selectedClass%20name'),
  1601. messageSends: ["search:", "name"],
  1602. referencedClasses: [smalltalk.ReferencesBrowser]
  1603. }),
  1604. smalltalk.Browser);
  1605. smalltalk.addMethod(
  1606. '_openOn_',
  1607. smalltalk.method({
  1608. selector: 'openOn:',
  1609. category: 'convenience',
  1610. fn: function (aClass){
  1611. var self=this;
  1612. return (function($rec){smalltalk.send($rec, "_open", []);smalltalk.send($rec, "_selectCategory_", [smalltalk.send(aClass, "_category", [])]);return smalltalk.send($rec, "_selectClass_", [aClass]);})(smalltalk.send(self, "_new", []));
  1613. return self;},
  1614. source: unescape('openOn%3A%20aClass%0A%20%20%20%20%5Eself%20new%0A%09open%3B%0A%09selectCategory%3A%20aClass%20category%3B%0A%09selectClass%3A%20aClass%0A'),
  1615. messageSends: ["open", "selectCategory:", "category", "selectClass:", "new"],
  1616. referencedClasses: []
  1617. }),
  1618. smalltalk.Browser.klass);
  1619. smalltalk.addMethod(
  1620. '_open',
  1621. smalltalk.method({
  1622. selector: 'open',
  1623. category: 'convenience',
  1624. fn: function (){
  1625. var self=this;
  1626. smalltalk.send(smalltalk.send(self, "_new", []), "_open", []);
  1627. return self;},
  1628. source: unescape('open%0A%20%20%20%20self%20new%20open%0A'),
  1629. messageSends: ["open", "new"],
  1630. referencedClasses: []
  1631. }),
  1632. smalltalk.Browser.klass);
  1633. smalltalk.addMethod(
  1634. '_commitPath',
  1635. smalltalk.method({
  1636. selector: 'commitPath',
  1637. category: 'accessing',
  1638. fn: function (){
  1639. var self=this;
  1640. return "js";
  1641. return self;},
  1642. source: unescape('commitPath%0A%09%5E%27js%27'),
  1643. messageSends: [],
  1644. referencedClasses: []
  1645. }),
  1646. smalltalk.Browser.klass);
  1647. smalltalk.addClass('Inspector', smalltalk.TabWidget, ['label', 'variables', 'object', 'selectedVariable', 'variablesList', 'valueTextarea', 'workspaceTextarea', 'diveButton'], 'IDE');
  1648. smalltalk.addMethod(
  1649. '_label',
  1650. smalltalk.method({
  1651. selector: 'label',
  1652. category: 'accessing',
  1653. fn: function (){
  1654. var self=this;
  1655. return smalltalk.send(self['@label'], "_ifNil_", [(function(){return unescape("Inspector%20%28nil%29");})]);
  1656. return self;},
  1657. source: unescape('label%0A%09%5Elabel%20ifNil%3A%20%5B%27Inspector%20%28nil%29%27%5D'),
  1658. messageSends: ["ifNil:"],
  1659. referencedClasses: []
  1660. }),
  1661. smalltalk.Inspector);
  1662. smalltalk.addMethod(
  1663. '_canBeClosed',
  1664. smalltalk.method({
  1665. selector: 'canBeClosed',
  1666. category: 'testing',
  1667. fn: function (){
  1668. var self=this;
  1669. return true;
  1670. return self;},
  1671. source: unescape('canBeClosed%0A%09%5Etrue'),
  1672. messageSends: [],
  1673. referencedClasses: []
  1674. }),
  1675. smalltalk.Inspector);
  1676. smalltalk.addMethod(
  1677. '_inspect_',
  1678. smalltalk.method({
  1679. selector: 'inspect:',
  1680. category: 'actions',
  1681. fn: function (anObject){
  1682. var self=this;
  1683. self['@object']=anObject;
  1684. self['@variables']=[];
  1685. smalltalk.send(self['@object'], "_inspectOn_", [self]);
  1686. return self;},
  1687. source: unescape('inspect%3A%20anObject%0A%09object%20%3A%3D%20anObject.%0A%09variables%20%3A%3D%20%23%28%29.%0A%09object%20inspectOn%3A%20self'),
  1688. messageSends: ["inspectOn:"],
  1689. referencedClasses: []
  1690. }),
  1691. smalltalk.Inspector);
  1692. smalltalk.addMethod(
  1693. '_variables',
  1694. smalltalk.method({
  1695. selector: 'variables',
  1696. category: 'accessing',
  1697. fn: function (){
  1698. var self=this;
  1699. return self['@variables'];
  1700. return self;},
  1701. source: unescape('variables%0A%09%5Evariables'),
  1702. messageSends: [],
  1703. referencedClasses: []
  1704. }),
  1705. smalltalk.Inspector);
  1706. smalltalk.addMethod(
  1707. '_setVariables_',
  1708. smalltalk.method({
  1709. selector: 'setVariables:',
  1710. category: 'accessing',
  1711. fn: function (aCollection){
  1712. var self=this;
  1713. self['@variables']=aCollection;
  1714. return self;},
  1715. source: unescape('setVariables%3A%20aCollection%0A%09variables%20%3A%3D%20aCollection'),
  1716. messageSends: [],
  1717. referencedClasses: []
  1718. }),
  1719. smalltalk.Inspector);
  1720. smalltalk.addMethod(
  1721. '_setLabel_',
  1722. smalltalk.method({
  1723. selector: 'setLabel:',
  1724. category: 'accessing',
  1725. fn: function (aString){
  1726. var self=this;
  1727. self['@label']=aString;
  1728. return self;},
  1729. source: unescape('setLabel%3A%20aString%0A%09label%20%3A%3D%20aString'),
  1730. messageSends: [],
  1731. referencedClasses: []
  1732. }),
  1733. smalltalk.Inspector);
  1734. smalltalk.addMethod(
  1735. '_renderBoxOn_',
  1736. smalltalk.method({
  1737. selector: 'renderBoxOn:',
  1738. category: 'rendering',
  1739. fn: function (html){
  1740. var self=this;
  1741. (function($rec){smalltalk.send($rec, "_renderTopPanelOn_", [html]);return smalltalk.send($rec, "_renderBottomPanelOn_", [html]);})(self);
  1742. return self;},
  1743. source: unescape('renderBoxOn%3A%20html%0A%09self%20%0A%09%09renderTopPanelOn%3A%20html%3B%0A%09%09renderBottomPanelOn%3A%20html'),
  1744. messageSends: ["renderTopPanelOn:", "renderBottomPanelOn:"],
  1745. referencedClasses: []
  1746. }),
  1747. smalltalk.Inspector);
  1748. smalltalk.addMethod(
  1749. '_renderTopPanelOn_',
  1750. smalltalk.method({
  1751. selector: 'renderTopPanelOn:',
  1752. category: 'rendering',
  1753. fn: function (html){
  1754. var self=this;
  1755. (function($rec){smalltalk.send($rec, "_class_", ["top"]);return smalltalk.send($rec, "_with_", [(function(){self['@variablesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column variables"]);self['@valueTextarea']=(function($rec){smalltalk.send($rec, "_class_", ["jt_column value"]);return smalltalk.send($rec, "_at_put_", ["readonly", "readonly"]);})(smalltalk.send(html, "_textarea", []));(function($rec){smalltalk.send($rec, "_updateVariablesList", []);return smalltalk.send($rec, "_updateValueTextarea", []);})(self);return smalltalk.send(smalltalk.send(html, "_div", []), "_class_", ["jt_clear"]);})]);})(smalltalk.send(html, "_div", []));
  1756. return self;},
  1757. source: unescape('renderTopPanelOn%3A%20html%0A%20%20%20%20html%20div%20%0A%09class%3A%20%27top%27%3B%20%0A%09with%3A%20%5B%0A%09%20%20%20%20variablesList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20variables%27.%0A%09%20%20%20%20valueTextarea%20%3A%3D%20html%20textarea%20class%3A%20%27jt_column%20value%27%3B%20at%3A%20%27readonly%27%20put%3A%20%27readonly%27.%0A%09%20%20%20%20self%0A%09%09updateVariablesList%3B%0A%09%09updateValueTextarea.%0A%09%20%20%20%20html%20div%20class%3A%20%27jt_clear%27%5D%0A'),
  1758. messageSends: ["class:", "with:", "ul", "at:put:", "textarea", "updateVariablesList", "updateValueTextarea", "div"],
  1759. referencedClasses: []
  1760. }),
  1761. smalltalk.Inspector);
  1762. smalltalk.addMethod(
  1763. '_renderBottomPanelOn_',
  1764. smalltalk.method({
  1765. selector: 'renderBottomPanelOn:',
  1766. category: 'rendering',
  1767. fn: function (html){
  1768. var self=this;
  1769. (function($rec){smalltalk.send($rec, "_class_", ["jt_sourceCode"]);return smalltalk.send($rec, "_with_", [(function(){self['@workspaceTextarea']=(function($rec){smalltalk.send($rec, "_class_", ["source"]);return smalltalk.send($rec, "_at_put_", ["spellcheck", "false"]);})(smalltalk.send(html, "_textarea", []));return smalltalk.send(smalltalk.send(self['@workspaceTextarea'], "_asJQuery", []), "_call_", ["tabby"]);})]);})(smalltalk.send(html, "_div", []));
  1770. return self;},
  1771. source: unescape('renderBottomPanelOn%3A%20html%0A%20%20%20%20html%20div%0A%09class%3A%20%27jt_sourceCode%27%3B%0A%09with%3A%20%5B%0A%09%20%20%20%20workspaceTextarea%20%3A%3D%20html%20textarea%20%0A%09%09class%3A%20%27source%27%3B%0A%09%09at%3A%20%27spellcheck%27%20put%3A%20%27false%27.%0A%09%20%20%20%20workspaceTextarea%20asJQuery%20call%3A%20%27tabby%27%5D%0A'),
  1772. messageSends: ["class:", "with:", "at:put:", "textarea", "call:", "asJQuery", "div"],
  1773. referencedClasses: []
  1774. }),
  1775. smalltalk.Inspector);
  1776. smalltalk.addMethod(
  1777. '_updateVariablesList',
  1778. smalltalk.method({
  1779. selector: 'updateVariablesList',
  1780. category: 'updating',
  1781. fn: function (){
  1782. var self=this;
  1783. smalltalk.send(self['@variablesList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_variables", []), "_keys", []), "_do_", [(function(each){var li=nil;
  1784. li=smalltalk.send(html, "_li", []);(function($rec){smalltalk.send($rec, "_with_", [each]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectVariable_", [each]);})]);})(li);return smalltalk.send(smalltalk.send(smalltalk.send(self, "_selectedVariable", []), "__eq", [each]), "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);})]);})]);
  1785. return self;},
  1786. source: unescape('updateVariablesList%0A%09variablesList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09self%20variables%20keys%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20%7C%0A%09%09%09li%20%3A%3D%20html%20li.%0A%09%09%09li%0A%09%09%09%09with%3A%20each%3B%0A%09%09%09%09onClick%3A%20%5Bself%20selectVariable%3A%20each%5D.%0A%09%09%09self%20selectedVariable%20%3D%20each%20ifTrue%3A%20%5B%0A%09%09%09%09li%20class%3A%20%27selected%27%5D%5D%5D'),
  1787. messageSends: ["contents:", "do:", "keys", "variables", "li", "with:", "onClick:", "selectVariable:", "ifTrue:", unescape("%3D"), "selectedVariable", "class:"],
  1788. referencedClasses: []
  1789. }),
  1790. smalltalk.Inspector);
  1791. smalltalk.addMethod(
  1792. '_selectedVariable',
  1793. smalltalk.method({
  1794. selector: 'selectedVariable',
  1795. category: 'accessing',
  1796. fn: function (){
  1797. var self=this;
  1798. return self['@selectedVariable'];
  1799. return self;},
  1800. source: unescape('selectedVariable%0A%09%5EselectedVariable'),
  1801. messageSends: [],
  1802. referencedClasses: []
  1803. }),
  1804. smalltalk.Inspector);
  1805. smalltalk.addMethod(
  1806. '_selectedVariable_',
  1807. smalltalk.method({
  1808. selector: 'selectedVariable:',
  1809. category: 'accessing',
  1810. fn: function (aString){
  1811. var self=this;
  1812. self['@selectedVariable']=aString;
  1813. return self;},
  1814. source: unescape('selectedVariable%3A%20aString%0A%09selectedVariable%20%3A%3D%20aString'),
  1815. messageSends: [],
  1816. referencedClasses: []
  1817. }),
  1818. smalltalk.Inspector);
  1819. smalltalk.addMethod(
  1820. '_selectVariable_',
  1821. smalltalk.method({
  1822. selector: 'selectVariable:',
  1823. category: 'updating',
  1824. fn: function (aString){
  1825. var self=this;
  1826. smalltalk.send(self, "_selectedVariable_", [aString]);
  1827. (function($rec){smalltalk.send($rec, "_updateVariablesList", []);smalltalk.send($rec, "_updateValueTextarea", []);return smalltalk.send($rec, "_updateButtons", []);})(self);
  1828. return self;},
  1829. source: unescape('selectVariable%3A%20aString%0A%09self%20selectedVariable%3A%20aString.%0A%09self%20%0A%09%09updateVariablesList%3B%0A%09%09updateValueTextarea%3B%0A%09%09updateButtons'),
  1830. messageSends: ["selectedVariable:", "updateVariablesList", "updateValueTextarea", "updateButtons"],
  1831. referencedClasses: []
  1832. }),
  1833. smalltalk.Inspector);
  1834. smalltalk.addMethod(
  1835. '_updateValueTextarea',
  1836. smalltalk.method({
  1837. selector: 'updateValueTextarea',
  1838. category: 'updating',
  1839. fn: function (){
  1840. var self=this;
  1841. smalltalk.send(smalltalk.send(self['@valueTextarea'], "_asJQuery", []), "_val_", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_selectedVariable", []), "_isNil", []), "_ifTrue_ifFalse_", [(function(){return "";}), (function(){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_variables", []), "_at_", [smalltalk.send(self, "_selectedVariable", [])]), "_printString", []);})])]);
  1842. return self;},
  1843. source: unescape('updateValueTextarea%0A%09valueTextarea%20asJQuery%20val%3A%20%28self%20selectedVariable%20isNil%0A%09%09ifTrue%3A%20%5B%27%27%5D%0A%09%09ifFalse%3A%20%5B%28self%20variables%20at%3A%20self%20selectedVariable%29%20printString%5D%29'),
  1844. messageSends: ["val:", "asJQuery", "ifTrue:ifFalse:", "isNil", "selectedVariable", "printString", "at:", "variables"],
  1845. referencedClasses: []
  1846. }),
  1847. smalltalk.Inspector);
  1848. smalltalk.addMethod(
  1849. '_renderButtonsOn_',
  1850. smalltalk.method({
  1851. selector: 'renderButtonsOn:',
  1852. category: 'rendering',
  1853. fn: function (html){
  1854. var self=this;
  1855. (function($rec){smalltalk.send($rec, "_with_", ["Refresh"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_refresh", []);})]);})(smalltalk.send(html, "_button", []));
  1856. self['@diveButton']=(function($rec){smalltalk.send($rec, "_with_", ["Dive"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_dive", []);})]);})(smalltalk.send(html, "_button", []));
  1857. smalltalk.send(self, "_updateButtons", []);
  1858. return self;},
  1859. source: unescape('renderButtonsOn%3A%20html%0A%09html%20button%0A%09%09with%3A%20%27Refresh%27%3B%0A%09%09onClick%3A%20%5Bself%20refresh%5D.%0A%09diveButton%20%3A%3D%20html%20button%20%0A%09%09with%3A%20%27Dive%27%3B%20%0A%09%09onClick%3A%20%5Bself%20dive%5D.%0A%09self%20updateButtons%0A%09'),
  1860. messageSends: ["with:", "onClick:", "refresh", "button", "dive", "updateButtons"],
  1861. referencedClasses: []
  1862. }),
  1863. smalltalk.Inspector);
  1864. smalltalk.addMethod(
  1865. '_dive',
  1866. smalltalk.method({
  1867. selector: 'dive',
  1868. category: 'actions',
  1869. fn: function (){
  1870. var self=this;
  1871. smalltalk.send(smalltalk.send(smalltalk.send(self, "_variables", []), "_at_", [smalltalk.send(self, "_selectedVariable", [])]), "_inspect", []);
  1872. return self;},
  1873. source: unescape('dive%0A%09%28self%20variables%20at%3A%20self%20selectedVariable%29%20inspect'),
  1874. messageSends: ["inspect", "at:", "variables", "selectedVariable"],
  1875. referencedClasses: []
  1876. }),
  1877. smalltalk.Inspector);
  1878. smalltalk.addMethod(
  1879. '_updateButtons',
  1880. smalltalk.method({
  1881. selector: 'updateButtons',
  1882. category: 'updating',
  1883. fn: function (){
  1884. var self=this;
  1885. smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_selectedVariable", []), "_notNil", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_variables", []), "_at_", [smalltalk.send(self, "_selectedVariable", [])]), "_notNil", []);})]), "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self['@diveButton'], "_at_put_", ["disabled", true]);}), (function(){return smalltalk.send(self['@diveButton'], "_removeAt_", ["disabled"]);})]);
  1886. return self;},
  1887. source: unescape('updateButtons%0A%09%28self%20selectedVariable%20notNil%20and%3A%20%5B%28self%20variables%20at%3A%20self%20selectedVariable%29%20notNil%5D%29%0A%09%09ifFalse%3A%20%5BdiveButton%20at%3A%20%27disabled%27%20put%3A%20true%5D%20%0A%09%09ifTrue%3A%20%5BdiveButton%20removeAt%3A%20%27disabled%27%5D%0A%09%09'),
  1888. messageSends: ["ifFalse:ifTrue:", "and:", "notNil", "selectedVariable", "at:", "variables", "at:put:", "removeAt:"],
  1889. referencedClasses: []
  1890. }),
  1891. smalltalk.Inspector);
  1892. smalltalk.addMethod(
  1893. '_refresh',
  1894. smalltalk.method({
  1895. selector: 'refresh',
  1896. category: 'actions',
  1897. fn: function (){
  1898. var self=this;
  1899. (function($rec){smalltalk.send($rec, "_inspect_", [self['@object']]);smalltalk.send($rec, "_updateVariablesList", []);return smalltalk.send($rec, "_updateValueTextarea", []);})(self);
  1900. return self;},
  1901. source: unescape('refresh%0A%09self%20%0A%09%09inspect%3A%20object%3B%20%0A%09%09updateVariablesList%3B%0A%09%09updateValueTextarea'),
  1902. messageSends: ["inspect:", "updateVariablesList", "updateValueTextarea"],
  1903. referencedClasses: []
  1904. }),
  1905. smalltalk.Inspector);
  1906. smalltalk.addMethod(
  1907. '_on_',
  1908. smalltalk.method({
  1909. selector: 'on:',
  1910. category: 'instance creation',
  1911. fn: function (anObject){
  1912. var self=this;
  1913. return (function($rec){smalltalk.send($rec, "_inspect_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  1914. return self;},
  1915. source: unescape('on%3A%20anObject%0A%09%5Eself%20new%0A%09%09inspect%3A%20anObject%3B%0A%09%09yourself'),
  1916. messageSends: ["inspect:", "yourself", "new"],
  1917. referencedClasses: []
  1918. }),
  1919. smalltalk.Inspector.klass);
  1920. smalltalk.addClass('ReferencesBrowser', smalltalk.TabWidget, ['implementors', 'senders', 'implementorsList', 'input', 'timer', 'selector', 'sendersList', 'referencedClasses', 'referencedClassesList'], 'IDE');
  1921. smalltalk.addMethod(
  1922. '_renderBoxOn_',
  1923. smalltalk.method({
  1924. selector: 'renderBoxOn:',
  1925. category: 'rendering',
  1926. fn: function (html){
  1927. var self=this;
  1928. (function($rec){smalltalk.send($rec, "_renderInputOn_", [html]);smalltalk.send($rec, "_renderImplementorsOn_", [html]);smalltalk.send($rec, "_renderSendersOn_", [html]);return smalltalk.send($rec, "_renderReferencedClassesOn_", [html]);})(self);
  1929. return self;},
  1930. source: unescape('renderBoxOn%3A%20html%0A%09self%20%0A%09%09renderInputOn%3A%20html%3B%0A%09%09renderImplementorsOn%3A%20html%3B%0A%09%09renderSendersOn%3A%20html%3B%0A%09%09renderReferencedClassesOn%3A%20html'),
  1931. messageSends: ["renderInputOn:", "renderImplementorsOn:", "renderSendersOn:", "renderReferencedClassesOn:"],
  1932. referencedClasses: []
  1933. }),
  1934. smalltalk.ReferencesBrowser);
  1935. smalltalk.addMethod(
  1936. '_renderInputOn_',
  1937. smalltalk.method({
  1938. selector: 'renderInputOn:',
  1939. category: 'rendering',
  1940. fn: function (html){
  1941. var self=this;
  1942. self['@input']=(function($rec){smalltalk.send($rec, "_class_", ["implementors"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_input", []));
  1943. smalltalk.send(smalltalk.send(self['@input'], "_asJQuery", []), "_val_", [self['@selector']]);
  1944. smalltalk.send(self, "_setInputEvents", []);
  1945. return self;},
  1946. source: unescape('renderInputOn%3A%20html%0A%09input%20%3A%3D%20html%20input%20%0A%09%09class%3A%20%27implementors%27%3B%0A%09%09yourself.%0A%09input%20asJQuery%20val%3A%20selector.%0A%09self%20setInputEvents'),
  1947. messageSends: ["class:", "yourself", "input", "val:", "asJQuery", "setInputEvents"],
  1948. referencedClasses: []
  1949. }),
  1950. smalltalk.ReferencesBrowser);
  1951. smalltalk.addMethod(
  1952. '_updateImplementorsList',
  1953. smalltalk.method({
  1954. selector: 'updateImplementorsList',
  1955. category: 'updating',
  1956. fn: function (){
  1957. var self=this;
  1958. smalltalk.send(self['@implementorsList'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_class_", ["column_label"]);smalltalk.send($rec, "_with_", ["Implementors"]);return smalltalk.send($rec, "_style_", [unescape("font-weight%3A%20bold")]);})(smalltalk.send(html, "_li", []));return smalltalk.send(smalltalk.send(self, "_implementors", []), "_do_", [(function(each){var li=nil;
  1959. li=smalltalk.send(html, "_li", []);return (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(each, "_methodClass", []), "_asString", []), "__comma", [unescape("%20%3E%3E%20")]), "__comma", [smalltalk.send(self, "_selector", [])])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_openBrowserOn_", [each]);})]);})(li);})]);})]);
  1960. return self;},
  1961. source: unescape('updateImplementorsList%0A%20%20%20%20implementorsList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09html%20li%0A%09%09class%3A%20%27column_label%27%3B%20%0A%09%09with%3A%20%27Implementors%27%3B%0A%09%09style%3A%20%27font-weight%3A%20bold%27.%0A%09self%20implementors%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20%7C%0A%09%20%20%20%20li%20%3A%3D%20html%20li.%0A%09%20%20%20%20li%0A%09%09with%3A%20%28each%20methodClass%20asString%2C%20%27%20%3E%3E%20%27%2C%20self%20selector%29%3B%0A%09%09onClick%3A%20%5Bself%20openBrowserOn%3A%20each%5D%5D%5D'),
  1962. messageSends: ["contents:", "class:", "with:", "style:", "li", "do:", "implementors", unescape("%2C"), "asString", "methodClass", "selector", "onClick:", "openBrowserOn:"],
  1963. referencedClasses: []
  1964. }),
  1965. smalltalk.ReferencesBrowser);
  1966. smalltalk.addMethod(
  1967. '_implementors',
  1968. smalltalk.method({
  1969. selector: 'implementors',
  1970. category: 'accessing',
  1971. fn: function (){
  1972. var self=this;
  1973. return smalltalk.send(self['@implementors'], "_ifNil_", [(function(){return self['@implementors']=smalltalk.send(smalltalk.Array, "_new", []);})]);
  1974. return self;},
  1975. source: unescape('implementors%0A%09%5Eimplementors%20ifNil%3A%20%5Bimplementors%20%3A%3D%20Array%20new%5D'),
  1976. messageSends: ["ifNil:", "new"],
  1977. referencedClasses: [smalltalk.Array]
  1978. }),
  1979. smalltalk.ReferencesBrowser);
  1980. smalltalk.addMethod(
  1981. '_label',
  1982. smalltalk.method({
  1983. selector: 'label',
  1984. category: 'accessing',
  1985. fn: function (){
  1986. var self=this;
  1987. return unescape("%5BReferencesBrowser%5D");
  1988. return self;},
  1989. source: unescape('label%0A%09%5E%27%5BReferencesBrowser%5D%27'),
  1990. messageSends: [],
  1991. referencedClasses: []
  1992. }),
  1993. smalltalk.ReferencesBrowser);
  1994. smalltalk.addMethod(
  1995. '_canBeClosed',
  1996. smalltalk.method({
  1997. selector: 'canBeClosed',
  1998. category: 'testing',
  1999. fn: function (){
  2000. var self=this;
  2001. return true;
  2002. return self;},
  2003. source: unescape('canBeClosed%0A%09%5Etrue'),
  2004. messageSends: [],
  2005. referencedClasses: []
  2006. }),
  2007. smalltalk.ReferencesBrowser);
  2008. smalltalk.addMethod(
  2009. '_setInputEvents',
  2010. smalltalk.method({
  2011. selector: 'setInputEvents',
  2012. category: 'private',
  2013. fn: function (){
  2014. var self=this;
  2015. (function($rec){smalltalk.send($rec, "_onKeyUp_", [(function(){return self['@timer']=smalltalk.send((function(){return smalltalk.send(self, "_search_", [smalltalk.send(smalltalk.send(self['@input'], "_asJQuery", []), "_val", [])]);}), "_valueWithTimeout_", [(100)]);})]);return smalltalk.send($rec, "_onKeyDown_", [(function(){return smalltalk.send(self['@timer'], "_ifNotNil_", [(function(){return smalltalk.send(self['@timer'], "_clearTimeout", []);})]);})]);})(self['@input']);
  2016. return self;},
  2017. source: unescape('setInputEvents%0A%09input%0A%09%09onKeyUp%3A%20%5Btimer%20%3A%3D%20%5Bself%20search%3A%20input%20asJQuery%20val%5D%20valueWithTimeout%3A%20100%5D%3B%0A%09%09onKeyDown%3A%20%5Btimer%20ifNotNil%3A%20%5Btimer%20clearTimeout%5D%5D'),
  2018. messageSends: ["onKeyUp:", "valueWithTimeout:", "search:", "val", "asJQuery", "onKeyDown:", "ifNotNil:", "clearTimeout"],
  2019. referencedClasses: []
  2020. }),
  2021. smalltalk.ReferencesBrowser);
  2022. smalltalk.addMethod(
  2023. '_selector',
  2024. smalltalk.method({
  2025. selector: 'selector',
  2026. category: 'accessing',
  2027. fn: function (){
  2028. var self=this;
  2029. return self['@selector'];
  2030. return self;},
  2031. source: unescape('selector%0A%09%5Eselector'),
  2032. messageSends: [],
  2033. referencedClasses: []
  2034. }),
  2035. smalltalk.ReferencesBrowser);
  2036. smalltalk.addMethod(
  2037. '_openBrowserOn_',
  2038. smalltalk.method({
  2039. selector: 'openBrowserOn:',
  2040. category: 'actions',
  2041. fn: function (aMethod){
  2042. var self=this;
  2043. var browser=nil;
  2044. browser=smalltalk.send(smalltalk.Browser, "_openOn_", [smalltalk.send(smalltalk.send(smalltalk.send(aMethod, "_class", []), "_isMetaclass", []), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(aMethod, "_methodClass", []), "_instanceClass", []);}), (function(){return smalltalk.send(aMethod, "_methodClass", []);})])]);
  2045. smalltalk.send(smalltalk.send(smalltalk.send(aMethod, "_methodClass", []), "_isMetaclass", []), "_ifTrue_", [(function(){return smalltalk.send(browser, "_selectTab_", ["class"]);})]);
  2046. (function($rec){smalltalk.send($rec, "_selectProtocol_", [smalltalk.send(aMethod, "_category", [])]);return smalltalk.send($rec, "_selectMethod_", [aMethod]);})(browser);
  2047. return self;},
  2048. source: unescape('openBrowserOn%3A%20aMethod%0A%20%20%20%20%20%20%20%7C%20browser%20%7C%0A%20%20%20%20%20%20%20browser%20%3A%3D%20Browser%20openOn%3A%20%28aMethod%20class%20isMetaclass%20%0A%09%09ifTrue%3A%20%5BaMethod%20methodClass%20instanceClass%5D%20ifFalse%3A%20%5BaMethod%20methodClass%5D%29.%0A%20%20%20%20%20%20%20aMethod%20methodClass%20isMetaclass%20ifTrue%3A%20%5Bbrowser%20selectTab%3A%20%23class%5D.%0A%20%20%20%20%20%20%20browser%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20selectProtocol%3A%20aMethod%20category%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20selectMethod%3A%20aMethod'),
  2049. messageSends: ["openOn:", "ifTrue:ifFalse:", "isMetaclass", "class", "instanceClass", "methodClass", "ifTrue:", "selectTab:", "selectProtocol:", "category", "selectMethod:"],
  2050. referencedClasses: [smalltalk.Browser]
  2051. }),
  2052. smalltalk.ReferencesBrowser);
  2053. smalltalk.addMethod(
  2054. '_senders',
  2055. smalltalk.method({
  2056. selector: 'senders',
  2057. category: 'accessing',
  2058. fn: function (){
  2059. var self=this;
  2060. return smalltalk.send(self['@senders'], "_ifNil_", [(function(){return self['@senders']=smalltalk.send(smalltalk.Array, "_new", []);})]);
  2061. return self;},
  2062. source: unescape('senders%0A%09%5Esenders%20ifNil%3A%20%5Bsenders%20%3A%3D%20Array%20new%5D'),
  2063. messageSends: ["ifNil:", "new"],
  2064. referencedClasses: [smalltalk.Array]
  2065. }),
  2066. smalltalk.ReferencesBrowser);
  2067. smalltalk.addMethod(
  2068. '_renderImplementorsOn_',
  2069. smalltalk.method({
  2070. selector: 'renderImplementorsOn:',
  2071. category: 'rendering',
  2072. fn: function (html){
  2073. var self=this;
  2074. self['@implementorsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column implementors"]);
  2075. smalltalk.send(self, "_updateImplementorsList", []);
  2076. return self;},
  2077. source: unescape('renderImplementorsOn%3A%20html%0A%20%20%20%20%09implementorsList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20implementors%27.%0A%09self%20updateImplementorsList'),
  2078. messageSends: ["class:", "ul", "updateImplementorsList"],
  2079. referencedClasses: []
  2080. }),
  2081. smalltalk.ReferencesBrowser);
  2082. smalltalk.addMethod(
  2083. '_renderSendersOn_',
  2084. smalltalk.method({
  2085. selector: 'renderSendersOn:',
  2086. category: 'rendering',
  2087. fn: function (html){
  2088. var self=this;
  2089. self['@sendersList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column senders"]);
  2090. smalltalk.send(self, "_updateSendersList", []);
  2091. return self;},
  2092. source: unescape('renderSendersOn%3A%20html%0A%20%20%20%20%09sendersList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20senders%27.%0A%09self%20updateSendersList'),
  2093. messageSends: ["class:", "ul", "updateSendersList"],
  2094. referencedClasses: []
  2095. }),
  2096. smalltalk.ReferencesBrowser);
  2097. smalltalk.addMethod(
  2098. '_updateSendersList',
  2099. smalltalk.method({
  2100. selector: 'updateSendersList',
  2101. category: 'updating',
  2102. fn: function (){
  2103. var self=this;
  2104. smalltalk.send(self['@sendersList'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_class_", ["column_label"]);smalltalk.send($rec, "_with_", ["Senders"]);return smalltalk.send($rec, "_style_", [unescape("font-weight%3A%20bold")]);})(smalltalk.send(html, "_li", []));return smalltalk.send(smalltalk.send(self, "_senders", []), "_do_", [(function(each){return (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(each, "_methodClass", []), "_asString", []), "__comma", [unescape("%20%3E%3E%20")]), "__comma", [smalltalk.send(each, "_selector", [])])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_openBrowserOn_", [each]);})]);})(smalltalk.send(html, "_li", []));})]);})]);
  2105. return self;},
  2106. source: unescape('updateSendersList%0A%20%20%20%20%09sendersList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09html%20li%0A%09%09class%3A%20%27column_label%27%3B%20%0A%09%09with%3A%20%27Senders%27%3B%0A%09%09style%3A%20%27font-weight%3A%20bold%27.%0A%09self%20senders%20do%3A%20%5B%3Aeach%20%7C%0A%09%09html%20li%0A%09%20%20%20%20%09%09with%3A%20%28each%20methodClass%20asString%2C%20%27%20%3E%3E%20%27%2C%20each%20selector%29%3B%0A%09%09%09onClick%3A%20%5Bself%20openBrowserOn%3A%20each%5D%5D%5D'),
  2107. messageSends: ["contents:", "class:", "with:", "style:", "li", "do:", "senders", unescape("%2C"), "asString", "methodClass", "selector", "onClick:", "openBrowserOn:"],
  2108. referencedClasses: []
  2109. }),
  2110. smalltalk.ReferencesBrowser);
  2111. smalltalk.addMethod(
  2112. '_searchReferencesFor_',
  2113. smalltalk.method({
  2114. selector: 'searchReferencesFor:',
  2115. category: 'actions',
  2116. fn: function (aString){
  2117. var self=this;
  2118. self['@selector']=aString;
  2119. self['@implementors']=smalltalk.send(smalltalk.Array, "_new", []);
  2120. self['@senders']=smalltalk.send(smalltalk.Array, "_new", []);
  2121. self['@referencedClasses']=smalltalk.send(smalltalk.Array, "_new", []);
  2122. smalltalk.send(smalltalk.send(self['@selector'], "_match_", [unescape("%5E%5BA-Z%5D")]), "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self, "_searchSelectorReferencesFor_", [self['@selector']]);}), (function(){return smalltalk.send(self, "_searchReferencedClassesFor_", [self['@selector']]);})]);
  2123. return self;},
  2124. source: unescape('searchReferencesFor%3A%20aString%0A%09selector%20%3A%3D%20aString.%0A%09implementors%20%3A%3D%20Array%20new.%0A%09senders%20%3A%3D%20Array%20new.%0A%09referencedClasses%20%3A%3D%20Array%20new.%0A%09%28selector%20match%3A%20%27%5E%5BA-Z%5D%27%29%20%0A%09%09ifFalse%3A%20%5Bself%20searchSelectorReferencesFor%3A%20selector%5D%0A%09%09ifTrue%3A%20%5Bself%20searchReferencedClassesFor%3A%20selector%5D'),
  2125. messageSends: ["new", "ifFalse:ifTrue:", "match:", "searchSelectorReferencesFor:", "searchReferencedClassesFor:"],
  2126. referencedClasses: [smalltalk.Array]
  2127. }),
  2128. smalltalk.ReferencesBrowser);
  2129. smalltalk.addMethod(
  2130. '_classesAndMetaclasses',
  2131. smalltalk.method({
  2132. selector: 'classesAndMetaclasses',
  2133. category: 'accessing',
  2134. fn: function (){
  2135. var self=this;
  2136. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.Smalltalk, "_current", []), "_classes", []), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.Smalltalk, "_current", []), "_classes", []), "_collect_", [(function(each){return smalltalk.send(each, "_class", []);})])]);
  2137. return self;},
  2138. source: unescape('classesAndMetaclasses%0A%09%5ESmalltalk%20current%20classes%2C%20%28Smalltalk%20current%20classes%20collect%3A%20%5B%3Aeach%20%7C%20each%20class%5D%29'),
  2139. messageSends: [unescape("%2C"), "classes", "current", "collect:", "class"],
  2140. referencedClasses: [smalltalk.Smalltalk]
  2141. }),
  2142. smalltalk.ReferencesBrowser);
  2143. smalltalk.addMethod(
  2144. '_initialize',
  2145. smalltalk.method({
  2146. selector: 'initialize',
  2147. category: 'initialization',
  2148. fn: function (){
  2149. var self=this;
  2150. smalltalk.send(self, "_initialize", [], smalltalk.TabWidget);
  2151. self['@selector']="";
  2152. return self;},
  2153. source: unescape('initialize%0A%09super%20initialize.%0A%09selector%20%3A%3D%20%27%27'),
  2154. messageSends: ["initialize"],
  2155. referencedClasses: []
  2156. }),
  2157. smalltalk.ReferencesBrowser);
  2158. smalltalk.addMethod(
  2159. '_search_',
  2160. smalltalk.method({
  2161. selector: 'search:',
  2162. category: 'actions',
  2163. fn: function (aString){
  2164. var self=this;
  2165. (function($rec){smalltalk.send($rec, "_searchReferencesFor_", [aString]);smalltalk.send($rec, "_updateImplementorsList", []);smalltalk.send($rec, "_updateSendersList", []);return smalltalk.send($rec, "_updateReferencedClassesList", []);})(self);
  2166. return self;},
  2167. source: unescape('search%3A%20aString%0A%09self%20%0A%09%09searchReferencesFor%3A%20aString%3B%0A%09%09updateImplementorsList%3B%0A%09%09updateSendersList%3B%0A%09%09updateReferencedClassesList'),
  2168. messageSends: ["searchReferencesFor:", "updateImplementorsList", "updateSendersList", "updateReferencedClassesList"],
  2169. referencedClasses: []
  2170. }),
  2171. smalltalk.ReferencesBrowser);
  2172. smalltalk.addMethod(
  2173. '_searchReferencedClassesFor_',
  2174. smalltalk.method({
  2175. selector: 'searchReferencedClassesFor:',
  2176. category: 'actions',
  2177. fn: function (aString){
  2178. var self=this;
  2179. smalltalk.send(smalltalk.send(self, "_classesAndMetaclasses", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(smalltalk.send(each, "_methodDictionary", []), "_values", []), "_do_", [(function(value){return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(value, "_referencedClasses", []), "_select_", [(function(each){return smalltalk.send(each, "_notNil", []);})]), "_collect_", [(function(each){return smalltalk.send(each, "_name", []);})]), "_includes_", [self['@selector']]), "_ifTrue_", [(function(){return smalltalk.send(smalltalk.send(self, "_referencedClasses", []), "_add_", [value]);})]);})]);})]);
  2180. return self;},
  2181. source: unescape('searchReferencedClassesFor%3A%20aString%0A%09self%20classesAndMetaclasses%20do%3A%20%5B%3Aeach%20%7C%0A%09%09each%20methodDictionary%20values%20do%3A%20%5B%3Avalue%20%7C%0A%09%09%09%28%28%28value%20referencedClasses%20select%3A%20%5B%3Aeach%20%7C%20each%20notNil%5D%29collect%3A%20%5B%3Aeach%20%7C%20each%20name%5D%29%20includes%3A%20selector%29%20ifTrue%3A%20%5B%0A%09%09%09%09self%20referencedClasses%20add%3A%20value%5D%5D%5D'),
  2182. messageSends: ["do:", "classesAndMetaclasses", "values", "methodDictionary", "ifTrue:", "includes:", "collect:", "select:", "referencedClasses", "notNil", "name", "add:"],
  2183. referencedClasses: []
  2184. }),
  2185. smalltalk.ReferencesBrowser);
  2186. smalltalk.addMethod(
  2187. '_referencedClasses',
  2188. smalltalk.method({
  2189. selector: 'referencedClasses',
  2190. category: 'accessing',
  2191. fn: function (){
  2192. var self=this;
  2193. return smalltalk.send(self['@referencedClasses'], "_ifNil_", [(function(){return self['@referencedClasses']=smalltalk.send(smalltalk.Array, "_new", []);})]);
  2194. return self;},
  2195. source: unescape('referencedClasses%0A%09%5EreferencedClasses%20ifNil%3A%20%5BreferencedClasses%20%3A%3D%20Array%20new%5D'),
  2196. messageSends: ["ifNil:", "new"],
  2197. referencedClasses: [smalltalk.Array]
  2198. }),
  2199. smalltalk.ReferencesBrowser);
  2200. smalltalk.addMethod(
  2201. '_renderReferencedClassesOn_',
  2202. smalltalk.method({
  2203. selector: 'renderReferencedClassesOn:',
  2204. category: 'rendering',
  2205. fn: function (html){
  2206. var self=this;
  2207. self['@referencedClassesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column referenced_classes"]);
  2208. smalltalk.send(self, "_updateReferencedClassesList", []);
  2209. return self;},
  2210. source: unescape('renderReferencedClassesOn%3A%20html%0A%20%20%20%20%09referencedClassesList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20referenced_classes%27.%0A%09self%20updateReferencedClassesList'),
  2211. messageSends: ["class:", "ul", "updateReferencedClassesList"],
  2212. referencedClasses: []
  2213. }),
  2214. smalltalk.ReferencesBrowser);
  2215. smalltalk.addMethod(
  2216. '_updateReferencedClassesList',
  2217. smalltalk.method({
  2218. selector: 'updateReferencedClassesList',
  2219. category: 'updating',
  2220. fn: function (){
  2221. var self=this;
  2222. smalltalk.send(self['@referencedClassesList'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_class_", ["column_label"]);smalltalk.send($rec, "_with_", ["Class references"]);return smalltalk.send($rec, "_style_", [unescape("font-weight%3A%20bold")]);})(smalltalk.send(html, "_li", []));return smalltalk.send(smalltalk.send(self, "_referencedClasses", []), "_do_", [(function(each){return (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(each, "_methodClass", []), "_asString", []), "__comma", [unescape("%20%3E%3E%20")]), "__comma", [smalltalk.send(each, "_selector", [])])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_openBrowserOn_", [each]);})]);})(smalltalk.send(html, "_li", []));})]);})]);
  2223. return self;},
  2224. source: unescape('updateReferencedClassesList%0A%20%20%20%20%09referencedClassesList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09html%20li%0A%09%09class%3A%20%27column_label%27%3B%20%0A%09%09with%3A%20%27Class%20references%27%3B%0A%09%09style%3A%20%27font-weight%3A%20bold%27.%0A%09self%20referencedClasses%20do%3A%20%5B%3Aeach%20%7C%0A%09%09html%20li%0A%09%20%20%20%20%09%09with%3A%20%28each%20methodClass%20asString%2C%20%27%20%3E%3E%20%27%2C%20each%20selector%29%3B%0A%09%09%09onClick%3A%20%5Bself%20openBrowserOn%3A%20each%5D%5D%5D'),
  2225. messageSends: ["contents:", "class:", "with:", "style:", "li", "do:", "referencedClasses", unescape("%2C"), "asString", "methodClass", "selector", "onClick:", "openBrowserOn:"],
  2226. referencedClasses: []
  2227. }),
  2228. smalltalk.ReferencesBrowser);
  2229. smalltalk.addMethod(
  2230. '_searchSelectorReferencesFor_',
  2231. smalltalk.method({
  2232. selector: 'searchSelectorReferencesFor:',
  2233. category: 'actions',
  2234. fn: function (aString){
  2235. var self=this;
  2236. smalltalk.send(smalltalk.send(self, "_classesAndMetaclasses", []), "_do_", [(function(each){smalltalk.send(smalltalk.send(each, "_methodDictionary", []), "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(smalltalk.send(key, "__eq", [self['@selector']]), "_ifTrue_", [(function(){return smalltalk.send(smalltalk.send(self, "_implementors", []), "_add_", [value]);})]);})]);return smalltalk.send(smalltalk.send(each, "_methodDictionary", []), "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(smalltalk.send(smalltalk.send(value, "_messageSends", []), "_includes_", [self['@selector']]), "_ifTrue_", [(function(){return smalltalk.send(smalltalk.send(self, "_senders", []), "_add_", [value]);})]);})]);})]);
  2237. return self;},
  2238. source: unescape('searchSelectorReferencesFor%3A%20aString%0A%09self%20classesAndMetaclasses%20do%3A%20%5B%3Aeach%20%7C%20%0A%09%09each%20methodDictionary%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%20%0A%09%09%09key%20%3D%20selector%20ifTrue%3A%20%5Bself%20implementors%20add%3A%20value%5D%5D.%0A%09%09each%20methodDictionary%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%20%0A%09%09%09%28value%20messageSends%20includes%3A%20selector%29%20ifTrue%3A%20%5B%0A%09%09%09%09self%20senders%20add%3A%20value%5D%5D%5D'),
  2239. messageSends: ["do:", "classesAndMetaclasses", "keysAndValuesDo:", "methodDictionary", "ifTrue:", unescape("%3D"), "add:", "implementors", "includes:", "messageSends", "senders"],
  2240. referencedClasses: []
  2241. }),
  2242. smalltalk.ReferencesBrowser);
  2243. smalltalk.addMethod(
  2244. '_search_',
  2245. smalltalk.method({
  2246. selector: 'search:',
  2247. category: 'instance creation',
  2248. fn: function (aString){
  2249. var self=this;
  2250. return (function($rec){smalltalk.send($rec, "_searchReferencesFor_", [aString]);return smalltalk.send($rec, "_open", []);})(smalltalk.send(self, "_new", []));
  2251. return self;},
  2252. source: unescape('search%3A%20aString%0A%09%5Eself%20new%0A%09%09searchReferencesFor%3A%20aString%3B%0A%09%09open'),
  2253. messageSends: ["searchReferencesFor:", "open", "new"],
  2254. referencedClasses: []
  2255. }),
  2256. smalltalk.ReferencesBrowser.klass);
  2257. smalltalk.addMethod(
  2258. '_inspect',
  2259. smalltalk.method({
  2260. selector: 'inspect',
  2261. category: '*IDE',
  2262. fn: function (){
  2263. var self=this;
  2264. (function($rec){smalltalk.send($rec, "_inspect_", [self]);return smalltalk.send($rec, "_open", []);})(smalltalk.send(smalltalk.Inspector, "_new", []));
  2265. return self;},
  2266. source: unescape('inspect%0A%09Inspector%20new%20%0A%09%09inspect%3A%20self%3B%0A%09%09open'),
  2267. messageSends: ["inspect:", "open", "new"],
  2268. referencedClasses: [smalltalk.Inspector]
  2269. }),
  2270. smalltalk.Object);
  2271. smalltalk.addMethod(
  2272. '_inspectOn_',
  2273. smalltalk.method({
  2274. selector: 'inspectOn:',
  2275. category: '*IDE',
  2276. fn: function (anInspector){
  2277. var self=this;
  2278. var variables=nil;
  2279. variables=smalltalk.send(smalltalk.Dictionary, "_new", []);
  2280. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  2281. smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_instanceVariableNames", []), "_do_", [(function(each){return smalltalk.send(variables, "_at_put_", [each, smalltalk.send(self, "_instVarAt_", [each])]);})]);
  2282. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  2283. return self;},
  2284. source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self.%0A%09self%20class%20instanceVariableNames%20do%3A%20%5B%3Aeach%20%7C%0A%09%09variables%20at%3A%20each%20put%3A%20%28self%20instVarAt%3A%20each%29%5D.%0A%09anInspector%20%0A%09%09setLabel%3A%20self%20printString%3B%0A%09%09setVariables%3A%20variables%0A%09%0A%09'),
  2285. messageSends: ["new", "at:put:", "do:", "instanceVariableNames", "class", "instVarAt:", "setLabel:", "printString", "setVariables:"],
  2286. referencedClasses: [smalltalk.Dictionary]
  2287. }),
  2288. smalltalk.Object);
  2289. smalltalk.addMethod(
  2290. '_inspectOn_',
  2291. smalltalk.method({
  2292. selector: 'inspectOn:',
  2293. category: '*IDE',
  2294. fn: function (anInspector){
  2295. var self=this;
  2296. var variables=nil;
  2297. variables=smalltalk.send(smalltalk.Dictionary, "_new", []);
  2298. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  2299. smalltalk.send(variables, "_at_put_", [unescape("%23year"), smalltalk.send(self, "_year", [])]);
  2300. smalltalk.send(variables, "_at_put_", [unescape("%23month"), smalltalk.send(self, "_month", [])]);
  2301. smalltalk.send(variables, "_at_put_", [unescape("%23day"), smalltalk.send(self, "_day", [])]);
  2302. smalltalk.send(variables, "_at_put_", [unescape("%23hours"), smalltalk.send(self, "_hours", [])]);
  2303. smalltalk.send(variables, "_at_put_", [unescape("%23minutes"), smalltalk.send(self, "_minutes", [])]);
  2304. smalltalk.send(variables, "_at_put_", [unescape("%23seconds"), smalltalk.send(self, "_seconds", [])]);
  2305. smalltalk.send(variables, "_at_put_", [unescape("%23milliseconds"), smalltalk.send(self, "_milliseconds", [])]);
  2306. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  2307. return self;},
  2308. source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self.%0A%09variables%20at%3A%20%27%23year%27%20put%3A%20self%20year.%0A%09variables%20at%3A%20%27%23month%27%20put%3A%20self%20month.%0A%09variables%20at%3A%20%27%23day%27%20put%3A%20self%20day.%0A%09variables%20at%3A%20%27%23hours%27%20put%3A%20self%20hours.%0A%09variables%20at%3A%20%27%23minutes%27%20put%3A%20self%20minutes.%0A%09variables%20at%3A%20%27%23seconds%27%20put%3A%20self%20seconds.%0A%09variables%20at%3A%20%27%23milliseconds%27%20put%3A%20self%20milliseconds.%0A%09anInspector%20%0A%09%09setLabel%3A%20self%20printString%3B%0A%09%09setVariables%3A%20variables%0A%09%0A%09'),
  2309. messageSends: ["new", "at:put:", "year", "month", "day", "hours", "minutes", "seconds", "milliseconds", "setLabel:", "printString", "setVariables:"],
  2310. referencedClasses: [smalltalk.Dictionary]
  2311. }),
  2312. smalltalk.Date);
  2313. smalltalk.addMethod(
  2314. '_inspectOn_',
  2315. smalltalk.method({
  2316. selector: 'inspectOn:',
  2317. category: '*IDE',
  2318. fn: function (anInspector){
  2319. var self=this;
  2320. var variables=nil;
  2321. variables=smalltalk.send(smalltalk.Dictionary, "_new", []);
  2322. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  2323. smalltalk.send(self, "_withIndexDo_", [(function(each, i){return smalltalk.send(variables, "_at_put_", [i, each]);})]);
  2324. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  2325. return self;},
  2326. source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self.%0A%09self%20withIndexDo%3A%20%5B%3Aeach%20%3Ai%20%7C%0A%09%09variables%20at%3A%20i%20put%3A%20each%5D.%0A%09anInspector%20%0A%09%09setLabel%3A%20self%20printString%3B%0A%09%09setVariables%3A%20variables'),
  2327. messageSends: ["new", "at:put:", "withIndexDo:", "setLabel:", "printString", "setVariables:"],
  2328. referencedClasses: [smalltalk.Dictionary]
  2329. }),
  2330. smalltalk.Collection);
  2331. smalltalk.addMethod(
  2332. '_inspectOn_',
  2333. smalltalk.method({
  2334. selector: 'inspectOn:',
  2335. category: '*IDE',
  2336. fn: function (anInspector){
  2337. var self=this;
  2338. var label=nil;
  2339. smalltalk.send(self, "_inspectOn_", [anInspector], smalltalk.SequenceableCollection);
  2340. smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", []), "_size", []), "__gt", [(30)]), "_ifTrue_ifFalse_", [(function(){return label=smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", []), "_copyFrom_to_", [(1), (30)]), "__comma", [unescape("...%27")]);}), (function(){return label=smalltalk.send(self, "_printString", []);})]);
  2341. smalltalk.send(anInspector, "_setLabel_", [label]);
  2342. return self;},
  2343. source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20label%20%7C%0A%09super%20inspectOn%3A%20anInspector.%0A%09self%20printString%20size%20%3E%2030%20%0A%09%09ifTrue%3A%20%5Blabel%20%3A%3D%20%28self%20printString%20copyFrom%3A%201%20to%3A%2030%29%2C%20%27...%27%27%27%5D%0A%09%09ifFalse%3A%20%5Blabel%20%3A%3D%20self%20printString%5D.%20%0A%09anInspector%20setLabel%3A%20label'),
  2344. messageSends: ["inspectOn:", "ifTrue:ifFalse:", unescape("%3E"), "size", "printString", unescape("%2C"), "copyFrom:to:", "setLabel:"],
  2345. referencedClasses: []
  2346. }),
  2347. smalltalk.String);
  2348. smalltalk.addMethod(
  2349. '_inspectOn_',
  2350. smalltalk.method({
  2351. selector: 'inspectOn:',
  2352. category: '*IDE',
  2353. fn: function (anInspector){
  2354. var self=this;
  2355. var variables=nil;
  2356. variables=smalltalk.send(smalltalk.Dictionary, "_new", []);
  2357. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  2358. smalltalk.send(variables, "_at_put_", [unescape("%23keys"), smalltalk.send(self, "_keys", [])]);
  2359. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(variables, "_at_put_", [key, value]);})]);
  2360. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  2361. return self;},
  2362. source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self.%0A%09variables%20at%3A%20%27%23keys%27%20put%3A%20self%20keys.%0A%09self%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%0A%09%09variables%20at%3A%20key%20put%3A%20value%5D.%0A%09anInspector%20%0A%09%09setLabel%3A%20self%20printString%3B%0A%09%09setVariables%3A%20variables'),
  2363. messageSends: ["new", "at:put:", "keys", "keysAndValuesDo:", "setLabel:", "printString", "setVariables:"],
  2364. referencedClasses: [smalltalk.Dictionary]
  2365. }),
  2366. smalltalk.Dictionary);