IDE.js 148 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584
  1. smalltalk.addClass('TabManager', smalltalk.Widget, ['selectedTab', 'tabs', 'opened'], 'IDE');
  2. smalltalk.addMethod(
  3. '_tabs',
  4. smalltalk.method({
  5. selector: 'tabs',
  6. category: 'accessing',
  7. fn: function (){
  8. var self=this;
  9. return smalltalk.send(self['@tabs'], "_ifNil_", [(function(){return self['@tabs']=smalltalk.send(smalltalk.Array, "_new", []);})]);
  10. return self;},
  11. source: unescape('tabs%0A%20%20%20%20%5Etabs%20ifNil%3A%20%5Btabs%20%3A%3D%20Array%20new%5D'),
  12. messageSends: ["ifNil:", "new"],
  13. referencedClasses: [smalltalk.Array]
  14. }),
  15. smalltalk.TabManager);
  16. smalltalk.addMethod(
  17. '_updateBodyMargin',
  18. smalltalk.method({
  19. selector: 'updateBodyMargin',
  20. category: 'actions',
  21. fn: function (){
  22. var self=this;
  23. smalltalk.send(self, "_setBodyMargin_", [smalltalk.send(smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_height", []), "__plus", [(27)])]);
  24. return self;},
  25. source: unescape('updateBodyMargin%0A%20%20%20%20self%20setBodyMargin%3A%20%27%23jtalk%27%20asJQuery%20height%20+%2027'),
  26. messageSends: ["setBodyMargin:", unescape("+"), "height", "asJQuery"],
  27. referencedClasses: []
  28. }),
  29. smalltalk.TabManager);
  30. smalltalk.addMethod(
  31. '_updatePosition',
  32. smalltalk.method({
  33. selector: 'updatePosition',
  34. category: 'actions',
  35. fn: function (){
  36. var self=this;
  37. jQuery('#jtalk').css('top', '').css('bottom', '27px');
  38. return self;},
  39. source: unescape('updatePosition%0A%20%20%20%20%3CjQuery%28%27%23jtalk%27%29.css%28%27top%27%2C%20%27%27%29.css%28%27bottom%27%2C%20%2727px%27%29%3E'),
  40. messageSends: [],
  41. referencedClasses: []
  42. }),
  43. smalltalk.TabManager);
  44. smalltalk.addMethod(
  45. '_removeBodyMargin',
  46. smalltalk.method({
  47. selector: 'removeBodyMargin',
  48. category: 'actions',
  49. fn: function (){
  50. var self=this;
  51. smalltalk.send(self, "_setBodyMargin_", [(0)]);
  52. return self;},
  53. source: unescape('removeBodyMargin%0A%20%20%20%20self%20setBodyMargin%3A%200'),
  54. messageSends: ["setBodyMargin:"],
  55. referencedClasses: []
  56. }),
  57. smalltalk.TabManager);
  58. smalltalk.addMethod(
  59. '_setBodyMargin_',
  60. smalltalk.method({
  61. selector: 'setBodyMargin:',
  62. category: 'actions',
  63. fn: function (anInteger){
  64. var self=this;
  65. smalltalk.send(smalltalk.send(".jtalkBody", "_asJQuery", []), "_cssAt_put_", [unescape("margin-bottom"), smalltalk.send(smalltalk.send(anInteger, "_asString", []), "__comma", ["px"])]);
  66. return self;},
  67. 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'),
  68. messageSends: ["cssAt:put:", "asJQuery", unescape("%2C"), "asString"],
  69. referencedClasses: []
  70. }),
  71. smalltalk.TabManager);
  72. smalltalk.addMethod(
  73. '_onResize_',
  74. smalltalk.method({
  75. selector: 'onResize:',
  76. category: 'actions',
  77. fn: function (aBlock){
  78. var self=this;
  79. jQuery('#jtalk').resizable({
  80. handles: 'n',
  81. resize: aBlock,
  82. minHeight: 230
  83. });
  84. return self;},
  85. source: unescape('onResize%3A%20aBlock%0A%20%20%20%20%3CjQuery%28%27%23jtalk%27%29.resizable%28%7B%0A%09handles%3A%20%27n%27%2C%20%0A%09resize%3A%20aBlock%2C%0A%09minHeight%3A%20230%0A%7D%29%3E'),
  86. messageSends: [],
  87. referencedClasses: []
  88. }),
  89. smalltalk.TabManager);
  90. smalltalk.addMethod(
  91. '_onWindowResize_',
  92. smalltalk.method({
  93. selector: 'onWindowResize:',
  94. category: 'actions',
  95. fn: function (aBlock){
  96. var self=this;
  97. jQuery(window).resize(aBlock);
  98. return self;},
  99. source: unescape('onWindowResize%3A%20aBlock%0A%20%20%20%20%3CjQuery%28window%29.resize%28aBlock%29%3E'),
  100. messageSends: [],
  101. referencedClasses: []
  102. }),
  103. smalltalk.TabManager);
  104. smalltalk.addMethod(
  105. '_open',
  106. smalltalk.method({
  107. selector: 'open',
  108. category: 'actions',
  109. fn: function (){
  110. var self=this;
  111. 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;})]);
  112. return self;},
  113. 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'),
  114. messageSends: ["ifFalse:", "show", "asJQuery", "root", "addClass:", "updateBodyMargin"],
  115. referencedClasses: []
  116. }),
  117. smalltalk.TabManager);
  118. smalltalk.addMethod(
  119. '_close',
  120. smalltalk.method({
  121. selector: 'close',
  122. category: 'actions',
  123. fn: function (){
  124. var self=this;
  125. 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;})]);
  126. return self;},
  127. 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'),
  128. messageSends: ["ifTrue:", "hide", "asJQuery", "root", "removeBodyMargin", "removeClass:"],
  129. referencedClasses: []
  130. }),
  131. smalltalk.TabManager);
  132. smalltalk.addMethod(
  133. '_newBrowserTab',
  134. smalltalk.method({
  135. selector: 'newBrowserTab',
  136. category: 'actions',
  137. fn: function (){
  138. var self=this;
  139. smalltalk.send(smalltalk.Browser, "_open", []);
  140. return self;},
  141. source: unescape('newBrowserTab%0A%20%20%20%20Browser%20open'),
  142. messageSends: ["open"],
  143. referencedClasses: []
  144. }),
  145. smalltalk.TabManager);
  146. smalltalk.addMethod(
  147. '_selectTab_',
  148. smalltalk.method({
  149. selector: 'selectTab:',
  150. category: 'actions',
  151. fn: function (aWidget){
  152. var self=this;
  153. smalltalk.send(self, "_open", []);
  154. self['@selectedTab']=aWidget;
  155. smalltalk.send(smalltalk.send(self, "_tabs", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(smalltalk.send(each, "_root", []), "_asJQuery", []), "_hide", []);})]);
  156. smalltalk.send(smalltalk.send(smalltalk.send(aWidget, "_root", []), "_asJQuery", []), "_show", []);
  157. smalltalk.send(self, "_update", []);
  158. return self;},
  159. 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'),
  160. messageSends: ["open", "do:", "tabs", "hide", "asJQuery", "root", "show", "update"],
  161. referencedClasses: []
  162. }),
  163. smalltalk.TabManager);
  164. smalltalk.addMethod(
  165. '_closeTab_',
  166. smalltalk.method({
  167. selector: 'closeTab:',
  168. category: 'actions',
  169. fn: function (aWidget){
  170. var self=this;
  171. smalltalk.send(self, "_removeTab_", [aWidget]);
  172. smalltalk.send(self, "_selectTab_", [smalltalk.send(smalltalk.send(self, "_tabs", []), "_last", [])]);
  173. smalltalk.send(smalltalk.send(smalltalk.send(aWidget, "_root", []), "_asJQuery", []), "_remove", []);
  174. smalltalk.send(self, "_update", []);
  175. return self;},
  176. 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'),
  177. messageSends: ["removeTab:", "selectTab:", "last", "tabs", "remove", "asJQuery", "root", "update"],
  178. referencedClasses: []
  179. }),
  180. smalltalk.TabManager);
  181. smalltalk.addMethod(
  182. '_addTab_',
  183. smalltalk.method({
  184. selector: 'addTab:',
  185. category: 'adding/Removing',
  186. fn: function (aWidget){
  187. var self=this;
  188. smalltalk.send(smalltalk.send(self, "_tabs", []), "_add_", [aWidget]);
  189. smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_append_", [aWidget]);
  190. smalltalk.send(smalltalk.send(smalltalk.send(aWidget, "_root", []), "_asJQuery", []), "_hide", []);
  191. return self;},
  192. 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'),
  193. messageSends: ["add:", "tabs", "append:", "asJQuery", "hide", "root"],
  194. referencedClasses: []
  195. }),
  196. smalltalk.TabManager);
  197. smalltalk.addMethod(
  198. '_removeTab_',
  199. smalltalk.method({
  200. selector: 'removeTab:',
  201. category: 'adding/Removing',
  202. fn: function (aWidget){
  203. var self=this;
  204. smalltalk.send(smalltalk.send(self, "_tabs", []), "_remove_", [aWidget]);
  205. smalltalk.send(self, "_update", []);
  206. return self;},
  207. source: unescape('removeTab%3A%20aWidget%0A%20%20%20%20self%20tabs%20remove%3A%20aWidget.%0A%20%20%20%20self%20update'),
  208. messageSends: ["remove:", "tabs", "update"],
  209. referencedClasses: []
  210. }),
  211. smalltalk.TabManager);
  212. smalltalk.addMethod(
  213. '_initialize',
  214. smalltalk.method({
  215. selector: 'initialize',
  216. category: 'initialization',
  217. fn: function (){
  218. var self=this;
  219. smalltalk.send(self, "_initialize", [], smalltalk.Widget);
  220. self['@opened']=true;
  221. (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", []));
  222. (function($rec){smalltalk.send($rec, "_addTab_", [smalltalk.send(smalltalk.Transcript, "_current", [])]);return smalltalk.send($rec, "_addTab_", [smalltalk.send(smalltalk.Workspace, "_new", [])]);})(self);
  223. smalltalk.send(self, "_selectTab_", [smalltalk.send(smalltalk.send(self, "_tabs", []), "_last", [])]);
  224. (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);
  225. return self;},
  226. 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'),
  227. messageSends: ["initialize", "append:", "id:", "div", "addClass:", "asJQuery", "addTab:", "current", "new", "selectTab:", "last", "tabs", "onResize:", "updateBodyMargin", "updatePosition", "onWindowResize:"],
  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'),
  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'),
  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'),
  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'),
  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'),
  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'),
  316. messageSends: ["addTab:", "selectTab:", "current"],
  317. referencedClasses: [smalltalk.TabManager]
  318. }),
  319. smalltalk.TabWidget);
  320. smalltalk.addMethod(
  321. '_renderOn_',
  322. smalltalk.method({
  323. selector: 'renderOn:',
  324. category: 'rendering',
  325. fn: function (html){
  326. var self=this;
  327. (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", []));
  328. return self;},
  329. 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'),
  330. messageSends: ["class:", "with:", "renderBoxOn:", "div", "renderButtonsOn:", "root"],
  331. referencedClasses: []
  332. }),
  333. smalltalk.TabWidget);
  334. smalltalk.addMethod(
  335. '_renderBoxOn_',
  336. smalltalk.method({
  337. selector: 'renderBoxOn:',
  338. category: 'rendering',
  339. fn: function (html){
  340. var self=this;
  341. return self;},
  342. source: unescape('renderBoxOn%3A%20html'),
  343. messageSends: [],
  344. referencedClasses: []
  345. }),
  346. smalltalk.TabWidget);
  347. smalltalk.addMethod(
  348. '_renderButtonsOn_',
  349. smalltalk.method({
  350. selector: 'renderButtonsOn:',
  351. category: 'rendering',
  352. fn: function (html){
  353. var self=this;
  354. return self;},
  355. source: unescape('renderButtonsOn%3A%20html'),
  356. messageSends: [],
  357. referencedClasses: []
  358. }),
  359. smalltalk.TabWidget);
  360. smalltalk.addMethod(
  361. '_canBeClosed',
  362. smalltalk.method({
  363. selector: 'canBeClosed',
  364. category: 'testing',
  365. fn: function (){
  366. var self=this;
  367. return false;
  368. return self;},
  369. source: unescape('canBeClosed%0A%20%20%20%20%5Efalse'),
  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'),
  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'),
  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%3Creturn%20document.selection%3E'),
  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%3Creturn%20jQuery%28%27.jt_workspace%27%29%5B0%5D.selectionStart%3E'),
  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%3Creturn%20jQuery%28%27.jt_workspace%27%29%5B0%5D.selectionEnd%3E'),
  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%3CjQuery%28%27.jt_workspace%27%29%5B0%5D.selectionStart%20%3D%20anInteger%3E'),
  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%3CjQuery%28%27.jt_workspace%27%29%5B0%5D.selectionEnd%20%3D%20anInteger%3E'),
  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, "_lf", [])]);
  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%20lf.%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'),
  489. messageSends: ["tokenize:", "val", "asJQuery", "lf", "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%3Cif%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%3E'),
  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'),
  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'),
  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'),
  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'),
  602. messageSends: ["new", "parseExpression:", "ifTrue:", "isParseFailure", "alert:", unescape("%2C"), "reason", "position", "loadExpression:"],
  603. referencedClasses: [smalltalk.Compiler]
  604. }),
  605. smalltalk.Workspace);
  606. smalltalk.addMethod(
  607. '_inspectIt',
  608. smalltalk.method({
  609. selector: 'inspectIt',
  610. category: 'actions',
  611. fn: function (){
  612. var self=this;
  613. smalltalk.send(smalltalk.send(self, "_doIt", []), "_inspect", []);
  614. return self;},
  615. source: unescape('inspectIt%0A%20%20%20%20self%20doIt%20inspect'),
  616. messageSends: ["inspect", "doIt"],
  617. referencedClasses: []
  618. }),
  619. smalltalk.Workspace);
  620. smalltalk.addMethod(
  621. '_renderBoxOn_',
  622. smalltalk.method({
  623. selector: 'renderBoxOn:',
  624. category: 'rendering',
  625. fn: function (html){
  626. var self=this;
  627. self['@textarea']=smalltalk.send(html, "_textarea", []);
  628. smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_call_", ["tabby"]);
  629. smalltalk.send(self['@textarea'], "_onKeyDown_", [(function(e){return smalltalk.send(self, "_handleKeyDown_", [e]);})]);
  630. (function($rec){smalltalk.send($rec, "_class_", ["jt_workspace"]);return smalltalk.send($rec, "_at_put_", ["spellcheck", "false"]);})(self['@textarea']);
  631. return self;},
  632. 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'),
  633. messageSends: ["textarea", "call:", "asJQuery", "onKeyDown:", "handleKeyDown:", "class:", "at:put:"],
  634. referencedClasses: []
  635. }),
  636. smalltalk.Workspace);
  637. smalltalk.addMethod(
  638. '_renderButtonsOn_',
  639. smalltalk.method({
  640. selector: 'renderButtonsOn:',
  641. category: 'rendering',
  642. fn: function (html){
  643. var self=this;
  644. (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", []));
  645. (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", []));
  646. (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", []));
  647. (function($rec){smalltalk.send($rec, "_with_", ["Clear workspace"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_clearWorkspace", []);})]);})(smalltalk.send(html, "_button", []));
  648. return self;},
  649. 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'),
  650. messageSends: ["with:", "title:", "onClick:", "doIt", "button", "printIt", "inspectIt", "clearWorkspace"],
  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'),
  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.'),
  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.'),
  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'),
  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'),
  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'),
  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'),
  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'),
  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'),
  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'),
  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'),
  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'),
  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', 'input'], 'IDE');
  827. smalltalk.addMethod(
  828. '_label',
  829. smalltalk.method({
  830. selector: 'label',
  831. category: 'accessing',
  832. fn: function (){
  833. var self=this;
  834. return smalltalk.send(self['@selectedClass'], "_ifNil_ifNotNil_", [(function(){return unescape("Browser%20%28nil%29");}), (function(){return smalltalk.send(self['@selectedClass'], "_name", []);})]);
  835. return self;},
  836. 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'),
  837. messageSends: ["ifNil:ifNotNil:", "name"],
  838. referencedClasses: []
  839. }),
  840. smalltalk.Browser);
  841. smalltalk.addMethod(
  842. '_categories',
  843. smalltalk.method({
  844. selector: 'categories',
  845. category: 'accessing',
  846. fn: function (){
  847. var self=this;
  848. var categories=nil;
  849. categories=smalltalk.send(smalltalk.Array, "_new", []);
  850. 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", [])]);})]);})]);
  851. return smalltalk.send(categories, "_sort", []);
  852. return self;},
  853. 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'),
  854. messageSends: ["new", "do:", "classes", "current", "ifFalse:", "includes:", "category", "add:", "sort"],
  855. referencedClasses: [smalltalk.Array,smalltalk.Smalltalk]
  856. }),
  857. smalltalk.Browser);
  858. smalltalk.addMethod(
  859. '_classes',
  860. smalltalk.method({
  861. selector: 'classes',
  862. category: 'accessing',
  863. fn: function (){
  864. var self=this;
  865. 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", [])]);})]);
  866. return self;},
  867. 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'),
  868. messageSends: ["sort:", "select:", "classes", "current", unescape("%3D"), "category", unescape("%3E"), "name"],
  869. referencedClasses: [smalltalk.Smalltalk]
  870. }),
  871. smalltalk.Browser);
  872. smalltalk.addMethod(
  873. '_protocols',
  874. smalltalk.method({
  875. selector: 'protocols',
  876. category: 'accessing',
  877. fn: function (){
  878. var self=this;
  879. try{var klass=nil;
  880. 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", [])}})})();})]);
  881. (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send(smalltalk.Array, "_new", [])}})})();
  882. return self;
  883. } catch(e) {if(e.name === 'stReturn' && e.selector === '_protocols'){return e.fn()} throw(e)}},
  884. 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'),
  885. messageSends: ["ifNotNil:", "ifTrue:", unescape("%3D"), "ifTrue:ifFalse:", "class", "isEmpty", "methodDictionary", "with:", "protocols", "new"],
  886. referencedClasses: [smalltalk.Array]
  887. }),
  888. smalltalk.Browser);
  889. smalltalk.addMethod(
  890. '_methods',
  891. smalltalk.method({
  892. selector: 'methods',
  893. category: 'accessing',
  894. fn: function (){
  895. var self=this;
  896. try{var klass=nil;
  897. smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["comment"]), "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_methods', fn: function(){return []}})})();})]);
  898. 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", []);})]);})]);
  899. (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", [])]);})])}})})();
  900. return self;
  901. } catch(e) {if(e.name === 'stReturn' && e.selector === '_methods'){return e.fn()} throw(e)}},
  902. 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'),
  903. messageSends: ["ifTrue:", unescape("%3D"), "ifNotNil:", "ifTrue:ifFalse:", "class", "sort:", "ifNil:ifNotNil:", "values", "methodDictionary", "select:", "category", unescape("%3E"), "selector"],
  904. referencedClasses: []
  905. }),
  906. smalltalk.Browser);
  907. smalltalk.addMethod(
  908. '_source',
  909. smalltalk.method({
  910. selector: 'source',
  911. category: 'accessing',
  912. fn: function (){
  913. var self=this;
  914. 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", []);})])}})})();})]);
  915. (function(){throw({name: 'stReturn', selector: '_source', fn: function(){return smalltalk.send(self['@selectedClass'], "_ifNil_ifNotNil_", [(function(){return "";}), (function(){return smalltalk.send(self, "_classCommentSource", []);})])}})})();
  916. return self;
  917. } catch(e) {if(e.name === 'stReturn' && e.selector === '_source'){return e.fn()} throw(e)}},
  918. 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'),
  919. messageSends: ["ifFalse:", unescape("%3D"), "ifFalse:ifTrue:", "or:", "notNil", "declarationSource", "methodSource", "ifNil:ifNotNil:", "classCommentSource"],
  920. referencedClasses: []
  921. }),
  922. smalltalk.Browser);
  923. smalltalk.addMethod(
  924. '_methodSource',
  925. smalltalk.method({
  926. selector: 'methodSource',
  927. category: 'accessing',
  928. fn: function (){
  929. var self=this;
  930. return smalltalk.send(self['@selectedMethod'], "_ifNil_ifNotNil_", [(function(){return smalltalk.send(self, "_dummyMethodSource", []);}), (function(){return smalltalk.send(self['@selectedMethod'], "_source", []);})]);
  931. return self;},
  932. source: unescape('methodSource%0A%20%20%20%20%5EselectedMethod%0A%09ifNil%3A%20%5Bself%20dummyMethodSource%5D%0A%09ifNotNil%3A%20%5BselectedMethod%20source%5D'),
  933. messageSends: ["ifNil:ifNotNil:", "dummyMethodSource", "source"],
  934. referencedClasses: []
  935. }),
  936. smalltalk.Browser);
  937. smalltalk.addMethod(
  938. '_dummyMethodSource',
  939. smalltalk.method({
  940. selector: 'dummyMethodSource',
  941. category: 'accessing',
  942. fn: function (){
  943. var self=this;
  944. return unescape("messageSelectorAndArgumentNames%0A%09%22comment%20stating%20purpose%20of%20message%22%0A%0A%09%7C%20temporary%20variable%20names%20%7C%0A%09statements");
  945. return self;},
  946. 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'),
  947. messageSends: [],
  948. referencedClasses: []
  949. }),
  950. smalltalk.Browser);
  951. smalltalk.addMethod(
  952. '_declarationSource',
  953. smalltalk.method({
  954. selector: 'declarationSource',
  955. category: 'accessing',
  956. fn: function (){
  957. var self=this;
  958. return smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["instance"]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_classDeclarationSource", []);}), (function(){return smalltalk.send(self, "_metaclassDeclarationSource", []);})]);
  959. return self;},
  960. 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'),
  961. messageSends: ["ifTrue:ifFalse:", unescape("%3D"), "classDeclarationSource", "metaclassDeclarationSource"],
  962. referencedClasses: []
  963. }),
  964. smalltalk.Browser);
  965. smalltalk.addMethod(
  966. '_classDeclarationSource',
  967. smalltalk.method({
  968. selector: 'classDeclarationSource',
  969. category: 'accessing',
  970. fn: function (){
  971. var self=this;
  972. var stream=nil;
  973. stream=smalltalk.send("", "_writeStream", []);
  974. 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, "_lf", []), "__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, "_lf", [])]), "__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);})]);
  975. return smalltalk.send(stream, "_contents", []);
  976. return self;},
  977. 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%20lf%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%20lf%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'),
  978. messageSends: ["writeStream", "ifNotNil:", "nextPutAll:", "asString", "superclass", "name", unescape("%2C"), "lf", "tab", "do:separatedBy:", "instanceVariableNames", "category", "contents"],
  979. referencedClasses: [smalltalk.String]
  980. }),
  981. smalltalk.Browser);
  982. smalltalk.addMethod(
  983. '_metaclassDeclarationSource',
  984. smalltalk.method({
  985. selector: 'metaclassDeclarationSource',
  986. category: 'accessing',
  987. fn: function (){
  988. var self=this;
  989. var stream=nil;
  990. stream=smalltalk.send("", "_writeStream", []);
  991. 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")]);})]);
  992. return smalltalk.send(stream, "_contents", []);
  993. return self;},
  994. 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'),
  995. messageSends: ["writeStream", "ifNotNil:", "nextPutAll:", "asString", "do:separatedBy:", "instanceVariableNames", "class", "contents"],
  996. referencedClasses: []
  997. }),
  998. smalltalk.Browser);
  999. smalltalk.addMethod(
  1000. '_classCommentSource',
  1001. smalltalk.method({
  1002. selector: 'classCommentSource',
  1003. category: 'accessing',
  1004. fn: function (){
  1005. var self=this;
  1006. return smalltalk.send(self['@selectedClass'], "_comment", []);
  1007. return self;},
  1008. source: unescape('classCommentSource%0A%20%20%20%20%5EselectedClass%20comment'),
  1009. messageSends: ["comment"],
  1010. referencedClasses: []
  1011. }),
  1012. smalltalk.Browser);
  1013. smalltalk.addMethod(
  1014. '_enableSaveButton',
  1015. smalltalk.method({
  1016. selector: 'enableSaveButton',
  1017. category: 'actions',
  1018. fn: function (){
  1019. var self=this;
  1020. smalltalk.send(self['@saveButton'], "_removeAt_", ["disabled"]);
  1021. self['@unsavedChanges']=true;
  1022. return self;},
  1023. source: unescape('enableSaveButton%0A%20%20%20%20saveButton%20removeAt%3A%20%27disabled%27.%0A%20%20%20%20unsavedChanges%20%3A%3D%20true'),
  1024. messageSends: ["removeAt:"],
  1025. referencedClasses: []
  1026. }),
  1027. smalltalk.Browser);
  1028. smalltalk.addMethod(
  1029. '_disableSaveButton',
  1030. smalltalk.method({
  1031. selector: 'disableSaveButton',
  1032. category: 'actions',
  1033. fn: function (){
  1034. var self=this;
  1035. smalltalk.send(self['@saveButton'], "_ifNotNil_", [(function(){return smalltalk.send(self['@saveButton'], "_at_put_", ["disabled", true]);})]);
  1036. self['@unsavedChanges']=false;
  1037. return self;},
  1038. 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'),
  1039. messageSends: ["ifNotNil:", "at:put:"],
  1040. referencedClasses: []
  1041. }),
  1042. smalltalk.Browser);
  1043. smalltalk.addMethod(
  1044. '_hideClassButtons',
  1045. smalltalk.method({
  1046. selector: 'hideClassButtons',
  1047. category: 'actions',
  1048. fn: function (){
  1049. var self=this;
  1050. smalltalk.send(smalltalk.send(self['@classButtons'], "_asJQuery", []), "_hide", []);
  1051. return self;},
  1052. source: unescape('hideClassButtons%0A%20%20%20%20classButtons%20asJQuery%20hide'),
  1053. messageSends: ["hide", "asJQuery"],
  1054. referencedClasses: []
  1055. }),
  1056. smalltalk.Browser);
  1057. smalltalk.addMethod(
  1058. '_showClassButtons',
  1059. smalltalk.method({
  1060. selector: 'showClassButtons',
  1061. category: 'actions',
  1062. fn: function (){
  1063. var self=this;
  1064. smalltalk.send(smalltalk.send(self['@classButtons'], "_asJQuery", []), "_show", []);
  1065. return self;},
  1066. source: unescape('showClassButtons%0A%20%20%20%20classButtons%20asJQuery%20show'),
  1067. messageSends: ["show", "asJQuery"],
  1068. referencedClasses: []
  1069. }),
  1070. smalltalk.Browser);
  1071. smalltalk.addMethod(
  1072. '_hideMethodButtons',
  1073. smalltalk.method({
  1074. selector: 'hideMethodButtons',
  1075. category: 'actions',
  1076. fn: function (){
  1077. var self=this;
  1078. smalltalk.send(smalltalk.send(self['@methodButtons'], "_asJQuery", []), "_hide", []);
  1079. return self;},
  1080. source: unescape('hideMethodButtons%0A%20%20%20%20methodButtons%20asJQuery%20hide'),
  1081. messageSends: ["hide", "asJQuery"],
  1082. referencedClasses: []
  1083. }),
  1084. smalltalk.Browser);
  1085. smalltalk.addMethod(
  1086. '_showMethodButtons',
  1087. smalltalk.method({
  1088. selector: 'showMethodButtons',
  1089. category: 'actions',
  1090. fn: function (){
  1091. var self=this;
  1092. smalltalk.send(smalltalk.send(self['@methodButtons'], "_asJQuery", []), "_show", []);
  1093. return self;},
  1094. source: unescape('showMethodButtons%0A%20%20%20%20methodButtons%20asJQuery%20show'),
  1095. messageSends: ["show", "asJQuery"],
  1096. referencedClasses: []
  1097. }),
  1098. smalltalk.Browser);
  1099. smalltalk.addMethod(
  1100. '_compile',
  1101. smalltalk.method({
  1102. selector: 'compile',
  1103. category: 'actions',
  1104. fn: function (){
  1105. var self=this;
  1106. smalltalk.send(self, "_disableSaveButton", []);
  1107. smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["comment"]), "_ifTrue_", [(function(){return smalltalk.send(self['@selectedClass'], "_ifNotNil_", [(function(){return smalltalk.send(self, "_compileClassComment", []);})]);})]);
  1108. 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", []);})]);
  1109. return self;},
  1110. 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'),
  1111. messageSends: ["disableSaveButton", "ifTrue:", unescape("%3D"), "ifNotNil:", "compileClassComment", "ifFalse:ifTrue:", "or:", "notNil", "compileDefinition", "compileMethodDefinition"],
  1112. referencedClasses: []
  1113. }),
  1114. smalltalk.Browser);
  1115. smalltalk.addMethod(
  1116. '_compileClassComment',
  1117. smalltalk.method({
  1118. selector: 'compileClassComment',
  1119. category: 'actions',
  1120. fn: function (){
  1121. var self=this;
  1122. smalltalk.send(self['@selectedClass'], "_comment_", [smalltalk.send(smalltalk.send(self['@sourceTextarea'], "_asJQuery", []), "_val", [])]);
  1123. return self;},
  1124. source: unescape('compileClassComment%0A%20%20%20%20selectedClass%20comment%3A%20sourceTextarea%20asJQuery%20val'),
  1125. messageSends: ["comment:", "val", "asJQuery"],
  1126. referencedClasses: []
  1127. }),
  1128. smalltalk.Browser);
  1129. smalltalk.addMethod(
  1130. '_compileMethodDefinition',
  1131. smalltalk.method({
  1132. selector: 'compileMethodDefinition',
  1133. category: 'actions',
  1134. fn: function (){
  1135. var self=this;
  1136. 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", [])]);})]);
  1137. return self;},
  1138. 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'),
  1139. messageSends: ["ifTrue:ifFalse:", unescape("%3D"), "compileMethodDefinitionFor:", "class"],
  1140. referencedClasses: []
  1141. }),
  1142. smalltalk.Browser);
  1143. smalltalk.addMethod(
  1144. '_compileMethodDefinitionFor_',
  1145. smalltalk.method({
  1146. selector: 'compileMethodDefinitionFor:',
  1147. category: 'actions',
  1148. fn: function (aClass){
  1149. var self=this;
  1150. try{var compiler=nil;
  1151. var method=nil;
  1152. var source=nil;
  1153. var node=nil;
  1154. source=smalltalk.send(smalltalk.send(self['@sourceTextarea'], "_asJQuery", []), "_val", []);
  1155. smalltalk.send(self['@selectedProtocol'], "_ifNil_", [(function(){return self['@selectedProtocol']=smalltalk.send(self['@selectedMethod'], "_category", []);})]);
  1156. compiler=smalltalk.send(smalltalk.Compiler, "_new", []);
  1157. node=smalltalk.send(compiler, "_parse_", [source]);
  1158. 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", [])])])}})})();})]);
  1159. smalltalk.send(compiler, "_currentClass_", [self['@selectedClass']]);
  1160. method=smalltalk.send(compiler, "_eval_", [smalltalk.send(compiler, "_compileNode_", [node])]);
  1161. smalltalk.send(method, "_category_", [self['@selectedProtocol']]);
  1162. 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])}})})();})]);})]);
  1163. smalltalk.send(aClass, "_addCompiledMethod_", [method]);
  1164. smalltalk.send(compiler, "_setupClass_", [aClass]);
  1165. smalltalk.send(self, "_updateMethodsList", []);
  1166. smalltalk.send(self, "_selectMethod_", [method]);
  1167. return self;
  1168. } catch(e) {if(e.name === 'stReturn' && e.selector === '_compileMethodDefinitionFor_'){return e.fn()} throw(e)}},
  1169. 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%20compiler%20setupClass%3A%20aClass.%0A%20%20%20%20self%20updateMethodsList.%0A%20%20%20%20self%20selectMethod%3A%20method'),
  1170. 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:", "setupClass:", "updateMethodsList", "selectMethod:"],
  1171. referencedClasses: [smalltalk.Compiler]
  1172. }),
  1173. smalltalk.Browser);
  1174. smalltalk.addMethod(
  1175. '_compileDefinition',
  1176. smalltalk.method({
  1177. selector: 'compileDefinition',
  1178. category: 'actions',
  1179. fn: function (){
  1180. var self=this;
  1181. var newClass=nil;
  1182. newClass=smalltalk.send(smalltalk.send(smalltalk.Compiler, "_new", []), "_loadExpression_", [smalltalk.send(smalltalk.send(self['@sourceTextarea'], "_asJQuery", []), "_val", [])]);
  1183. (function($rec){smalltalk.send($rec, "_updateCategoriesList", []);return smalltalk.send($rec, "_updateClassesList", []);})(self);
  1184. return self;},
  1185. 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'),
  1186. messageSends: ["loadExpression:", "new", "val", "asJQuery", "updateCategoriesList", "updateClassesList"],
  1187. referencedClasses: [smalltalk.Compiler]
  1188. }),
  1189. smalltalk.Browser);
  1190. smalltalk.addMethod(
  1191. '_commitCategory',
  1192. smalltalk.method({
  1193. selector: 'commitCategory',
  1194. category: 'actions',
  1195. fn: function (){
  1196. var self=this;
  1197. 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"])]));})]);
  1198. return self;},
  1199. 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'),
  1200. messageSends: ["ifNotNil:", "at:put:", "exportCategory:", "new", "alert:", "send", "url:", unescape("%2C"), "commitPathJs", "class", "commitPathSt"],
  1201. referencedClasses: [smalltalk.Exporter,smalltalk.ChunkExporter]
  1202. }),
  1203. smalltalk.Browser);
  1204. smalltalk.addMethod(
  1205. '_cancelChanges',
  1206. smalltalk.method({
  1207. selector: 'cancelChanges',
  1208. category: 'actions',
  1209. fn: function (){
  1210. var self=this;
  1211. return smalltalk.send(self['@unsavedChanges'], "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_confirm_", [unescape("Cancel%20changes%3F")]);}), (function(){return true;})]);
  1212. return self;},
  1213. 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'),
  1214. messageSends: ["ifTrue:ifFalse:", "confirm:"],
  1215. referencedClasses: []
  1216. }),
  1217. smalltalk.Browser);
  1218. smalltalk.addMethod(
  1219. '_removeClass',
  1220. smalltalk.method({
  1221. selector: 'removeClass',
  1222. category: 'actions',
  1223. fn: function (){
  1224. var self=this;
  1225. 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]);})]);
  1226. return self;},
  1227. 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'),
  1228. messageSends: ["ifTrue:", "confirm:", unescape("%2C"), "name", "basicDelete:", "current", "selectClass:"],
  1229. referencedClasses: [smalltalk.Smalltalk]
  1230. }),
  1231. smalltalk.Browser);
  1232. smalltalk.addMethod(
  1233. '_removeMethod',
  1234. smalltalk.method({
  1235. selector: 'removeMethod',
  1236. category: 'actions',
  1237. fn: function (){
  1238. var self=this;
  1239. 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]);})]);})]);
  1240. return self;},
  1241. 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'),
  1242. messageSends: ["ifTrue:", "cancelChanges", "confirm:", unescape("%2C"), "selector", "ifTrue:ifFalse:", unescape("%3D"), "removeCompiledMethod:", "class", "selectMethod:"],
  1243. referencedClasses: []
  1244. }),
  1245. smalltalk.Browser);
  1246. smalltalk.addMethod(
  1247. '_setMethodProtocol_',
  1248. smalltalk.method({
  1249. selector: 'setMethodProtocol:',
  1250. category: 'actions',
  1251. fn: function (aString){
  1252. var self=this;
  1253. 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);})]);})]);
  1254. return self;},
  1255. 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'),
  1256. messageSends: ["ifTrue:", "cancelChanges", "ifFalse:ifTrue:", "includes:", "protocols", "addNewProtocol", "category:", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1257. referencedClasses: []
  1258. }),
  1259. smalltalk.Browser);
  1260. smalltalk.addMethod(
  1261. '_addNewProtocol',
  1262. smalltalk.method({
  1263. selector: 'addNewProtocol',
  1264. category: 'actions',
  1265. fn: function (){
  1266. var self=this;
  1267. var newProtocol=nil;
  1268. newProtocol=smalltalk.send(self, "_prompt_", ["New method protocol"]);
  1269. smalltalk.send(smalltalk.send(newProtocol, "_notEmpty", []), "_ifTrue_", [(function(){smalltalk.send(self['@selectedMethod'], "_category_", [newProtocol]);return smalltalk.send(self, "_setMethodProtocol_", [newProtocol]);})]);
  1270. return self;},
  1271. 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'),
  1272. messageSends: ["prompt:", "ifTrue:", "notEmpty", "category:", "setMethodProtocol:"],
  1273. referencedClasses: []
  1274. }),
  1275. smalltalk.Browser);
  1276. smalltalk.addMethod(
  1277. '_selectCategory_',
  1278. smalltalk.method({
  1279. selector: 'selectCategory:',
  1280. category: 'actions',
  1281. fn: function (aCategory){
  1282. var self=this;
  1283. 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);})]);
  1284. return self;},
  1285. 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'),
  1286. messageSends: ["ifTrue:", "cancelChanges", "updateCategoriesList", "updateClassesList", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1287. referencedClasses: []
  1288. }),
  1289. smalltalk.Browser);
  1290. smalltalk.addMethod(
  1291. '_selectClass_',
  1292. smalltalk.method({
  1293. selector: 'selectClass:',
  1294. category: 'actions',
  1295. fn: function (aClass){
  1296. var self=this;
  1297. 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);})]);
  1298. return self;},
  1299. 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'),
  1300. messageSends: ["ifTrue:", "cancelChanges", "updateClassesList", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1301. referencedClasses: []
  1302. }),
  1303. smalltalk.Browser);
  1304. smalltalk.addMethod(
  1305. '_selectProtocol_',
  1306. smalltalk.method({
  1307. selector: 'selectProtocol:',
  1308. category: 'actions',
  1309. fn: function (aString){
  1310. var self=this;
  1311. 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);})]);
  1312. return self;},
  1313. 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'),
  1314. messageSends: ["ifTrue:", "cancelChanges", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1315. referencedClasses: []
  1316. }),
  1317. smalltalk.Browser);
  1318. smalltalk.addMethod(
  1319. '_selectMethod_',
  1320. smalltalk.method({
  1321. selector: 'selectMethod:',
  1322. category: 'actions',
  1323. fn: function (aMethod){
  1324. var self=this;
  1325. 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);})]);
  1326. return self;},
  1327. 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'),
  1328. messageSends: ["ifTrue:", "cancelChanges", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1329. referencedClasses: []
  1330. }),
  1331. smalltalk.Browser);
  1332. smalltalk.addMethod(
  1333. '_selectTab_',
  1334. smalltalk.method({
  1335. selector: 'selectTab:',
  1336. category: 'actions',
  1337. fn: function (aString){
  1338. var self=this;
  1339. smalltalk.send(smalltalk.send(self, "_cancelChanges", []), "_ifTrue_", [(function(){self['@selectedTab']=aString;smalltalk.send(self, "_selectProtocol_", [nil]);return smalltalk.send(self, "_updateTabsList", []);})]);
  1340. return self;},
  1341. 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'),
  1342. messageSends: ["ifTrue:", "cancelChanges", "selectProtocol:", "updateTabsList"],
  1343. referencedClasses: []
  1344. }),
  1345. smalltalk.Browser);
  1346. smalltalk.addMethod(
  1347. '_renameClass',
  1348. smalltalk.method({
  1349. selector: 'renameClass',
  1350. category: 'actions',
  1351. fn: function (){
  1352. var self=this;
  1353. var newName=nil;
  1354. newName=smalltalk.send(self, "_prompt_", [smalltalk.send("Rename class ", "__comma", [smalltalk.send(self['@selectedClass'], "_name", [])])]);
  1355. 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);})]);
  1356. return self;},
  1357. 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'),
  1358. messageSends: ["prompt:", unescape("%2C"), "name", "ifTrue:", "notEmpty", "rename:", "updateClassesList", "updateSourceAndButtons"],
  1359. referencedClasses: []
  1360. }),
  1361. smalltalk.Browser);
  1362. smalltalk.addMethod(
  1363. '_addInstanceVariableNamed_toClass_',
  1364. smalltalk.method({
  1365. selector: 'addInstanceVariableNamed:toClass:',
  1366. category: 'actions',
  1367. fn: function (aString, aClass){
  1368. var self=this;
  1369. 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", []))]);
  1370. return self;},
  1371. 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'),
  1372. messageSends: ["addSubclassOf:named:instanceVariableNames:", "new", "superclass", "name", "add:", "yourself", "copy", "instanceVariableNames"],
  1373. referencedClasses: [smalltalk.ClassBuilder]
  1374. }),
  1375. smalltalk.Browser);
  1376. smalltalk.addMethod(
  1377. '_searchReferencesOf_',
  1378. smalltalk.method({
  1379. selector: 'searchReferencesOf:',
  1380. category: 'actions',
  1381. fn: function (aString){
  1382. var self=this;
  1383. smalltalk.send(smalltalk.ReferencesBrowser, "_search_", [aString]);
  1384. return self;},
  1385. source: unescape('searchReferencesOf%3A%20aString%0A%09ReferencesBrowser%20search%3A%20aString'),
  1386. messageSends: ["search:"],
  1387. referencedClasses: []
  1388. }),
  1389. smalltalk.Browser);
  1390. smalltalk.addMethod(
  1391. '_searchClassReferences',
  1392. smalltalk.method({
  1393. selector: 'searchClassReferences',
  1394. category: 'actions',
  1395. fn: function (){
  1396. var self=this;
  1397. smalltalk.send(smalltalk.ReferencesBrowser, "_search_", [smalltalk.send(self['@selectedClass'], "_name", [])]);
  1398. return self;},
  1399. source: unescape('searchClassReferences%0A%09ReferencesBrowser%20search%3A%20selectedClass%20name'),
  1400. messageSends: ["search:", "name"],
  1401. referencedClasses: []
  1402. }),
  1403. smalltalk.Browser);
  1404. smalltalk.addMethod(
  1405. '_initialize',
  1406. smalltalk.method({
  1407. selector: 'initialize',
  1408. category: 'initialization',
  1409. fn: function (){
  1410. var self=this;
  1411. smalltalk.send(self, "_initialize", [], smalltalk.TabWidget);
  1412. self['@selectedTab']="instance";
  1413. self['@unsavedChanges']=false;
  1414. return self;},
  1415. 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'),
  1416. messageSends: ["initialize"],
  1417. referencedClasses: []
  1418. }),
  1419. smalltalk.Browser);
  1420. smalltalk.addMethod(
  1421. '_renderBoxOn_',
  1422. smalltalk.method({
  1423. selector: 'renderBoxOn:',
  1424. category: 'rendering',
  1425. fn: function (html){
  1426. var self=this;
  1427. (function($rec){smalltalk.send($rec, "_renderTopPanelOn_", [html]);smalltalk.send($rec, "_renderTabsOn_", [html]);return smalltalk.send($rec, "_renderBottomPanelOn_", [html]);})(self);
  1428. return self;},
  1429. 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'),
  1430. messageSends: ["renderTopPanelOn:", "renderTabsOn:", "renderBottomPanelOn:"],
  1431. referencedClasses: []
  1432. }),
  1433. smalltalk.Browser);
  1434. smalltalk.addMethod(
  1435. '_renderTopPanelOn_',
  1436. smalltalk.method({
  1437. selector: 'renderTopPanelOn:',
  1438. category: 'rendering',
  1439. fn: function (html){
  1440. var self=this;
  1441. (function($rec){smalltalk.send($rec, "_class_", ["top"]);return smalltalk.send($rec, "_with_", [(function(){smalltalk.send(self, "_renderInputOn_", [html]);self['@categoriesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column browser 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 browser classes"]);self['@protocolsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column browser protocols"]);self['@methodsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column browser 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", []));
  1442. return self;},
  1443. 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%20self%20renderInputOn%3A%20html.%0A%09%20%20%20%20categoriesList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20browser%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%20browser%20classes%27.%0A%09%20%20%20%20protocolsList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20browser%20protocols%27.%0A%09%20%20%20%20methodsList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20browser%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'),
  1444. messageSends: ["class:", "with:", "renderInputOn:", "ul", "title:", "onClick:", "commitCategory", "button", "updateCategoriesList", "updateClassesList", "updateProtocolsList", "updateMethodsList", "div"],
  1445. referencedClasses: []
  1446. }),
  1447. smalltalk.Browser);
  1448. smalltalk.addMethod(
  1449. '_renderTabsOn_',
  1450. smalltalk.method({
  1451. selector: 'renderTabsOn:',
  1452. category: 'rendering',
  1453. fn: function (html){
  1454. var self=this;
  1455. self['@tabsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_tabs"]);
  1456. smalltalk.send(self, "_updateTabsList", []);
  1457. return self;},
  1458. 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.'),
  1459. messageSends: ["class:", "ul", "updateTabsList"],
  1460. referencedClasses: []
  1461. }),
  1462. smalltalk.Browser);
  1463. smalltalk.addMethod(
  1464. '_renderBottomPanelOn_',
  1465. smalltalk.method({
  1466. selector: 'renderBottomPanelOn:',
  1467. category: 'rendering',
  1468. fn: function (html){
  1469. var self=this;
  1470. (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", []));
  1471. return self;},
  1472. 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'),
  1473. messageSends: ["class:", "with:", "onKeyPress:", "enableSaveButton", "at:put:", "textarea", "call:", "asJQuery", "div"],
  1474. referencedClasses: []
  1475. }),
  1476. smalltalk.Browser);
  1477. smalltalk.addMethod(
  1478. '_renderButtonsOn_',
  1479. smalltalk.method({
  1480. selector: 'renderButtonsOn:',
  1481. category: 'rendering',
  1482. fn: function (html){
  1483. var self=this;
  1484. self['@saveButton']=smalltalk.send(html, "_button", []);
  1485. (function($rec){smalltalk.send($rec, "_with_", ["Save"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_compile", []);})]);})(self['@saveButton']);
  1486. self['@methodButtons']=smalltalk.send(html, "_span", []);
  1487. self['@classButtons']=smalltalk.send(html, "_span", []);
  1488. smalltalk.send(self, "_updateSourceAndButtons", []);
  1489. return self;},
  1490. 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'),
  1491. messageSends: ["button", "with:", "onClick:", "compile", "span", "updateSourceAndButtons"],
  1492. referencedClasses: []
  1493. }),
  1494. smalltalk.Browser);
  1495. smalltalk.addMethod(
  1496. '_canBeClosed',
  1497. smalltalk.method({
  1498. selector: 'canBeClosed',
  1499. category: 'testing',
  1500. fn: function (){
  1501. var self=this;
  1502. return true;
  1503. return self;},
  1504. source: unescape('canBeClosed%0A%20%20%20%20%5Etrue'),
  1505. messageSends: [],
  1506. referencedClasses: []
  1507. }),
  1508. smalltalk.Browser);
  1509. smalltalk.addMethod(
  1510. '_updateCategoriesList',
  1511. smalltalk.method({
  1512. selector: 'updateCategoriesList',
  1513. category: 'updating',
  1514. fn: function (){
  1515. var self=this;
  1516. smalltalk.send(self['@categoriesList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_categories", []), "_do_", [(function(each){var li=nil;
  1517. var label=nil;
  1518. 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);})]);})]);
  1519. return self;},
  1520. 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'),
  1521. messageSends: ["contents:", "do:", "categories", "ifTrue:ifFalse:", "isEmpty", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "onClick:", "selectCategory:"],
  1522. referencedClasses: []
  1523. }),
  1524. smalltalk.Browser);
  1525. smalltalk.addMethod(
  1526. '_updateClassesList',
  1527. smalltalk.method({
  1528. selector: 'updateClassesList',
  1529. category: 'updating',
  1530. fn: function (){
  1531. var self=this;
  1532. smalltalk.send(smalltalk.send(smalltalk.TabManager, "_current", []), "_update", []);
  1533. smalltalk.send(self['@classesList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_classes", []), "_do_", [(function(each){var li=nil;
  1534. 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);})]);})]);
  1535. return self;},
  1536. 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'),
  1537. messageSends: ["update", "current", "contents:", "do:", "classes", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "name", "onClick:", "selectClass:"],
  1538. referencedClasses: [smalltalk.TabManager]
  1539. }),
  1540. smalltalk.Browser);
  1541. smalltalk.addMethod(
  1542. '_updateProtocolsList',
  1543. smalltalk.method({
  1544. selector: 'updateProtocolsList',
  1545. category: 'updating',
  1546. fn: function (){
  1547. var self=this;
  1548. smalltalk.send(self['@protocolsList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_protocols", []), "_do_", [(function(each){var li=nil;
  1549. 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);})]);})]);
  1550. return self;},
  1551. 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'),
  1552. messageSends: ["contents:", "do:", "protocols", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "onClick:", "selectProtocol:"],
  1553. referencedClasses: []
  1554. }),
  1555. smalltalk.Browser);
  1556. smalltalk.addMethod(
  1557. '_updateMethodsList',
  1558. smalltalk.method({
  1559. selector: 'updateMethodsList',
  1560. category: 'updating',
  1561. fn: function (){
  1562. var self=this;
  1563. smalltalk.send(self['@methodsList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_methods", []), "_do_", [(function(each){var li=nil;
  1564. 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);})]);})]);
  1565. return self;},
  1566. 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'),
  1567. messageSends: ["contents:", "do:", "methods", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "selector", "onClick:", "selectMethod:"],
  1568. referencedClasses: []
  1569. }),
  1570. smalltalk.Browser);
  1571. smalltalk.addMethod(
  1572. '_updateTabsList',
  1573. smalltalk.method({
  1574. selector: 'updateTabsList',
  1575. category: 'updating',
  1576. fn: function (){
  1577. var self=this;
  1578. smalltalk.send(self['@tabsList'], "_contents_", [(function(html){var li=nil;
  1579. 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);})]);
  1580. return self;},
  1581. 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'),
  1582. messageSends: ["contents:", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "onClick:", "selectTab:"],
  1583. referencedClasses: []
  1584. }),
  1585. smalltalk.Browser);
  1586. smalltalk.addMethod(
  1587. '_updateSourceAndButtons',
  1588. smalltalk.method({
  1589. selector: 'updateSourceAndButtons',
  1590. category: 'updating',
  1591. fn: function (){
  1592. var self=this;
  1593. smalltalk.send(self, "_disableSaveButton", []);
  1594. 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", []));})]);
  1595. 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", []));})]);})]);
  1596. 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", []);})]);
  1597. smalltalk.send(smalltalk.send(self['@sourceTextarea'], "_asJQuery", []), "_val_", [smalltalk.send(self, "_source", [])]);
  1598. return self;},
  1599. 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'),
  1600. 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"],
  1601. referencedClasses: []
  1602. }),
  1603. smalltalk.Browser);
  1604. smalltalk.addMethod(
  1605. '_renderInputOn_',
  1606. smalltalk.method({
  1607. selector: 'renderInputOn:',
  1608. category: 'rendering',
  1609. fn: function (html){
  1610. var self=this;
  1611. self['@input']=(function($rec){smalltalk.send($rec, "_class_", ["implementors"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_input", []));
  1612. smalltalk.send(self['@input'], "_onKeyPress_", [(function(event){return smalltalk.send(smalltalk.send(smalltalk.send(event, "_keyCode", []), "__eq", [(13)]), "_ifTrue_", [(function(){return smalltalk.send(self, "_search_", [smalltalk.send(smalltalk.send(self['@input'], "_asJQuery", []), "_val", [])]);})]);})]);
  1613. return self;},
  1614. 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%20onKeyPress%3A%20%5B%3Aevent%20%7C%0A%09%09event%20keyCode%20%3D%2013%20ifTrue%3A%20%5B%0A%09%09%09self%20search%3A%20input%20asJQuery%20val%5D%5D'),
  1615. messageSends: ["class:", "yourself", "input", "onKeyPress:", "ifTrue:", unescape("%3D"), "keyCode", "search:", "val", "asJQuery"],
  1616. referencedClasses: []
  1617. }),
  1618. smalltalk.Browser);
  1619. smalltalk.addMethod(
  1620. '_search_',
  1621. smalltalk.method({
  1622. selector: 'search:',
  1623. category: 'actions',
  1624. fn: function (aString){
  1625. var self=this;
  1626. smalltalk.send(smalltalk.send(self, "_cancelChanges", []), "_ifTrue_", [(function(){var searchedClass=nil;
  1627. searchedClass=smalltalk.send(smalltalk.send(smalltalk.Smalltalk, "_current", []), "_at_", [aString]);return smalltalk.send(smalltalk.send(searchedClass, "_isClass", []), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_openOn_", [searchedClass]);}), (function(){return smalltalk.send(self, "_searchReferencesOf_", [aString]);})]);})]);
  1628. return self;},
  1629. source: unescape('search%3A%20aString%0A%09self%20cancelChanges%20ifTrue%3A%20%5B%7C%20searchedClass%20%7C%0A%09%09searchedClass%20%3A%3D%20Smalltalk%20current%20at%3A%20aString.%0A%09%09searchedClass%20isClass%0A%09%09%09ifTrue%3A%20%5Bself%20class%20openOn%3A%20searchedClass%5D%0A%09%09%09ifFalse%3A%20%5Bself%20searchReferencesOf%3A%20aString%5D%5D'),
  1630. messageSends: ["ifTrue:", "cancelChanges", "at:", "current", "ifTrue:ifFalse:", "isClass", "openOn:", "class", "searchReferencesOf:"],
  1631. referencedClasses: [smalltalk.Smalltalk]
  1632. }),
  1633. smalltalk.Browser);
  1634. smalltalk.addMethod(
  1635. '_commitPathJs',
  1636. smalltalk.method({
  1637. selector: 'commitPathJs',
  1638. category: 'accessing',
  1639. fn: function (){
  1640. var self=this;
  1641. return "js";
  1642. return self;},
  1643. source: unescape('commitPathJs%0A%09%5E%27js%27'),
  1644. messageSends: [],
  1645. referencedClasses: []
  1646. }),
  1647. smalltalk.Browser.klass);
  1648. smalltalk.addMethod(
  1649. '_commitPathSt',
  1650. smalltalk.method({
  1651. selector: 'commitPathSt',
  1652. category: 'accessing',
  1653. fn: function (){
  1654. var self=this;
  1655. return "st";
  1656. return self;},
  1657. source: unescape('commitPathSt%0A%09%5E%27st%27'),
  1658. messageSends: [],
  1659. referencedClasses: []
  1660. }),
  1661. smalltalk.Browser.klass);
  1662. smalltalk.addMethod(
  1663. '_openOn_',
  1664. smalltalk.method({
  1665. selector: 'openOn:',
  1666. category: 'convenience',
  1667. fn: function (aClass){
  1668. var self=this;
  1669. 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", []));
  1670. return self;},
  1671. 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'),
  1672. messageSends: ["open", "selectCategory:", "category", "selectClass:", "new"],
  1673. referencedClasses: []
  1674. }),
  1675. smalltalk.Browser.klass);
  1676. smalltalk.addMethod(
  1677. '_open',
  1678. smalltalk.method({
  1679. selector: 'open',
  1680. category: 'convenience',
  1681. fn: function (){
  1682. var self=this;
  1683. smalltalk.send(smalltalk.send(self, "_new", []), "_open", []);
  1684. return self;},
  1685. source: unescape('open%0A%20%20%20%20self%20new%20open'),
  1686. messageSends: ["open", "new"],
  1687. referencedClasses: []
  1688. }),
  1689. smalltalk.Browser.klass);
  1690. smalltalk.addClass('Inspector', smalltalk.TabWidget, ['label', 'variables', 'object', 'selectedVariable', 'variablesList', 'valueTextarea', 'workspaceTextarea', 'diveButton'], 'IDE');
  1691. smalltalk.addMethod(
  1692. '_label',
  1693. smalltalk.method({
  1694. selector: 'label',
  1695. category: 'accessing',
  1696. fn: function (){
  1697. var self=this;
  1698. return smalltalk.send(self['@label'], "_ifNil_", [(function(){return unescape("Inspector%20%28nil%29");})]);
  1699. return self;},
  1700. source: unescape('label%0A%09%5Elabel%20ifNil%3A%20%5B%27Inspector%20%28nil%29%27%5D'),
  1701. messageSends: ["ifNil:"],
  1702. referencedClasses: []
  1703. }),
  1704. smalltalk.Inspector);
  1705. smalltalk.addMethod(
  1706. '_variables',
  1707. smalltalk.method({
  1708. selector: 'variables',
  1709. category: 'accessing',
  1710. fn: function (){
  1711. var self=this;
  1712. return self['@variables'];
  1713. return self;},
  1714. source: unescape('variables%0A%09%5Evariables'),
  1715. messageSends: [],
  1716. referencedClasses: []
  1717. }),
  1718. smalltalk.Inspector);
  1719. smalltalk.addMethod(
  1720. '_setVariables_',
  1721. smalltalk.method({
  1722. selector: 'setVariables:',
  1723. category: 'accessing',
  1724. fn: function (aCollection){
  1725. var self=this;
  1726. self['@variables']=aCollection;
  1727. return self;},
  1728. source: unescape('setVariables%3A%20aCollection%0A%09variables%20%3A%3D%20aCollection'),
  1729. messageSends: [],
  1730. referencedClasses: []
  1731. }),
  1732. smalltalk.Inspector);
  1733. smalltalk.addMethod(
  1734. '_setLabel_',
  1735. smalltalk.method({
  1736. selector: 'setLabel:',
  1737. category: 'accessing',
  1738. fn: function (aString){
  1739. var self=this;
  1740. self['@label']=aString;
  1741. return self;},
  1742. source: unescape('setLabel%3A%20aString%0A%09label%20%3A%3D%20aString'),
  1743. messageSends: [],
  1744. referencedClasses: []
  1745. }),
  1746. smalltalk.Inspector);
  1747. smalltalk.addMethod(
  1748. '_selectedVariable',
  1749. smalltalk.method({
  1750. selector: 'selectedVariable',
  1751. category: 'accessing',
  1752. fn: function (){
  1753. var self=this;
  1754. return self['@selectedVariable'];
  1755. return self;},
  1756. source: unescape('selectedVariable%0A%09%5EselectedVariable'),
  1757. messageSends: [],
  1758. referencedClasses: []
  1759. }),
  1760. smalltalk.Inspector);
  1761. smalltalk.addMethod(
  1762. '_selectedVariable_',
  1763. smalltalk.method({
  1764. selector: 'selectedVariable:',
  1765. category: 'accessing',
  1766. fn: function (aString){
  1767. var self=this;
  1768. self['@selectedVariable']=aString;
  1769. return self;},
  1770. source: unescape('selectedVariable%3A%20aString%0A%09selectedVariable%20%3A%3D%20aString'),
  1771. messageSends: [],
  1772. referencedClasses: []
  1773. }),
  1774. smalltalk.Inspector);
  1775. smalltalk.addMethod(
  1776. '_inspect_',
  1777. smalltalk.method({
  1778. selector: 'inspect:',
  1779. category: 'actions',
  1780. fn: function (anObject){
  1781. var self=this;
  1782. self['@object']=anObject;
  1783. self['@variables']=[];
  1784. smalltalk.send(self['@object'], "_inspectOn_", [self]);
  1785. return self;},
  1786. 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'),
  1787. messageSends: ["inspectOn:"],
  1788. referencedClasses: []
  1789. }),
  1790. smalltalk.Inspector);
  1791. smalltalk.addMethod(
  1792. '_dive',
  1793. smalltalk.method({
  1794. selector: 'dive',
  1795. category: 'actions',
  1796. fn: function (){
  1797. var self=this;
  1798. smalltalk.send(smalltalk.send(smalltalk.send(self, "_variables", []), "_at_", [smalltalk.send(self, "_selectedVariable", [])]), "_inspect", []);
  1799. return self;},
  1800. source: unescape('dive%0A%09%28self%20variables%20at%3A%20self%20selectedVariable%29%20inspect'),
  1801. messageSends: ["inspect", "at:", "variables", "selectedVariable"],
  1802. referencedClasses: []
  1803. }),
  1804. smalltalk.Inspector);
  1805. smalltalk.addMethod(
  1806. '_refresh',
  1807. smalltalk.method({
  1808. selector: 'refresh',
  1809. category: 'actions',
  1810. fn: function (){
  1811. var self=this;
  1812. (function($rec){smalltalk.send($rec, "_inspect_", [self['@object']]);smalltalk.send($rec, "_updateVariablesList", []);return smalltalk.send($rec, "_updateValueTextarea", []);})(self);
  1813. return self;},
  1814. source: unescape('refresh%0A%09self%20%0A%09%09inspect%3A%20object%3B%20%0A%09%09updateVariablesList%3B%0A%09%09updateValueTextarea'),
  1815. messageSends: ["inspect:", "updateVariablesList", "updateValueTextarea"],
  1816. referencedClasses: []
  1817. }),
  1818. smalltalk.Inspector);
  1819. smalltalk.addMethod(
  1820. '_renderBoxOn_',
  1821. smalltalk.method({
  1822. selector: 'renderBoxOn:',
  1823. category: 'rendering',
  1824. fn: function (html){
  1825. var self=this;
  1826. (function($rec){smalltalk.send($rec, "_renderTopPanelOn_", [html]);return smalltalk.send($rec, "_renderBottomPanelOn_", [html]);})(self);
  1827. return self;},
  1828. source: unescape('renderBoxOn%3A%20html%0A%09self%20%0A%09%09renderTopPanelOn%3A%20html%3B%0A%09%09renderBottomPanelOn%3A%20html'),
  1829. messageSends: ["renderTopPanelOn:", "renderBottomPanelOn:"],
  1830. referencedClasses: []
  1831. }),
  1832. smalltalk.Inspector);
  1833. smalltalk.addMethod(
  1834. '_renderTopPanelOn_',
  1835. smalltalk.method({
  1836. selector: 'renderTopPanelOn:',
  1837. category: 'rendering',
  1838. fn: function (html){
  1839. var self=this;
  1840. (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", []));
  1841. return self;},
  1842. 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'),
  1843. messageSends: ["class:", "with:", "ul", "at:put:", "textarea", "updateVariablesList", "updateValueTextarea", "div"],
  1844. referencedClasses: []
  1845. }),
  1846. smalltalk.Inspector);
  1847. smalltalk.addMethod(
  1848. '_renderBottomPanelOn_',
  1849. smalltalk.method({
  1850. selector: 'renderBottomPanelOn:',
  1851. category: 'rendering',
  1852. fn: function (html){
  1853. var self=this;
  1854. (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", []));
  1855. return self;},
  1856. 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'),
  1857. messageSends: ["class:", "with:", "at:put:", "textarea", "call:", "asJQuery", "div"],
  1858. referencedClasses: []
  1859. }),
  1860. smalltalk.Inspector);
  1861. smalltalk.addMethod(
  1862. '_renderButtonsOn_',
  1863. smalltalk.method({
  1864. selector: 'renderButtonsOn:',
  1865. category: 'rendering',
  1866. fn: function (html){
  1867. var self=this;
  1868. (function($rec){smalltalk.send($rec, "_with_", ["Refresh"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_refresh", []);})]);})(smalltalk.send(html, "_button", []));
  1869. self['@diveButton']=(function($rec){smalltalk.send($rec, "_with_", ["Dive"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_dive", []);})]);})(smalltalk.send(html, "_button", []));
  1870. smalltalk.send(self, "_updateButtons", []);
  1871. return self;},
  1872. 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'),
  1873. messageSends: ["with:", "onClick:", "refresh", "button", "dive", "updateButtons"],
  1874. referencedClasses: []
  1875. }),
  1876. smalltalk.Inspector);
  1877. smalltalk.addMethod(
  1878. '_canBeClosed',
  1879. smalltalk.method({
  1880. selector: 'canBeClosed',
  1881. category: 'testing',
  1882. fn: function (){
  1883. var self=this;
  1884. return true;
  1885. return self;},
  1886. source: unescape('canBeClosed%0A%09%5Etrue'),
  1887. messageSends: [],
  1888. referencedClasses: []
  1889. }),
  1890. smalltalk.Inspector);
  1891. smalltalk.addMethod(
  1892. '_updateVariablesList',
  1893. smalltalk.method({
  1894. selector: 'updateVariablesList',
  1895. category: 'updating',
  1896. fn: function (){
  1897. var self=this;
  1898. smalltalk.send(self['@variablesList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_variables", []), "_keys", []), "_do_", [(function(each){var li=nil;
  1899. 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"]);})]);})]);})]);
  1900. return self;},
  1901. 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'),
  1902. messageSends: ["contents:", "do:", "keys", "variables", "li", "with:", "onClick:", "selectVariable:", "ifTrue:", unescape("%3D"), "selectedVariable", "class:"],
  1903. referencedClasses: []
  1904. }),
  1905. smalltalk.Inspector);
  1906. smalltalk.addMethod(
  1907. '_selectVariable_',
  1908. smalltalk.method({
  1909. selector: 'selectVariable:',
  1910. category: 'updating',
  1911. fn: function (aString){
  1912. var self=this;
  1913. smalltalk.send(self, "_selectedVariable_", [aString]);
  1914. (function($rec){smalltalk.send($rec, "_updateVariablesList", []);smalltalk.send($rec, "_updateValueTextarea", []);return smalltalk.send($rec, "_updateButtons", []);})(self);
  1915. return self;},
  1916. source: unescape('selectVariable%3A%20aString%0A%09self%20selectedVariable%3A%20aString.%0A%09self%20%0A%09%09updateVariablesList%3B%0A%09%09updateValueTextarea%3B%0A%09%09updateButtons'),
  1917. messageSends: ["selectedVariable:", "updateVariablesList", "updateValueTextarea", "updateButtons"],
  1918. referencedClasses: []
  1919. }),
  1920. smalltalk.Inspector);
  1921. smalltalk.addMethod(
  1922. '_updateValueTextarea',
  1923. smalltalk.method({
  1924. selector: 'updateValueTextarea',
  1925. category: 'updating',
  1926. fn: function (){
  1927. var self=this;
  1928. 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", []);})])]);
  1929. return self;},
  1930. 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'),
  1931. messageSends: ["val:", "asJQuery", "ifTrue:ifFalse:", "isNil", "selectedVariable", "printString", "at:", "variables"],
  1932. referencedClasses: []
  1933. }),
  1934. smalltalk.Inspector);
  1935. smalltalk.addMethod(
  1936. '_updateButtons',
  1937. smalltalk.method({
  1938. selector: 'updateButtons',
  1939. category: 'updating',
  1940. fn: function (){
  1941. var self=this;
  1942. 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"]);})]);
  1943. return self;},
  1944. 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'),
  1945. messageSends: ["ifFalse:ifTrue:", "and:", "notNil", "selectedVariable", "at:", "variables", "at:put:", "removeAt:"],
  1946. referencedClasses: []
  1947. }),
  1948. smalltalk.Inspector);
  1949. smalltalk.addMethod(
  1950. '_on_',
  1951. smalltalk.method({
  1952. selector: 'on:',
  1953. category: 'instance creation',
  1954. fn: function (anObject){
  1955. var self=this;
  1956. return (function($rec){smalltalk.send($rec, "_inspect_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  1957. return self;},
  1958. source: unescape('on%3A%20anObject%0A%09%5Eself%20new%0A%09%09inspect%3A%20anObject%3B%0A%09%09yourself'),
  1959. messageSends: ["inspect:", "yourself", "new"],
  1960. referencedClasses: []
  1961. }),
  1962. smalltalk.Inspector.klass);
  1963. smalltalk.addClass('ReferencesBrowser', smalltalk.TabWidget, ['implementors', 'senders', 'implementorsList', 'input', 'timer', 'selector', 'sendersList', 'referencedClasses', 'referencedClassesList'], 'IDE');
  1964. smalltalk.addMethod(
  1965. '_implementors',
  1966. smalltalk.method({
  1967. selector: 'implementors',
  1968. category: 'accessing',
  1969. fn: function (){
  1970. var self=this;
  1971. return smalltalk.send(self['@implementors'], "_ifNil_", [(function(){return self['@implementors']=smalltalk.send(smalltalk.Array, "_new", []);})]);
  1972. return self;},
  1973. source: unescape('implementors%0A%09%5Eimplementors%20ifNil%3A%20%5Bimplementors%20%3A%3D%20Array%20new%5D'),
  1974. messageSends: ["ifNil:", "new"],
  1975. referencedClasses: [smalltalk.Array]
  1976. }),
  1977. smalltalk.ReferencesBrowser);
  1978. smalltalk.addMethod(
  1979. '_label',
  1980. smalltalk.method({
  1981. selector: 'label',
  1982. category: 'accessing',
  1983. fn: function (){
  1984. var self=this;
  1985. return unescape("%5BReferencesBrowser%5D");
  1986. return self;},
  1987. source: unescape('label%0A%09%5E%27%5BReferencesBrowser%5D%27'),
  1988. messageSends: [],
  1989. referencedClasses: []
  1990. }),
  1991. smalltalk.ReferencesBrowser);
  1992. smalltalk.addMethod(
  1993. '_selector',
  1994. smalltalk.method({
  1995. selector: 'selector',
  1996. category: 'accessing',
  1997. fn: function (){
  1998. var self=this;
  1999. return self['@selector'];
  2000. return self;},
  2001. source: unescape('selector%0A%09%5Eselector'),
  2002. messageSends: [],
  2003. referencedClasses: []
  2004. }),
  2005. smalltalk.ReferencesBrowser);
  2006. smalltalk.addMethod(
  2007. '_senders',
  2008. smalltalk.method({
  2009. selector: 'senders',
  2010. category: 'accessing',
  2011. fn: function (){
  2012. var self=this;
  2013. return smalltalk.send(self['@senders'], "_ifNil_", [(function(){return self['@senders']=smalltalk.send(smalltalk.Array, "_new", []);})]);
  2014. return self;},
  2015. source: unescape('senders%0A%09%5Esenders%20ifNil%3A%20%5Bsenders%20%3A%3D%20Array%20new%5D'),
  2016. messageSends: ["ifNil:", "new"],
  2017. referencedClasses: [smalltalk.Array]
  2018. }),
  2019. smalltalk.ReferencesBrowser);
  2020. smalltalk.addMethod(
  2021. '_classesAndMetaclasses',
  2022. smalltalk.method({
  2023. selector: 'classesAndMetaclasses',
  2024. category: 'accessing',
  2025. fn: function (){
  2026. var self=this;
  2027. 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", []);})])]);
  2028. return self;},
  2029. source: unescape('classesAndMetaclasses%0A%09%5ESmalltalk%20current%20classes%2C%20%28Smalltalk%20current%20classes%20collect%3A%20%5B%3Aeach%20%7C%20each%20class%5D%29'),
  2030. messageSends: [unescape("%2C"), "classes", "current", "collect:", "class"],
  2031. referencedClasses: [smalltalk.Smalltalk]
  2032. }),
  2033. smalltalk.ReferencesBrowser);
  2034. smalltalk.addMethod(
  2035. '_referencedClasses',
  2036. smalltalk.method({
  2037. selector: 'referencedClasses',
  2038. category: 'accessing',
  2039. fn: function (){
  2040. var self=this;
  2041. return smalltalk.send(self['@referencedClasses'], "_ifNil_", [(function(){return self['@referencedClasses']=smalltalk.send(smalltalk.Array, "_new", []);})]);
  2042. return self;},
  2043. source: unescape('referencedClasses%0A%09%5EreferencedClasses%20ifNil%3A%20%5BreferencedClasses%20%3A%3D%20Array%20new%5D'),
  2044. messageSends: ["ifNil:", "new"],
  2045. referencedClasses: [smalltalk.Array]
  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. '_searchReferencesFor_',
  2067. smalltalk.method({
  2068. selector: 'searchReferencesFor:',
  2069. category: 'actions',
  2070. fn: function (aString){
  2071. var self=this;
  2072. self['@selector']=aString;
  2073. self['@implementors']=smalltalk.send(smalltalk.Array, "_new", []);
  2074. self['@senders']=smalltalk.send(smalltalk.Array, "_new", []);
  2075. self['@referencedClasses']=smalltalk.send(smalltalk.Array, "_new", []);
  2076. 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']]);})]);
  2077. return self;},
  2078. 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'),
  2079. messageSends: ["new", "ifFalse:ifTrue:", "match:", "searchSelectorReferencesFor:", "searchReferencedClassesFor:"],
  2080. referencedClasses: [smalltalk.Array]
  2081. }),
  2082. smalltalk.ReferencesBrowser);
  2083. smalltalk.addMethod(
  2084. '_search_',
  2085. smalltalk.method({
  2086. selector: 'search:',
  2087. category: 'actions',
  2088. fn: function (aString){
  2089. var self=this;
  2090. (function($rec){smalltalk.send($rec, "_searchReferencesFor_", [aString]);smalltalk.send($rec, "_updateImplementorsList", []);smalltalk.send($rec, "_updateSendersList", []);return smalltalk.send($rec, "_updateReferencedClassesList", []);})(self);
  2091. return self;},
  2092. 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'),
  2093. messageSends: ["searchReferencesFor:", "updateImplementorsList", "updateSendersList", "updateReferencedClassesList"],
  2094. referencedClasses: []
  2095. }),
  2096. smalltalk.ReferencesBrowser);
  2097. smalltalk.addMethod(
  2098. '_searchReferencedClassesFor_',
  2099. smalltalk.method({
  2100. selector: 'searchReferencedClassesFor:',
  2101. category: 'actions',
  2102. fn: function (aString){
  2103. var self=this;
  2104. 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]);})]);})]);})]);
  2105. return self;},
  2106. 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'),
  2107. messageSends: ["do:", "classesAndMetaclasses", "values", "methodDictionary", "ifTrue:", "includes:", "collect:", "select:", "referencedClasses", "notNil", "name", "add:"],
  2108. referencedClasses: []
  2109. }),
  2110. smalltalk.ReferencesBrowser);
  2111. smalltalk.addMethod(
  2112. '_searchSelectorReferencesFor_',
  2113. smalltalk.method({
  2114. selector: 'searchSelectorReferencesFor:',
  2115. category: 'actions',
  2116. fn: function (aString){
  2117. var self=this;
  2118. 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]);})]);})]);})]);
  2119. return self;},
  2120. 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'),
  2121. messageSends: ["do:", "classesAndMetaclasses", "keysAndValuesDo:", "methodDictionary", "ifTrue:", unescape("%3D"), "add:", "implementors", "includes:", "messageSends", "senders"],
  2122. referencedClasses: []
  2123. }),
  2124. smalltalk.ReferencesBrowser);
  2125. smalltalk.addMethod(
  2126. '_initialize',
  2127. smalltalk.method({
  2128. selector: 'initialize',
  2129. category: 'initialization',
  2130. fn: function (){
  2131. var self=this;
  2132. smalltalk.send(self, "_initialize", [], smalltalk.TabWidget);
  2133. self['@selector']="";
  2134. return self;},
  2135. source: unescape('initialize%0A%09super%20initialize.%0A%09selector%20%3A%3D%20%27%27'),
  2136. messageSends: ["initialize"],
  2137. referencedClasses: []
  2138. }),
  2139. smalltalk.ReferencesBrowser);
  2140. smalltalk.addMethod(
  2141. '_setInputEvents',
  2142. smalltalk.method({
  2143. selector: 'setInputEvents',
  2144. category: 'private',
  2145. fn: function (){
  2146. var self=this;
  2147. (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']);
  2148. return self;},
  2149. 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'),
  2150. messageSends: ["onKeyUp:", "valueWithTimeout:", "search:", "val", "asJQuery", "onKeyDown:", "ifNotNil:", "clearTimeout"],
  2151. referencedClasses: []
  2152. }),
  2153. smalltalk.ReferencesBrowser);
  2154. smalltalk.addMethod(
  2155. '_renderBoxOn_',
  2156. smalltalk.method({
  2157. selector: 'renderBoxOn:',
  2158. category: 'rendering',
  2159. fn: function (html){
  2160. var self=this;
  2161. (function($rec){smalltalk.send($rec, "_renderInputOn_", [html]);smalltalk.send($rec, "_renderImplementorsOn_", [html]);smalltalk.send($rec, "_renderSendersOn_", [html]);return smalltalk.send($rec, "_renderReferencedClassesOn_", [html]);})(self);
  2162. return self;},
  2163. 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'),
  2164. messageSends: ["renderInputOn:", "renderImplementorsOn:", "renderSendersOn:", "renderReferencedClassesOn:"],
  2165. referencedClasses: []
  2166. }),
  2167. smalltalk.ReferencesBrowser);
  2168. smalltalk.addMethod(
  2169. '_renderInputOn_',
  2170. smalltalk.method({
  2171. selector: 'renderInputOn:',
  2172. category: 'rendering',
  2173. fn: function (html){
  2174. var self=this;
  2175. self['@input']=(function($rec){smalltalk.send($rec, "_class_", ["implementors"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_input", []));
  2176. smalltalk.send(smalltalk.send(self['@input'], "_asJQuery", []), "_val_", [self['@selector']]);
  2177. smalltalk.send(self, "_setInputEvents", []);
  2178. return self;},
  2179. 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'),
  2180. messageSends: ["class:", "yourself", "input", "val:", "asJQuery", "setInputEvents"],
  2181. referencedClasses: []
  2182. }),
  2183. smalltalk.ReferencesBrowser);
  2184. smalltalk.addMethod(
  2185. '_renderImplementorsOn_',
  2186. smalltalk.method({
  2187. selector: 'renderImplementorsOn:',
  2188. category: 'rendering',
  2189. fn: function (html){
  2190. var self=this;
  2191. self['@implementorsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column implementors"]);
  2192. smalltalk.send(self, "_updateImplementorsList", []);
  2193. return self;},
  2194. 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'),
  2195. messageSends: ["class:", "ul", "updateImplementorsList"],
  2196. referencedClasses: []
  2197. }),
  2198. smalltalk.ReferencesBrowser);
  2199. smalltalk.addMethod(
  2200. '_renderSendersOn_',
  2201. smalltalk.method({
  2202. selector: 'renderSendersOn:',
  2203. category: 'rendering',
  2204. fn: function (html){
  2205. var self=this;
  2206. self['@sendersList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column senders"]);
  2207. smalltalk.send(self, "_updateSendersList", []);
  2208. return self;},
  2209. 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'),
  2210. messageSends: ["class:", "ul", "updateSendersList"],
  2211. referencedClasses: []
  2212. }),
  2213. smalltalk.ReferencesBrowser);
  2214. smalltalk.addMethod(
  2215. '_renderReferencedClassesOn_',
  2216. smalltalk.method({
  2217. selector: 'renderReferencedClassesOn:',
  2218. category: 'rendering',
  2219. fn: function (html){
  2220. var self=this;
  2221. self['@referencedClassesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column referenced_classes"]);
  2222. smalltalk.send(self, "_updateReferencedClassesList", []);
  2223. return self;},
  2224. 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'),
  2225. messageSends: ["class:", "ul", "updateReferencedClassesList"],
  2226. referencedClasses: []
  2227. }),
  2228. smalltalk.ReferencesBrowser);
  2229. smalltalk.addMethod(
  2230. '_canBeClosed',
  2231. smalltalk.method({
  2232. selector: 'canBeClosed',
  2233. category: 'testing',
  2234. fn: function (){
  2235. var self=this;
  2236. return true;
  2237. return self;},
  2238. source: unescape('canBeClosed%0A%09%5Etrue'),
  2239. messageSends: [],
  2240. referencedClasses: []
  2241. }),
  2242. smalltalk.ReferencesBrowser);
  2243. smalltalk.addMethod(
  2244. '_updateImplementorsList',
  2245. smalltalk.method({
  2246. selector: 'updateImplementorsList',
  2247. category: 'updating',
  2248. fn: function (){
  2249. var self=this;
  2250. smalltalk.send(self['@implementorsList'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_class_", ["column_label"]);smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(unescape("Implementors%20%28"), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_implementors", []), "_size", []), "_asString", [])]), "__comma", [unescape("%29")])]);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;
  2251. 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);})]);})]);
  2252. return self;},
  2253. 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%20%28%27%2C%20self%20implementors%20size%20asString%2C%20%27%29%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'),
  2254. messageSends: ["contents:", "class:", "with:", unescape("%2C"), "asString", "size", "implementors", "style:", "li", "do:", "methodClass", "selector", "onClick:", "openBrowserOn:"],
  2255. referencedClasses: []
  2256. }),
  2257. smalltalk.ReferencesBrowser);
  2258. smalltalk.addMethod(
  2259. '_updateSendersList',
  2260. smalltalk.method({
  2261. selector: 'updateSendersList',
  2262. category: 'updating',
  2263. fn: function (){
  2264. var self=this;
  2265. smalltalk.send(self['@sendersList'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_class_", ["column_label"]);smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(unescape("Senders%20%28"), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_senders", []), "_size", []), "_asString", [])]), "__comma", [unescape("%29")])]);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", []));})]);})]);
  2266. return self;},
  2267. 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%20%28%27%2C%20self%20senders%20size%20asString%2C%20%27%29%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'),
  2268. messageSends: ["contents:", "class:", "with:", unescape("%2C"), "asString", "size", "senders", "style:", "li", "do:", "methodClass", "selector", "onClick:", "openBrowserOn:"],
  2269. referencedClasses: []
  2270. }),
  2271. smalltalk.ReferencesBrowser);
  2272. smalltalk.addMethod(
  2273. '_updateReferencedClassesList',
  2274. smalltalk.method({
  2275. selector: 'updateReferencedClassesList',
  2276. category: 'updating',
  2277. fn: function (){
  2278. var self=this;
  2279. smalltalk.send(self['@referencedClassesList'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_class_", ["column_label"]);smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(unescape("Class%20references%20%28"), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_referencedClasses", []), "_size", []), "_asString", [])]), "__comma", [unescape("%29")])]);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", []));})]);})]);
  2280. return self;},
  2281. 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%20%28%27%2C%20self%20referencedClasses%20size%20asString%2C%20%27%29%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'),
  2282. messageSends: ["contents:", "class:", "with:", unescape("%2C"), "asString", "size", "referencedClasses", "style:", "li", "do:", "methodClass", "selector", "onClick:", "openBrowserOn:"],
  2283. referencedClasses: []
  2284. }),
  2285. smalltalk.ReferencesBrowser);
  2286. smalltalk.addMethod(
  2287. '_search_',
  2288. smalltalk.method({
  2289. selector: 'search:',
  2290. category: 'instance creation',
  2291. fn: function (aString){
  2292. var self=this;
  2293. return (function($rec){smalltalk.send($rec, "_searchReferencesFor_", [aString]);return smalltalk.send($rec, "_open", []);})(smalltalk.send(self, "_new", []));
  2294. return self;},
  2295. source: unescape('search%3A%20aString%0A%09%5Eself%20new%0A%09%09searchReferencesFor%3A%20aString%3B%0A%09%09open'),
  2296. messageSends: ["searchReferencesFor:", "open", "new"],
  2297. referencedClasses: []
  2298. }),
  2299. smalltalk.ReferencesBrowser.klass);
  2300. smalltalk.addMethod(
  2301. '_inspect',
  2302. smalltalk.method({
  2303. selector: 'inspect',
  2304. category: '*IDE',
  2305. fn: function (){
  2306. var self=this;
  2307. (function($rec){smalltalk.send($rec, "_inspect_", [self]);return smalltalk.send($rec, "_open", []);})(smalltalk.send(smalltalk.Inspector, "_new", []));
  2308. return self;},
  2309. source: unescape('inspect%0A%09Inspector%20new%20%0A%09%09inspect%3A%20self%3B%0A%09%09open'),
  2310. messageSends: ["inspect:", "open", "new"],
  2311. referencedClasses: [smalltalk.Inspector]
  2312. }),
  2313. smalltalk.Object);
  2314. smalltalk.addMethod(
  2315. '_inspectOn_',
  2316. smalltalk.method({
  2317. selector: 'inspectOn:',
  2318. category: '*IDE',
  2319. fn: function (anInspector){
  2320. var self=this;
  2321. var variables=nil;
  2322. variables=smalltalk.send(smalltalk.Dictionary, "_new", []);
  2323. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  2324. smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_instanceVariableNames", []), "_do_", [(function(each){return smalltalk.send(variables, "_at_put_", [each, smalltalk.send(self, "_instVarAt_", [each])]);})]);
  2325. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  2326. return self;},
  2327. 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'),
  2328. messageSends: ["new", "at:put:", "do:", "instanceVariableNames", "class", "instVarAt:", "setLabel:", "printString", "setVariables:"],
  2329. referencedClasses: [smalltalk.Dictionary]
  2330. }),
  2331. smalltalk.Object);
  2332. smalltalk.addMethod(
  2333. '_inspectOn_',
  2334. smalltalk.method({
  2335. selector: 'inspectOn:',
  2336. category: '*IDE',
  2337. fn: function (anInspector){
  2338. var self=this;
  2339. var variables=nil;
  2340. variables=smalltalk.send(smalltalk.Dictionary, "_new", []);
  2341. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  2342. smalltalk.send(variables, "_at_put_", [unescape("%23year"), smalltalk.send(self, "_year", [])]);
  2343. smalltalk.send(variables, "_at_put_", [unescape("%23month"), smalltalk.send(self, "_month", [])]);
  2344. smalltalk.send(variables, "_at_put_", [unescape("%23day"), smalltalk.send(self, "_day", [])]);
  2345. smalltalk.send(variables, "_at_put_", [unescape("%23hours"), smalltalk.send(self, "_hours", [])]);
  2346. smalltalk.send(variables, "_at_put_", [unescape("%23minutes"), smalltalk.send(self, "_minutes", [])]);
  2347. smalltalk.send(variables, "_at_put_", [unescape("%23seconds"), smalltalk.send(self, "_seconds", [])]);
  2348. smalltalk.send(variables, "_at_put_", [unescape("%23milliseconds"), smalltalk.send(self, "_milliseconds", [])]);
  2349. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  2350. return self;},
  2351. 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'),
  2352. messageSends: ["new", "at:put:", "year", "month", "day", "hours", "minutes", "seconds", "milliseconds", "setLabel:", "printString", "setVariables:"],
  2353. referencedClasses: [smalltalk.Dictionary]
  2354. }),
  2355. smalltalk.Date);
  2356. smalltalk.addMethod(
  2357. '_inspectOn_',
  2358. smalltalk.method({
  2359. selector: 'inspectOn:',
  2360. category: '*IDE',
  2361. fn: function (anInspector){
  2362. var self=this;
  2363. var variables=nil;
  2364. variables=smalltalk.send(smalltalk.Dictionary, "_new", []);
  2365. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  2366. smalltalk.send(self, "_withIndexDo_", [(function(each, i){return smalltalk.send(variables, "_at_put_", [i, each]);})]);
  2367. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  2368. return self;},
  2369. 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'),
  2370. messageSends: ["new", "at:put:", "withIndexDo:", "setLabel:", "printString", "setVariables:"],
  2371. referencedClasses: [smalltalk.Dictionary]
  2372. }),
  2373. smalltalk.Collection);
  2374. smalltalk.addMethod(
  2375. '_inspectOn_',
  2376. smalltalk.method({
  2377. selector: 'inspectOn:',
  2378. category: '*IDE',
  2379. fn: function (anInspector){
  2380. var self=this;
  2381. var label=nil;
  2382. smalltalk.send(self, "_inspectOn_", [anInspector], smalltalk.SequenceableCollection);
  2383. 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", []);})]);
  2384. smalltalk.send(anInspector, "_setLabel_", [label]);
  2385. return self;},
  2386. 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'),
  2387. messageSends: ["inspectOn:", "ifTrue:ifFalse:", unescape("%3E"), "size", "printString", unescape("%2C"), "copyFrom:to:", "setLabel:"],
  2388. referencedClasses: []
  2389. }),
  2390. smalltalk.String);
  2391. smalltalk.addMethod(
  2392. '_inspectOn_',
  2393. smalltalk.method({
  2394. selector: 'inspectOn:',
  2395. category: '*IDE',
  2396. fn: function (anInspector){
  2397. var self=this;
  2398. var variables=nil;
  2399. variables=smalltalk.send(smalltalk.Dictionary, "_new", []);
  2400. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  2401. smalltalk.send(variables, "_at_put_", [unescape("%23keys"), smalltalk.send(self, "_keys", [])]);
  2402. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(variables, "_at_put_", [key, value]);})]);
  2403. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  2404. return self;},
  2405. 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'),
  2406. messageSends: ["new", "at:put:", "keys", "keysAndValuesDo:", "setLabel:", "printString", "setVariables:"],
  2407. referencedClasses: [smalltalk.Dictionary]
  2408. }),
  2409. smalltalk.Dictionary);