IDE.deploy.js 102 KB

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