IDE.js 144 KB

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