IDE.js 145 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551
  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. 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 (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send(smalltalk.Array, "_with_", ["not yet classified"])}})})();})]);return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send(klass, "_protocols", [])}})})();})]);
  897. (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send(smalltalk.Array, "_new", [])}})})();
  898. return self;
  899. } catch(e) {if(e.name === 'stReturn' && e.selector === '_protocols'){return e.fn()} throw(e)}},
  900. source: unescape('protocols%0A%20%20%20%20%7C%20klass%20%7C%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%20%5EArray%20with%3A%20%27not%20yet%20classified%27%5D.%0A%09%5Eklass%20protocols%5D.%0A%20%20%20%20%5EArray%20new'),
  901. messageSends: ["ifNotNil:", "ifTrue:", unescape("%3D"), "ifTrue:ifFalse:", "class", "isEmpty", "methodDictionary", "with:", "protocols", "new"],
  902. referencedClasses: [smalltalk.Array]
  903. }),
  904. smalltalk.Browser);
  905. smalltalk.addMethod(
  906. '_methods',
  907. smalltalk.method({
  908. selector: 'methods',
  909. category: 'accessing',
  910. fn: function (){
  911. var self=this;
  912. try{var klass=nil;
  913. smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["comment"]), "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_methods', fn: function(){return []}})})();})]);
  914. 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", []);})]);})]);
  915. (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", [])]);})])}})})();
  916. return self;
  917. } catch(e) {if(e.name === 'stReturn' && e.selector === '_methods'){return e.fn()} throw(e)}},
  918. 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'),
  919. messageSends: ["ifTrue:", unescape("%3D"), "ifNotNil:", "ifTrue:ifFalse:", "class", "sort:", "ifNil:ifNotNil:", "values", "methodDictionary", "select:", "category", unescape("%3E"), "selector"],
  920. referencedClasses: []
  921. }),
  922. smalltalk.Browser);
  923. smalltalk.addMethod(
  924. '_source',
  925. smalltalk.method({
  926. selector: 'source',
  927. category: 'accessing',
  928. fn: function (){
  929. var self=this;
  930. 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", []);})])}})})();})]);
  931. (function(){throw({name: 'stReturn', selector: '_source', fn: function(){return smalltalk.send(self['@selectedClass'], "_ifNil_ifNotNil_", [(function(){return "";}), (function(){return smalltalk.send(self, "_classCommentSource", []);})])}})})();
  932. return self;
  933. } catch(e) {if(e.name === 'stReturn' && e.selector === '_source'){return e.fn()} throw(e)}},
  934. 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'),
  935. messageSends: ["ifFalse:", unescape("%3D"), "ifFalse:ifTrue:", "or:", "notNil", "declarationSource", "methodSource", "ifNil:ifNotNil:", "classCommentSource"],
  936. referencedClasses: []
  937. }),
  938. smalltalk.Browser);
  939. smalltalk.addMethod(
  940. '_methodSource',
  941. smalltalk.method({
  942. selector: 'methodSource',
  943. category: 'accessing',
  944. fn: function (){
  945. var self=this;
  946. return smalltalk.send(self['@selectedMethod'], "_ifNil_ifNotNil_", [(function(){return smalltalk.send(self, "_dummyMethodSource", []);}), (function(){return smalltalk.send(self['@selectedMethod'], "_source", []);})]);
  947. return self;},
  948. source: unescape('methodSource%0A%20%20%20%20%5EselectedMethod%0A%09ifNil%3A%20%5Bself%20dummyMethodSource%5D%0A%09ifNotNil%3A%20%5BselectedMethod%20source%5D%0A'),
  949. messageSends: ["ifNil:ifNotNil:", "dummyMethodSource", "source"],
  950. referencedClasses: []
  951. }),
  952. smalltalk.Browser);
  953. smalltalk.addMethod(
  954. '_dummyMethodSource',
  955. smalltalk.method({
  956. selector: 'dummyMethodSource',
  957. category: 'accessing',
  958. fn: function (){
  959. var self=this;
  960. return unescape("messageSelectorAndArgumentNames%0A%09%22comment%20stating%20purpose%20of%20message%22%0A%0A%09%7C%20temporary%20variable%20names%20%7C%0A%09statements");
  961. return self;},
  962. 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'),
  963. messageSends: [],
  964. referencedClasses: []
  965. }),
  966. smalltalk.Browser);
  967. smalltalk.addMethod(
  968. '_declarationSource',
  969. smalltalk.method({
  970. selector: 'declarationSource',
  971. category: 'accessing',
  972. fn: function (){
  973. var self=this;
  974. return smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["instance"]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_classDeclarationSource", []);}), (function(){return smalltalk.send(self, "_metaclassDeclarationSource", []);})]);
  975. return self;},
  976. 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'),
  977. messageSends: ["ifTrue:ifFalse:", unescape("%3D"), "classDeclarationSource", "metaclassDeclarationSource"],
  978. referencedClasses: []
  979. }),
  980. smalltalk.Browser);
  981. smalltalk.addMethod(
  982. '_classDeclarationSource',
  983. smalltalk.method({
  984. selector: 'classDeclarationSource',
  985. category: 'accessing',
  986. fn: function (){
  987. var self=this;
  988. var stream=nil;
  989. stream=smalltalk.send("", "_writeStream", []);
  990. 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);})]);
  991. return smalltalk.send(stream, "_contents", []);
  992. return self;},
  993. 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'),
  994. messageSends: ["writeStream", "ifNotNil:", "nextPutAll:", "asString", "superclass", "name", unescape("%2C"), "cr", "tab", "do:separatedBy:", "instanceVariableNames", "category", "contents"],
  995. referencedClasses: [smalltalk.String]
  996. }),
  997. smalltalk.Browser);
  998. smalltalk.addMethod(
  999. '_metaclassDeclarationSource',
  1000. smalltalk.method({
  1001. selector: 'metaclassDeclarationSource',
  1002. category: 'accessing',
  1003. fn: function (){
  1004. var self=this;
  1005. var stream=nil;
  1006. stream=smalltalk.send("", "_writeStream", []);
  1007. 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")]);})]);
  1008. return smalltalk.send(stream, "_contents", []);
  1009. return self;},
  1010. 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'),
  1011. messageSends: ["writeStream", "ifNotNil:", "nextPutAll:", "asString", "do:separatedBy:", "instanceVariableNames", "class", "contents"],
  1012. referencedClasses: []
  1013. }),
  1014. smalltalk.Browser);
  1015. smalltalk.addMethod(
  1016. '_classCommentSource',
  1017. smalltalk.method({
  1018. selector: 'classCommentSource',
  1019. category: 'accessing',
  1020. fn: function (){
  1021. var self=this;
  1022. return smalltalk.send(self['@selectedClass'], "_comment", []);
  1023. return self;},
  1024. source: unescape('classCommentSource%0A%20%20%20%20%5EselectedClass%20comment%0A'),
  1025. messageSends: ["comment"],
  1026. referencedClasses: []
  1027. }),
  1028. smalltalk.Browser);
  1029. smalltalk.addMethod(
  1030. '_enableSaveButton',
  1031. smalltalk.method({
  1032. selector: 'enableSaveButton',
  1033. category: 'actions',
  1034. fn: function (){
  1035. var self=this;
  1036. smalltalk.send(self['@saveButton'], "_removeAt_", ["disabled"]);
  1037. self['@unsavedChanges']=true;
  1038. return self;},
  1039. source: unescape('enableSaveButton%0A%20%20%20%20saveButton%20removeAt%3A%20%27disabled%27.%0A%20%20%20%20unsavedChanges%20%3A%3D%20true%0A'),
  1040. messageSends: ["removeAt:"],
  1041. referencedClasses: []
  1042. }),
  1043. smalltalk.Browser);
  1044. smalltalk.addMethod(
  1045. '_disableSaveButton',
  1046. smalltalk.method({
  1047. selector: 'disableSaveButton',
  1048. category: 'actions',
  1049. fn: function (){
  1050. var self=this;
  1051. smalltalk.send(self['@saveButton'], "_ifNotNil_", [(function(){return smalltalk.send(self['@saveButton'], "_at_put_", ["disabled", true]);})]);
  1052. self['@unsavedChanges']=false;
  1053. return self;},
  1054. 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'),
  1055. messageSends: ["ifNotNil:", "at:put:"],
  1056. referencedClasses: []
  1057. }),
  1058. smalltalk.Browser);
  1059. smalltalk.addMethod(
  1060. '_hideClassButtons',
  1061. smalltalk.method({
  1062. selector: 'hideClassButtons',
  1063. category: 'actions',
  1064. fn: function (){
  1065. var self=this;
  1066. smalltalk.send(smalltalk.send(self['@classButtons'], "_asJQuery", []), "_hide", []);
  1067. return self;},
  1068. source: unescape('hideClassButtons%0A%20%20%20%20classButtons%20asJQuery%20hide%0A'),
  1069. messageSends: ["hide", "asJQuery"],
  1070. referencedClasses: []
  1071. }),
  1072. smalltalk.Browser);
  1073. smalltalk.addMethod(
  1074. '_showClassButtons',
  1075. smalltalk.method({
  1076. selector: 'showClassButtons',
  1077. category: 'actions',
  1078. fn: function (){
  1079. var self=this;
  1080. smalltalk.send(smalltalk.send(self['@classButtons'], "_asJQuery", []), "_show", []);
  1081. return self;},
  1082. source: unescape('showClassButtons%0A%20%20%20%20classButtons%20asJQuery%20show%0A'),
  1083. messageSends: ["show", "asJQuery"],
  1084. referencedClasses: []
  1085. }),
  1086. smalltalk.Browser);
  1087. smalltalk.addMethod(
  1088. '_hideMethodButtons',
  1089. smalltalk.method({
  1090. selector: 'hideMethodButtons',
  1091. category: 'actions',
  1092. fn: function (){
  1093. var self=this;
  1094. smalltalk.send(smalltalk.send(self['@methodButtons'], "_asJQuery", []), "_hide", []);
  1095. return self;},
  1096. source: unescape('hideMethodButtons%0A%20%20%20%20methodButtons%20asJQuery%20hide%0A'),
  1097. messageSends: ["hide", "asJQuery"],
  1098. referencedClasses: []
  1099. }),
  1100. smalltalk.Browser);
  1101. smalltalk.addMethod(
  1102. '_showMethodButtons',
  1103. smalltalk.method({
  1104. selector: 'showMethodButtons',
  1105. category: 'actions',
  1106. fn: function (){
  1107. var self=this;
  1108. smalltalk.send(smalltalk.send(self['@methodButtons'], "_asJQuery", []), "_show", []);
  1109. return self;},
  1110. source: unescape('showMethodButtons%0A%20%20%20%20methodButtons%20asJQuery%20show%0A'),
  1111. messageSends: ["show", "asJQuery"],
  1112. referencedClasses: []
  1113. }),
  1114. smalltalk.Browser);
  1115. smalltalk.addMethod(
  1116. '_compile',
  1117. smalltalk.method({
  1118. selector: 'compile',
  1119. category: 'actions',
  1120. fn: function (){
  1121. var self=this;
  1122. smalltalk.send(self, "_disableSaveButton", []);
  1123. smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["comment"]), "_ifTrue_", [(function(){return smalltalk.send(self['@selectedClass'], "_ifNotNil_", [(function(){return smalltalk.send(self, "_compileClassComment", []);})]);})]);
  1124. 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", []);})]);
  1125. return self;},
  1126. 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'),
  1127. messageSends: ["disableSaveButton", "ifTrue:", unescape("%3D"), "ifNotNil:", "compileClassComment", "ifFalse:ifTrue:", "or:", "notNil", "compileDefinition", "compileMethodDefinition"],
  1128. referencedClasses: []
  1129. }),
  1130. smalltalk.Browser);
  1131. smalltalk.addMethod(
  1132. '_compileClassComment',
  1133. smalltalk.method({
  1134. selector: 'compileClassComment',
  1135. category: 'actions',
  1136. fn: function (){
  1137. var self=this;
  1138. smalltalk.send(self['@selectedClass'], "_comment_", [smalltalk.send(smalltalk.send(self['@sourceTextarea'], "_asJQuery", []), "_val", [])]);
  1139. return self;},
  1140. source: unescape('compileClassComment%0A%20%20%20%20selectedClass%20comment%3A%20sourceTextarea%20asJQuery%20val%0A'),
  1141. messageSends: ["comment:", "val", "asJQuery"],
  1142. referencedClasses: []
  1143. }),
  1144. smalltalk.Browser);
  1145. smalltalk.addMethod(
  1146. '_compileMethodDefinition',
  1147. smalltalk.method({
  1148. selector: 'compileMethodDefinition',
  1149. category: 'actions',
  1150. fn: function (){
  1151. var self=this;
  1152. 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", [])]);})]);
  1153. return self;},
  1154. 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'),
  1155. messageSends: ["ifTrue:ifFalse:", unescape("%3D"), "compileMethodDefinitionFor:", "class"],
  1156. referencedClasses: []
  1157. }),
  1158. smalltalk.Browser);
  1159. smalltalk.addMethod(
  1160. '_compileMethodDefinitionFor_',
  1161. smalltalk.method({
  1162. selector: 'compileMethodDefinitionFor:',
  1163. category: 'actions',
  1164. fn: function (aClass){
  1165. var self=this;
  1166. try{var compiler=nil;
  1167. var method=nil;
  1168. var source=nil;
  1169. var node=nil;
  1170. source=smalltalk.send(smalltalk.send(self['@sourceTextarea'], "_asJQuery", []), "_val", []);
  1171. smalltalk.send(self['@selectedProtocol'], "_ifNil_", [(function(){return self['@selectedProtocol']=smalltalk.send(self['@selectedMethod'], "_category", []);})]);
  1172. compiler=smalltalk.send(smalltalk.Compiler, "_new", []);
  1173. node=smalltalk.send(compiler, "_parse_", [source]);
  1174. 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", [])])])}})})();})]);
  1175. smalltalk.send(compiler, "_currentClass_", [self['@selectedClass']]);
  1176. method=smalltalk.send(compiler, "_eval_", [smalltalk.send(compiler, "_compileNode_", [node])]);
  1177. smalltalk.send(method, "_category_", [self['@selectedProtocol']]);
  1178. 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])}})})();})]);})]);
  1179. smalltalk.send(aClass, "_addCompiledMethod_", [method]);
  1180. smalltalk.send(self, "_updateMethodsList", []);
  1181. smalltalk.send(self, "_selectMethod_", [method]);
  1182. return self;
  1183. } catch(e) {if(e.name === 'stReturn' && e.selector === '_compileMethodDefinitionFor_'){return e.fn()} throw(e)}},
  1184. 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'),
  1185. 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:"],
  1186. referencedClasses: [smalltalk.Compiler]
  1187. }),
  1188. smalltalk.Browser);
  1189. smalltalk.addMethod(
  1190. '_compileDefinition',
  1191. smalltalk.method({
  1192. selector: 'compileDefinition',
  1193. category: 'actions',
  1194. fn: function (){
  1195. var self=this;
  1196. var newClass=nil;
  1197. newClass=smalltalk.send(smalltalk.send(smalltalk.Compiler, "_new", []), "_loadExpression_", [smalltalk.send(smalltalk.send(self['@sourceTextarea'], "_asJQuery", []), "_val", [])]);
  1198. (function($rec){smalltalk.send($rec, "_updateCategoriesList", []);return smalltalk.send($rec, "_updateClassesList", []);})(self);
  1199. return self;},
  1200. 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'),
  1201. messageSends: ["loadExpression:", "new", "val", "asJQuery", "updateCategoriesList", "updateClassesList"],
  1202. referencedClasses: [smalltalk.Compiler]
  1203. }),
  1204. smalltalk.Browser);
  1205. smalltalk.addMethod(
  1206. '_commitCategory',
  1207. smalltalk.method({
  1208. selector: 'commitCategory',
  1209. category: 'actions',
  1210. fn: function (){
  1211. var self=this;
  1212. smalltalk.send(self['@selectedCategory'], "_ifNotNil_", [(function(){(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", []), "_commitPathJs", []), "__comma", [unescape("/")]), "__comma", [self['@selectedCategory']]), "__comma", [".js"])]));return (function($rec){smalltalk.send($rec, "_at_put_", ["type", "PUT"]);smalltalk.send($rec, "_at_put_", ["data", smalltalk.send(smalltalk.send(smalltalk.ChunkExporter, "_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", []), "_commitPathSt", []), "__comma", [unescape("/")]), "__comma", [self['@selectedCategory']]), "__comma", [".st"])]));})]);
  1213. return self;},
  1214. source: unescape('commitCategory%0A%20%20%20%20selectedCategory%20ifNotNil%3A%20%5B%0A%09%28Ajax%20url%3A%20self%20class%20commitPathJs%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.%0A%09%28Ajax%20url%3A%20self%20class%20commitPathSt%2C%20%27/%27%2C%20selectedCategory%2C%20%27.st%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%28ChunkExporter%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'),
  1215. messageSends: ["ifNotNil:", "at:put:", "exportCategory:", "new", "alert:", "send", "url:", unescape("%2C"), "commitPathJs", "class", "commitPathSt"],
  1216. referencedClasses: [smalltalk.Exporter,smalltalk.Ajax,smalltalk.ChunkExporter]
  1217. }),
  1218. smalltalk.Browser);
  1219. smalltalk.addMethod(
  1220. '_cancelChanges',
  1221. smalltalk.method({
  1222. selector: 'cancelChanges',
  1223. category: 'actions',
  1224. fn: function (){
  1225. var self=this;
  1226. return smalltalk.send(self['@unsavedChanges'], "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_confirm_", [unescape("Cancel%20changes%3F")]);}), (function(){return true;})]);
  1227. return self;},
  1228. 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'),
  1229. messageSends: ["ifTrue:ifFalse:", "confirm:"],
  1230. referencedClasses: []
  1231. }),
  1232. smalltalk.Browser);
  1233. smalltalk.addMethod(
  1234. '_removeClass',
  1235. smalltalk.method({
  1236. selector: 'removeClass',
  1237. category: 'actions',
  1238. fn: function (){
  1239. var self=this;
  1240. 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]);})]);
  1241. return self;},
  1242. 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'),
  1243. messageSends: ["ifTrue:", "confirm:", unescape("%2C"), "name", "basicDelete:", "current", "selectClass:"],
  1244. referencedClasses: [smalltalk.Smalltalk]
  1245. }),
  1246. smalltalk.Browser);
  1247. smalltalk.addMethod(
  1248. '_removeMethod',
  1249. smalltalk.method({
  1250. selector: 'removeMethod',
  1251. category: 'actions',
  1252. fn: function (){
  1253. var self=this;
  1254. 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]);})]);})]);
  1255. return self;},
  1256. 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'),
  1257. messageSends: ["ifTrue:", "cancelChanges", "confirm:", unescape("%2C"), "selector", "ifTrue:ifFalse:", unescape("%3D"), "removeCompiledMethod:", "class", "selectMethod:"],
  1258. referencedClasses: []
  1259. }),
  1260. smalltalk.Browser);
  1261. smalltalk.addMethod(
  1262. '_setMethodProtocol_',
  1263. smalltalk.method({
  1264. selector: 'setMethodProtocol:',
  1265. category: 'actions',
  1266. fn: function (aString){
  1267. var self=this;
  1268. 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);})]);})]);
  1269. return self;},
  1270. 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'),
  1271. messageSends: ["ifTrue:", "cancelChanges", "ifFalse:ifTrue:", "includes:", "protocols", "addNewProtocol", "category:", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1272. referencedClasses: []
  1273. }),
  1274. smalltalk.Browser);
  1275. smalltalk.addMethod(
  1276. '_addNewProtocol',
  1277. smalltalk.method({
  1278. selector: 'addNewProtocol',
  1279. category: 'actions',
  1280. fn: function (){
  1281. var self=this;
  1282. var newProtocol=nil;
  1283. newProtocol=smalltalk.send(self, "_prompt_", ["New method protocol"]);
  1284. smalltalk.send(smalltalk.send(newProtocol, "_notEmpty", []), "_ifTrue_", [(function(){smalltalk.send(self['@selectedMethod'], "_category_", [newProtocol]);return smalltalk.send(self, "_setMethodProtocol_", [newProtocol]);})]);
  1285. return self;},
  1286. 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'),
  1287. messageSends: ["prompt:", "ifTrue:", "notEmpty", "category:", "setMethodProtocol:"],
  1288. referencedClasses: []
  1289. }),
  1290. smalltalk.Browser);
  1291. smalltalk.addMethod(
  1292. '_selectCategory_',
  1293. smalltalk.method({
  1294. selector: 'selectCategory:',
  1295. category: 'actions',
  1296. fn: function (aCategory){
  1297. var self=this;
  1298. 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);})]);
  1299. return self;},
  1300. 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'),
  1301. messageSends: ["ifTrue:", "cancelChanges", "updateCategoriesList", "updateClassesList", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1302. referencedClasses: []
  1303. }),
  1304. smalltalk.Browser);
  1305. smalltalk.addMethod(
  1306. '_selectClass_',
  1307. smalltalk.method({
  1308. selector: 'selectClass:',
  1309. category: 'actions',
  1310. fn: function (aClass){
  1311. var self=this;
  1312. 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);})]);
  1313. return self;},
  1314. 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'),
  1315. messageSends: ["ifTrue:", "cancelChanges", "updateClassesList", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1316. referencedClasses: []
  1317. }),
  1318. smalltalk.Browser);
  1319. smalltalk.addMethod(
  1320. '_selectProtocol_',
  1321. smalltalk.method({
  1322. selector: 'selectProtocol:',
  1323. category: 'actions',
  1324. fn: function (aString){
  1325. var self=this;
  1326. 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);})]);
  1327. return self;},
  1328. 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'),
  1329. messageSends: ["ifTrue:", "cancelChanges", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1330. referencedClasses: []
  1331. }),
  1332. smalltalk.Browser);
  1333. smalltalk.addMethod(
  1334. '_selectMethod_',
  1335. smalltalk.method({
  1336. selector: 'selectMethod:',
  1337. category: 'actions',
  1338. fn: function (aMethod){
  1339. var self=this;
  1340. 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);})]);
  1341. return self;},
  1342. 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'),
  1343. messageSends: ["ifTrue:", "cancelChanges", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1344. referencedClasses: []
  1345. }),
  1346. smalltalk.Browser);
  1347. smalltalk.addMethod(
  1348. '_selectTab_',
  1349. smalltalk.method({
  1350. selector: 'selectTab:',
  1351. category: 'actions',
  1352. fn: function (aString){
  1353. var self=this;
  1354. smalltalk.send(smalltalk.send(self, "_cancelChanges", []), "_ifTrue_", [(function(){self['@selectedTab']=aString;smalltalk.send(self, "_selectProtocol_", [nil]);return smalltalk.send(self, "_updateTabsList", []);})]);
  1355. return self;},
  1356. 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'),
  1357. messageSends: ["ifTrue:", "cancelChanges", "selectProtocol:", "updateTabsList"],
  1358. referencedClasses: []
  1359. }),
  1360. smalltalk.Browser);
  1361. smalltalk.addMethod(
  1362. '_renderBoxOn_',
  1363. smalltalk.method({
  1364. selector: 'renderBoxOn:',
  1365. category: 'rendering',
  1366. fn: function (html){
  1367. var self=this;
  1368. (function($rec){smalltalk.send($rec, "_renderTopPanelOn_", [html]);smalltalk.send($rec, "_renderTabsOn_", [html]);return smalltalk.send($rec, "_renderBottomPanelOn_", [html]);})(self);
  1369. return self;},
  1370. 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'),
  1371. messageSends: ["renderTopPanelOn:", "renderTabsOn:", "renderBottomPanelOn:"],
  1372. referencedClasses: []
  1373. }),
  1374. smalltalk.Browser);
  1375. smalltalk.addMethod(
  1376. '_renderTopPanelOn_',
  1377. smalltalk.method({
  1378. selector: 'renderTopPanelOn:',
  1379. category: 'rendering',
  1380. fn: function (html){
  1381. var self=this;
  1382. (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", []));
  1383. return self;},
  1384. 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'),
  1385. messageSends: ["class:", "with:", "ul", "title:", "onClick:", "commitCategory", "button", "updateCategoriesList", "updateClassesList", "updateProtocolsList", "updateMethodsList", "div"],
  1386. referencedClasses: []
  1387. }),
  1388. smalltalk.Browser);
  1389. smalltalk.addMethod(
  1390. '_renderTabsOn_',
  1391. smalltalk.method({
  1392. selector: 'renderTabsOn:',
  1393. category: 'rendering',
  1394. fn: function (html){
  1395. var self=this;
  1396. self['@tabsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_tabs"]);
  1397. smalltalk.send(self, "_updateTabsList", []);
  1398. return self;},
  1399. 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'),
  1400. messageSends: ["class:", "ul", "updateTabsList"],
  1401. referencedClasses: []
  1402. }),
  1403. smalltalk.Browser);
  1404. smalltalk.addMethod(
  1405. '_renderBottomPanelOn_',
  1406. smalltalk.method({
  1407. selector: 'renderBottomPanelOn:',
  1408. category: 'rendering',
  1409. fn: function (html){
  1410. var self=this;
  1411. (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", []));
  1412. return self;},
  1413. 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'),
  1414. messageSends: ["class:", "with:", "onKeyPress:", "enableSaveButton", "at:put:", "textarea", "call:", "asJQuery", "div"],
  1415. referencedClasses: []
  1416. }),
  1417. smalltalk.Browser);
  1418. smalltalk.addMethod(
  1419. '_renderButtonsOn_',
  1420. smalltalk.method({
  1421. selector: 'renderButtonsOn:',
  1422. category: 'rendering',
  1423. fn: function (html){
  1424. var self=this;
  1425. self['@saveButton']=smalltalk.send(html, "_button", []);
  1426. (function($rec){smalltalk.send($rec, "_with_", ["Save"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_compile", []);})]);})(self['@saveButton']);
  1427. self['@methodButtons']=smalltalk.send(html, "_span", []);
  1428. self['@classButtons']=smalltalk.send(html, "_span", []);
  1429. smalltalk.send(self, "_updateSourceAndButtons", []);
  1430. return self;},
  1431. 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'),
  1432. messageSends: ["button", "with:", "onClick:", "compile", "span", "updateSourceAndButtons"],
  1433. referencedClasses: []
  1434. }),
  1435. smalltalk.Browser);
  1436. smalltalk.addMethod(
  1437. '_updateCategoriesList',
  1438. smalltalk.method({
  1439. selector: 'updateCategoriesList',
  1440. category: 'updating',
  1441. fn: function (){
  1442. var self=this;
  1443. smalltalk.send(self['@categoriesList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_categories", []), "_do_", [(function(each){var li=nil;
  1444. var label=nil;
  1445. 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);})]);})]);
  1446. return self;},
  1447. 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'),
  1448. messageSends: ["contents:", "do:", "categories", "ifTrue:ifFalse:", "isEmpty", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "onClick:", "selectCategory:"],
  1449. referencedClasses: []
  1450. }),
  1451. smalltalk.Browser);
  1452. smalltalk.addMethod(
  1453. '_updateClassesList',
  1454. smalltalk.method({
  1455. selector: 'updateClassesList',
  1456. category: 'updating',
  1457. fn: function (){
  1458. var self=this;
  1459. smalltalk.send(smalltalk.send(smalltalk.TabManager, "_current", []), "_update", []);
  1460. smalltalk.send(self['@classesList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_classes", []), "_do_", [(function(each){var li=nil;
  1461. 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);})]);})]);
  1462. return self;},
  1463. 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'),
  1464. messageSends: ["update", "current", "contents:", "do:", "classes", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "name", "onClick:", "selectClass:"],
  1465. referencedClasses: [smalltalk.TabManager]
  1466. }),
  1467. smalltalk.Browser);
  1468. smalltalk.addMethod(
  1469. '_updateProtocolsList',
  1470. smalltalk.method({
  1471. selector: 'updateProtocolsList',
  1472. category: 'updating',
  1473. fn: function (){
  1474. var self=this;
  1475. smalltalk.send(self['@protocolsList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_protocols", []), "_do_", [(function(each){var li=nil;
  1476. 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);})]);})]);
  1477. return self;},
  1478. 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'),
  1479. messageSends: ["contents:", "do:", "protocols", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "onClick:", "selectProtocol:"],
  1480. referencedClasses: []
  1481. }),
  1482. smalltalk.Browser);
  1483. smalltalk.addMethod(
  1484. '_updateMethodsList',
  1485. smalltalk.method({
  1486. selector: 'updateMethodsList',
  1487. category: 'updating',
  1488. fn: function (){
  1489. var self=this;
  1490. smalltalk.send(self['@methodsList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_methods", []), "_do_", [(function(each){var li=nil;
  1491. 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);})]);})]);
  1492. return self;},
  1493. 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'),
  1494. messageSends: ["contents:", "do:", "methods", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "selector", "onClick:", "selectMethod:"],
  1495. referencedClasses: []
  1496. }),
  1497. smalltalk.Browser);
  1498. smalltalk.addMethod(
  1499. '_updateTabsList',
  1500. smalltalk.method({
  1501. selector: 'updateTabsList',
  1502. category: 'updating',
  1503. fn: function (){
  1504. var self=this;
  1505. smalltalk.send(self['@tabsList'], "_contents_", [(function(html){var li=nil;
  1506. 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);})]);
  1507. return self;},
  1508. 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'),
  1509. messageSends: ["contents:", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "onClick:", "selectTab:"],
  1510. referencedClasses: []
  1511. }),
  1512. smalltalk.Browser);
  1513. smalltalk.addMethod(
  1514. '_updateSourceAndButtons',
  1515. smalltalk.method({
  1516. selector: 'updateSourceAndButtons',
  1517. category: 'updating',
  1518. fn: function (){
  1519. var self=this;
  1520. smalltalk.send(self, "_disableSaveButton", []);
  1521. 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", []));})]);
  1522. 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", []));})]);})]);
  1523. 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", []);})]);
  1524. smalltalk.send(smalltalk.send(self['@sourceTextarea'], "_asJQuery", []), "_val_", [smalltalk.send(self, "_source", [])]);
  1525. return self;},
  1526. 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'),
  1527. 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"],
  1528. referencedClasses: []
  1529. }),
  1530. smalltalk.Browser);
  1531. smalltalk.addMethod(
  1532. '_canBeClosed',
  1533. smalltalk.method({
  1534. selector: 'canBeClosed',
  1535. category: 'testing',
  1536. fn: function (){
  1537. var self=this;
  1538. return true;
  1539. return self;},
  1540. source: unescape('canBeClosed%0A%20%20%20%20%5Etrue%0A'),
  1541. messageSends: [],
  1542. referencedClasses: []
  1543. }),
  1544. smalltalk.Browser);
  1545. smalltalk.addMethod(
  1546. '_renameClass',
  1547. smalltalk.method({
  1548. selector: 'renameClass',
  1549. category: 'actions',
  1550. fn: function (){
  1551. var self=this;
  1552. var newName=nil;
  1553. newName=smalltalk.send(self, "_prompt_", [smalltalk.send("Rename class ", "__comma", [smalltalk.send(self['@selectedClass'], "_name", [])])]);
  1554. 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);})]);
  1555. return self;},
  1556. 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'),
  1557. messageSends: ["prompt:", unescape("%2C"), "name", "ifTrue:", "notEmpty", "rename:", "updateClassesList", "updateSourceAndButtons"],
  1558. referencedClasses: []
  1559. }),
  1560. smalltalk.Browser);
  1561. smalltalk.addMethod(
  1562. '_addInstanceVariableNamed_toClass_',
  1563. smalltalk.method({
  1564. selector: 'addInstanceVariableNamed:toClass:',
  1565. category: 'actions',
  1566. fn: function (aString, aClass){
  1567. var self=this;
  1568. 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", []))]);
  1569. return self;},
  1570. 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'),
  1571. messageSends: ["addSubclassOf:named:instanceVariableNames:", "new", "superclass", "name", "add:", "yourself", "copy", "instanceVariableNames"],
  1572. referencedClasses: [smalltalk.ClassBuilder]
  1573. }),
  1574. smalltalk.Browser);
  1575. smalltalk.addMethod(
  1576. '_searchReferencesOf_',
  1577. smalltalk.method({
  1578. selector: 'searchReferencesOf:',
  1579. category: 'actions',
  1580. fn: function (aString){
  1581. var self=this;
  1582. smalltalk.send(smalltalk.ReferencesBrowser, "_search_", [aString]);
  1583. return self;},
  1584. source: unescape('searchReferencesOf%3A%20aString%0A%09ReferencesBrowser%20search%3A%20aString'),
  1585. messageSends: ["search:"],
  1586. referencedClasses: [smalltalk.nil]
  1587. }),
  1588. smalltalk.Browser);
  1589. smalltalk.addMethod(
  1590. '_searchClassReferences',
  1591. smalltalk.method({
  1592. selector: 'searchClassReferences',
  1593. category: 'actions',
  1594. fn: function (){
  1595. var self=this;
  1596. smalltalk.send(smalltalk.ReferencesBrowser, "_search_", [smalltalk.send(self['@selectedClass'], "_name", [])]);
  1597. return self;},
  1598. source: unescape('searchClassReferences%0A%09ReferencesBrowser%20search%3A%20selectedClass%20name'),
  1599. messageSends: ["search:", "name"],
  1600. referencedClasses: [smalltalk.nil]
  1601. }),
  1602. smalltalk.Browser);
  1603. smalltalk.addMethod(
  1604. '_openOn_',
  1605. smalltalk.method({
  1606. selector: 'openOn:',
  1607. category: 'convenience',
  1608. fn: function (aClass){
  1609. var self=this;
  1610. 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", []));
  1611. return self;},
  1612. 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'),
  1613. messageSends: ["open", "selectCategory:", "category", "selectClass:", "new"],
  1614. referencedClasses: []
  1615. }),
  1616. smalltalk.Browser.klass);
  1617. smalltalk.addMethod(
  1618. '_open',
  1619. smalltalk.method({
  1620. selector: 'open',
  1621. category: 'convenience',
  1622. fn: function (){
  1623. var self=this;
  1624. smalltalk.send(smalltalk.send(self, "_new", []), "_open", []);
  1625. return self;},
  1626. source: unescape('open%0A%20%20%20%20self%20new%20open%0A'),
  1627. messageSends: ["open", "new"],
  1628. referencedClasses: []
  1629. }),
  1630. smalltalk.Browser.klass);
  1631. smalltalk.addMethod(
  1632. '_commitPathJs',
  1633. smalltalk.method({
  1634. selector: 'commitPathJs',
  1635. category: 'accessing',
  1636. fn: function (){
  1637. var self=this;
  1638. return "js";
  1639. return self;},
  1640. source: unescape('commitPathJs%0A%09%5E%27js%27'),
  1641. messageSends: [],
  1642. referencedClasses: []
  1643. }),
  1644. smalltalk.Browser.klass);
  1645. smalltalk.addMethod(
  1646. '_commitPathSt',
  1647. smalltalk.method({
  1648. selector: 'commitPathSt',
  1649. category: 'accessing',
  1650. fn: function (){
  1651. var self=this;
  1652. return "st";
  1653. return self;},
  1654. source: unescape('commitPathSt%0A%09%5E%27st%27'),
  1655. messageSends: [],
  1656. referencedClasses: []
  1657. }),
  1658. smalltalk.Browser.klass);
  1659. smalltalk.addClass('Inspector', smalltalk.TabWidget, ['label', 'variables', 'object', 'selectedVariable', 'variablesList', 'valueTextarea', 'workspaceTextarea', 'diveButton'], 'IDE');
  1660. smalltalk.addMethod(
  1661. '_label',
  1662. smalltalk.method({
  1663. selector: 'label',
  1664. category: 'accessing',
  1665. fn: function (){
  1666. var self=this;
  1667. return smalltalk.send(self['@label'], "_ifNil_", [(function(){return unescape("Inspector%20%28nil%29");})]);
  1668. return self;},
  1669. source: unescape('label%0A%09%5Elabel%20ifNil%3A%20%5B%27Inspector%20%28nil%29%27%5D'),
  1670. messageSends: ["ifNil:"],
  1671. referencedClasses: []
  1672. }),
  1673. smalltalk.Inspector);
  1674. smalltalk.addMethod(
  1675. '_canBeClosed',
  1676. smalltalk.method({
  1677. selector: 'canBeClosed',
  1678. category: 'testing',
  1679. fn: function (){
  1680. var self=this;
  1681. return true;
  1682. return self;},
  1683. source: unescape('canBeClosed%0A%09%5Etrue'),
  1684. messageSends: [],
  1685. referencedClasses: []
  1686. }),
  1687. smalltalk.Inspector);
  1688. smalltalk.addMethod(
  1689. '_inspect_',
  1690. smalltalk.method({
  1691. selector: 'inspect:',
  1692. category: 'actions',
  1693. fn: function (anObject){
  1694. var self=this;
  1695. self['@object']=anObject;
  1696. self['@variables']=[];
  1697. smalltalk.send(self['@object'], "_inspectOn_", [self]);
  1698. return self;},
  1699. 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'),
  1700. messageSends: ["inspectOn:"],
  1701. referencedClasses: []
  1702. }),
  1703. smalltalk.Inspector);
  1704. smalltalk.addMethod(
  1705. '_variables',
  1706. smalltalk.method({
  1707. selector: 'variables',
  1708. category: 'accessing',
  1709. fn: function (){
  1710. var self=this;
  1711. return self['@variables'];
  1712. return self;},
  1713. source: unescape('variables%0A%09%5Evariables'),
  1714. messageSends: [],
  1715. referencedClasses: []
  1716. }),
  1717. smalltalk.Inspector);
  1718. smalltalk.addMethod(
  1719. '_setVariables_',
  1720. smalltalk.method({
  1721. selector: 'setVariables:',
  1722. category: 'accessing',
  1723. fn: function (aCollection){
  1724. var self=this;
  1725. self['@variables']=aCollection;
  1726. return self;},
  1727. source: unescape('setVariables%3A%20aCollection%0A%09variables%20%3A%3D%20aCollection'),
  1728. messageSends: [],
  1729. referencedClasses: []
  1730. }),
  1731. smalltalk.Inspector);
  1732. smalltalk.addMethod(
  1733. '_setLabel_',
  1734. smalltalk.method({
  1735. selector: 'setLabel:',
  1736. category: 'accessing',
  1737. fn: function (aString){
  1738. var self=this;
  1739. self['@label']=aString;
  1740. return self;},
  1741. source: unescape('setLabel%3A%20aString%0A%09label%20%3A%3D%20aString'),
  1742. messageSends: [],
  1743. referencedClasses: []
  1744. }),
  1745. smalltalk.Inspector);
  1746. smalltalk.addMethod(
  1747. '_renderBoxOn_',
  1748. smalltalk.method({
  1749. selector: 'renderBoxOn:',
  1750. category: 'rendering',
  1751. fn: function (html){
  1752. var self=this;
  1753. (function($rec){smalltalk.send($rec, "_renderTopPanelOn_", [html]);return smalltalk.send($rec, "_renderBottomPanelOn_", [html]);})(self);
  1754. return self;},
  1755. source: unescape('renderBoxOn%3A%20html%0A%09self%20%0A%09%09renderTopPanelOn%3A%20html%3B%0A%09%09renderBottomPanelOn%3A%20html'),
  1756. messageSends: ["renderTopPanelOn:", "renderBottomPanelOn:"],
  1757. referencedClasses: []
  1758. }),
  1759. smalltalk.Inspector);
  1760. smalltalk.addMethod(
  1761. '_renderTopPanelOn_',
  1762. smalltalk.method({
  1763. selector: 'renderTopPanelOn:',
  1764. category: 'rendering',
  1765. fn: function (html){
  1766. var self=this;
  1767. (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", []));
  1768. return self;},
  1769. 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'),
  1770. messageSends: ["class:", "with:", "ul", "at:put:", "textarea", "updateVariablesList", "updateValueTextarea", "div"],
  1771. referencedClasses: []
  1772. }),
  1773. smalltalk.Inspector);
  1774. smalltalk.addMethod(
  1775. '_renderBottomPanelOn_',
  1776. smalltalk.method({
  1777. selector: 'renderBottomPanelOn:',
  1778. category: 'rendering',
  1779. fn: function (html){
  1780. var self=this;
  1781. (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", []));
  1782. return self;},
  1783. 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'),
  1784. messageSends: ["class:", "with:", "at:put:", "textarea", "call:", "asJQuery", "div"],
  1785. referencedClasses: []
  1786. }),
  1787. smalltalk.Inspector);
  1788. smalltalk.addMethod(
  1789. '_updateVariablesList',
  1790. smalltalk.method({
  1791. selector: 'updateVariablesList',
  1792. category: 'updating',
  1793. fn: function (){
  1794. var self=this;
  1795. smalltalk.send(self['@variablesList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_variables", []), "_keys", []), "_do_", [(function(each){var li=nil;
  1796. 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"]);})]);})]);})]);
  1797. return self;},
  1798. 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'),
  1799. messageSends: ["contents:", "do:", "keys", "variables", "li", "with:", "onClick:", "selectVariable:", "ifTrue:", unescape("%3D"), "selectedVariable", "class:"],
  1800. referencedClasses: []
  1801. }),
  1802. smalltalk.Inspector);
  1803. smalltalk.addMethod(
  1804. '_selectedVariable',
  1805. smalltalk.method({
  1806. selector: 'selectedVariable',
  1807. category: 'accessing',
  1808. fn: function (){
  1809. var self=this;
  1810. return self['@selectedVariable'];
  1811. return self;},
  1812. source: unescape('selectedVariable%0A%09%5EselectedVariable'),
  1813. messageSends: [],
  1814. referencedClasses: []
  1815. }),
  1816. smalltalk.Inspector);
  1817. smalltalk.addMethod(
  1818. '_selectedVariable_',
  1819. smalltalk.method({
  1820. selector: 'selectedVariable:',
  1821. category: 'accessing',
  1822. fn: function (aString){
  1823. var self=this;
  1824. self['@selectedVariable']=aString;
  1825. return self;},
  1826. source: unescape('selectedVariable%3A%20aString%0A%09selectedVariable%20%3A%3D%20aString'),
  1827. messageSends: [],
  1828. referencedClasses: []
  1829. }),
  1830. smalltalk.Inspector);
  1831. smalltalk.addMethod(
  1832. '_selectVariable_',
  1833. smalltalk.method({
  1834. selector: 'selectVariable:',
  1835. category: 'updating',
  1836. fn: function (aString){
  1837. var self=this;
  1838. smalltalk.send(self, "_selectedVariable_", [aString]);
  1839. (function($rec){smalltalk.send($rec, "_updateVariablesList", []);smalltalk.send($rec, "_updateValueTextarea", []);return smalltalk.send($rec, "_updateButtons", []);})(self);
  1840. return self;},
  1841. source: unescape('selectVariable%3A%20aString%0A%09self%20selectedVariable%3A%20aString.%0A%09self%20%0A%09%09updateVariablesList%3B%0A%09%09updateValueTextarea%3B%0A%09%09updateButtons'),
  1842. messageSends: ["selectedVariable:", "updateVariablesList", "updateValueTextarea", "updateButtons"],
  1843. referencedClasses: []
  1844. }),
  1845. smalltalk.Inspector);
  1846. smalltalk.addMethod(
  1847. '_updateValueTextarea',
  1848. smalltalk.method({
  1849. selector: 'updateValueTextarea',
  1850. category: 'updating',
  1851. fn: function (){
  1852. var self=this;
  1853. 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", []);})])]);
  1854. return self;},
  1855. 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'),
  1856. messageSends: ["val:", "asJQuery", "ifTrue:ifFalse:", "isNil", "selectedVariable", "printString", "at:", "variables"],
  1857. referencedClasses: []
  1858. }),
  1859. smalltalk.Inspector);
  1860. smalltalk.addMethod(
  1861. '_renderButtonsOn_',
  1862. smalltalk.method({
  1863. selector: 'renderButtonsOn:',
  1864. category: 'rendering',
  1865. fn: function (html){
  1866. var self=this;
  1867. (function($rec){smalltalk.send($rec, "_with_", ["Refresh"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_refresh", []);})]);})(smalltalk.send(html, "_button", []));
  1868. self['@diveButton']=(function($rec){smalltalk.send($rec, "_with_", ["Dive"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_dive", []);})]);})(smalltalk.send(html, "_button", []));
  1869. smalltalk.send(self, "_updateButtons", []);
  1870. return self;},
  1871. 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'),
  1872. messageSends: ["with:", "onClick:", "refresh", "button", "dive", "updateButtons"],
  1873. referencedClasses: []
  1874. }),
  1875. smalltalk.Inspector);
  1876. smalltalk.addMethod(
  1877. '_dive',
  1878. smalltalk.method({
  1879. selector: 'dive',
  1880. category: 'actions',
  1881. fn: function (){
  1882. var self=this;
  1883. smalltalk.send(smalltalk.send(smalltalk.send(self, "_variables", []), "_at_", [smalltalk.send(self, "_selectedVariable", [])]), "_inspect", []);
  1884. return self;},
  1885. source: unescape('dive%0A%09%28self%20variables%20at%3A%20self%20selectedVariable%29%20inspect'),
  1886. messageSends: ["inspect", "at:", "variables", "selectedVariable"],
  1887. referencedClasses: []
  1888. }),
  1889. smalltalk.Inspector);
  1890. smalltalk.addMethod(
  1891. '_updateButtons',
  1892. smalltalk.method({
  1893. selector: 'updateButtons',
  1894. category: 'updating',
  1895. fn: function (){
  1896. var self=this;
  1897. 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"]);})]);
  1898. return self;},
  1899. 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'),
  1900. messageSends: ["ifFalse:ifTrue:", "and:", "notNil", "selectedVariable", "at:", "variables", "at:put:", "removeAt:"],
  1901. referencedClasses: []
  1902. }),
  1903. smalltalk.Inspector);
  1904. smalltalk.addMethod(
  1905. '_refresh',
  1906. smalltalk.method({
  1907. selector: 'refresh',
  1908. category: 'actions',
  1909. fn: function (){
  1910. var self=this;
  1911. (function($rec){smalltalk.send($rec, "_inspect_", [self['@object']]);smalltalk.send($rec, "_updateVariablesList", []);return smalltalk.send($rec, "_updateValueTextarea", []);})(self);
  1912. return self;},
  1913. source: unescape('refresh%0A%09self%20%0A%09%09inspect%3A%20object%3B%20%0A%09%09updateVariablesList%3B%0A%09%09updateValueTextarea'),
  1914. messageSends: ["inspect:", "updateVariablesList", "updateValueTextarea"],
  1915. referencedClasses: []
  1916. }),
  1917. smalltalk.Inspector);
  1918. smalltalk.addMethod(
  1919. '_on_',
  1920. smalltalk.method({
  1921. selector: 'on:',
  1922. category: 'instance creation',
  1923. fn: function (anObject){
  1924. var self=this;
  1925. return (function($rec){smalltalk.send($rec, "_inspect_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  1926. return self;},
  1927. source: unescape('on%3A%20anObject%0A%09%5Eself%20new%0A%09%09inspect%3A%20anObject%3B%0A%09%09yourself'),
  1928. messageSends: ["inspect:", "yourself", "new"],
  1929. referencedClasses: []
  1930. }),
  1931. smalltalk.Inspector.klass);
  1932. smalltalk.addClass('ReferencesBrowser', smalltalk.TabWidget, ['implementors', 'senders', 'implementorsList', 'input', 'timer', 'selector', 'sendersList', 'referencedClasses', 'referencedClassesList'], 'IDE');
  1933. smalltalk.addMethod(
  1934. '_renderBoxOn_',
  1935. smalltalk.method({
  1936. selector: 'renderBoxOn:',
  1937. category: 'rendering',
  1938. fn: function (html){
  1939. var self=this;
  1940. (function($rec){smalltalk.send($rec, "_renderInputOn_", [html]);smalltalk.send($rec, "_renderImplementorsOn_", [html]);smalltalk.send($rec, "_renderSendersOn_", [html]);return smalltalk.send($rec, "_renderReferencedClassesOn_", [html]);})(self);
  1941. return self;},
  1942. 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'),
  1943. messageSends: ["renderInputOn:", "renderImplementorsOn:", "renderSendersOn:", "renderReferencedClassesOn:"],
  1944. referencedClasses: []
  1945. }),
  1946. smalltalk.ReferencesBrowser);
  1947. smalltalk.addMethod(
  1948. '_renderInputOn_',
  1949. smalltalk.method({
  1950. selector: 'renderInputOn:',
  1951. category: 'rendering',
  1952. fn: function (html){
  1953. var self=this;
  1954. self['@input']=(function($rec){smalltalk.send($rec, "_class_", ["implementors"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_input", []));
  1955. smalltalk.send(smalltalk.send(self['@input'], "_asJQuery", []), "_val_", [self['@selector']]);
  1956. smalltalk.send(self, "_setInputEvents", []);
  1957. return self;},
  1958. 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'),
  1959. messageSends: ["class:", "yourself", "input", "val:", "asJQuery", "setInputEvents"],
  1960. referencedClasses: []
  1961. }),
  1962. smalltalk.ReferencesBrowser);
  1963. smalltalk.addMethod(
  1964. '_updateImplementorsList',
  1965. smalltalk.method({
  1966. selector: 'updateImplementorsList',
  1967. category: 'updating',
  1968. fn: function (){
  1969. var self=this;
  1970. 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;
  1971. 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);})]);})]);
  1972. return self;},
  1973. 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'),
  1974. messageSends: ["contents:", "class:", "with:", "style:", "li", "do:", "implementors", unescape("%2C"), "asString", "methodClass", "selector", "onClick:", "openBrowserOn:"],
  1975. referencedClasses: []
  1976. }),
  1977. smalltalk.ReferencesBrowser);
  1978. smalltalk.addMethod(
  1979. '_implementors',
  1980. smalltalk.method({
  1981. selector: 'implementors',
  1982. category: 'accessing',
  1983. fn: function (){
  1984. var self=this;
  1985. return smalltalk.send(self['@implementors'], "_ifNil_", [(function(){return self['@implementors']=smalltalk.send(smalltalk.Array, "_new", []);})]);
  1986. return self;},
  1987. source: unescape('implementors%0A%09%5Eimplementors%20ifNil%3A%20%5Bimplementors%20%3A%3D%20Array%20new%5D'),
  1988. messageSends: ["ifNil:", "new"],
  1989. referencedClasses: [smalltalk.Array]
  1990. }),
  1991. smalltalk.ReferencesBrowser);
  1992. smalltalk.addMethod(
  1993. '_label',
  1994. smalltalk.method({
  1995. selector: 'label',
  1996. category: 'accessing',
  1997. fn: function (){
  1998. var self=this;
  1999. return unescape("%5BReferencesBrowser%5D");
  2000. return self;},
  2001. source: unescape('label%0A%09%5E%27%5BReferencesBrowser%5D%27'),
  2002. messageSends: [],
  2003. referencedClasses: []
  2004. }),
  2005. smalltalk.ReferencesBrowser);
  2006. smalltalk.addMethod(
  2007. '_canBeClosed',
  2008. smalltalk.method({
  2009. selector: 'canBeClosed',
  2010. category: 'testing',
  2011. fn: function (){
  2012. var self=this;
  2013. return true;
  2014. return self;},
  2015. source: unescape('canBeClosed%0A%09%5Etrue'),
  2016. messageSends: [],
  2017. referencedClasses: []
  2018. }),
  2019. smalltalk.ReferencesBrowser);
  2020. smalltalk.addMethod(
  2021. '_setInputEvents',
  2022. smalltalk.method({
  2023. selector: 'setInputEvents',
  2024. category: 'private',
  2025. fn: function (){
  2026. var self=this;
  2027. (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']);
  2028. return self;},
  2029. 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'),
  2030. messageSends: ["onKeyUp:", "valueWithTimeout:", "search:", "val", "asJQuery", "onKeyDown:", "ifNotNil:", "clearTimeout"],
  2031. referencedClasses: []
  2032. }),
  2033. smalltalk.ReferencesBrowser);
  2034. smalltalk.addMethod(
  2035. '_selector',
  2036. smalltalk.method({
  2037. selector: 'selector',
  2038. category: 'accessing',
  2039. fn: function (){
  2040. var self=this;
  2041. return self['@selector'];
  2042. return self;},
  2043. source: unescape('selector%0A%09%5Eselector'),
  2044. messageSends: [],
  2045. referencedClasses: []
  2046. }),
  2047. smalltalk.ReferencesBrowser);
  2048. smalltalk.addMethod(
  2049. '_openBrowserOn_',
  2050. smalltalk.method({
  2051. selector: 'openBrowserOn:',
  2052. category: 'actions',
  2053. fn: function (aMethod){
  2054. var self=this;
  2055. var browser=nil;
  2056. 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", []);})])]);
  2057. smalltalk.send(smalltalk.send(smalltalk.send(aMethod, "_methodClass", []), "_isMetaclass", []), "_ifTrue_", [(function(){return smalltalk.send(browser, "_selectTab_", ["class"]);})]);
  2058. (function($rec){smalltalk.send($rec, "_selectProtocol_", [smalltalk.send(aMethod, "_category", [])]);return smalltalk.send($rec, "_selectMethod_", [aMethod]);})(browser);
  2059. return self;},
  2060. 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'),
  2061. messageSends: ["openOn:", "ifTrue:ifFalse:", "isMetaclass", "class", "instanceClass", "methodClass", "ifTrue:", "selectTab:", "selectProtocol:", "category", "selectMethod:"],
  2062. referencedClasses: [smalltalk.Browser]
  2063. }),
  2064. smalltalk.ReferencesBrowser);
  2065. smalltalk.addMethod(
  2066. '_senders',
  2067. smalltalk.method({
  2068. selector: 'senders',
  2069. category: 'accessing',
  2070. fn: function (){
  2071. var self=this;
  2072. return smalltalk.send(self['@senders'], "_ifNil_", [(function(){return self['@senders']=smalltalk.send(smalltalk.Array, "_new", []);})]);
  2073. return self;},
  2074. source: unescape('senders%0A%09%5Esenders%20ifNil%3A%20%5Bsenders%20%3A%3D%20Array%20new%5D'),
  2075. messageSends: ["ifNil:", "new"],
  2076. referencedClasses: [smalltalk.Array]
  2077. }),
  2078. smalltalk.ReferencesBrowser);
  2079. smalltalk.addMethod(
  2080. '_renderImplementorsOn_',
  2081. smalltalk.method({
  2082. selector: 'renderImplementorsOn:',
  2083. category: 'rendering',
  2084. fn: function (html){
  2085. var self=this;
  2086. self['@implementorsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column implementors"]);
  2087. smalltalk.send(self, "_updateImplementorsList", []);
  2088. return self;},
  2089. 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'),
  2090. messageSends: ["class:", "ul", "updateImplementorsList"],
  2091. referencedClasses: []
  2092. }),
  2093. smalltalk.ReferencesBrowser);
  2094. smalltalk.addMethod(
  2095. '_renderSendersOn_',
  2096. smalltalk.method({
  2097. selector: 'renderSendersOn:',
  2098. category: 'rendering',
  2099. fn: function (html){
  2100. var self=this;
  2101. self['@sendersList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column senders"]);
  2102. smalltalk.send(self, "_updateSendersList", []);
  2103. return self;},
  2104. 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'),
  2105. messageSends: ["class:", "ul", "updateSendersList"],
  2106. referencedClasses: []
  2107. }),
  2108. smalltalk.ReferencesBrowser);
  2109. smalltalk.addMethod(
  2110. '_updateSendersList',
  2111. smalltalk.method({
  2112. selector: 'updateSendersList',
  2113. category: 'updating',
  2114. fn: function (){
  2115. var self=this;
  2116. 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", []));})]);})]);
  2117. return self;},
  2118. 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'),
  2119. messageSends: ["contents:", "class:", "with:", "style:", "li", "do:", "senders", unescape("%2C"), "asString", "methodClass", "selector", "onClick:", "openBrowserOn:"],
  2120. referencedClasses: []
  2121. }),
  2122. smalltalk.ReferencesBrowser);
  2123. smalltalk.addMethod(
  2124. '_searchReferencesFor_',
  2125. smalltalk.method({
  2126. selector: 'searchReferencesFor:',
  2127. category: 'actions',
  2128. fn: function (aString){
  2129. var self=this;
  2130. self['@selector']=aString;
  2131. self['@implementors']=smalltalk.send(smalltalk.Array, "_new", []);
  2132. self['@senders']=smalltalk.send(smalltalk.Array, "_new", []);
  2133. self['@referencedClasses']=smalltalk.send(smalltalk.Array, "_new", []);
  2134. 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']]);})]);
  2135. return self;},
  2136. 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'),
  2137. messageSends: ["new", "ifFalse:ifTrue:", "match:", "searchSelectorReferencesFor:", "searchReferencedClassesFor:"],
  2138. referencedClasses: [smalltalk.Array]
  2139. }),
  2140. smalltalk.ReferencesBrowser);
  2141. smalltalk.addMethod(
  2142. '_classesAndMetaclasses',
  2143. smalltalk.method({
  2144. selector: 'classesAndMetaclasses',
  2145. category: 'accessing',
  2146. fn: function (){
  2147. var self=this;
  2148. 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", []);})])]);
  2149. return self;},
  2150. source: unescape('classesAndMetaclasses%0A%09%5ESmalltalk%20current%20classes%2C%20%28Smalltalk%20current%20classes%20collect%3A%20%5B%3Aeach%20%7C%20each%20class%5D%29'),
  2151. messageSends: [unescape("%2C"), "classes", "current", "collect:", "class"],
  2152. referencedClasses: [smalltalk.Smalltalk]
  2153. }),
  2154. smalltalk.ReferencesBrowser);
  2155. smalltalk.addMethod(
  2156. '_initialize',
  2157. smalltalk.method({
  2158. selector: 'initialize',
  2159. category: 'initialization',
  2160. fn: function (){
  2161. var self=this;
  2162. smalltalk.send(self, "_initialize", [], smalltalk.TabWidget);
  2163. self['@selector']="";
  2164. return self;},
  2165. source: unescape('initialize%0A%09super%20initialize.%0A%09selector%20%3A%3D%20%27%27'),
  2166. messageSends: ["initialize"],
  2167. referencedClasses: []
  2168. }),
  2169. smalltalk.ReferencesBrowser);
  2170. smalltalk.addMethod(
  2171. '_search_',
  2172. smalltalk.method({
  2173. selector: 'search:',
  2174. category: 'actions',
  2175. fn: function (aString){
  2176. var self=this;
  2177. (function($rec){smalltalk.send($rec, "_searchReferencesFor_", [aString]);smalltalk.send($rec, "_updateImplementorsList", []);smalltalk.send($rec, "_updateSendersList", []);return smalltalk.send($rec, "_updateReferencedClassesList", []);})(self);
  2178. return self;},
  2179. 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'),
  2180. messageSends: ["searchReferencesFor:", "updateImplementorsList", "updateSendersList", "updateReferencedClassesList"],
  2181. referencedClasses: []
  2182. }),
  2183. smalltalk.ReferencesBrowser);
  2184. smalltalk.addMethod(
  2185. '_searchReferencedClassesFor_',
  2186. smalltalk.method({
  2187. selector: 'searchReferencedClassesFor:',
  2188. category: 'actions',
  2189. fn: function (aString){
  2190. var self=this;
  2191. 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]);})]);})]);})]);
  2192. return self;},
  2193. 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'),
  2194. messageSends: ["do:", "classesAndMetaclasses", "values", "methodDictionary", "ifTrue:", "includes:", "collect:", "select:", "referencedClasses", "notNil", "name", "add:"],
  2195. referencedClasses: []
  2196. }),
  2197. smalltalk.ReferencesBrowser);
  2198. smalltalk.addMethod(
  2199. '_referencedClasses',
  2200. smalltalk.method({
  2201. selector: 'referencedClasses',
  2202. category: 'accessing',
  2203. fn: function (){
  2204. var self=this;
  2205. return smalltalk.send(self['@referencedClasses'], "_ifNil_", [(function(){return self['@referencedClasses']=smalltalk.send(smalltalk.Array, "_new", []);})]);
  2206. return self;},
  2207. source: unescape('referencedClasses%0A%09%5EreferencedClasses%20ifNil%3A%20%5BreferencedClasses%20%3A%3D%20Array%20new%5D'),
  2208. messageSends: ["ifNil:", "new"],
  2209. referencedClasses: [smalltalk.Array]
  2210. }),
  2211. smalltalk.ReferencesBrowser);
  2212. smalltalk.addMethod(
  2213. '_renderReferencedClassesOn_',
  2214. smalltalk.method({
  2215. selector: 'renderReferencedClassesOn:',
  2216. category: 'rendering',
  2217. fn: function (html){
  2218. var self=this;
  2219. self['@referencedClassesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column referenced_classes"]);
  2220. smalltalk.send(self, "_updateReferencedClassesList", []);
  2221. return self;},
  2222. 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'),
  2223. messageSends: ["class:", "ul", "updateReferencedClassesList"],
  2224. referencedClasses: []
  2225. }),
  2226. smalltalk.ReferencesBrowser);
  2227. smalltalk.addMethod(
  2228. '_updateReferencedClassesList',
  2229. smalltalk.method({
  2230. selector: 'updateReferencedClassesList',
  2231. category: 'updating',
  2232. fn: function (){
  2233. var self=this;
  2234. 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", []));})]);})]);
  2235. return self;},
  2236. 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'),
  2237. messageSends: ["contents:", "class:", "with:", "style:", "li", "do:", "referencedClasses", unescape("%2C"), "asString", "methodClass", "selector", "onClick:", "openBrowserOn:"],
  2238. referencedClasses: []
  2239. }),
  2240. smalltalk.ReferencesBrowser);
  2241. smalltalk.addMethod(
  2242. '_searchSelectorReferencesFor_',
  2243. smalltalk.method({
  2244. selector: 'searchSelectorReferencesFor:',
  2245. category: 'actions',
  2246. fn: function (aString){
  2247. var self=this;
  2248. 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]);})]);})]);})]);
  2249. return self;},
  2250. 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'),
  2251. messageSends: ["do:", "classesAndMetaclasses", "keysAndValuesDo:", "methodDictionary", "ifTrue:", unescape("%3D"), "add:", "implementors", "includes:", "messageSends", "senders"],
  2252. referencedClasses: []
  2253. }),
  2254. smalltalk.ReferencesBrowser);
  2255. smalltalk.addMethod(
  2256. '_search_',
  2257. smalltalk.method({
  2258. selector: 'search:',
  2259. category: 'instance creation',
  2260. fn: function (aString){
  2261. var self=this;
  2262. return (function($rec){smalltalk.send($rec, "_searchReferencesFor_", [aString]);return smalltalk.send($rec, "_open", []);})(smalltalk.send(self, "_new", []));
  2263. return self;},
  2264. source: unescape('search%3A%20aString%0A%09%5Eself%20new%0A%09%09searchReferencesFor%3A%20aString%3B%0A%09%09open'),
  2265. messageSends: ["searchReferencesFor:", "open", "new"],
  2266. referencedClasses: []
  2267. }),
  2268. smalltalk.ReferencesBrowser.klass);
  2269. smalltalk.addMethod(
  2270. '_inspect',
  2271. smalltalk.method({
  2272. selector: 'inspect',
  2273. category: '*IDE',
  2274. fn: function (){
  2275. var self=this;
  2276. (function($rec){smalltalk.send($rec, "_inspect_", [self]);return smalltalk.send($rec, "_open", []);})(smalltalk.send(smalltalk.Inspector, "_new", []));
  2277. return self;},
  2278. source: unescape('inspect%0A%09Inspector%20new%20%0A%09%09inspect%3A%20self%3B%0A%09%09open'),
  2279. messageSends: ["inspect:", "open", "new"],
  2280. referencedClasses: [smalltalk.Inspector]
  2281. }),
  2282. smalltalk.Object);
  2283. smalltalk.addMethod(
  2284. '_inspectOn_',
  2285. smalltalk.method({
  2286. selector: 'inspectOn:',
  2287. category: '*IDE',
  2288. fn: function (anInspector){
  2289. var self=this;
  2290. var variables=nil;
  2291. variables=smalltalk.send(smalltalk.Dictionary, "_new", []);
  2292. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  2293. smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_instanceVariableNames", []), "_do_", [(function(each){return smalltalk.send(variables, "_at_put_", [each, smalltalk.send(self, "_instVarAt_", [each])]);})]);
  2294. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  2295. return self;},
  2296. 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'),
  2297. messageSends: ["new", "at:put:", "do:", "instanceVariableNames", "class", "instVarAt:", "setLabel:", "printString", "setVariables:"],
  2298. referencedClasses: [smalltalk.Dictionary]
  2299. }),
  2300. smalltalk.Object);
  2301. smalltalk.addMethod(
  2302. '_inspectOn_',
  2303. smalltalk.method({
  2304. selector: 'inspectOn:',
  2305. category: '*IDE',
  2306. fn: function (anInspector){
  2307. var self=this;
  2308. var variables=nil;
  2309. variables=smalltalk.send(smalltalk.Dictionary, "_new", []);
  2310. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  2311. smalltalk.send(variables, "_at_put_", [unescape("%23year"), smalltalk.send(self, "_year", [])]);
  2312. smalltalk.send(variables, "_at_put_", [unescape("%23month"), smalltalk.send(self, "_month", [])]);
  2313. smalltalk.send(variables, "_at_put_", [unescape("%23day"), smalltalk.send(self, "_day", [])]);
  2314. smalltalk.send(variables, "_at_put_", [unescape("%23hours"), smalltalk.send(self, "_hours", [])]);
  2315. smalltalk.send(variables, "_at_put_", [unescape("%23minutes"), smalltalk.send(self, "_minutes", [])]);
  2316. smalltalk.send(variables, "_at_put_", [unescape("%23seconds"), smalltalk.send(self, "_seconds", [])]);
  2317. smalltalk.send(variables, "_at_put_", [unescape("%23milliseconds"), smalltalk.send(self, "_milliseconds", [])]);
  2318. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  2319. return self;},
  2320. 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'),
  2321. messageSends: ["new", "at:put:", "year", "month", "day", "hours", "minutes", "seconds", "milliseconds", "setLabel:", "printString", "setVariables:"],
  2322. referencedClasses: [smalltalk.Dictionary]
  2323. }),
  2324. smalltalk.Date);
  2325. smalltalk.addMethod(
  2326. '_inspectOn_',
  2327. smalltalk.method({
  2328. selector: 'inspectOn:',
  2329. category: '*IDE',
  2330. fn: function (anInspector){
  2331. var self=this;
  2332. var variables=nil;
  2333. variables=smalltalk.send(smalltalk.Dictionary, "_new", []);
  2334. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  2335. smalltalk.send(self, "_withIndexDo_", [(function(each, i){return smalltalk.send(variables, "_at_put_", [i, each]);})]);
  2336. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  2337. return self;},
  2338. 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'),
  2339. messageSends: ["new", "at:put:", "withIndexDo:", "setLabel:", "printString", "setVariables:"],
  2340. referencedClasses: [smalltalk.Dictionary]
  2341. }),
  2342. smalltalk.Collection);
  2343. smalltalk.addMethod(
  2344. '_inspectOn_',
  2345. smalltalk.method({
  2346. selector: 'inspectOn:',
  2347. category: '*IDE',
  2348. fn: function (anInspector){
  2349. var self=this;
  2350. var label=nil;
  2351. smalltalk.send(self, "_inspectOn_", [anInspector], smalltalk.SequenceableCollection);
  2352. 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", []);})]);
  2353. smalltalk.send(anInspector, "_setLabel_", [label]);
  2354. return self;},
  2355. 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'),
  2356. messageSends: ["inspectOn:", "ifTrue:ifFalse:", unescape("%3E"), "size", "printString", unescape("%2C"), "copyFrom:to:", "setLabel:"],
  2357. referencedClasses: []
  2358. }),
  2359. smalltalk.String);
  2360. smalltalk.addMethod(
  2361. '_inspectOn_',
  2362. smalltalk.method({
  2363. selector: 'inspectOn:',
  2364. category: '*IDE',
  2365. fn: function (anInspector){
  2366. var self=this;
  2367. var variables=nil;
  2368. variables=smalltalk.send(smalltalk.Dictionary, "_new", []);
  2369. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  2370. smalltalk.send(variables, "_at_put_", [unescape("%23keys"), smalltalk.send(self, "_keys", [])]);
  2371. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(variables, "_at_put_", [key, value]);})]);
  2372. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  2373. return self;},
  2374. 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'),
  2375. messageSends: ["new", "at:put:", "keys", "keysAndValuesDo:", "setLabel:", "printString", "setVariables:"],
  2376. referencedClasses: [smalltalk.Dictionary]
  2377. }),
  2378. smalltalk.Dictionary);